radius) || 5 let radius = (border && border.radius) || radiusDefaultValue radius = this.value2px(radius) obj = { 'border-width': width, @@ -206,7 +208,7 @@ left: 0; margin: 5px; border: 1px #eee solid; border-radius: 8px; border-radius: 5px; overflow: hidden; } 0 ...
{ inputValue: '' }; } }; </script> <style scoped> .container { padding: 20px; } .custom-input { background-color: #f0f0f0; /* 设置背景色 */ border: 1px solid #ccc; /* 可选:添加边框 */ padding: 10px; /* 可选:添加内边距 */ border-radius: 5px; /* 可...