@xiaou66/u-web-ui 0.0.17 → 0.0.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"LeftMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/LeftMenu/LeftMenu.vue"],"names":[],"mappings":";AA8HA,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAC;AAGpB,KAAK,WAAW,GAAG,aAAa,CAAC;AAkEjC,KAAK,iBAAiB,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAiMT,OAAO,IAA6B;;sBAVvB,GAAG;;;;EAe7B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"LeftMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/LeftMenu/LeftMenu.vue"],"names":[],"mappings":";AA8HA,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAA;AAGnB,KAAK,WAAW,GAAG,aAAa,CAAC;AAkEjC,KAAK,iBAAiB,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmMT,OAAO,IAA6B;;sBAVvB,GAAG;;;;EAe7B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UtoolsLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/UtoolsLayout/UtoolsLayout.vue"],"names":[],"mappings":";;;AA0EA,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAEjF,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAiBJ,iBAAS,cAAc;WA0HT,OAAO,IAA6B;;+BAZd,GAAG;wBACV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6D46f,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;EA7CjkgB;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAhKT,MAAM;YAHL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAiMy7f,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;kBArBhkgB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"UtoolsLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/UtoolsLayout/UtoolsLayout.vue"],"names":[],"mappings":";;;AAwEA,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAEjF,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAiBJ,iBAAS,cAAc;WAwHT,OAAO,IAA6B;;+BAZd,GAAG;wBACV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6DowgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;EA7Cz5gB;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WA9JT,MAAM;YAHL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+LixgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;kBArBx5gB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,12 @@
1
1
  /**
2
2
  * SwitchPlus 组件的 Props 类型
3
- * 注意:modelValue 通过 defineModel 定义,不在 Props 中
4
3
  */
5
4
  export interface SwitchPlusProps {
5
+ /**
6
+ * @zh 绑定值
7
+ * @en Value
8
+ */
9
+ modelValue?: string | number | boolean;
6
10
  /**
7
11
  * @zh 默认选中状态(非受控状态)
8
12
  * @en Default selected state (uncontrolled state)
@@ -68,9 +72,9 @@ export interface SwitchPlusProps {
68
72
  }
69
73
  /**
70
74
  * SwitchPlus 组件的 Emits 类型
71
- * 注意:update:modelValue 由 defineModel 自动处理,不需要手动定义
72
75
  */
73
76
  export interface SwitchPlusEmits {
77
+ 'update:modelValue': [value: boolean | string | number];
74
78
  /**
75
79
  * @zh 值改变时触发
76
80
  * @en Trigger when the value changes
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchPlus.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlus.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,CACb,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAChC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IAC9C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACxD;;;;OAIG;IACH,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IAC1B;;;;OAIG;IACH,MAAM,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,CAAC,IAAI,GAAG,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,IAAI,GAAG,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,IAAI,GAAG,CAAC;IACvB;;;OAGG;IACH,gBAAgB,CAAC,IAAI,GAAG,CAAC;CAC1B"}
1
+ {"version":3,"file":"SwitchPlus.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlus.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,CACb,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAChC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IAC9C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IACxD;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACxD;;;;OAIG;IACH,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IAC1B;;;;OAIG;IACH,MAAM,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,CAAC,IAAI,GAAG,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,IAAI,GAAG,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,IAAI,GAAG,CAAC;IACvB;;;OAGG;IACH,gBAAgB,CAAC,IAAI,GAAG,CAAC;CAC1B"}
@@ -16,11 +16,13 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
16
16
  change: (value: string | number | boolean, ev: Event) => any;
17
17
  focus: (ev: FocusEvent) => any;
18
18
  "update:value": (value: string | number | boolean) => any;
19
+ "update:modelValue": (value: string | number | boolean) => any;
19
20
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
21
  onBlur?: ((ev: FocusEvent) => any) | undefined;
21
22
  onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
22
23
  onFocus?: ((ev: FocusEvent) => any) | undefined;
23
24
  "onUpdate:value"?: ((value: string | number | boolean) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
24
26
  }>, {
25
27
  size: "small" | "medium" | "large";
26
28
  type: "circle" | "round" | "line";
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchPlus.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlus.vue"],"names":[],"mappings":";AA8LA,OAAO,KAAK,EAAE,eAAe,EAAmB,eAAe,EAAE,MAAM,cAAc,CAAC;AAatF,KAAK,WAAW,GAAG,eAAe,CAAC;AA8InC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkFT,OAAO,IAA6B;;;;EAKjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;2FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SwitchPlus.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlus.vue"],"names":[],"mappings":";AA8LA,OAAO,KAAK,EAAE,eAAe,EAAmB,eAAe,EAAE,MAAM,cAAc,CAAC;AAatF,KAAK,WAAW,GAAG,eAAe,CAAC;AA8InC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkFT,OAAO,IAA6B;;;;EAKjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;2FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchPlusEnable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlusEnable.vue"],"names":[],"mappings":";AA4CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AASnD,KAAK,WAAW,GAAG,eAAe,CAAC;AA2BnC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;AA0EhB,wBASG"}
1
+ {"version":3,"file":"SwitchPlusEnable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlusEnable.vue"],"names":[],"mappings":";AAwCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AASnD,KAAK,WAAW,GAAG,eAAe,CAAC;AA2BnC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;AAwEhB,wBASG"}
@@ -1,3 +1,4 @@
1
1
  export * from './SwitchEnable';
2
2
  export * from './SwitchPlus';
3
+ export * from './SwitchPlus';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/switch/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/switch/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
package/dist/index.es.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { Aside as e, Avatar as t, Button as n, Content as r, Divider as i, HeadMenu as a, Header as o, Icon as s, Layout as c, Menu as l, MenuItem as u, Submenu as d, Switch as f } from "tdesign-vue-next";
2
- import { Fragment as p, Teleport as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as b, createTextVNode as x, createVNode as S, defineComponent as C, getCurrentInstance as w, getCurrentScope as T, inject as E, mergeModels as D, mergeProps as O, nextTick as k, normalizeClass as A, normalizeStyle as j, onMounted as M, onScopeDispose as N, onUnmounted as P, openBlock as F, provide as I, reactive as L, ref as R, renderList as z, renderSlot as B, resolveComponent as V, resolveDynamicComponent as ee, toDisplayString as H, toHandlers as U, toRefs as W, toValue as G, unref as K, useAttrs as te, useModel as q, useSlots as ne, useTemplateRef as re, watch as ie, withCtx as J, withModifiers as Y } from "vue";
3
- import { useRoute as ae, useRouter as oe } from "vue-router";
4
- const se = "u-web";
2
+ import { Fragment as p, Teleport as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as b, createTextVNode as x, createVNode as S, defineComponent as C, getCurrentInstance as w, getCurrentScope as T, inject as E, mergeModels as D, mergeProps as O, nextTick as k, normalizeClass as A, normalizeStyle as j, onMounted as M, onScopeDispose as N, onUnmounted as P, openBlock as F, provide as I, reactive as L, ref as R, renderList as z, renderSlot as B, resolveComponent as V, resolveDynamicComponent as ee, toDisplayString as H, toHandlers as U, toRefs as W, toValue as G, unref as K, useAttrs as te, useModel as q, useSlots as ne, watch as re, withCtx as J, withModifiers as Y } from "vue";
3
+ import { useRoute as ie, useRouter as ae } from "vue-router";
4
+ const oe = "u-web";
5
5
  function X(...e) {
6
- return se + "-" + e.join("-");
6
+ return oe + "-" + e.join("-");
7
7
  }
8
8
  function Z(...e) {
9
9
  let t = e.join("-");
10
10
  return (...e) => X(t, ...e);
11
11
  }
12
- function ce(e) {
12
+ function se(e) {
13
13
  return e.substring(0, 1).toUpperCase() + e.substring(1);
14
14
  }
15
- const Q = "on", le = [
15
+ const Q = "on", ce = [
16
16
  "Capture",
17
17
  "Passive",
18
18
  "Once"
19
- ], ue = /* @__PURE__ */ RegExp(`^(${le.join("|")})*$`);
20
- function de(...e) {
19
+ ], le = /* @__PURE__ */ RegExp(`^(${ce.join("|")})*$`);
20
+ function ue(...e) {
21
21
  if (!e.length) return !1;
22
22
  let t = w();
23
23
  if (!t) return !1;
@@ -25,25 +25,25 @@ function de(...e) {
25
25
  if (!r) return !1;
26
26
  let i = r.props || {}, a = [...Object.keys(n).filter((e) => e.startsWith(Q)), ...Object.keys(i).filter((e) => e.startsWith(Q))];
27
27
  for (let t of e) {
28
- let e = t.startsWith(Q) ? t : `${Q}${ce(t)}`;
28
+ let e = t.startsWith(Q) ? t : `${Q}${se(t)}`;
29
29
  if (a.includes(e)) return !0;
30
30
  for (let t of a) if (t.startsWith(e)) {
31
31
  let n = t.slice(e.length);
32
- if (n && ue.test(n)) return !0;
32
+ if (n && le.test(n)) return !0;
33
33
  }
34
34
  }
35
35
  return !1;
36
36
  }
37
- function fe(e) {
37
+ function de(e) {
38
38
  return typeof e == "function";
39
39
  }
40
- function pe(e) {
40
+ function fe(e) {
41
41
  return e === null;
42
42
  }
43
- function me(e) {
43
+ function pe(e) {
44
44
  return e === void 0;
45
45
  }
46
- var he = /* @__PURE__ */ C({
46
+ var me = /* @__PURE__ */ C({
47
47
  __name: "WebBaseLayout",
48
48
  setup(t) {
49
49
  return (t, n) => {
@@ -69,71 +69,71 @@ var he = /* @__PURE__ */ C({
69
69
  });
70
70
  };
71
71
  }
72
- }), ge = he;
73
- let _e = /* @__PURE__ */ function(e) {
72
+ }), he = me;
73
+ let ge = /* @__PURE__ */ function(e) {
74
74
  return e.Refresh = "u:leftMenu:refresh", e;
75
75
  }({});
76
- const ve = { refresh: () => {
77
- window.dispatchEvent(new CustomEvent(_e.Refresh));
76
+ const _e = { refresh: () => {
77
+ window.dispatchEvent(new CustomEvent(ge.Refresh));
78
78
  } };
79
- function ye(e) {
79
+ function ve(e) {
80
80
  return T() ? (N(e), !0) : !1;
81
81
  }
82
82
  const $ = typeof window < "u" && typeof document < "u";
83
83
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
84
- const be = Object.prototype.toString, xe = (e) => be.call(e) === "[object Object]";
85
- function Se(e) {
84
+ const ye = Object.prototype.toString, be = (e) => ye.call(e) === "[object Object]";
85
+ function xe(e) {
86
86
  return Array.isArray(e) ? e : [e];
87
87
  }
88
- function Ce(e) {
88
+ function Se(e) {
89
89
  let t = /* @__PURE__ */ Object.create(null);
90
90
  return (n) => {
91
91
  let r = t[n];
92
92
  return r || (t[n] = e(n));
93
93
  };
94
94
  }
95
- const we = /\B([A-Z])/g;
96
- Ce((e) => e.replace(we, "-$1").toLowerCase());
97
- const Te = /-(\w)/g;
98
- Ce((e) => e.replace(Te, (e, t) => t ? t.toUpperCase() : ""));
99
- function Ee(e, t, n) {
100
- return ie(e, t, {
95
+ const Ce = /\B([A-Z])/g;
96
+ Se((e) => e.replace(Ce, "-$1").toLowerCase());
97
+ const we = /-(\w)/g;
98
+ Se((e) => e.replace(we, (e, t) => t ? t.toUpperCase() : ""));
99
+ function Te(e, t, n) {
100
+ return re(e, t, {
101
101
  ...n,
102
102
  immediate: !0
103
103
  });
104
104
  }
105
- const De = $ ? window : void 0;
105
+ const Ee = $ ? window : void 0;
106
106
  $ && window.document, $ && window.navigator, $ && window.location;
107
- function Oe(e) {
107
+ function De(e) {
108
108
  var t;
109
109
  let n = G(e);
110
110
  return (t = n?.$el) ?? n;
111
111
  }
112
- function ke(...e) {
112
+ function Oe(...e) {
113
113
  let t = [], n = () => {
114
114
  t.forEach((e) => e()), t.length = 0;
115
115
  }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = h(() => {
116
- let t = Se(G(e[0])).filter((e) => e != null);
116
+ let t = xe(G(e[0])).filter((e) => e != null);
117
117
  return t.every((e) => typeof e != "string") ? t : void 0;
118
- }), a = Ee(() => {
118
+ }), a = Te(() => {
119
119
  var t, n;
120
120
  return [
121
- (n = (t = i.value)?.map((e) => Oe(e))) ?? [De].filter((e) => e != null),
122
- Se(G(i.value ? e[1] : e[0])),
123
- Se(K(i.value ? e[2] : e[1])),
121
+ (n = (t = i.value)?.map((e) => De(e))) ?? [Ee].filter((e) => e != null),
122
+ xe(G(i.value ? e[1] : e[0])),
123
+ xe(K(i.value ? e[2] : e[1])),
124
124
  G(i.value ? e[3] : e[2])
125
125
  ];
126
126
  }, ([e, i, a, o]) => {
127
127
  if (n(), !e?.length || !i?.length || !a?.length) return;
128
- let s = xe(o) ? { ...o } : o;
128
+ let s = be(o) ? { ...o } : o;
129
129
  t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
130
130
  }, { flush: "post" }), o = () => {
131
131
  a(), n();
132
132
  };
133
- return ye(n), o;
133
+ return ve(n), o;
134
134
  }
135
135
  Symbol("vueuse-ssr-width");
136
- var Ae = /* @__PURE__ */ C({
136
+ var ke = /* @__PURE__ */ C({
137
137
  __name: "LeftMenu",
138
138
  props: /* @__PURE__ */ D({
139
139
  hideOperations: {
@@ -158,7 +158,7 @@ var Ae = /* @__PURE__ */ C({
158
158
  function a() {
159
159
  i.value = !i.value;
160
160
  }
161
- let o = oe(), c = ae(), f = R([]);
161
+ let o = ae(), c = ie(), f = R([]);
162
162
  function m() {
163
163
  f.value = o.getRoutes().filter((e) => e.meta).filter((e) => e.path.split("/").length <= 2).filter((e) => e.meta.menu);
164
164
  }
@@ -174,7 +174,7 @@ var Ae = /* @__PURE__ */ C({
174
174
  function y(e) {
175
175
  return e.children ? e.children.filter((e) => e.meta?.menu) : [];
176
176
  }
177
- return r.refreshEventListener && ke(document, _e.Refresh, h), t({
177
+ return r.refreshEventListener && Oe(document, ge.Refresh, h), t({
178
178
  changeCollapsed: a,
179
179
  refreshRouter: h
180
180
  }), (e, t) => {
@@ -196,7 +196,10 @@ var Ae = /* @__PURE__ */ C({
196
196
  value: String(e.name),
197
197
  onClick: (t) => _(e)
198
198
  }, {
199
- icon: J(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
199
+ icon: J(() => [S(r, {
200
+ class: A(e.meta.icon),
201
+ size: "small"
202
+ }, null, 8, ["class"])]),
200
203
  default: J(() => [x(" " + H(e.meta.title), 1)]),
201
204
  _: 2
202
205
  }, 1032, ["value", "onClick"]))), 128))]),
@@ -229,7 +232,7 @@ var Ae = /* @__PURE__ */ C({
229
232
  } : void 0]), 1032, ["value", "collapsed"]);
230
233
  };
231
234
  }
232
- }), je = Ae, Me = /* @__PURE__ */ C({
235
+ }), Ae = ke, je = /* @__PURE__ */ C({
233
236
  __name: "ContextMenu",
234
237
  props: { hideOnSelect: {
235
238
  type: Boolean,
@@ -292,7 +295,7 @@ var Ae = /* @__PURE__ */ C({
292
295
  }, null, 34)) : _("", !0)]))
293
296
  ], 64));
294
297
  }
295
- }), Ne = Me, Pe = /* @__PURE__ */ C({
298
+ }), Me = je, Ne = /* @__PURE__ */ C({
296
299
  __name: "ContextMenuItem",
297
300
  props: {
298
301
  label: {},
@@ -336,7 +339,7 @@ var Ae = /* @__PURE__ */ C({
336
339
  class: A([K(i)("icon"), e.icon])
337
340
  }, H(e.icon), 3)) : _("", !0), y("span", { class: A(K(i)("label")) }, H(e.label), 3)], 34));
338
341
  }
339
- }), Fe = Pe, Ie = /* @__PURE__ */ C({
342
+ }), Pe = Ne, Fe = /* @__PURE__ */ C({
340
343
  __name: "ContextMenuGroup",
341
344
  props: { title: {} },
342
345
  setup(e) {
@@ -346,12 +349,12 @@ var Ae = /* @__PURE__ */ C({
346
349
  class: A(K(t)("title"))
347
350
  }, H(e.title), 3)) : _("", !0), B(e.$slots, "default")], 2));
348
351
  }
349
- }), Le = Ie, Re = /* @__PURE__ */ C({
352
+ }), Ie = Fe, Le = /* @__PURE__ */ C({
350
353
  __name: "ContextMenuDivider",
351
354
  setup(e) {
352
355
  return (e, t) => (F(), v("div", { class: A(K(X)("context-menu-divider")) }, null, 2));
353
356
  }
354
- }), ze = Re, Be = /* @__PURE__ */ C({
357
+ }), Re = Le, ze = /* @__PURE__ */ C({
355
358
  __name: "ContextMenuSubmenu",
356
359
  props: {
357
360
  label: {},
@@ -464,12 +467,12 @@ var Ae = /* @__PURE__ */ C({
464
467
  }, [B(e.$slots, "default")], 38)) : _("", !0)
465
468
  ], 34));
466
469
  }
467
- }), Ve = Be, He = /* @__PURE__ */ C({
470
+ }), Be = ze, Ve = /* @__PURE__ */ C({
468
471
  __name: "WebLayout",
469
472
  setup(e) {
470
473
  return (e, t) => {
471
474
  let n = a, r = V("router-view");
472
- return F(), g(ge, null, {
475
+ return F(), g(he, null, {
473
476
  header: J(() => [S(n, {
474
477
  value: "item1",
475
478
  height: "60px"
@@ -482,13 +485,13 @@ var Ae = /* @__PURE__ */ C({
482
485
  fn: J(() => [B(e.$slots, "operations")]),
483
486
  key: "1"
484
487
  } : void 0]), 1024)]),
485
- left: J(() => [B(e.$slots, "left", {}, () => [S(K(je))])]),
488
+ left: J(() => [B(e.$slots, "left", {}, () => [S(K(Ae))])]),
486
489
  default: J(() => [B(e.$slots, "default", {}, () => [y("div", { class: A([K(X)("main-content-inner")]) }, [S(r)], 2)])]),
487
490
  _: 3
488
491
  });
489
492
  };
490
493
  }
491
- }), Ue = He, We = /* @__PURE__ */ C({
494
+ }), He = Ve, Ue = /* @__PURE__ */ C({
492
495
  __name: "SplitPanel",
493
496
  props: {
494
497
  component: { default: "div" },
@@ -510,7 +513,7 @@ var Ae = /* @__PURE__ */ C({
510
513
  ],
511
514
  setup(e, { emit: t }) {
512
515
  let n = e, r = t, { direction: i, size: a, defaultSize: o, min: s, max: c } = W(n), l = R(0), u = R(), d = R(), f = X("split-panel"), p = X("split-trigger"), m = R(o.value);
513
- ie(a, (e) => {
516
+ re(a, (e) => {
514
517
  e !== void 0 && (m.value = e);
515
518
  }, { immediate: !0 });
516
519
  function b(e) {
@@ -640,7 +643,7 @@ var Ae = /* @__PURE__ */ C({
640
643
  _: 3
641
644
  }, 8, ["class"]));
642
645
  }
643
- }), Ge = We, Ke = /* @__PURE__ */ C({
646
+ }), We = Ue, Ge = /* @__PURE__ */ C({
644
647
  __name: "UtoolsBaseLayout",
645
648
  setup(t) {
646
649
  return (t, n) => {
@@ -660,12 +663,12 @@ var Ae = /* @__PURE__ */ C({
660
663
  });
661
664
  };
662
665
  }
663
- }), qe = Ke;
664
- const Je = { class: "utools" }, Ye = { class: "title" }, Xe = { class: "flex justify-end h-full pr-3" }, Ze = { class: "content" }, Qe = { class: "content-inner" }, $e = {
666
+ }), Ke = Ge;
667
+ const qe = { class: "utools" }, Je = { class: "title" }, Ye = { class: "flex justify-end h-full pr-3" }, Xe = { class: "content" }, Ze = { class: "content-inner" }, Qe = {
665
668
  class: "flex items-center justify-center",
666
669
  style: { "font-size": "10px" }
667
670
  };
668
- var et = /* @__PURE__ */ C({
671
+ var $e = /* @__PURE__ */ C({
669
672
  __name: "UtoolsLayout",
670
673
  props: {
671
674
  avatar: { default: "https://www.u-tools.cn/assets/favicon.png" },
@@ -674,37 +677,33 @@ var et = /* @__PURE__ */ C({
674
677
  title: { default: "utools demo" }
675
678
  },
676
679
  setup(e) {
677
- let n = re("leftMenuRef"), r = R(!0);
680
+ let n = R(), r = R(!0);
678
681
  return (e, i) => {
679
682
  let a = t, o = V("router-view");
680
- return F(), v("div", Je, [S(qe, null, {
683
+ return F(), v("div", qe, [S(Ke, null, {
681
684
  left: J(() => [y("div", { class: A(K(X)("utools", "left-menu")) }, [y("div", {
682
685
  class: A(["flex items-center justify-center", K(X)("utools", "left-menu", "collapse")]),
683
686
  onClick: i[0] ||= (e) => n.value?.changeCollapsed()
684
- }, [y("div", { class: A(["text-lg font-bold", r.value ? "i-u-expandLeft" : "i-u-expandRight"]) }, null, 2)], 2), S(K(je), O({
687
+ }, [y("div", { class: A(["text-lg font-bold", r.value ? "i-u-expandLeft" : "i-u-expandRight"]) }, null, 2)], 2), S(K(Ae), {
685
688
  ref_key: "leftMenuRef",
686
- ref: n
687
- }, {
688
- loadRouter: e.loadRouter,
689
- refreshEventListener: e.refreshEventListener
690
- }, {
689
+ ref: n,
691
690
  collapsed: r.value,
692
691
  "onUpdate:collapsed": i[1] ||= (e) => r.value = e,
693
692
  hideOperations: ""
694
- }), {
695
- logo: J(() => [S(a, { image: e.avatar }, null, 8, ["image"]), y("div", Ye, H(e.title), 1)]),
693
+ }, {
694
+ logo: J(() => [S(a, { image: e.avatar }, null, 8, ["image"]), y("div", Je, H(e.title), 1)]),
696
695
  _: 1
697
- }, 16, ["collapsed"])], 2)]),
696
+ }, 8, ["collapsed"])], 2)]),
698
697
  default: J(() => [y("div", { class: A(K(X)("utools", "content-wrapper")) }, [
699
- y("div", Xe, [B(e.$slots, "header-tips")]),
700
- y("div", Ze, [y("div", Qe, [S(o)])]),
701
- B(e.$slots, "footer", {}, () => [y("div", $e, " © " + H((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
698
+ y("div", Ye, [B(e.$slots, "header-tips")]),
699
+ y("div", Xe, [y("div", Ze, [S(o)])]),
700
+ B(e.$slots, "footer", {}, () => [y("div", Qe, " © " + H((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
702
701
  ], 2)]),
703
702
  _: 3
704
703
  })]);
705
704
  };
706
705
  }
707
- }), tt = et, nt = /* @__PURE__ */ C({
706
+ }), et = $e, tt = /* @__PURE__ */ C({
708
707
  __name: "PageHeader",
709
708
  props: {
710
709
  title: { default: "" },
@@ -716,7 +715,7 @@ var et = /* @__PURE__ */ C({
716
715
  let t = e, r = Z("page-header"), a = h(() => {
717
716
  let e = [r()];
718
717
  return t.size !== "default" && e.push(r(t.size)), e;
719
- }), o = h(() => de("onBack"));
718
+ }), o = h(() => ue("onBack"));
720
719
  return (e, t) => {
721
720
  let c = s, l = n, u = i;
722
721
  return F(), v("div", { class: A(a.value) }, [y("div", { class: A(["flex items-center", K(r)("header")]) }, [
@@ -741,9 +740,9 @@ var et = /* @__PURE__ */ C({
741
740
  }, [B(e.$slots, "extra")], 2)) : _("", !0)], 2);
742
741
  };
743
742
  }
744
- }), rt = nt;
745
- const it = { class: "flex justify-between items-center" };
746
- var at = /* @__PURE__ */ C({
743
+ }), nt = tt;
744
+ const rt = { class: "flex justify-between items-center" };
745
+ var it = /* @__PURE__ */ C({
747
746
  __name: "SettingItem",
748
747
  props: {
749
748
  title: {},
@@ -758,22 +757,22 @@ var at = /* @__PURE__ */ C({
758
757
  let e = [];
759
758
  return e.push(X("setting-item")), n.value && e.push("cursor-pointer"), e;
760
759
  });
761
- return (e, t) => (F(), v("div", O({ class: r.value }, U({ ...n.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [y("div", it, [y("div", null, [y("div", { class: A(["u-fx u-gap5 u-fac", K(X)("setting-item-title")]) }, [B(e.$slots, "title", {}, () => [x(H(e.title), 1)])], 2), B(e.$slots, "desc", {}, () => [y("div", { class: A(K(X)("setting-item-desc")) }, H(e.desc), 3)])]), y("div", null, [B(e.$slots, "default")])]), y("div", null, [B(e.$slots, "extra")])], 16));
760
+ return (e, t) => (F(), v("div", O({ class: r.value }, U({ ...n.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [y("div", rt, [y("div", null, [y("div", { class: A(["u-fx u-gap5 u-fac", K(X)("setting-item-title")]) }, [B(e.$slots, "title", {}, () => [x(H(e.title), 1)])], 2), B(e.$slots, "desc", {}, () => [y("div", { class: A(K(X)("setting-item-desc")) }, H(e.desc), 3)])]), y("div", null, [B(e.$slots, "default")])]), y("div", null, [B(e.$slots, "extra")])], 16));
762
761
  }
763
- }), ot = at, st = /* @__PURE__ */ C({
762
+ }), at = it, ot = /* @__PURE__ */ C({
764
763
  __name: "SettingDivision",
765
764
  setup(e) {
766
765
  return (e, t) => (F(), v("div", { class: A(K(X)("setting-division")) }, null, 2));
767
766
  }
768
- }), ct = st;
769
- const lt = { key: 0 };
770
- var ut = /* @__PURE__ */ C({
767
+ }), st = ot;
768
+ const ct = { key: 0 };
769
+ var lt = /* @__PURE__ */ C({
771
770
  __name: "SettingGroup",
772
771
  props: { title: {} },
773
772
  setup(e) {
774
- return (e, t) => (F(), v("div", { class: A([K(X)("setting-group")]) }, [y("div", { class: A(K(X)("setting-group-header")) }, [y("div", { class: A(K(X)("setting-group-title")) }, H(e.title), 3), e.$slots.desc ? (F(), v("div", lt, [B(e.$slots, "desc")])) : _("", !0)], 2), y("div", null, [B(e.$slots, "default")])], 2));
773
+ return (e, t) => (F(), v("div", { class: A([K(X)("setting-group")]) }, [y("div", { class: A(K(X)("setting-group-header")) }, [y("div", { class: A(K(X)("setting-group-title")) }, H(e.title), 3), e.$slots.desc ? (F(), v("div", ct, [B(e.$slots, "desc")])) : _("", !0)], 2), y("div", null, [B(e.$slots, "default")])], 2));
775
774
  }
776
- }), dt = ut, ft = /* @__PURE__ */ C({
775
+ }), ut = lt, dt = /* @__PURE__ */ C({
777
776
  name: "SwitchEnable",
778
777
  inheritAttrs: !1,
779
778
  __name: "SwitchEnable",
@@ -820,12 +819,17 @@ var ut = /* @__PURE__ */ C({
820
819
  }), null, 16, ["class", "modelValue"]);
821
820
  };
822
821
  }
823
- }), pt = ft;
824
- const mt = ["aria-checked", "disabled"];
825
- var ht = /* @__PURE__ */ C({
822
+ }), ft = dt;
823
+ const pt = ["aria-checked", "disabled"];
824
+ var mt = /* @__PURE__ */ C({
826
825
  name: "SwitchPlus",
827
826
  __name: "SwitchPlus",
828
827
  props: /* @__PURE__ */ D({
828
+ modelValue: { type: [
829
+ String,
830
+ Number,
831
+ Boolean
832
+ ] },
829
833
  defaultChecked: {
830
834
  type: Boolean,
831
835
  default: !1
@@ -839,7 +843,7 @@ var ht = /* @__PURE__ */ C({
839
843
  default: !1
840
844
  },
841
845
  type: { default: "circle" },
842
- size: { default: "large" },
846
+ size: { default: "medium" },
843
847
  checkedValue: {
844
848
  type: [
845
849
  String,
@@ -873,6 +877,7 @@ var ht = /* @__PURE__ */ C({
873
877
  valueModifiers: {}
874
878
  }),
875
879
  emits: /* @__PURE__ */ D([
880
+ "update:modelValue",
876
881
  "change",
877
882
  "focus",
878
883
  "blur"
@@ -886,7 +891,7 @@ var ht = /* @__PURE__ */ C({
886
891
  }, b = async (e) => {
887
892
  if (m.value || l.value) return;
888
893
  let t = !d.value, n = t ? r.checkedValue : r.uncheckedValue, i = r.beforeChange;
889
- if (fe(i)) {
894
+ if (de(i)) {
890
895
  f.value = !0;
891
896
  try {
892
897
  let r = await i(n);
@@ -900,8 +905,8 @@ var ht = /* @__PURE__ */ C({
900
905
  }, C = (e) => {
901
906
  i("blur", e);
902
907
  };
903
- ie(n, (e) => {
904
- (me(e) || pe(e)) && (n.value = r.uncheckedValue);
908
+ re(n, (e) => {
909
+ (pe(e) || fe(e)) && (n.value = r.uncheckedValue);
905
910
  });
906
911
  let w = h(() => [
907
912
  c,
@@ -939,11 +944,16 @@ var ht = /* @__PURE__ */ C({
939
944
  }, [y("span", { class: A(`${K(c)}-handle-icon`) }, [m.value ? (F(), v("span", {
940
945
  key: 0,
941
946
  class: A(["i-u-loading", `${K(c)}-loading-icon`])
942
- }, null, 2)) : (F(), v(p, { key: 1 }, [d.value ? B(e.$slots, "checked-icon", { key: 0 }) : B(e.$slots, "unchecked-icon", { key: 1 })], 64))], 2)], 6), e.type !== "line" && K(o) !== "small" && (K(a).checked || e.checkedText || K(a).unchecked || e.uncheckedText) ? (F(), v(p, { key: 0 }, [y("span", { class: A(`${K(c)}-text-holder`) }, [d.value ? B(e.$slots, "checked", { key: 0 }, () => [x(H(e.checkedText), 1)]) : B(e.$slots, "unchecked", { key: 1 }, () => [x(H(e.uncheckedText), 1)])], 2), y("span", { class: A(`${K(c)}-text`) }, [d.value ? B(e.$slots, "checked", { key: 0 }, () => [x(H(e.checkedText), 1)]) : B(e.$slots, "unchecked", { key: 1 }, () => [x(H(e.uncheckedText), 1)])], 2)], 64)) : _("", !0)], 46, mt));
947
+ }, null, 2)) : (F(), v(p, { key: 1 }, [d.value ? B(e.$slots, "checked-icon", { key: 0 }) : B(e.$slots, "unchecked-icon", { key: 1 })], 64))], 2)], 6), e.type !== "line" && K(o) !== "small" && (K(a).checked || e.checkedText || K(a).unchecked || e.uncheckedText) ? (F(), v(p, { key: 0 }, [y("span", { class: A(`${K(c)}-text-holder`) }, [d.value ? B(e.$slots, "checked", { key: 0 }, () => [x(H(e.checkedText), 1)]) : B(e.$slots, "unchecked", { key: 1 }, () => [x(H(e.uncheckedText), 1)])], 2), y("span", { class: A(`${K(c)}-text`) }, [d.value ? B(e.$slots, "checked", { key: 0 }, () => [x(H(e.checkedText), 1)]) : B(e.$slots, "unchecked", { key: 1 }, () => [x(H(e.uncheckedText), 1)])], 2)], 64)) : _("", !0)], 46, pt));
943
948
  }
944
- }), gt = ht, _t = /* @__PURE__ */ C({
949
+ }), ht = mt, gt = /* @__PURE__ */ C({
945
950
  __name: "SwitchPlusEnable",
946
951
  props: /* @__PURE__ */ D({
952
+ modelValue: { type: [
953
+ String,
954
+ Number,
955
+ Boolean
956
+ ] },
947
957
  defaultChecked: {
948
958
  type: Boolean,
949
959
  default: !1
@@ -992,19 +1002,19 @@ var ht = /* @__PURE__ */ C({
992
1002
  }),
993
1003
  emits: ["update:value"],
994
1004
  setup(e) {
995
- let t = q(e, "value");
996
- return (e, n) => (F(), g(gt, O({
1005
+ let t = q(e, "value"), n = e;
1006
+ return (e, r) => (F(), g(ht, O({
997
1007
  value: t.value,
998
- "onUpdate:value": n[0] ||= (e) => t.value = e
999
- }, e.$props), {
1000
- "checked-icon": J(() => n[1] ||= [y("span", {
1008
+ "onUpdate:value": r[0] ||= (e) => t.value = e
1009
+ }, n), {
1010
+ "checked-icon": J(() => r[1] ||= [y("span", {
1001
1011
  style: {
1002
1012
  width: "14px",
1003
1013
  height: "14px"
1004
1014
  },
1005
1015
  class: "i-u-checkSmall"
1006
1016
  }, null, -1)]),
1007
- "unchecked-icon": J(() => n[2] ||= [y("span", {
1017
+ "unchecked-icon": J(() => r[2] ||= [y("span", {
1008
1018
  style: {
1009
1019
  width: "14px",
1010
1020
  height: "14px"
@@ -1014,5 +1024,5 @@ var ht = /* @__PURE__ */ C({
1014
1024
  _: 1
1015
1025
  }, 16, ["value"]));
1016
1026
  }
1017
- }), vt = _t;
1018
- export { Ne as ContextMenu, ze as ContextMenuDivider, Le as ContextMenuGroup, Fe as ContextMenuItem, Ve as ContextMenuSubmenu, je as LeftMenu, ve as LeftMenuEventDispatch, _e as LeftMenuEvents, rt as PageHeader, ct as SettingDivision, dt as SettingGroup, ot as SettingItem, Ge as SplitPanel, pt as SwitchEnable, gt as SwitchPlus, vt as SwitchPlusEnable, qe as UtoolsBaseLayout, tt as UtoolsLayout, ge as WebBaseLayout, Ue as WebLayout, Z as getBuildCurrentClassPrefix, X as getClassPrefix, de as isEventExist, fe as isFunction, pe as isNull, me as isUndefined };
1027
+ }), _t = gt;
1028
+ export { Me as ContextMenu, Re as ContextMenuDivider, Ie as ContextMenuGroup, Pe as ContextMenuItem, Be as ContextMenuSubmenu, Ae as LeftMenu, _e as LeftMenuEventDispatch, ge as LeftMenuEvents, nt as PageHeader, st as SettingDivision, ut as SettingGroup, at as SettingItem, We as SplitPanel, ft as SwitchEnable, ht as SwitchPlus, _t as SwitchPlusEnable, Ke as UtoolsBaseLayout, et as UtoolsLayout, he as WebBaseLayout, He as WebLayout, Z as getBuildCurrentClassPrefix, X as getClassPrefix, ue as isEventExist, de as isFunction, fe as isNull, pe as isUndefined };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaou66/u-web-ui",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "web-ui",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",