lew-ui 2.5.4 → 2.5.6

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 CHANGED
@@ -1,21 +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.
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
@@ -1,45 +1,45 @@
1
- # Lew UI
2
-
3
- A Component Library for Vue3. Doc address: https://lew.kamtao.com
4
-
5
- English | [中文](./README.zh-CN.md)
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install lew-ui
11
- ```
12
-
13
- ## How to use
14
-
15
- ```js
16
- // main.ts
17
- import 'lew-ui/style'
18
- ```
19
-
20
- ```vue
21
- <script setup lang="ts">
22
- // page.vue
23
- import { LewButton } from 'lew-ui'
24
- </script>
25
-
26
- <template>
27
- <lew-button text="Submit" />
28
- </template>
29
- ```
30
-
31
- ## Open Source Libraries
32
-
33
- Lew UI uses the following open source libraries:
34
-
35
- - [Tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
- - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
- - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
38
- - [Day.js](https://day.js.org/): Lightweight library for date manipulation
39
- - [Yup](https://github.com/jquense/yup): Object schema validation library
40
-
41
- We are grateful for the support these excellent open source projects provide to Lew UI.
42
-
43
- ## License
44
-
45
- Lew UI is open source software licensed as MIT.
1
+ # Lew UI
2
+
3
+ A Component Library for Vue3. Doc address: https://lew.kamtao.com
4
+
5
+ English | [中文](./README.zh-CN.md)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install lew-ui
11
+ ```
12
+
13
+ ## How to use
14
+
15
+ ```js
16
+ // main.ts
17
+ import 'lew-ui/style'
18
+ ```
19
+
20
+ ```vue
21
+ <script setup lang="ts">
22
+ // page.vue
23
+ import { LewButton } from 'lew-ui'
24
+ </script>
25
+
26
+ <template>
27
+ <lew-button text="Submit" />
28
+ </template>
29
+ ```
30
+
31
+ ## Open Source Libraries
32
+
33
+ Lew UI uses the following open source libraries:
34
+
35
+ - [Tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
+ - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
+ - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
38
+ - [Day.js](https://day.js.org/): Lightweight library for date manipulation
39
+ - [Yup](https://github.com/jquense/yup): Object schema validation library
40
+
41
+ We are grateful for the support these excellent open source projects provide to Lew UI.
42
+
43
+ ## License
44
+
45
+ Lew UI is open source software licensed as MIT.
package/README.zh-CN.md CHANGED
@@ -1,47 +1,47 @@
1
- # Lew UI
2
-
3
- 一个用于 Vue3 的组件库。文档地址:https://lew.kamtao.com
4
-
5
- [英文](./README.md) | 中文
6
-
7
- ## 安装
8
-
9
- ```bash
10
- npm install lew-ui
11
- ```
12
-
13
- ## 如何使用
14
-
15
- main.ts
16
-
17
- ```js
18
- // main.ts
19
- import 'lew-ui/style'
20
- ```
21
-
22
- ```vue
23
- <script setup lang="ts">
24
- // page.vue
25
- import { LewButton } from 'lew-ui'
26
- </script>
27
-
28
- <template>
29
- <lew-button text="提交" />
30
- </template>
31
- ```
32
-
33
- ## 开源库声明
34
-
35
- Lew UI 使用了以下开源库:
36
-
37
- - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
- - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
- - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
40
- - [Day.js](https://day.js.org/): 轻量级日期处理库
41
- - [Yup](https://github.com/jquense/yup): 对象模式验证库
42
-
43
- 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
44
-
45
- ## 许可证
46
-
47
- Lew UI 是根据 MIT 许可证的开源软件。
1
+ # Lew UI
2
+
3
+ 一个用于 Vue3 的组件库。文档地址:https://lew.kamtao.com
4
+
5
+ [英文](./README.md) | 中文
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install lew-ui
11
+ ```
12
+
13
+ ## 如何使用
14
+
15
+ main.ts
16
+
17
+ ```js
18
+ // main.ts
19
+ import 'lew-ui/style'
20
+ ```
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ // page.vue
25
+ import { LewButton } from 'lew-ui'
26
+ </script>
27
+
28
+ <template>
29
+ <lew-button text="提交" />
30
+ </template>
31
+ ```
32
+
33
+ ## 开源库声明
34
+
35
+ Lew UI 使用了以下开源库:
36
+
37
+ - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
+ - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
+ - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
40
+ - [Day.js](https://day.js.org/): 轻量级日期处理库
41
+ - [Yup](https://github.com/jquense/yup): 对象模式验证库
42
+
43
+ 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
44
+
45
+ ## 许可证
46
+
47
+ Lew UI 是根据 MIT 许可证的开源软件。
package/dist/index.mjs CHANGED
@@ -4328,7 +4328,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
4328
4328
  ...sizeConfig,
4329
4329
  borderRadius: round2 ? "20px" : sizeConfig.borderRadius,
4330
4330
  opacity: disabled ? "var(--lew-disabled-opacity)" : void 0,
4331
- pointerEvents: disabled ? "none" : "auto"
4331
+ pointerEvents: disabled ? "none" : void 0
4332
4332
  };
4333
4333
  });
4334
4334
  return (_ctx, _cache) => {
@@ -7472,7 +7472,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
7472
7472
  };
7473
7473
  }
7474
7474
  });
7475
- const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-e8c800cb"]]);
7475
+ const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-3832593a"]]);
7476
7476
  const markProps = {
7477
7477
  color: {
7478
7478
  type: String,
@@ -7987,7 +7987,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
7987
7987
  };
7988
7988
  }
7989
7989
  });
7990
- const LewMenu = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-93729b05"]]);
7990
+ const LewMenu = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-0b1ac599"]]);
7991
7991
  const menuTreeModel = {
7992
7992
  modelValue: {
7993
7993
  type: String,
@@ -8099,8 +8099,6 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
8099
8099
  } else {
8100
8100
  if (modelValue2.value !== props2.menuKey) {
8101
8101
  modelValue2.value = props2.menuKey;
8102
- } else {
8103
- modelValue2.value = "";
8104
8102
  }
8105
8103
  }
8106
8104
  expandKeys.value = cloneDeep(expandKeys.value);
@@ -8172,7 +8170,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
8172
8170
  };
8173
8171
  }
8174
8172
  });
8175
- const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-b1217566"]]);
8173
+ const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-cc37e11f"]]);
8176
8174
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
8177
8175
  __name: "LewMenuTree",
8178
8176
  props: /* @__PURE__ */ mergeModels(menuTreeProps, {
@@ -8295,7 +8293,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
8295
8293
  };
8296
8294
  }
8297
8295
  });
8298
- const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9c3463ba"]]);
8296
+ const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-964895d2"]]);
8299
8297
  const dropdownProps = {
8300
8298
  trigger: {
8301
8299
  type: String,
@@ -11986,7 +11984,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11986
11984
  };
11987
11985
  }
11988
11986
  });
11989
- const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-3c20080e"]]);
11987
+ const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-bade7900"]]);
11990
11988
  const inputNumberModel = {
11991
11989
  modelValue: {
11992
11990
  type: Number,
@@ -12570,7 +12568,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12570
12568
  };
12571
12569
  }
12572
12570
  });
12573
- const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-4b92a5fb"]]);
12571
+ const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-fa22d421"]]);
12574
12572
  const inputTagModel = {
12575
12573
  modelValue: {
12576
12574
  type: Array,
@@ -12727,13 +12725,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12727
12725
  style: { "max-width": "100%" },
12728
12726
  size: _ctx.size,
12729
12727
  closable: !_ctx.readonly && !_ctx.disabled,
12728
+ disabled: _ctx.disabled,
12730
12729
  onClose: ($event) => delTag(index2)
12731
12730
  }, {
12732
12731
  default: withCtx(() => [
12733
12732
  createTextVNode(toDisplayString(item), 1)
12734
12733
  ]),
12735
12734
  _: 2
12736
- }, 1032, ["size", "closable", "onClose"]);
12735
+ }, 1032, ["size", "closable", "disabled", "onClose"]);
12737
12736
  }), 128)),
12738
12737
  unref(isFocus) || (modelValue2.value || []).length === 0 ? (openBlock(), createBlock(unref(LewInput), {
12739
12738
  key: 0,
@@ -12773,7 +12772,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12773
12772
  };
12774
12773
  }
12775
12774
  });
12776
- const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-88c45751"]]);
12775
+ const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-b4a4327b"]]);
12777
12776
  const checkboxModel = {
12778
12777
  modelValue: {
12779
12778
  type: Boolean,
@@ -13606,7 +13605,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
13606
13605
  };
13607
13606
  }
13608
13607
  });
13609
- const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-b86d4bc4"]]);
13608
+ const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-3d5cad26"]]);
13610
13609
  function tryOnScopeDispose(fn2) {
13611
13610
  if (getCurrentScope()) {
13612
13611
  onScopeDispose(fn2);
@@ -14483,7 +14482,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14483
14482
  unref(getChecked)(templateProps.value) && _ctx.showCheckIcon ? (openBlock(), createBlock(Icon, {
14484
14483
  key: 0,
14485
14484
  class: "lew-icon-check",
14486
- size: 14,
14485
+ size: 16,
14486
+ strokeWidth: 3,
14487
14487
  type: "check"
14488
14488
  })) : createCommentVNode("", true)
14489
14489
  ], 2))
@@ -14500,7 +14500,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14500
14500
  };
14501
14501
  }
14502
14502
  });
14503
- const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-1944f494"]]);
14503
+ const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-45397f66"]]);
14504
14504
  const selectMultipleModel = {
14505
14505
  modelValue: {
14506
14506
  type: Array,
@@ -17095,7 +17095,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17095
17095
  };
17096
17096
  }
17097
17097
  });
17098
- const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-125f865d"]]);
17098
+ const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-a8fbdd97"]]);
17099
17099
  const treeSelectModel = {
17100
17100
  modelValue: {
17101
17101
  type: [String, Number],
@@ -17539,7 +17539,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17539
17539
  };
17540
17540
  }
17541
17541
  });
17542
- const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-8b411b09"]]);
17542
+ const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-bbe3e3af"]]);
17543
17543
  const _hoisted_1$l = { class: "lew-form-modal lew-scrollbar" };
17544
17544
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
17545
17545
  __name: "FormModal",
@@ -18263,7 +18263,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18263
18263
  };
18264
18264
  }
18265
18265
  });
18266
- const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-f9d855ca"]]);
18266
+ const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-91c197fb"]]);
18267
18267
  const sliderModel = {
18268
18268
  modelValue: {
18269
18269
  type: [Number, void 0],
@@ -18627,7 +18627,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18627
18627
  };
18628
18628
  }
18629
18629
  });
18630
- const LewSlider = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-07675720"]]);
18630
+ const LewSlider = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-0fac63bf"]]);
18631
18631
  const sliderRangeModel = {
18632
18632
  modelValue: {
18633
18633
  type: Array,
@@ -19017,7 +19017,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
19017
19017
  };
19018
19018
  }
19019
19019
  });
19020
- const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-06985b8f"]]);
19020
+ const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-d48f33f4"]]);
19021
19021
  const colorPickerModel = {
19022
19022
  modelValue: {
19023
19023
  type: String,
@@ -19174,7 +19174,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
19174
19174
  };
19175
19175
  }
19176
19176
  });
19177
- const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5601dfdf"]]);
19177
+ const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b3157b53"]]);
19178
19178
  const uploadProps = {
19179
19179
  accept: {
19180
19180
  type: String,
@@ -20413,6 +20413,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
20413
20413
  deep: true
20414
20414
  }
20415
20415
  );
20416
+ watch(
20417
+ () => props2.dataSource,
20418
+ () => {
20419
+ compTrHeight();
20420
+ },
20421
+ {
20422
+ deep: true
20423
+ }
20424
+ );
20416
20425
  const handleTableResize = throttle(() => {
20417
20426
  const table = tableRef.value;
20418
20427
  if (!table) return;
@@ -21286,7 +21295,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
21286
21295
  };
21287
21296
  }
21288
21297
  });
21289
- const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-e37e24d3"]]);
21298
+ const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f4861d07"]]);
21290
21299
  const magicNumberProps = {
21291
21300
  value: {
21292
21301
  type: Number,
@@ -21859,7 +21868,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21859
21868
  };
21860
21869
  }
21861
21870
  });
21862
- const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-86c0e774"]]);
21871
+ const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-71b6af52"]]);
21863
21872
  const collapseModel = {
21864
21873
  modelValue: {
21865
21874
  type: [Array, String],
@@ -22627,7 +22636,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22627
22636
  };
22628
22637
  }
22629
22638
  });
22630
- const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-25a1c7c1"]]);
22639
+ const LewDescItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1543c046"]]);
22631
22640
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22632
22641
  __name: "LewDesc",
22633
22642
  props: descProps,
@@ -23043,7 +23052,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23043
23052
  };
23044
23053
  }
23045
23054
  });
23046
- const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5cc72080"]]);
23055
+ const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-9ba5f29e"]]);
23047
23056
  const popokProps = {
23048
23057
  type: {
23049
23058
  type: String,
@@ -24455,7 +24464,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24455
24464
  };
24456
24465
  }
24457
24466
  });
24458
- const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-189cc6df"]]);
24467
+ const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e33c6a11"]]);
24459
24468
  const initLewHoverMenu = () => {
24460
24469
  window.LewHoverMenu = {
24461
24470
  menu: {},