bkui-vue 2.0.2-beta.61 → 2.0.2-beta.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.css +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +6 -0
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +6 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/input/index.js
CHANGED
@@ -1518,7 +1518,7 @@ function calculateNodeStyling(targetElement) {
|
|
1518
1518
|
};
|
1519
1519
|
}
|
1520
1520
|
function calcTextareaHeight(targetElement) {
|
1521
|
-
var _hiddenTextarea$paren;
|
1521
|
+
var _targetElement$value, _hiddenTextarea$paren;
|
1522
1522
|
var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
1523
1523
|
var maxRows = arguments.length > 2 ? arguments[2] : undefined;
|
1524
1524
|
if (!hiddenTextarea) {
|
@@ -1531,7 +1531,7 @@ function calcTextareaHeight(targetElement) {
|
|
1531
1531
|
boxSizing = _calculateNodeStyling.boxSizing,
|
1532
1532
|
contextStyle = _calculateNodeStyling.contextStyle;
|
1533
1533
|
hiddenTextarea.setAttribute('style', "".concat(contextStyle, ";").concat(HIDDEN_STYLE));
|
1534
|
-
hiddenTextarea.value =
|
1534
|
+
hiddenTextarea.value = (_targetElement$value = targetElement.value) !== null && _targetElement$value !== void 0 ? _targetElement$value : '';
|
1535
1535
|
var height = hiddenTextarea.scrollHeight;
|
1536
1536
|
var result = {};
|
1537
1537
|
if (boxSizing === 'border-box') {
|
package/lib/input/input.css
CHANGED
@@ -84,6 +84,7 @@
|
|
84
84
|
box-sizing: border-box;
|
85
85
|
transition: all 0.3s;
|
86
86
|
flex-direction: column;
|
87
|
+
position: relative;
|
87
88
|
}
|
88
89
|
.bk-textarea ::placeholder {
|
89
90
|
font-size: 12px;
|
@@ -178,6 +179,11 @@
|
|
178
179
|
.bk-textarea:hover:not(.is-disabled) .show-clear-only-hover {
|
179
180
|
display: flex;
|
180
181
|
}
|
182
|
+
.bk-textarea--clear-icon {
|
183
|
+
position: absolute;
|
184
|
+
top: 5px;
|
185
|
+
right: 10px;
|
186
|
+
}
|
181
187
|
.bk-input {
|
182
188
|
display: inline-flex;
|
183
189
|
align-items: stretch;
|
package/lib/input/input.less
CHANGED
@@ -59,6 +59,7 @@
|
|
59
59
|
box-sizing: border-box;
|
60
60
|
transition: all .3s;
|
61
61
|
flex-direction: column;
|
62
|
+
position: relative;
|
62
63
|
.placeholder();
|
63
64
|
|
64
65
|
&.resizable {
|
@@ -138,6 +139,12 @@
|
|
138
139
|
display: flex;
|
139
140
|
}
|
140
141
|
}
|
142
|
+
|
143
|
+
&--clear-icon {
|
144
|
+
position: absolute;
|
145
|
+
top: 5px;
|
146
|
+
right: 10px;
|
147
|
+
}
|
141
148
|
}
|
142
149
|
|
143
150
|
.@{bk-prefix}-input {
|
@@ -215,6 +215,7 @@
|
|
215
215
|
box-sizing: border-box;
|
216
216
|
transition: all 0.3s;
|
217
217
|
flex-direction: column;
|
218
|
+
position: relative;
|
218
219
|
}
|
219
220
|
.bk-textarea ::placeholder {
|
220
221
|
font-size: 12px;
|
@@ -309,6 +310,11 @@
|
|
309
310
|
.bk-textarea:hover:not(.is-disabled) .show-clear-only-hover {
|
310
311
|
display: flex;
|
311
312
|
}
|
313
|
+
.bk-textarea--clear-icon {
|
314
|
+
position: absolute;
|
315
|
+
top: 5px;
|
316
|
+
right: 10px;
|
317
|
+
}
|
312
318
|
.bk-input {
|
313
319
|
display: inline-flex;
|
314
320
|
align-items: stretch;
|