@xiaou66/u-web-ui 0.0.13 → 0.0.14

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,9 +1,18 @@
1
1
  import { SwitchProps } from 'tdesign-vue-next';
2
2
  /**
3
3
  * SwitchEnable 组件的 Props 类型
4
- * 继承 TDesign Switch 的所有 props,但排除 value(因为我们使用 v-model
4
+ * 继承 TDesign Switch 的所有 props,包括 value 用于 v-model
5
5
  */
6
- export type SwitchEnableProps = Omit<SwitchProps, 'value'>;
6
+ export interface SwitchEnableProps extends SwitchProps {
7
+ /**
8
+ * 开关的值,支持 v-model:value
9
+ */
10
+ value?: boolean;
11
+ /**
12
+ * 自定义颜色
13
+ */
14
+ color?: 'green';
15
+ }
7
16
  /**
8
17
  * SwitchEnable 组件的 Emits 类型
9
18
  */
@@ -17,13 +26,4 @@ export interface SwitchEnableEmits {
17
26
  e: Event;
18
27
  }];
19
28
  }
20
- /**
21
- * SwitchEnable 组件的 v-model 类型
22
- */
23
- export interface SwitchEnableModel {
24
- /**
25
- * 开关的值,支持 v-model:value
26
- */
27
- value: boolean;
28
- }
29
29
  //# sourceMappingURL=SwitchEnable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchEnable.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchEnable/SwitchEnable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;QAAE,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAA;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAA;CACf"}
1
+ {"version":3,"file":"SwitchEnable.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchEnable/SwitchEnable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;QAAE,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CACjD"}
@@ -14,6 +14,9 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
14
14
  e: Event;
15
15
  }) => any) | undefined;
16
16
  "onUpdate:value"?: ((value: boolean) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
+ }>, {
18
+ size: "small" | "medium" | "large";
19
+ color: "green";
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
21
  export default _default;
19
22
  //# sourceMappingURL=SwitchEnable.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchEnable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchEnable/SwitchEnable.vue"],"names":[],"mappings":";AA6CA,OAAO,KAAK,EAAE,iBAAiB,EAAqB,MAAM,gBAAgB,CAAA;AAS1E,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA0BrC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,WAAW,CAAC;;;;;;;;;;;;AAgEhB,wBAOG"}
1
+ {"version":3,"file":"SwitchEnable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchEnable/SwitchEnable.vue"],"names":[],"mappings":";AAyDA,OAAO,KAAK,EAAE,iBAAiB,EAAqB,MAAM,gBAAgB,CAAA;AAS1E,KAAK,WAAW,GAAG,iBAAiB,CAAC;AA+BrC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;AAqEhB,wBAQG"}
@@ -0,0 +1,119 @@
1
+ /**
2
+ * SwitchPlus 组件的 Props 类型
3
+ * 注意:modelValue 通过 defineModel 定义,不在 Props 中
4
+ */
5
+ export interface SwitchPlusProps {
6
+ /**
7
+ * @zh 默认选中状态(非受控状态)
8
+ * @en Default selected state (uncontrolled state)
9
+ */
10
+ defaultChecked?: boolean;
11
+ /**
12
+ * @zh 是否禁用
13
+ * @en Whether to disable
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * @zh 是否为加载中状态
18
+ * @en Whether it is loading state
19
+ */
20
+ loading?: boolean;
21
+ /**
22
+ * @zh 开关的类型
23
+ * @en Type of switch
24
+ * @values 'circle', 'round', 'line'
25
+ */
26
+ type?: 'circle' | 'round' | 'line';
27
+ /**
28
+ * @zh 开关的大小
29
+ * @en Size of switch
30
+ * @defaultValue 'medium'
31
+ */
32
+ size?: 'small' | 'medium';
33
+ /**
34
+ * @zh 选中时的值
35
+ * @en Value when checked
36
+ */
37
+ checkedValue?: string | number | boolean;
38
+ /**
39
+ * @zh 未选中时的值
40
+ * @en Value when unchecked
41
+ */
42
+ uncheckedValue?: string | number | boolean;
43
+ /**
44
+ * @zh 选中时的开关颜色
45
+ * @en The color of the switch when checked
46
+ */
47
+ checkedColor?: string;
48
+ /**
49
+ * @zh 未选中时的开关颜色
50
+ * @en The color of the switch when unchecked
51
+ */
52
+ uncheckedColor?: string;
53
+ /**
54
+ * @zh switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换。
55
+ * @en before-change hook before the switch state changes. If false is returned or a Promise is returned and then is rejected, will stop switching
56
+ */
57
+ beforeChange?: (newValue: string | number | boolean) => Promise<boolean | void> | boolean | void;
58
+ /**
59
+ * @zh 打开状态时的文案(`type='line'`和`size='small'`时不生效)
60
+ * @en Copywriting when opened (not effective when `type='line'` and `size='small'`)
61
+ */
62
+ checkedText?: string;
63
+ /**
64
+ * @zh 关闭状态时的文案(`type='line'`和`size='small'`时不生效)
65
+ * @en Copywriting when closed (not effective when `type='line'` and `size='small'`)
66
+ */
67
+ uncheckedText?: string;
68
+ }
69
+ /**
70
+ * SwitchPlus 组件的 Emits 类型
71
+ * 注意:update:modelValue 由 defineModel 自动处理,不需要手动定义
72
+ */
73
+ export interface SwitchPlusEmits {
74
+ /**
75
+ * @zh 值改变时触发
76
+ * @en Trigger when the value changes
77
+ * @param { boolean | string | number } value
78
+ * @param {Event} ev
79
+ */
80
+ 'change': [value: boolean | string | number, ev: Event];
81
+ /**
82
+ * @zh 组件获得焦点时触发
83
+ * @en Triggered when the component gets focus
84
+ * @property {FocusEvent} ev
85
+ */
86
+ 'focus': [ev: FocusEvent];
87
+ /**
88
+ * @zh 组件失去焦点时触发
89
+ * @en Fired when the component loses focus
90
+ * @property {FocusEvent} ev
91
+ */
92
+ 'blur': [ev: FocusEvent];
93
+ }
94
+ /**
95
+ * SwitchPlus 组件的插槽类型
96
+ */
97
+ export interface SwitchPlusSlots {
98
+ /**
99
+ * @zh 打开状态时的文案(`type='line'`和`size='small'`时不生效)
100
+ * @en Copywriting when opened (not effective when `type='line'` and `size='small'`)
101
+ */
102
+ checked?(): any;
103
+ /**
104
+ * @zh 关闭状态时的文案(`type='line'`和`size='small'`时不生效)
105
+ * @en Copywriting when closed (not effective when `type='line'` and `size='small'`)
106
+ */
107
+ unchecked?(): any;
108
+ /**
109
+ * @zh 打开状态时,按钮上的图标
110
+ * @en The icon on the button when opened
111
+ */
112
+ 'checked-icon'?(): any;
113
+ /**
114
+ * @zh 关闭状态时,按钮上的图标
115
+ * @en The icon on the button when closed
116
+ */
117
+ 'unchecked-icon'?(): any;
118
+ }
119
+ //# sourceMappingURL=SwitchPlus.d.ts.map
@@ -0,0 +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,CAAC;IAC1B;;;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"}
@@ -0,0 +1,40 @@
1
+ import { SwitchPlusProps, SwitchPlusSlots } from './SwitchPlus';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = SwitchPlusProps;
4
+ type __VLS_PublicProps = {
5
+ 'value'?: string | number | boolean;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Readonly<SwitchPlusSlots> & SwitchPlusSlots;
10
+ refs: {};
11
+ rootEl: HTMLButtonElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ blur: (ev: FocusEvent) => any;
16
+ change: (value: string | number | boolean, ev: Event) => any;
17
+ focus: (ev: FocusEvent) => any;
18
+ "update:value": (value: string | number | boolean) => any;
19
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ onBlur?: ((ev: FocusEvent) => any) | undefined;
21
+ onChange?: ((value: string | number | boolean, ev: Event) => any) | undefined;
22
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
23
+ "onUpdate:value"?: ((value: string | number | boolean) => any) | undefined;
24
+ }>, {
25
+ size: "small" | "medium";
26
+ type: "circle" | "round" | "line";
27
+ disabled: boolean;
28
+ loading: boolean;
29
+ defaultChecked: boolean;
30
+ checkedValue: string | number | boolean;
31
+ uncheckedValue: string | number | boolean;
32
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
40
+ //# sourceMappingURL=SwitchPlus.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchPlus.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/SwitchPlus.vue"],"names":[],"mappings":";AA6LA,OAAO,KAAK,EAAE,eAAe,EAAmB,eAAe,EAAE,MAAM,cAAc,CAAC;AAatF,KAAK,WAAW,GAAG,eAAe,CAAC;AA6InC,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"}
@@ -0,0 +1,22 @@
1
+ import { SwitchPlusProps } from './SwitchPlus';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = SwitchPlusProps;
4
+ type __VLS_PublicProps = {
5
+ 'value'?: string | number | boolean;
6
+ } & __VLS_Props;
7
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ "update:value": (value: string | number | boolean) => any;
9
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:value"?: ((value: string | number | boolean) => any) | undefined;
11
+ }>, {
12
+ size: "small" | "medium";
13
+ type: "circle" | "round" | "line";
14
+ disabled: boolean;
15
+ loading: boolean;
16
+ defaultChecked: boolean;
17
+ checkedValue: string | number | boolean;
18
+ uncheckedValue: string | number | boolean;
19
+ checkedColor: string;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
21
+ export default _default;
22
+ //# sourceMappingURL=SwitchPlusEnable.vue.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ export { default as SwitchPlus } from './SwitchPlus.vue';
2
+ export { default as SwitchPlusEnable } from './SwitchPlusEnable.vue';
3
+ export * from './SwitchPlus';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/SwitchPlus/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAA;AACjB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,cAAc,cAAc,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './SwitchEnable';
2
+ export * from './SwitchPlus';
2
3
  //# 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"}
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"}
package/dist/index.es.js CHANGED
@@ -1,18 +1,18 @@
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 ne, useTemplateRef as re, watch as ie, withCtx as q, withModifiers as J } from "vue";
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
3
  import { useRoute as ae, useRouter as oe } from "vue-router";
4
4
  const se = "u-web";
5
- function Y(...e) {
5
+ function X(...e) {
6
6
  return se + "-" + e.join("-");
7
7
  }
8
- function X(...e) {
8
+ function Z(...e) {
9
9
  let t = e.join("-");
10
- return (...e) => Y(t, ...e);
10
+ return (...e) => X(t, ...e);
11
11
  }
12
12
  function ce(e) {
13
13
  return e.substring(0, 1).toUpperCase() + e.substring(1);
14
14
  }
15
- const Z = "on", le = [
15
+ const Q = "on", le = [
16
16
  "Capture",
17
17
  "Passive",
18
18
  "Once"
@@ -23,9 +23,9 @@ function de(...e) {
23
23
  if (!t) return !1;
24
24
  let { attrs: n = {}, vnode: r } = t;
25
25
  if (!r) return !1;
26
- let i = r.props || {}, a = [...Object.keys(n).filter((e) => e.startsWith(Z)), ...Object.keys(i).filter((e) => e.startsWith(Z))];
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(Z) ? t : `${Z}${ce(t)}`;
28
+ let e = t.startsWith(Q) ? t : `${Q}${ce(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);
@@ -34,22 +34,31 @@ function de(...e) {
34
34
  }
35
35
  return !1;
36
36
  }
37
- var fe = /* @__PURE__ */ C({
37
+ function fe(e) {
38
+ return typeof e == "function";
39
+ }
40
+ function pe(e) {
41
+ return e === null;
42
+ }
43
+ function me(e) {
44
+ return e === void 0;
45
+ }
46
+ var he = /* @__PURE__ */ C({
38
47
  __name: "WebBaseLayout",
39
48
  setup(t) {
40
49
  return (t, n) => {
41
50
  let i = o, a = e, s = r, l = c;
42
51
  return F(), g(l, { class: "h-screen" }, {
43
- default: q(() => [t.$slots.header ? (F(), g(i, { key: 0 }, {
44
- default: q(() => [B(t.$slots, "header")]),
52
+ default: J(() => [t.$slots.header ? (F(), g(i, { key: 0 }, {
53
+ default: J(() => [B(t.$slots, "header")]),
45
54
  _: 3
46
55
  })) : _("", !0), S(l, { class: "min-h-0" }, {
47
- default: q(() => [S(a, { width: "auto" }, {
48
- default: q(() => [B(t.$slots, "left")]),
56
+ default: J(() => [S(a, { width: "auto" }, {
57
+ default: J(() => [B(t.$slots, "left")]),
49
58
  _: 3
50
- }), S(l, { class: A(["min-h-0", [K(Y)("main-content")]]) }, {
51
- default: q(() => [S(s, { class: "xl:p-4 ut:p-2 p-1 h-full overflow-hidden" }, {
52
- default: q(() => [B(t.$slots, "default")]),
59
+ }), S(l, { class: A(["min-h-0", [K(X)("main-content")]]) }, {
60
+ default: J(() => [S(s, { class: "xl:p-4 ut:p-2 p-1 h-full overflow-hidden" }, {
61
+ default: J(() => [B(t.$slots, "default")]),
53
62
  _: 3
54
63
  })]),
55
64
  _: 3
@@ -60,71 +69,71 @@ var fe = /* @__PURE__ */ C({
60
69
  });
61
70
  };
62
71
  }
63
- }), pe = fe;
64
- let Q = /* @__PURE__ */ function(e) {
72
+ }), ge = he;
73
+ let _e = /* @__PURE__ */ function(e) {
65
74
  return e.Refresh = "u:leftMenu:refresh", e;
66
75
  }({});
67
- const me = { refresh: () => {
68
- window.dispatchEvent(new CustomEvent(Q.Refresh));
76
+ const ve = { refresh: () => {
77
+ window.dispatchEvent(new CustomEvent(_e.Refresh));
69
78
  } };
70
- function he(e) {
79
+ function ye(e) {
71
80
  return T() ? (N(e), !0) : !1;
72
81
  }
73
82
  const $ = typeof window < "u" && typeof document < "u";
74
83
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
75
- const ge = Object.prototype.toString, _e = (e) => ge.call(e) === "[object Object]";
76
- function ve(e) {
84
+ const be = Object.prototype.toString, xe = (e) => be.call(e) === "[object Object]";
85
+ function Se(e) {
77
86
  return Array.isArray(e) ? e : [e];
78
87
  }
79
- function ye(e) {
88
+ function Ce(e) {
80
89
  let t = /* @__PURE__ */ Object.create(null);
81
90
  return (n) => {
82
91
  let r = t[n];
83
92
  return r || (t[n] = e(n));
84
93
  };
85
94
  }
86
- const be = /\B([A-Z])/g;
87
- ye((e) => e.replace(be, "-$1").toLowerCase());
88
- const xe = /-(\w)/g;
89
- ye((e) => e.replace(xe, (e, t) => t ? t.toUpperCase() : ""));
90
- function Se(e, t, n) {
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) {
91
100
  return ie(e, t, {
92
101
  ...n,
93
102
  immediate: !0
94
103
  });
95
104
  }
96
- const Ce = $ ? window : void 0;
105
+ const De = $ ? window : void 0;
97
106
  $ && window.document, $ && window.navigator, $ && window.location;
98
- function we(e) {
107
+ function Oe(e) {
99
108
  var t;
100
109
  let n = G(e);
101
110
  return (t = n?.$el) ?? n;
102
111
  }
103
- function Te(...e) {
112
+ function ke(...e) {
104
113
  let t = [], n = () => {
105
114
  t.forEach((e) => e()), t.length = 0;
106
115
  }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = h(() => {
107
- let t = ve(G(e[0])).filter((e) => e != null);
116
+ let t = Se(G(e[0])).filter((e) => e != null);
108
117
  return t.every((e) => typeof e != "string") ? t : void 0;
109
- }), a = Se(() => {
118
+ }), a = Ee(() => {
110
119
  var t, n;
111
120
  return [
112
- (n = (t = i.value)?.map((e) => we(e))) ?? [Ce].filter((e) => e != null),
113
- ve(G(i.value ? e[1] : e[0])),
114
- ve(K(i.value ? e[2] : e[1])),
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])),
115
124
  G(i.value ? e[3] : e[2])
116
125
  ];
117
126
  }, ([e, i, a, o]) => {
118
127
  if (n(), !e?.length || !i?.length || !a?.length) return;
119
- let s = _e(o) ? { ...o } : o;
128
+ let s = xe(o) ? { ...o } : o;
120
129
  t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
121
130
  }, { flush: "post" }), o = () => {
122
131
  a(), n();
123
132
  };
124
- return he(n), o;
133
+ return ye(n), o;
125
134
  }
126
135
  Symbol("vueuse-ssr-width");
127
- var Ee = /* @__PURE__ */ C({
136
+ var Ae = /* @__PURE__ */ C({
128
137
  __name: "LeftMenu",
129
138
  props: /* @__PURE__ */ D({
130
139
  hideOperations: {
@@ -145,7 +154,7 @@ var Ee = /* @__PURE__ */ C({
145
154
  }),
146
155
  emits: ["update:collapsed"],
147
156
  setup(e, { expose: t }) {
148
- let r = e, i = ne(e, "collapsed");
157
+ let r = e, i = q(e, "collapsed");
149
158
  function a() {
150
159
  i.value = !i.value;
151
160
  }
@@ -165,7 +174,7 @@ var Ee = /* @__PURE__ */ C({
165
174
  function y(e) {
166
175
  return e.children ? e.children.filter((e) => e.meta?.menu) : [];
167
176
  }
168
- return r.refreshEventListener && Te(document, Q.Refresh, h), t({
177
+ return r.refreshEventListener && ke(document, _e.Refresh, h), t({
169
178
  changeCollapsed: a,
170
179
  refreshRouter: h
171
180
  }), (e, t) => {
@@ -176,19 +185,19 @@ var Ee = /* @__PURE__ */ C({
176
185
  "onUpdate:collapsed": t[0] ||= (e) => i.value = e,
177
186
  width: ["180px", "52px"]
178
187
  }, b({
179
- default: q(() => [(F(!0), v(p, null, z(f.value, (e) => (F(), v(p, { key: String(e.name) }, [y(e).length > 0 ? (F(), g(h, {
188
+ default: J(() => [(F(!0), v(p, null, z(f.value, (e) => (F(), v(p, { key: String(e.name) }, [y(e).length > 0 ? (F(), g(h, {
180
189
  key: 0,
181
190
  value: String(e.name)
182
191
  }, {
183
- icon: q(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
184
- title: q(() => [x(H(e.meta.title), 1)]),
185
- default: q(() => [(F(!0), v(p, null, z(y(e), (e) => (F(), g(m, {
192
+ icon: J(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
193
+ title: J(() => [x(H(e.meta.title), 1)]),
194
+ default: J(() => [(F(!0), v(p, null, z(y(e), (e) => (F(), g(m, {
186
195
  key: String(e.name),
187
196
  value: String(e.name),
188
197
  onClick: (t) => _(e)
189
198
  }, {
190
- icon: q(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
191
- default: q(() => [x(" " + H(e.meta.title), 1)]),
199
+ icon: J(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
200
+ default: J(() => [x(" " + H(e.meta.title), 1)]),
192
201
  _: 2
193
202
  }, 1032, ["value", "onClick"]))), 128))]),
194
203
  _: 2
@@ -197,30 +206,30 @@ var Ee = /* @__PURE__ */ C({
197
206
  value: String(e.name),
198
207
  onClick: (t) => _(e)
199
208
  }, {
200
- icon: q(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
201
- default: q(() => [x(" " + H(e.meta.title), 1)]),
209
+ icon: J(() => [S(r, { class: A(e.meta.icon) }, null, 8, ["class"])]),
210
+ default: J(() => [x(" " + H(e.meta.title), 1)]),
202
211
  _: 2
203
212
  }, 1032, ["value", "onClick"]))], 64))), 128))]),
204
213
  _: 2
205
214
  }, [e.hideOperations ? void 0 : {
206
215
  name: "operations",
207
- fn: q(() => [S(o, {
216
+ fn: J(() => [S(o, {
208
217
  variant: "text",
209
218
  shape: "square",
210
219
  onClick: a
211
220
  }, {
212
- icon: q(() => [S(r, { name: "view-list" })]),
221
+ icon: J(() => [S(r, { name: "view-list" })]),
213
222
  _: 1
214
223
  })]),
215
224
  key: "0"
216
225
  }, e.$slots.logo ? {
217
226
  name: "logo",
218
- fn: q(() => [B(e.$slots, "logo")]),
227
+ fn: J(() => [B(e.$slots, "logo")]),
219
228
  key: "1"
220
229
  } : void 0]), 1032, ["value", "collapsed"]);
221
230
  };
222
231
  }
223
- }), De = Ee, Oe = /* @__PURE__ */ C({
232
+ }), je = Ae, Me = /* @__PURE__ */ C({
224
233
  __name: "ContextMenu",
225
234
  props: { hideOnSelect: {
226
235
  type: Boolean,
@@ -228,7 +237,7 @@ var Ee = /* @__PURE__ */ C({
228
237
  } },
229
238
  emits: ["select"],
230
239
  setup(e, { emit: t }) {
231
- let n = e, r = t, i = X("context-menu"), a = R(), o = R(), s = R(!1), c = L({
240
+ let n = e, r = t, i = Z("context-menu"), a = R(), o = R(), s = R(!1), c = L({
232
241
  left: "0px",
233
242
  top: "0px"
234
243
  }), l = (e) => {
@@ -265,7 +274,7 @@ var Ee = /* @__PURE__ */ C({
265
274
  ref_key: "triggerRef",
266
275
  ref: a,
267
276
  class: A(K(i)("trigger")),
268
- onContextmenu: J(l, ["prevent"])
277
+ onContextmenu: Y(l, ["prevent"])
269
278
  }, [B(e.$slots, "default")], 34),
270
279
  (F(), g(m, { to: "body" }, [s.value ? (F(), v("div", {
271
280
  key: 0,
@@ -273,17 +282,17 @@ var Ee = /* @__PURE__ */ C({
273
282
  ref: o,
274
283
  class: A(K(i)("menu")),
275
284
  style: j(c),
276
- onContextmenu: t[0] ||= J(() => {}, ["prevent"])
285
+ onContextmenu: t[0] ||= Y(() => {}, ["prevent"])
277
286
  }, [B(e.$slots, "content")], 38)) : _("", !0)])),
278
287
  (F(), g(m, { to: "body" }, [s.value ? (F(), v("div", {
279
288
  key: 0,
280
289
  class: A(K(i)("mask")),
281
290
  onClick: d,
282
- onContextmenu: J(d, ["prevent"])
291
+ onContextmenu: Y(d, ["prevent"])
283
292
  }, null, 34)) : _("", !0)]))
284
293
  ], 64));
285
294
  }
286
- }), ke = Oe, Ae = /* @__PURE__ */ C({
295
+ }), Ne = Me, Pe = /* @__PURE__ */ C({
287
296
  __name: "ContextMenuItem",
288
297
  props: {
289
298
  label: {},
@@ -300,7 +309,7 @@ var Ee = /* @__PURE__ */ C({
300
309
  },
301
310
  emits: ["click"],
302
311
  setup(e, { emit: t }) {
303
- let n = e, r = t, i = X("context-menu", "item"), a = E("handleSelect", null), o = (e) => {
312
+ let n = e, r = t, i = Z("context-menu", "item"), a = E("handleSelect", null), o = (e) => {
304
313
  if (!n.disabled) if (e.stopPropagation(), r("click", n.value, e), a) a(n.value, e);
305
314
  else {
306
315
  let t = new CustomEvent("context-menu-select", {
@@ -321,28 +330,28 @@ var Ee = /* @__PURE__ */ C({
321
330
  [K(i)("danger")]: e.danger
322
331
  }]),
323
332
  onClick: o,
324
- onContextmenu: J(s, ["prevent", "stop"])
333
+ onContextmenu: Y(s, ["prevent", "stop"])
325
334
  }, [e.icon ? (F(), v("span", {
326
335
  key: 0,
327
336
  class: A([K(i)("icon"), e.icon])
328
337
  }, H(e.icon), 3)) : _("", !0), y("span", { class: A(K(i)("label")) }, H(e.label), 3)], 34));
329
338
  }
330
- }), je = Ae, Me = /* @__PURE__ */ C({
339
+ }), Fe = Pe, Ie = /* @__PURE__ */ C({
331
340
  __name: "ContextMenuGroup",
332
341
  props: { title: {} },
333
342
  setup(e) {
334
- let t = X("context-menu", "group");
343
+ let t = Z("context-menu", "group");
335
344
  return (e, n) => (F(), v("div", { class: A(K(t)()) }, [e.title ? (F(), v("div", {
336
345
  key: 0,
337
346
  class: A(K(t)("title"))
338
347
  }, H(e.title), 3)) : _("", !0), B(e.$slots, "default")], 2));
339
348
  }
340
- }), Ne = Me, Pe = /* @__PURE__ */ C({
349
+ }), Le = Ie, Re = /* @__PURE__ */ C({
341
350
  __name: "ContextMenuDivider",
342
351
  setup(e) {
343
- return (e, t) => (F(), v("div", { class: A(K(Y)("context-menu-divider")) }, null, 2));
352
+ return (e, t) => (F(), v("div", { class: A(K(X)("context-menu-divider")) }, null, 2));
344
353
  }
345
- }), Fe = Pe, Ie = /* @__PURE__ */ C({
354
+ }), ze = Re, Be = /* @__PURE__ */ C({
346
355
  __name: "ContextMenuSubmenu",
347
356
  props: {
348
357
  label: {},
@@ -354,7 +363,7 @@ var Ee = /* @__PURE__ */ C({
354
363
  },
355
364
  emits: ["select"],
356
365
  setup(e, { emit: t }) {
357
- let n = e, r = t, i = X("context-menu", "item"), a = X("context-menu", "submenu"), o = X("context-menu", "menu"), s = R(), c = R(), l = R(!1), u = L({
366
+ let n = e, r = t, i = Z("context-menu", "item"), a = Z("context-menu", "submenu"), o = Z("context-menu", "menu"), s = R(), c = R(), l = R(!1), u = L({
358
367
  left: "0px",
359
368
  top: "0px"
360
369
  }), d = E("handleSelect", null), f = null, p = null, m = !1, h = !1, g = () => {
@@ -431,7 +440,7 @@ var Ee = /* @__PURE__ */ C({
431
440
  [K(a)("active")]: l.value
432
441
  }
433
442
  ]),
434
- onContextmenu: J(z, ["prevent", "stop"]),
443
+ onContextmenu: Y(z, ["prevent", "stop"]),
435
444
  onMouseenter: C,
436
445
  onMouseleave: w,
437
446
  onClick: ee
@@ -448,38 +457,38 @@ var Ee = /* @__PURE__ */ C({
448
457
  ref: c,
449
458
  class: A([K(o)(), K(a)("popup")]),
450
459
  style: j(u),
451
- onContextmenu: J(V, ["prevent", "stop"]),
460
+ onContextmenu: Y(V, ["prevent", "stop"]),
452
461
  onMouseenter: T,
453
462
  onMouseleave: D,
454
463
  onContextMenuSelect: N
455
464
  }, [B(e.$slots, "default")], 38)) : _("", !0)
456
465
  ], 34));
457
466
  }
458
- }), Le = Ie, Re = /* @__PURE__ */ C({
467
+ }), Ve = Be, He = /* @__PURE__ */ C({
459
468
  __name: "WebLayout",
460
469
  setup(e) {
461
470
  return (e, t) => {
462
471
  let n = a, r = V("router-view");
463
- return F(), g(pe, null, {
464
- header: q(() => [S(n, {
472
+ return F(), g(ge, null, {
473
+ header: J(() => [S(n, {
465
474
  value: "item1",
466
475
  height: "60px"
467
476
  }, b({ _: 2 }, [e.$slots.logo ? {
468
477
  name: "logo",
469
- fn: q(() => [B(e.$slots, "logo")]),
478
+ fn: J(() => [B(e.$slots, "logo")]),
470
479
  key: "0"
471
480
  } : void 0, e.$slots.operations ? {
472
481
  name: "operations",
473
- fn: q(() => [B(e.$slots, "operations")]),
482
+ fn: J(() => [B(e.$slots, "operations")]),
474
483
  key: "1"
475
484
  } : void 0]), 1024)]),
476
- left: q(() => [B(e.$slots, "left", {}, () => [S(K(De))])]),
477
- default: q(() => [B(e.$slots, "default", {}, () => [y("div", { class: A([K(Y)("main-content-inner")]) }, [S(r)], 2)])]),
485
+ left: J(() => [B(e.$slots, "left", {}, () => [S(K(je))])]),
486
+ default: J(() => [B(e.$slots, "default", {}, () => [y("div", { class: A([K(X)("main-content-inner")]) }, [S(r)], 2)])]),
478
487
  _: 3
479
488
  });
480
489
  };
481
490
  }
482
- }), ze = Re, Be = /* @__PURE__ */ C({
491
+ }), Ue = He, We = /* @__PURE__ */ C({
483
492
  __name: "SplitPanel",
484
493
  props: {
485
494
  component: { default: "div" },
@@ -500,7 +509,7 @@ var Ee = /* @__PURE__ */ C({
500
509
  "update:size"
501
510
  ],
502
511
  setup(e, { emit: t }) {
503
- 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 = Y("split-panel"), p = Y("split-trigger"), m = R(o.value);
512
+ 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);
504
513
  ie(a, (e) => {
505
514
  e !== void 0 && (m.value = e);
506
515
  }, { immediate: !0 });
@@ -610,7 +619,7 @@ var Ee = /* @__PURE__ */ C({
610
619
  ref: u,
611
620
  class: A(C.value)
612
621
  }, {
613
- default: q(() => [
622
+ default: J(() => [
614
623
  y("div", {
615
624
  class: A([`${K(f)}-pane`, `${K(f)}-pane-first`]),
616
625
  style: j(T.value)
@@ -631,18 +640,18 @@ var Ee = /* @__PURE__ */ C({
631
640
  _: 3
632
641
  }, 8, ["class"]));
633
642
  }
634
- }), Ve = Be, He = /* @__PURE__ */ C({
643
+ }), Ge = We, Ke = /* @__PURE__ */ C({
635
644
  __name: "UtoolsBaseLayout",
636
645
  setup(t) {
637
646
  return (t, n) => {
638
647
  let i = e, a = r, o = c;
639
648
  return F(), g(o, { class: "h-screen min-h-0" }, {
640
- default: q(() => [S(i, { width: "auto" }, {
641
- default: q(() => [B(t.$slots, "left")]),
649
+ default: J(() => [S(i, { width: "auto" }, {
650
+ default: J(() => [B(t.$slots, "left")]),
642
651
  _: 3
643
- }), S(o, { class: A(["min-h-0", [K(Y)("utools", "main-content")]]) }, {
644
- default: q(() => [S(a, { class: "h-full" }, {
645
- default: q(() => [B(t.$slots, "default")]),
652
+ }), S(o, { class: A(["min-h-0", [K(X)("utools", "main-content")]]) }, {
653
+ default: J(() => [S(a, { class: "h-full" }, {
654
+ default: J(() => [B(t.$slots, "default")]),
646
655
  _: 3
647
656
  })]),
648
657
  _: 3
@@ -651,12 +660,12 @@ var Ee = /* @__PURE__ */ C({
651
660
  });
652
661
  };
653
662
  }
654
- }), Ue = He;
655
- const We = { class: "utools" }, Ge = { class: "title" }, Ke = { class: "flex justify-end h-full pr-3" }, qe = { class: "content" }, Je = { class: "content-inner" }, Ye = {
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 = {
656
665
  class: "flex items-center justify-center",
657
666
  style: { "font-size": "10px" }
658
667
  };
659
- var Xe = /* @__PURE__ */ C({
668
+ var et = /* @__PURE__ */ C({
660
669
  __name: "UtoolsLayout",
661
670
  props: {
662
671
  avatar: { default: "https://www.u-tools.cn/assets/favicon.png" },
@@ -668,11 +677,11 @@ var Xe = /* @__PURE__ */ C({
668
677
  let n = re("leftMenuRef"), r = R(!0);
669
678
  return (e, i) => {
670
679
  let a = t, o = V("router-view");
671
- return F(), v("div", We, [S(Ue, null, {
672
- left: q(() => [y("div", { class: A(K(Y)("utools", "left-menu")) }, [y("div", {
673
- class: A(["flex items-center justify-center", K(Y)("utools", "left-menu", "collapse")]),
680
+ return F(), v("div", Je, [S(qe, null, {
681
+ left: J(() => [y("div", { class: A(K(X)("utools", "left-menu")) }, [y("div", {
682
+ class: A(["flex items-center justify-center", K(X)("utools", "left-menu", "collapse")]),
674
683
  onClick: i[0] ||= (e) => n.value?.changeCollapsed()
675
- }, [y("div", { class: A(["text-lg font-bold", r.value ? "i-u-expandLeft" : "i-u-expandRight"]) }, null, 2)], 2), S(K(De), O({
684
+ }, [y("div", { class: A(["text-lg font-bold", r.value ? "i-u-expandLeft" : "i-u-expandRight"]) }, null, 2)], 2), S(K(je), O({
676
685
  ref_key: "leftMenuRef",
677
686
  ref: n
678
687
  }, {
@@ -683,19 +692,19 @@ var Xe = /* @__PURE__ */ C({
683
692
  "onUpdate:collapsed": i[1] ||= (e) => r.value = e,
684
693
  hideOperations: ""
685
694
  }), {
686
- logo: q(() => [S(a, { image: e.avatar }, null, 8, ["image"]), y("div", Ge, H(e.title), 1)]),
695
+ logo: J(() => [S(a, { image: e.avatar }, null, 8, ["image"]), y("div", Ye, H(e.title), 1)]),
687
696
  _: 1
688
697
  }, 16, ["collapsed"])], 2)]),
689
- default: q(() => [y("div", { class: A(K(Y)("utools", "content-wrapper")) }, [
690
- y("div", Ke, [B(e.$slots, "header-tips")]),
691
- y("div", qe, [y("div", Je, [S(o)])]),
692
- B(e.$slots, "footer", {}, () => [y("div", Ye, " © " + H((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
698
+ 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)])
693
702
  ], 2)]),
694
703
  _: 3
695
704
  })]);
696
705
  };
697
706
  }
698
- }), Ze = Xe, Qe = /* @__PURE__ */ C({
707
+ }), tt = et, nt = /* @__PURE__ */ C({
699
708
  __name: "PageHeader",
700
709
  props: {
701
710
  title: { default: "" },
@@ -704,7 +713,7 @@ var Xe = /* @__PURE__ */ C({
704
713
  },
705
714
  emits: ["back"],
706
715
  setup(e) {
707
- let t = e, r = X("page-header"), a = h(() => {
716
+ let t = e, r = Z("page-header"), a = h(() => {
708
717
  let e = [r()];
709
718
  return t.size !== "default" && e.push(r(t.size)), e;
710
719
  }), o = h(() => de("onBack"));
@@ -717,7 +726,7 @@ var Xe = /* @__PURE__ */ C({
717
726
  variant: "text",
718
727
  onClick: t[0] ||= (t) => e.$emit("back")
719
728
  }, {
720
- icon: q(() => [S(c, { class: "i-u-left" })]),
729
+ icon: J(() => [S(c, { class: "i-u-left" })]),
721
730
  _: 1
722
731
  }, 8, ["class"])]) : _("", !0),
723
732
  y("div", { class: A(K(r)("title")) }, [B(e.$slots, "title", {}, () => [x(H(e.title), 1)])], 2),
@@ -732,9 +741,9 @@ var Xe = /* @__PURE__ */ C({
732
741
  }, [B(e.$slots, "extra")], 2)) : _("", !0)], 2);
733
742
  };
734
743
  }
735
- }), $e = Qe;
736
- const et = { class: "flex justify-between items-center" };
737
- var tt = /* @__PURE__ */ C({
744
+ }), rt = nt;
745
+ const it = { class: "flex justify-between items-center" };
746
+ var at = /* @__PURE__ */ C({
738
747
  __name: "SettingItem",
739
748
  props: {
740
749
  title: {},
@@ -747,37 +756,39 @@ var tt = /* @__PURE__ */ C({
747
756
  setup(e) {
748
757
  let t = te(), n = h(() => "onClick" in t || "onClickCapture" in t), r = h(() => {
749
758
  let e = [];
750
- return e.push(Y("setting-item")), n.value && e.push("cursor-pointer"), e;
759
+ return e.push(X("setting-item")), n.value && e.push("cursor-pointer"), e;
751
760
  });
752
- return (e, t) => (F(), v("div", O({ class: r.value }, U({ ...n.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [y("div", et, [y("div", null, [y("div", { class: A(["u-fx u-gap5 u-fac", K(Y)("setting-item-title")]) }, [B(e.$slots, "title", {}, () => [x(H(e.title), 1)])], 2), B(e.$slots, "desc", {}, () => [y("div", { class: A(K(Y)("setting-item-desc")) }, H(e.desc), 3)])]), y("div", null, [B(e.$slots, "default")])]), y("div", null, [B(e.$slots, "extra")])], 16));
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));
753
762
  }
754
- }), nt = tt, rt = /* @__PURE__ */ C({
763
+ }), ot = at, st = /* @__PURE__ */ C({
755
764
  __name: "SettingDivision",
756
765
  setup(e) {
757
- return (e, t) => (F(), v("div", { class: A(K(Y)("setting-division")) }, null, 2));
766
+ return (e, t) => (F(), v("div", { class: A(K(X)("setting-division")) }, null, 2));
758
767
  }
759
- }), it = rt;
760
- const at = { key: 0 };
761
- var ot = /* @__PURE__ */ C({
768
+ }), ct = st;
769
+ const lt = { key: 0 };
770
+ var ut = /* @__PURE__ */ C({
762
771
  __name: "SettingGroup",
763
772
  props: { title: {} },
764
773
  setup(e) {
765
- return (e, t) => (F(), v("div", { class: A([K(Y)("setting-group")]) }, [y("div", { class: A(K(Y)("setting-group-header")) }, [y("div", { class: A(K(Y)("setting-group-title")) }, H(e.title), 3), e.$slots.desc ? (F(), v("div", at, [B(e.$slots, "desc")])) : _("", !0)], 2), y("div", null, [B(e.$slots, "default")])], 2));
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));
766
775
  }
767
- }), st = ot, ct = /* @__PURE__ */ C({
776
+ }), dt = ut, ft = /* @__PURE__ */ C({
768
777
  name: "SwitchEnable",
769
778
  inheritAttrs: !1,
770
779
  __name: "SwitchEnable",
771
780
  props: /* @__PURE__ */ D({
772
- beforeChange: { type: Function },
781
+ value: { type: Boolean },
782
+ color: { default: "green" },
783
+ beforeChange: {},
773
784
  customValue: {},
774
785
  disabled: { type: Boolean },
775
786
  label: {},
776
787
  loading: { type: Boolean },
777
- size: {},
788
+ size: { default: "large" },
778
789
  defaultValue: {},
779
790
  modelValue: {},
780
- onChange: { type: Function }
791
+ onChange: {}
781
792
  }, {
782
793
  value: {
783
794
  type: Boolean,
@@ -787,9 +798,9 @@ var ot = /* @__PURE__ */ C({
787
798
  }),
788
799
  emits: /* @__PURE__ */ D(["change"], ["update:value"]),
789
800
  setup(e, { emit: t }) {
790
- let n = ne(e, "value"), r = t, i = (e, t) => {
801
+ let n = e, r = t, i = q(e, "value"), a = (e, t) => {
791
802
  r("change", e, t);
792
- }, a = (e, t) => t.value ? S("span", {
803
+ }, o = (e, t) => t.value ? S("span", {
793
804
  class: "i-u-check",
794
805
  style: "width: 10px; height: 10px;"
795
806
  }, null) : S("span", {
@@ -798,13 +809,209 @@ var ot = /* @__PURE__ */ C({
798
809
  }, null);
799
810
  return (e, t) => {
800
811
  let r = f;
801
- return F(), g(r, O({ size: "large" }, e.$attrs, {
802
- value: n.value,
803
- "onUpdate:value": t[0] ||= (e) => n.value = e,
804
- onChange: i,
805
- label: a
806
- }), null, 16, ["value"]);
812
+ return F(), g(r, O({ class: ["u-web-switch", { "u-web-switch-green": n.color === "green" }] }, {
813
+ ...n,
814
+ value: void 0
815
+ }, {
816
+ modelValue: i.value,
817
+ "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
818
+ onChange: a,
819
+ label: o
820
+ }), null, 16, ["class", "modelValue"]);
807
821
  };
808
822
  }
809
- }), lt = ct;
810
- export { ke as ContextMenu, Fe as ContextMenuDivider, Ne as ContextMenuGroup, je as ContextMenuItem, Le as ContextMenuSubmenu, De as LeftMenu, me as LeftMenuEventDispatch, Q as LeftMenuEvents, $e as PageHeader, it as SettingDivision, st as SettingGroup, nt as SettingItem, Ve as SplitPanel, lt as SwitchEnable, Ue as UtoolsBaseLayout, Ze as UtoolsLayout, pe as WebBaseLayout, ze as WebLayout, X as getBuildCurrentClassPrefix, Y as getClassPrefix, de as isEventExist };
823
+ }), pt = ft;
824
+ const mt = ["aria-checked", "disabled"];
825
+ var ht = /* @__PURE__ */ C({
826
+ name: "SwitchPlus",
827
+ __name: "SwitchPlus",
828
+ props: /* @__PURE__ */ D({
829
+ defaultChecked: {
830
+ type: Boolean,
831
+ default: !1
832
+ },
833
+ disabled: {
834
+ type: Boolean,
835
+ default: !1
836
+ },
837
+ loading: {
838
+ type: Boolean,
839
+ default: !1
840
+ },
841
+ type: { default: "circle" },
842
+ size: { default: "medium" },
843
+ checkedValue: {
844
+ type: [
845
+ String,
846
+ Number,
847
+ Boolean
848
+ ],
849
+ default: !0
850
+ },
851
+ uncheckedValue: {
852
+ type: [
853
+ String,
854
+ Number,
855
+ Boolean
856
+ ],
857
+ default: !1
858
+ },
859
+ checkedColor: {},
860
+ uncheckedColor: {},
861
+ beforeChange: {},
862
+ checkedText: {},
863
+ uncheckedText: {}
864
+ }, {
865
+ value: {
866
+ type: [
867
+ String,
868
+ Number,
869
+ Boolean
870
+ ],
871
+ default: !1
872
+ },
873
+ valueModifiers: {}
874
+ }),
875
+ emits: /* @__PURE__ */ D([
876
+ "change",
877
+ "focus",
878
+ "blur"
879
+ ], ["update:value"]),
880
+ setup(e, { emit: t }) {
881
+ let n = q(e, "value"), r = e, i = t, a = ne(), { size: o } = W(r), s = Z("switch-plus"), c = s(), l = h(() => r.disabled), u = h(() => r.size);
882
+ n.value === !1 && r.defaultChecked && (n.value = r.checkedValue);
883
+ let d = h(() => n.value === r.checkedValue), f = R(!1), m = h(() => f.value || r.loading), g = (e, t) => {
884
+ let a = e ? r.checkedValue : r.uncheckedValue;
885
+ n.value = a, i("change", a, t);
886
+ }, b = async (e) => {
887
+ if (m.value || l.value) return;
888
+ let t = !d.value, n = t ? r.checkedValue : r.uncheckedValue, i = r.beforeChange;
889
+ if (fe(i)) {
890
+ f.value = !0;
891
+ try {
892
+ let r = await i(n);
893
+ (r ?? !0) && g(t, e);
894
+ } finally {
895
+ f.value = !1;
896
+ }
897
+ } else g(t, e);
898
+ }, S = (e) => {
899
+ i("focus", e);
900
+ }, C = (e) => {
901
+ i("blur", e);
902
+ };
903
+ ie(n, (e) => {
904
+ (me(e) || pe(e)) && (e.value = r.uncheckedValue);
905
+ });
906
+ let w = h(() => [
907
+ c,
908
+ `${c}-type-${r.type}`,
909
+ {
910
+ [`${c}-small`]: u.value === "small",
911
+ [`${c}-checked`]: d.value,
912
+ [`${c}-disabled`]: l.value,
913
+ [`${c}-loading`]: m.value,
914
+ [`${c}-custom-color`]: r.type === "line" && (r.checkedColor || r.uncheckedColor)
915
+ }
916
+ ]), T = h(() => {
917
+ if (d.value && r.checkedColor) return r.type === "line" ? { "--custom-color": r.checkedColor } : { backgroundColor: r.checkedColor };
918
+ if (!d.value && r.uncheckedColor) return r.type === "line" ? { "--custom-color": r.uncheckedColor } : { backgroundColor: r.uncheckedColor };
919
+ }), E = h(() => {
920
+ if (!m.value) {
921
+ if (d.value && r.checkedColor) return { color: r.checkedColor };
922
+ if (!d.value && r.uncheckedColor) return { color: r.uncheckedColor };
923
+ }
924
+ });
925
+ return (e, t) => (F(), v("button", {
926
+ type: "button",
927
+ role: "switch",
928
+ "aria-checked": d.value,
929
+ class: A(w.value),
930
+ style: j(T.value),
931
+ disabled: l.value || m.value,
932
+ onClick: b,
933
+ onFocus: S,
934
+ onBlur: C
935
+ }, [y("span", {
936
+ class: A(`${K(c)}-handle`),
937
+ style: j(E.value)
938
+ }, [y("span", { class: A(`${K(c)}-handle-icon`) }, [m.value ? (F(), v("span", {
939
+ key: 0,
940
+ class: A(["i-u-loading", `${K(c)}-loading-icon`])
941
+ }, 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));
942
+ }
943
+ }), gt = ht, _t = /* @__PURE__ */ C({
944
+ __name: "SwitchPlusEnable",
945
+ props: /* @__PURE__ */ D({
946
+ defaultChecked: {
947
+ type: Boolean,
948
+ default: !1
949
+ },
950
+ disabled: {
951
+ type: Boolean,
952
+ default: !1
953
+ },
954
+ loading: {
955
+ type: Boolean,
956
+ default: !1
957
+ },
958
+ type: { default: "circle" },
959
+ size: { default: "medium" },
960
+ checkedValue: {
961
+ type: [
962
+ String,
963
+ Number,
964
+ Boolean
965
+ ],
966
+ default: !0
967
+ },
968
+ uncheckedValue: {
969
+ type: [
970
+ String,
971
+ Number,
972
+ Boolean
973
+ ],
974
+ default: !1
975
+ },
976
+ checkedColor: { default: "#10b981" },
977
+ uncheckedColor: {},
978
+ beforeChange: {},
979
+ checkedText: {},
980
+ uncheckedText: {}
981
+ }, {
982
+ value: {
983
+ type: [
984
+ String,
985
+ Number,
986
+ Boolean
987
+ ],
988
+ default: !1
989
+ },
990
+ valueModifiers: {}
991
+ }),
992
+ emits: ["update:value"],
993
+ setup(e) {
994
+ let t = q(e, "value");
995
+ return (e, n) => (F(), g(gt, O({
996
+ value: t.value,
997
+ "onUpdate:value": n[0] ||= (e) => t.value = e
998
+ }, e.$props), {
999
+ "checked-icon": J(() => n[1] ||= [y("span", {
1000
+ style: {
1001
+ width: "14px",
1002
+ height: "14px"
1003
+ },
1004
+ class: "i-u-checkSmall"
1005
+ }, null, -1)]),
1006
+ "unchecked-icon": J(() => n[2] ||= [y("span", {
1007
+ style: {
1008
+ width: "14px",
1009
+ height: "14px"
1010
+ },
1011
+ class: "i-u-closeSmall"
1012
+ }, null, -1)]),
1013
+ _: 1
1014
+ }, 16, ["value"]));
1015
+ }
1016
+ }), vt = _t;
1017
+ 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 };
package/dist/u-web-ui.css CHANGED
@@ -1,2 +1,2 @@
1
- :root{--red-1:255,236,232;--red-2:253,205,197;--red-3:251,172,163;--red-4:249,137,129;--red-5:247,101,96;--red-6:245,63,63;--red-7:203,39,45;--red-8:161,21,30;--red-9:119,8,19;--red-10:77,0,10;--gray-1:247,248,250;--gray-2:242,243,245;--gray-3:229,230,235;--gray-4:201,205,212;--gray-5:169,174,184;--gray-6:134,144,156;--gray-7:107,119,133;--gray-8:78,89,105;--gray-9:39,46,59;--gray-10:29,33,41;--green-1:232,255,234;--green-2:175,240,181;--green-3:123,225,136;--green-4:76,210,99;--green-5:35,195,67;--green-6:0,180,42;--green-7:0,154,41;--green-8:0,128,38;--green-9:0,102,34;--green-10:0,77,28;--blue-1:0,26,77;--blue-2:5,47,120;--blue-3:19,76,163;--blue-4:41,113,207;--blue-5:70,153,250;--blue-6:90,170,251;--blue-7:125,193,252;--blue-8:161,213,253;--blue-9:198,232,254;--blue-10:234,248,255;--u-bg-color:#f4f4f4;--u-bg-color-2:#fafbfb;--u-bg-color-3:#fff;--u-bg-color-3-hover:rgb(var(--gray-3),.5);--u-bg-color-3-active:rgb(var(--gray-3),.8);--u-blue-7:13,66,210;--u-blue-6:22,93,255;--u-blue-5:64,128,255;--u-wechat-color:#2ba471;--u-color-neutral-1:#f7f8fa;--u-color-neutral-2:#f2f3f5;--u-color-neutral-3:#e5e6ec;--u-shadow-sm:#0000001a 0px 1px 2px 0px;--u-shadow-lg:0 6px 16px 0 #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;--u-radius-small:4px;--u-radius-default:6px;--u-radius-medium:8px;--u-radius-large:10px;--u-radius-circle:50%;--u-text-color:var(--td-font-gray-1);--u-text-color-tips:#8a939f;--u-text-color-3:#86909c;--u-text-color-hover:#0052d9;--u-text-color-primary:var(--td-font-gray-1);--u-text-color-secondary:var(--td-font-gray-2);--u-text-color-placeholder:var(--td-font-gray-3);--u-text-color-disabled:var(--td-font-gray-4);--u-text-color-anti:#fff;--u-text-color-brand:var(--td-brand-color-7);--u-text-color-link:var(--td-brand-color-8);--u-text-color-danger:rgb(var(--red-6))}html[theme-mode=dark]{--red-1:77,0,10;--red-2:119,6,17;--red-3:161,22,31;--red-4:203,46,52;--red-5:245,78,78;--red-6:247,105,101;--red-7:249,141,134;--red-8:251,176,167;--red-9:253,209,202;--red-10:255,240,236;--gray-1:23,23,26;--gray-2:46,46,48;--gray-3:72,72,73;--gray-4:95,95,96;--gray-5:120,120,122;--gray-6:146,146,147;--gray-7:171,171,172;--gray-8:197,197,197;--gray-9:223,223,223;--gray-10:246,246,246;--green-1:0,77,28;--green-2:4,102,37;--green-3:10,128,45;--green-4:18,154,55;--green-5:29,180,64;--green-6:39,195,70;--green-7:80,210,102;--green-8:126,225,139;--green-9:178,240,183;--green-10:235,255,236;--blue-1:232,247,255;--blue-2:195,231,254;--blue-3:159,212,253;--blue-4:123,192,252;--blue-5:87,169,251;--blue-6:52,145,250;--blue-7:32,108,207;--blue-8:17,75,163;--blue-9:6,48,120;--blue-10:0,26,77;--u-bg-color:#303133;--u-bg-color-2:#2e2e30;--u-bg-color-3:#2a2a2b;--u-bg-color-3-hover:rgb(var(--gray-3),.65);--u-color-neutral-1:#f7f8fa;--u-color-neutral-2:#484849;--u-color-neutral-3:#e5e6ec;--u-text-color:var(--td-font-white-1);--u-text-color-tips:#8a939f;--u-text-color-primary:var(--td-font-white-1);--u-text-color-secondary:var(--td-font-white-2);--u-text-color-placeholder:var(--td-font-white-3);--u-text-color-disabled:var(--td-font-white-4);--u-text-color-anti:#fff;--u-text-color-brand:var(--td-brand-color-8);--u-text-color-link:var(--td-brand-color-8);--u-text-color-danger:rgb(var(--red-6))}.u-t-input .t-input{border-color:#0000;transition:border-color .25s linear}.u-t-input .t-input:hover{border-color:var(--td-border-level-2-color)}.u-t-input .t-input:focus{box-shadow:none}.u-t-input .t-input--focused{box-shadow:none;border-color:var(--td-brand-color)!important}.u-t-collapse{background-color:#0000;border:none}.u-t-collapse .t-collapse-panel__header{border-bottom:none;padding:8px 13px}.u-t-collapse .t-collapse-panel__body{background:0 0;border-bottom:none}.u-t-collapse .t-collapse-panel__body .t-collapse-panel__content{color:var(--u-text-color);padding:0 6px 0 14px}.u-slider-green .t-slider__button{background:rgb(var(--green-4));border-color:rgb(var(--green-4))}.u-slider-green .t-slider__button--dragging,.u-slider-green .t-slider__button:hover{background-color:rgb(var(--green-5));border-color:rgb(var(--green-5))}.u-slider-blue .t-slider__button{background:rgb(var(--blue-5));border-color:rgb(var(--blue-5))}.u-slider-blue .t-slider__button--dragging,.u-slider-blue .t-slider__button:hover{border-color:rgb(var(--blue-6));background-color:rgb(var(--blue-6))!important}.u-slider-no-fill .t-slider__track{background:0 0}.u-slider .t-slider__rail,.u-slider .t-slider__track{height:8px}.u-slider .t-slider__button{transition:all .2s linear}.u-slider .t-slider__button--dragging{box-shadow:none;transform:scale(1.25)}*,:before,:after{box-sizing:border-box;margin:0;padding:0;font-weight:400}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-u-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M43 11L16.875 37L5 25.1818' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 8L40 40' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 40L40 8' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-expandLeft{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9C6 7.34315 7.34315 6 9 6H39C40.6569 6 42 7.34315 42 9V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z' fill='none' stroke='currentColor' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M32 6V42' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 20L20 24L16 28' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M26 6H38' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M26 42H38' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-expandRight{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='6' width='36' height='36' rx='3' fill='none' stroke='currentColor' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M18 6V42' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 6H36' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 42H36' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M32 20L28 24L32 28' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31 36L19 24L31 12' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.visible{visibility:visible}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:0}.flex{display:flex}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.p-1{padding:.25rem}.px{padding-left:1rem;padding-right:1rem}.pr-3{padding-right:.75rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}@media (min-width:800px){.ut\:p-2{padding:.5rem}}@media (min-width:1280px){.xl\:p-4{padding:1rem}}.u-web-main-content{background:var(--u-bg-color)}.u-web-main-content-inner{background-color:var(--u-bg-color);border-radius:.5rem;height:100%;padding:4px;overflow:hidden auto}.u-web-context-menu-trigger{display:contents}.u-web-context-menu-mask{z-index:999;background:0 0;position:fixed;inset:0}.u-web-context-menu-menu{z-index:1000;background:var(--u-bg-color-3);border:1px solid var(--gray-3);border-radius:var(--u-radius-default);width:max-content;min-width:100px;box-shadow:var(--u-shadow-lg);-webkit-user-select:none;user-select:none;padding:4px 0;position:fixed}.u-web-context-menu-submenu-popup{z-index:1001;position:absolute;top:0;left:100%}.u-web-context-menu-item{color:var(--u-text-color);cursor:pointer;white-space:nowrap;border-radius:4px;align-items:center;margin:0 4px;padding:6px 12px;font-size:14px;line-height:22px;transition:all .2s;display:flex;position:relative}.u-web-context-menu-item:hover{background-color:var(--u-bg-color-3-hover)}.u-web-context-menu-item:active{background-color:var(--u-bg-color-3-active)}.u-web-context-menu-item-disabled{color:var(--u-text-color-disabled);cursor:not-allowed}.u-web-context-menu-item-disabled:hover{background-color:#0000}.u-web-context-menu-item-danger{color:var(--u-text-color-danger)}.u-web-context-menu-item-danger:hover{background-color:rgba(var(--red-5),.1)}.u-web-context-menu-item-icon{margin-right:8px;font-size:14px}.u-web-context-menu-item-label{flex:1}.u-web-context-menu-submenu{position:relative}.u-web-context-menu-submenu-arrow{color:rgb(var(--gray-4));margin-left:8px;font-size:10px;transition:color 90ms linear}.u-web-context-menu-submenu-active{background-color:#0000000a}.u-web-context-menu-submenu-active>.u-web-context-menu-submenu-arrow{color:rgb(var(--gray-6))}.u-web-context-menu-submenu-disabled .u-web-context-menu-submenu-arrow{color:rgb(var(--gray-3))}.u-web-context-menu-group-title{color:var(--u-text-color-secondary);padding:4px 6px;font-size:12px;font-weight:500;line-height:20px}.u-web-context-menu-group:not(:first-child){border-top:1px solid var(--u-color-neutral-2);margin-top:2px;padding-top:2px}.u-web-context-menu-divider{background-color:var(--u-color-neutral-2);height:1px;margin:4px 0}.u-web-split-panel{width:100%;height:100%;display:flex}.u-web-split-panel-horizontal{flex-direction:row}.u-web-split-panel-vertical{flex-direction:column}.u-web-split-panel-pane{overflow:hidden}.u-web-split-panel-pane-second{flex:1;min-width:0;min-height:0}.u-web-split-trigger{background:var(--u-bg-color-2,#f0f0f0);border:1px solid var(--u-color-neutral-3,#e0e0e0);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;transition:background-color .2s;display:flex;position:relative}.u-web-split-trigger:hover:not(.u-web-split-trigger-disabled){background:var(--u-bg-color-3-hover,#e8e8e8)}.u-web-split-trigger-horizontal{cursor:col-resize;width:6px;margin:0 1px}.u-web-split-trigger-horizontal .u-web-split-trigger-icon{flex-direction:column;gap:2px;display:flex}.u-web-split-trigger-horizontal .u-web-split-trigger-line{background:var(--u-text-color-placeholder,#999);border-radius:1px;width:2px;height:12px}.u-web-split-trigger-vertical{cursor:row-resize;height:6px;margin:1px 0}.u-web-split-trigger-vertical .u-web-split-trigger-icon{flex-direction:row;gap:2px;display:flex}.u-web-split-trigger-vertical .u-web-split-trigger-line{background:var(--u-text-color-placeholder,#999);border-radius:1px;width:12px;height:2px}.u-web-split-trigger-disabled{cursor:not-allowed;opacity:.5}.u-web-split-trigger-disabled:hover{background:var(--u-bg-color-2,#f0f0f0)}.utools{height:100%}.utools .t-is-collapsed .t-menu__logo .title{display:none}.utools .t-is-collapsed .t-menu__logo>*{margin-left:0!important}.utools .t-is-collapsed .t-menu__logo:not(:empty){border-bottom:none;justify-content:center}.utools .t-menu__logo{padding:0 8px}.utools .t-default-menu__inner .t-menu{padding:12px 6px}.utools .t-default-menu{background:var(--u-bg-color)}.utools .t-default-menu .t-menu__item.t-is-active:not(.t-is-opened),.utools .t-default-menu .t-menu__item:hover:not(.t-is-active):not(.t-is-disabled){background:var(--u-bg-color-2)}.u-web-utools-left-menu{width:100%;height:100%;position:relative}.u-web-utools-left-menu .u-web-utools-left-menu-collapse{z-index:888;border-radius:var(--u-radius-circle);background-color:var(--u-bg-color-2);cursor:pointer;width:32px;height:32px;color:var(--u-text-color-3);padding:4px;transition:all .28s linear;position:absolute;top:8px;right:-32px}.u-web-utools-left-menu .u-web-utools-left-menu-collapse:hover{color:var(--u-text-color-hover);box-shadow:0 1px 2px #0000001a}.u-web-utools-content-wrapper{box-sizing:border-box;background:var(--u-bg-color);grid-template-rows:24px calc(100vh - 39px) 15px;width:100%;height:100%;min-height:100vh;display:grid;overflow:hidden}.u-web-utools-content-wrapper .content{padding:4px}.u-web-utools-content-wrapper .content .content-inner{border-radius:var(--u-radius-medium);background-color:var(--u-bg-color-2);height:100%;overflow-y:auto;box-shadow:0 1px 2px #0000001a}.u-web-page-header{background:var(--u-bg-color-2);border-bottom:1px solid var(--u-color-neutral-2);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.u-web-page-header-small{padding:14px 16px 12px}.u-web-page-header-small .u-web-page-header-title{font-size:16px}.u-web-page-header-small .u-web-page-header-header-back .t-icon{font-size:18px}.u-web-page-header-large{padding:20px 24px}.u-web-page-header-large .u-web-page-header-title{font-size:20px}.u-web-page-header-large .u-web-page-header-header-back .t-icon{font-size:24px}.u-web-page-header-header{gap:6px}.u-web-page-header-header-back .t-icon{font-size:20px}.u-web-page-header-subtitle{color:var(--u-text-color-secondary)}.u-web-page-header-divider{height:20px}.u-web-page-header-title{color:var(--u-text-color);font-size:18px;font-weight:500;line-height:1.5}.u-web-page-header-extra{align-items:center;gap:16px;display:flex}.u-web-setting-item{background:var(--u-bg-color-3);-webkit-user-select:none;user-select:none;padding:15px 10px;transition:all .28s linear}.u-web-setting-item:hover{background:rgb(var(--gray-2),.5)}.u-web-setting-item-title{margin-bottom:.25rem;font-size:1rem;font-weight:700}.u-web-setting-item-desc{color:var(--u-text-color-tips);font-size:12px}.u-web-division{border-bottom:1px dashed var(--u-color-neutral-2)}.u-web-setting-group>div:last-child{border-radius:6px;transition:all .26s linear;overflow:hidden}.u-web-setting-group>div:last-child:hover{box-shadow:0 3px 5px #0000000a}.u-web-setting-group-header,.u-web-setting-group-title{margin-bottom:.5rem}.u-web-setting-group-title{border-left:2px solid rgb(var(--u-blue-5));padding-left:.5rem;font-size:1.25rem;font-weight:600;line-height:1.75rem}
1
+ :root{--red-1:255,236,232;--red-2:253,205,197;--red-3:251,172,163;--red-4:249,137,129;--red-5:247,101,96;--red-6:245,63,63;--red-7:203,39,45;--red-8:161,21,30;--red-9:119,8,19;--red-10:77,0,10;--gray-1:247,248,250;--gray-2:242,243,245;--gray-3:229,230,235;--gray-4:201,205,212;--gray-5:169,174,184;--gray-6:134,144,156;--gray-7:107,119,133;--gray-8:78,89,105;--gray-9:39,46,59;--gray-10:29,33,41;--green-1:232,255,234;--green-2:175,240,181;--green-3:123,225,136;--green-4:76,210,99;--green-5:35,195,67;--green-6:0,180,42;--green-7:0,154,41;--green-8:0,128,38;--green-9:0,102,34;--green-10:0,77,28;--blue-1:0,26,77;--blue-2:5,47,120;--blue-3:19,76,163;--blue-4:41,113,207;--blue-5:70,153,250;--blue-6:90,170,251;--blue-7:125,193,252;--blue-8:161,213,253;--blue-9:198,232,254;--blue-10:234,248,255;--u-bg-color:#f4f4f4;--u-bg-color-2:#fafbfb;--u-bg-color-3:#fff;--u-bg-color-3-hover:rgb(var(--gray-3),.5);--u-bg-color-3-active:rgb(var(--gray-3),.8);--u-blue-7:13,66,210;--u-blue-6:22,93,255;--u-blue-5:64,128,255;--u-wechat-color:#2ba471;--u-color-neutral-1:#f7f8fa;--u-color-neutral-2:#f2f3f5;--u-color-neutral-3:#e5e6ec;--u-shadow-sm:#0000001a 0px 1px 2px 0px;--u-shadow-lg:0 6px 16px 0 #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;--u-radius-small:4px;--u-radius-default:6px;--u-radius-medium:8px;--u-radius-large:10px;--u-radius-circle:50%;--u-text-color:var(--td-font-gray-1);--u-text-color-tips:#8a939f;--u-text-color-3:#86909c;--u-text-color-hover:#0052d9;--u-text-color-primary:var(--td-font-gray-1);--u-text-color-secondary:var(--td-font-gray-2);--u-text-color-placeholder:var(--td-font-gray-3);--u-text-color-disabled:var(--td-font-gray-4);--u-text-color-anti:#fff;--u-text-color-brand:var(--td-brand-color-7);--u-text-color-link:var(--td-brand-color-8);--u-text-color-danger:rgb(var(--red-6))}html[theme-mode=dark]{--red-1:77,0,10;--red-2:119,6,17;--red-3:161,22,31;--red-4:203,46,52;--red-5:245,78,78;--red-6:247,105,101;--red-7:249,141,134;--red-8:251,176,167;--red-9:253,209,202;--red-10:255,240,236;--gray-1:23,23,26;--gray-2:46,46,48;--gray-3:72,72,73;--gray-4:95,95,96;--gray-5:120,120,122;--gray-6:146,146,147;--gray-7:171,171,172;--gray-8:197,197,197;--gray-9:223,223,223;--gray-10:246,246,246;--green-1:0,77,28;--green-2:4,102,37;--green-3:10,128,45;--green-4:18,154,55;--green-5:29,180,64;--green-6:39,195,70;--green-7:80,210,102;--green-8:126,225,139;--green-9:178,240,183;--green-10:235,255,236;--blue-1:232,247,255;--blue-2:195,231,254;--blue-3:159,212,253;--blue-4:123,192,252;--blue-5:87,169,251;--blue-6:52,145,250;--blue-7:32,108,207;--blue-8:17,75,163;--blue-9:6,48,120;--blue-10:0,26,77;--u-bg-color:#303133;--u-bg-color-2:#2e2e30;--u-bg-color-3:#2a2a2b;--u-bg-color-3-hover:rgb(var(--gray-3),.65);--u-color-neutral-1:#f7f8fa;--u-color-neutral-2:#484849;--u-color-neutral-3:#e5e6ec;--u-text-color:var(--td-font-white-1);--u-text-color-tips:#8a939f;--u-text-color-primary:var(--td-font-white-1);--u-text-color-secondary:var(--td-font-white-2);--u-text-color-placeholder:var(--td-font-white-3);--u-text-color-disabled:var(--td-font-white-4);--u-text-color-anti:#fff;--u-text-color-brand:var(--td-brand-color-8);--u-text-color-link:var(--td-brand-color-8);--u-text-color-danger:rgb(var(--red-6))}.u-t-input .t-input{border-color:#0000;transition:border-color .25s linear}.u-t-input .t-input:hover{border-color:var(--td-border-level-2-color)}.u-t-input .t-input:focus{box-shadow:none}.u-t-input .t-input--focused{box-shadow:none;border-color:var(--td-brand-color)!important}.u-t-collapse{background-color:#0000;border:none}.u-t-collapse .t-collapse-panel__header{border-bottom:none;padding:8px 13px}.u-t-collapse .t-collapse-panel__body{background:0 0;border-bottom:none}.u-t-collapse .t-collapse-panel__body .t-collapse-panel__content{color:var(--u-text-color);padding:0 6px 0 14px}.u-slider-green .t-slider__button{background:rgb(var(--green-4));border-color:rgb(var(--green-4))}.u-slider-green .t-slider__button--dragging,.u-slider-green .t-slider__button:hover{background-color:rgb(var(--green-5));border-color:rgb(var(--green-5))}.u-slider-blue .t-slider__button{background:rgb(var(--blue-5));border-color:rgb(var(--blue-5))}.u-slider-blue .t-slider__button--dragging,.u-slider-blue .t-slider__button:hover{border-color:rgb(var(--blue-6));background-color:rgb(var(--blue-6))!important}.u-slider-no-fill .t-slider__track{background:0 0}.u-slider .t-slider__rail,.u-slider .t-slider__track{height:8px}.u-slider .t-slider__button{transition:all .2s linear}.u-slider .t-slider__button--dragging{box-shadow:none;transform:scale(1.25)}*,:before,:after{box-sizing:border-box;margin:0;padding:0;font-weight:400}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-u-check{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M43 11L16.875 37L5 25.1818' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-checkSmall{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 24L20 34L40 14' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 8L40 40' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 40L40 8' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-closeSmall{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 14L34 34' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 34L34 14' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-expandLeft{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9C6 7.34315 7.34315 6 9 6H39C40.6569 6 42 7.34315 42 9V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z' fill='none' stroke='currentColor' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M32 6V42' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 20L20 24L16 28' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M26 6H38' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M26 42H38' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-expandRight{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='6' width='36' height='36' rx='3' fill='none' stroke='currentColor' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M18 6V42' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 6H36' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 42H36' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M32 20L28 24L32 28' stroke='%23333' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31 36L19 24L31 12' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-u-loading{--un-icon:url("data:image/svg+xml;utf8,%3Csvg display='inline-block' vertical-align='middle' width='24' height='24' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4' stroke='currentColor' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;vertical-align:middle;background-color:currentColor;width:24px;height:24px;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.visible{visibility:visible}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:0}.flex{display:flex}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.p-1{padding:.25rem}.px{padding-left:1rem;padding-right:1rem}.pr-3{padding-right:.75rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.blur{--un-blur:blur(8px);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:800px){.ut\:p-2{padding:.5rem}}@media (min-width:1280px){.xl\:p-4{padding:1rem}}.u-web-main-content{background:var(--u-bg-color)}.u-web-main-content-inner{background-color:var(--u-bg-color);border-radius:.5rem;height:100%;padding:4px;overflow:hidden auto}.u-web-context-menu-trigger{display:contents}.u-web-context-menu-mask{z-index:999;background:0 0;position:fixed;inset:0}.u-web-context-menu-menu{z-index:1000;background:var(--u-bg-color-3);border:1px solid var(--gray-3);border-radius:var(--u-radius-default);width:max-content;min-width:100px;box-shadow:var(--u-shadow-lg);-webkit-user-select:none;user-select:none;padding:4px 0;position:fixed}.u-web-context-menu-submenu-popup{z-index:1001;position:absolute;top:0;left:100%}.u-web-context-menu-item{color:var(--u-text-color);cursor:pointer;white-space:nowrap;border-radius:4px;align-items:center;margin:0 4px;padding:6px 12px;font-size:14px;line-height:22px;transition:all .2s;display:flex;position:relative}.u-web-context-menu-item:hover{background-color:var(--u-bg-color-3-hover)}.u-web-context-menu-item:active{background-color:var(--u-bg-color-3-active)}.u-web-context-menu-item-disabled{color:var(--u-text-color-disabled);cursor:not-allowed}.u-web-context-menu-item-disabled:hover{background-color:#0000}.u-web-context-menu-item-danger{color:var(--u-text-color-danger)}.u-web-context-menu-item-danger:hover{background-color:rgba(var(--red-5),.1)}.u-web-context-menu-item-icon{margin-right:8px;font-size:14px}.u-web-context-menu-item-label{flex:1}.u-web-context-menu-submenu{position:relative}.u-web-context-menu-submenu-arrow{color:rgb(var(--gray-4));margin-left:8px;font-size:10px;transition:color 90ms linear}.u-web-context-menu-submenu-active{background-color:#0000000a}.u-web-context-menu-submenu-active>.u-web-context-menu-submenu-arrow{color:rgb(var(--gray-6))}.u-web-context-menu-submenu-disabled .u-web-context-menu-submenu-arrow{color:rgb(var(--gray-3))}.u-web-context-menu-group-title{color:var(--u-text-color-secondary);padding:4px 6px;font-size:12px;font-weight:500;line-height:20px}.u-web-context-menu-group:not(:first-child){border-top:1px solid var(--u-color-neutral-2);margin-top:2px;padding-top:2px}.u-web-context-menu-divider{background-color:var(--u-color-neutral-2);height:1px;margin:4px 0}.u-web-split-panel{width:100%;height:100%;display:flex}.u-web-split-panel-horizontal{flex-direction:row}.u-web-split-panel-vertical{flex-direction:column}.u-web-split-panel-pane{overflow:hidden}.u-web-split-panel-pane-second{flex:1;min-width:0;min-height:0}.u-web-split-trigger{background:var(--u-bg-color-2,#f0f0f0);border:1px solid var(--u-color-neutral-3,#e0e0e0);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;transition:background-color .2s;display:flex;position:relative}.u-web-split-trigger:hover:not(.u-web-split-trigger-disabled){background:var(--u-bg-color-3-hover,#e8e8e8)}.u-web-split-trigger-horizontal{cursor:col-resize;width:6px;margin:0 1px}.u-web-split-trigger-horizontal .u-web-split-trigger-icon{flex-direction:column;gap:2px;display:flex}.u-web-split-trigger-horizontal .u-web-split-trigger-line{background:var(--u-text-color-placeholder,#999);border-radius:1px;width:2px;height:12px}.u-web-split-trigger-vertical{cursor:row-resize;height:6px;margin:1px 0}.u-web-split-trigger-vertical .u-web-split-trigger-icon{flex-direction:row;gap:2px;display:flex}.u-web-split-trigger-vertical .u-web-split-trigger-line{background:var(--u-text-color-placeholder,#999);border-radius:1px;width:12px;height:2px}.u-web-split-trigger-disabled{cursor:not-allowed;opacity:.5}.u-web-split-trigger-disabled:hover{background:var(--u-bg-color-2,#f0f0f0)}.utools{height:100%}.utools .t-is-collapsed .t-menu__logo .title{display:none}.utools .t-is-collapsed .t-menu__logo>*{margin-left:0!important}.utools .t-is-collapsed .t-menu__logo:not(:empty){border-bottom:none;justify-content:center}.utools .t-menu__logo{padding:0 8px}.utools .t-default-menu__inner .t-menu{padding:12px 6px}.utools .t-default-menu{background:var(--u-bg-color)}.utools .t-default-menu .t-menu__item.t-is-active:not(.t-is-opened),.utools .t-default-menu .t-menu__item:hover:not(.t-is-active):not(.t-is-disabled){background:var(--u-bg-color-2)}.u-web-utools-left-menu{width:100%;height:100%;position:relative}.u-web-utools-left-menu .u-web-utools-left-menu-collapse{z-index:888;border-radius:var(--u-radius-circle);background-color:var(--u-bg-color-2);cursor:pointer;width:32px;height:32px;color:var(--u-text-color-3);padding:4px;transition:all .28s linear;position:absolute;top:8px;right:-32px}.u-web-utools-left-menu .u-web-utools-left-menu-collapse:hover{color:var(--u-text-color-hover);box-shadow:0 1px 2px #0000001a}.u-web-utools-content-wrapper{box-sizing:border-box;background:var(--u-bg-color);grid-template-rows:24px calc(100vh - 39px) 15px;width:100%;height:100%;min-height:100vh;display:grid;overflow:hidden}.u-web-utools-content-wrapper .content{padding:4px}.u-web-utools-content-wrapper .content .content-inner{border-radius:var(--u-radius-medium);background-color:var(--u-bg-color-2);height:100%;overflow-y:auto;box-shadow:0 1px 2px #0000001a}.u-web-page-header{background:var(--u-bg-color-2);border-bottom:1px solid var(--u-color-neutral-2);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.u-web-page-header-small{padding:14px 16px 12px}.u-web-page-header-small .u-web-page-header-title{font-size:16px}.u-web-page-header-small .u-web-page-header-header-back .t-icon{font-size:18px}.u-web-page-header-large{padding:20px 24px}.u-web-page-header-large .u-web-page-header-title{font-size:20px}.u-web-page-header-large .u-web-page-header-header-back .t-icon{font-size:24px}.u-web-page-header-header{gap:6px}.u-web-page-header-header-back .t-icon{font-size:20px}.u-web-page-header-subtitle{color:var(--u-text-color-secondary)}.u-web-page-header-divider{height:20px}.u-web-page-header-title{color:var(--u-text-color);font-size:18px;font-weight:500;line-height:1.5}.u-web-page-header-extra{align-items:center;gap:16px;display:flex}.u-web-setting-item{background:var(--u-bg-color-3);-webkit-user-select:none;user-select:none;padding:15px 10px;transition:all .28s linear}.u-web-setting-item:hover{background:rgb(var(--gray-2),.5)}.u-web-setting-item-title{margin-bottom:.25rem;font-size:1rem;font-weight:700}.u-web-setting-item-desc{color:var(--u-text-color-tips);font-size:12px}.u-web-division{border-bottom:1px dashed var(--u-color-neutral-2)}.u-web-setting-group>div:last-child{border-radius:6px;transition:all .26s linear;overflow:hidden}.u-web-setting-group>div:last-child:hover{box-shadow:0 3px 5px #0000000a}.u-web-setting-group-header,.u-web-setting-group-title{margin-bottom:.5rem}.u-web-setting-group-title{border-left:2px solid rgb(var(--u-blue-5));padding-left:.5rem;font-size:1.25rem;font-weight:600;line-height:1.75rem}.u-web-switch-green{transition:background-color .2s linear}.u-web-switch-green.t-is-checked{background-color:rgba(var(--green-5))}.u-web-switch-green.t-is-checked:hover{background-color:rgba(var(--green-6))}@keyframes switch-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.switch-slide-text-enter-from{left:-100%!important}.switch-slide-text-enter-to{left:8px!important}.switch-slide-text-enter-active{transition:left .2s}.switch-slide-text-leave-from{left:100%!important}.switch-slide-text-leave-to{left:30px!important}.switch-slide-text-leave-active{transition:left .2s}.u-web-switch-plus{box-sizing:border-box;vertical-align:middle;background-color:rgb(var(--gray-4));cursor:pointer;border:none;border-radius:14px;outline:none;min-width:44px;height:28px;padding:0;line-height:28px;transition:background-color .2s;position:relative;overflow:hidden}.u-web-switch-plus-handle{width:20px;height:20px;color:rgb(var(--gray-6));background-color:var(--u-bg-color-3);box-shadow:var(--u-shadow-sm);border-radius:50%;justify-content:center;align-items:center;font-size:12px;transition:all .2s;display:flex;position:absolute;top:4px;left:4px}.u-web-switch-plus-checked{background-color:rgb(var(--blue-5))}.u-web-switch-plus-checked .u-web-switch-plus-handle{color:rgb(var(--blue-5));left:calc(100% - 24px)}.u-web-switch-plus[disabled] .u-web-switch-plus-handle,.u-web-switch-plus[disabled].u-web-switch-plus-checked .u-web-switch-plus-handle{color:rgb(var(--gray-5))}.u-web-switch-plus-text-holder{opacity:0;margin:0 8px 0 30px;font-size:12px}.u-web-switch-plus-text{color:rgb(var(--gray-6));font-size:12px;position:absolute;top:0;left:30px}.u-web-switch-plus-checked .u-web-switch-plus-text-holder{margin:0 30px 0 8px}.u-web-switch-plus-checked .u-web-switch-plus-text{color:var(--u-bg-color-3);left:8px}.u-web-switch-plus[disabled]{background-color:rgb(var(--gray-3));cursor:not-allowed}.u-web-switch-plus[disabled] .u-web-switch-plus-text{color:rgb(var(--gray-5))}.u-web-switch-plus[disabled].u-web-switch-plus-checked{background-color:rgb(var(--gray-4))}.u-web-switch-plus[disabled].u-web-switch-plus-checked .u-web-switch-plus-text{color:rgb(var(--gray-5))}.u-web-switch-plus-loading{background-color:rgb(var(--gray-4))}.u-web-switch-plus-loading .u-web-switch-plus-handle,.u-web-switch-plus-loading .u-web-switch-plus-text{color:rgb(var(--gray-6))}.u-web-switch-plus-loading.u-web-switch-plus-checked{background-color:rgb(var(--blue-6))}.u-web-switch-plus-loading.u-web-switch-plus-checked .u-web-switch-plus-handle{color:rgb(var(--blue-5))}.u-web-switch-plus-loading.u-web-switch-plus-checked .u-web-switch-plus-text{color:var(--u-bg-color-3)}.u-web-switch-plus-loading-icon{animation:1s linear infinite switch-loading-spin;display:inline-block}.u-web-switch-plus-small{min-width:32px;height:20px;line-height:20px}.u-web-switch-plus-small.u-web-switch-plus-checked{padding-left:-3px}.u-web-switch-plus-small .u-web-switch-plus-handle{border-radius:10px;width:14px;height:14px;top:3px;left:3px}.u-web-switch-plus-small .u-web-switch-plus-handle-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)scale(.66667)}.u-web-switch-plus-small.u-web-switch-plus-checked .u-web-switch-plus-handle{left:calc(100% - 17px)}.u-web-switch-plus-type-round{border-radius:var(--u-radius-small);min-width:44px}.u-web-switch-plus-type-round .u-web-switch-plus-handle{border-radius:2px}.u-web-switch-plus-type-round.u-web-switch-plus-small{border-radius:2px;min-width:32px;height:20px;line-height:20px}.u-web-switch-plus-type-round.u-web-switch-plus-small .u-web-switch-plus-handle{border-radius:1px}.u-web-switch-plus-type-line{min-width:44px;overflow:unset;background-color:#0000}.u-web-switch-plus-type-line:after{background-color:rgb(var(--gray-4));content:"";border-radius:2px;width:100%;height:4px;transition:background-color .2s;display:block}.u-web-switch-plus-type-line .u-web-switch-plus-handle{background-color:var(--u-bg-color-3);width:18px;height:18px;box-shadow:var(--u-shadow-sm);border-radius:9px;top:5px;left:0}.u-web-switch-plus-type-line.u-web-switch-plus-checked{background-color:#0000}.u-web-switch-plus-type-line.u-web-switch-plus-checked:after{background-color:rgb(var(--blue-5))}.u-web-switch-plus-type-line.u-web-switch-plus-custom-color{--custom-color:rgb(var(--gray-4))}.u-web-switch-plus-type-line.u-web-switch-plus-custom-color:after{background-color:var(--custom-color)}.u-web-switch-plus-type-line.u-web-switch-plus-custom-color.u-web-switch-plus-checked{--custom-color:rgb(var(--blue-5))}.u-web-switch-plus-type-line.u-web-switch-plus-checked .u-web-switch-plus-handle{left:calc(100% - 18px)}.u-web-switch-plus-type-line[disabled]{cursor:not-allowed;background-color:#0000}.u-web-switch-plus-type-line[disabled]:after{background-color:rgb(var(--gray-3))}.u-web-switch-plus-type-line[disabled].u-web-switch-plus-checked{background-color:#0000}.u-web-switch-plus-type-line[disabled].u-web-switch-plus-checked:after{background-color:rgb(var(--gray-4))}.u-web-switch-plus-type-line.u-web-switch-plus-loading{background-color:#0000}.u-web-switch-plus-type-line.u-web-switch-plus-loading:after{background-color:rgb(var(--gray-4))}.u-web-switch-plus-type-line.u-web-switch-plus-loading.u-web-switch-plus-checked{background-color:#0000}.u-web-switch-plus-type-line.u-web-switch-plus-loading.u-web-switch-plus-checked:after{background-color:rgb(var(--blue-6))}.u-web-switch-plus-type-line.u-web-switch-plus-small{min-width:32px;height:20px;line-height:20px}.u-web-switch-plus-type-line.u-web-switch-plus-small.u-web-switch-plus-checked{padding-left:-4px}.u-web-switch-plus-type-line.u-web-switch-plus-small .u-web-switch-plus-handle{border-radius:10px;width:12px;height:12px;top:4px}.u-web-switch-plus-type-line.u-web-switch-plus-small .u-web-switch-plus-handle-icon{transform:translate(-50%,-50%)scale(1)}.u-web-switch-plus-type-line.u-web-switch-plus-small.u-web-switch-plus-checked .u-web-switch-plus-handle{left:calc(100% - 16px)}
2
2
  /*$vite$:1*/
@@ -1,3 +1,4 @@
1
1
  export * from './cssUtils';
2
2
  export * from './vueUtils';
3
+ export * from './typeUtils';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 检查值是否为函数
3
+ * @param value 要检查的值
4
+ * @returns 是否为函数
5
+ */
6
+ export declare function isFunction(value: any): value is Function;
7
+ /**
8
+ * 检查值是否为 null
9
+ * @param value 要检查的值
10
+ * @returns 是否为 null
11
+ */
12
+ export declare function isNull(value: any): value is null;
13
+ /**
14
+ * 检查值是否为 undefined
15
+ * @param value 要检查的值
16
+ * @returns 是否为 undefined
17
+ */
18
+ export declare function isUndefined(value: any): value is undefined;
19
+ //# sourceMappingURL=typeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/typeUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAExD;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,IAAI,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,SAAS,CAE1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaou66/u-web-ui",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "web-ui",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",