lew-ui 1.7.21 → 1.7.23
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/index.es.js +7 -3
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 lew
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -3796,7 +3796,7 @@ const _sfc_main$x = defineComponent({
|
|
|
3796
3796
|
});
|
|
3797
3797
|
if (props.okByEnter) {
|
|
3798
3798
|
watch(enter, (v) => {
|
|
3799
|
-
if (v) {
|
|
3799
|
+
if (v && state.isFocus && modelValue.value) {
|
|
3800
3800
|
emit("ok", modelValue.value);
|
|
3801
3801
|
}
|
|
3802
3802
|
});
|
|
@@ -4138,7 +4138,7 @@ const _sfc_main$w = defineComponent({
|
|
|
4138
4138
|
var _a3;
|
|
4139
4139
|
if (shift.value && enter.value) {
|
|
4140
4140
|
return;
|
|
4141
|
-
} else if (enter.value) {
|
|
4141
|
+
} else if (enter.value && state.isFocus && modelValue.value) {
|
|
4142
4142
|
(_a3 = lewTextareaRef.value) == null ? void 0 : _a3.blur();
|
|
4143
4143
|
emit("ok", modelValue.value);
|
|
4144
4144
|
}
|
|
@@ -10225,7 +10225,11 @@ const _sfc_main$c = defineComponent({
|
|
|
10225
10225
|
styleObj.padding = "0px 8px 0px 36px";
|
|
10226
10226
|
}
|
|
10227
10227
|
} else {
|
|
10228
|
-
|
|
10228
|
+
if (props.icon) {
|
|
10229
|
+
styleObj.padding = "0px";
|
|
10230
|
+
} else {
|
|
10231
|
+
styleObj.padding = "0px 8px";
|
|
10232
|
+
}
|
|
10229
10233
|
}
|
|
10230
10234
|
break;
|
|
10231
10235
|
default:
|