dlzn-ui 1.65.0 → 1.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/components/button/index.d.ts +3 -0
- package/components/button/index.mjs +3 -0
- package/components/button/src/button.d.ts +36 -0
- package/components/button/src/button.mjs +9 -0
- package/components/button/src/button.vue.d.ts +19 -0
- package/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +197 -0
- package/components/button/src/button.vue_vue_type_style_index_0_scoped_f7b8d56d_lang.css +1 -0
- package/components/button/src/button2.mjs +7 -0
- package/components/card/src/card.d.ts +1 -1
- package/components/card/src/card.mjs +1 -1
- package/components/card/src/card.vue.d.ts +7 -2
- package/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_d9b8941b_lang.css +2 -0
- package/components/card/src/card2.mjs +5 -5
- package/components/checkbox/index.d.ts +3 -0
- package/components/checkbox/index.mjs +2 -0
- package/components/checkbox/src/checkbox.d.ts +6 -0
- package/components/checkbox/src/checkbox.mjs +0 -0
- package/components/checkbox/src/checkbox.vue.d.ts +14 -0
- package/components/checkbox/src/checkbox.vue_vue_type_script_setup_true_lang.mjs +55 -0
- package/components/checkbox/src/checkbox2.mjs +5 -0
- package/components/checkbox-group/index.d.ts +3 -0
- package/components/checkbox-group/index.mjs +2 -0
- package/components/checkbox-group/src/checkbox-group.d.ts +10 -0
- package/components/checkbox-group/src/checkbox-group.mjs +0 -0
- package/components/checkbox-group/src/checkbox-group.vue.d.ts +15 -0
- package/components/checkbox-group/src/checkbox-group.vue_vue_type_script_setup_true_lang.mjs +71 -0
- package/components/checkbox-group/src/checkbox-group2.mjs +5 -0
- package/components/form/index.d.ts +3 -0
- package/components/form/index.mjs +3 -0
- package/components/form/src/form.d.ts +157 -0
- package/components/form/src/form.mjs +18 -0
- package/components/form/src/form.vue.d.ts +27 -0
- package/components/form/src/form.vue_vue_type_script_setup_true_lang.mjs +262 -0
- package/components/form/src/form.vue_vue_type_style_index_0_scoped_4f6efe42_lang.css +2 -0
- package/components/form/src/form2.mjs +7 -0
- package/components/icon/index.d.ts +3 -0
- package/components/icon/index.mjs +2 -0
- package/components/icon/src/icon.d.ts +6 -0
- package/components/icon/src/icon.mjs +0 -0
- package/components/icon/src/icon.vue.d.ts +8 -0
- package/components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs +20 -0
- package/components/icon/src/icon2.mjs +5 -0
- package/components/image/index.d.ts +3 -0
- package/components/image/index.mjs +3 -0
- package/components/image/src/image.d.ts +7 -0
- package/components/image/src/image.mjs +4 -0
- package/components/image/src/image.vue.d.ts +7 -0
- package/components/image/src/image.vue_vue_type_script_setup_true_lang.mjs +45 -0
- package/components/image/src/image.vue_vue_type_style_index_0_scoped_beb4af3d_lang.css +1 -0
- package/components/image/src/image2.mjs +7 -0
- package/components/image-viewer/index.d.ts +3 -0
- package/components/image-viewer/index.mjs +3 -0
- package/components/image-viewer/src/image-viewer.d.ts +16 -0
- package/components/image-viewer/src/image-viewer.mjs +12 -0
- package/components/image-viewer/src/image-viewer.vue.d.ts +14 -0
- package/components/image-viewer/src/image-viewer.vue_vue_type_script_setup_true_lang.mjs +52 -0
- package/components/image-viewer/src/image-viewer2.mjs +5 -0
- package/components/index.d.ts +76 -2
- package/components/index.mjs +42 -3
- package/components/input/index.d.ts +3 -0
- package/components/input/index.mjs +3 -0
- package/components/input/src/input.d.ts +14 -0
- package/components/input/src/input.mjs +10 -0
- package/components/input/src/input.vue.d.ts +17 -0
- package/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +80 -0
- package/components/input/src/input.vue_vue_type_style_index_0_lang.css +1 -0
- package/components/input/src/input2.mjs +6 -0
- package/components/input-number/index.d.ts +3 -0
- package/components/input-number/index.mjs +3 -0
- package/components/input-number/src/input-number.d.ts +21 -0
- package/components/input-number/src/input-number.mjs +12 -0
- package/components/input-number/src/input-number.vue.d.ts +19 -0
- package/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +65 -0
- package/components/input-number/src/input-number.vue_vue_type_style_index_0_scoped_5f2e8637_lang.css +2 -0
- package/components/input-number/src/input-number2.mjs +7 -0
- package/components/link/index.d.ts +3 -0
- package/components/link/index.mjs +3 -0
- package/components/link/src/link.d.ts +7 -0
- package/components/link/src/link.mjs +4 -0
- package/components/link/src/link.vue.d.ts +8 -0
- package/components/link/src/link.vue_vue_type_script_setup_true_lang.mjs +40 -0
- package/components/link/src/link2.mjs +5 -0
- package/components/pagination/index.d.ts +3 -0
- package/components/pagination/index.mjs +2 -0
- package/components/pagination/src/pagination.d.ts +7 -0
- package/components/pagination/src/pagination.mjs +0 -0
- package/components/pagination/src/pagination.vue.d.ts +21 -0
- package/components/pagination/src/pagination.vue_vue_type_script_setup_true_lang.mjs +76 -0
- package/components/pagination/src/pagination.vue_vue_type_style_index_0_scoped_ea93e350_lang.css +1 -0
- package/components/pagination/src/pagination2.mjs +7 -0
- package/components/popconfirm/index.d.ts +3 -0
- package/components/popconfirm/index.mjs +2 -0
- package/components/popconfirm/src/popconfirm.d.ts +4 -0
- package/components/popconfirm/src/popconfirm.mjs +0 -0
- package/components/popconfirm/src/popconfirm.vue.d.ts +11 -0
- package/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +51 -0
- package/components/popconfirm/src/popconfirm2.mjs +5 -0
- package/components/popup/index.d.ts +3 -0
- package/components/popup/index.mjs +2 -0
- package/components/popup/src/popup.d.ts +6 -0
- package/components/popup/src/popup.mjs +0 -0
- package/components/popup/src/popup.vue.d.ts +11 -0
- package/components/popup/src/popup.vue_vue_type_script_setup_true_lang.mjs +60 -0
- package/components/popup/src/popup2.mjs +5 -0
- package/components/radio-group/index.d.ts +3 -0
- package/components/radio-group/index.mjs +2 -0
- package/components/radio-group/src/radio-group.d.ts +9 -0
- package/components/radio-group/src/radio-group.mjs +0 -0
- package/components/radio-group/src/radio-group.vue.d.ts +14 -0
- package/components/radio-group/src/radio-group.vue_vue_type_script_setup_true_lang.mjs +69 -0
- package/components/radio-group/src/radio-group2.mjs +5 -0
- package/components/range-input/index.d.ts +3 -0
- package/components/range-input/index.mjs +2 -0
- package/components/range-input/src/range-input.d.ts +10 -0
- package/components/range-input/src/range-input.mjs +0 -0
- package/components/range-input/src/range-input.vue.d.ts +23 -0
- package/components/range-input/src/range-input.vue_vue_type_script_setup_true_lang.mjs +109 -0
- package/components/range-input/src/range-input2.mjs +5 -0
- package/components/select/index.d.ts +3 -0
- package/components/select/index.mjs +3 -0
- package/components/select/src/select.d.ts +51 -0
- package/components/select/src/select.mjs +25 -0
- package/components/select/src/select.vue.d.ts +20 -0
- package/components/select/src/select.vue_vue_type_script_setup_true_lang.mjs +141 -0
- package/components/select/src/select.vue_vue_type_style_index_0_lang.css +1 -0
- package/components/select/src/select2.mjs +6 -0
- package/components/slider/index.d.ts +3 -0
- package/components/slider/index.mjs +3 -0
- package/components/slider/src/slider.d.ts +9 -0
- package/components/slider/src/slider.mjs +4 -0
- package/components/slider/src/slider.vue.d.ts +13 -0
- package/components/slider/src/slider.vue_vue_type_script_setup_true_lang.mjs +46 -0
- package/components/slider/src/slider2.mjs +5 -0
- package/components/switch/index.d.ts +3 -0
- package/components/switch/index.mjs +3 -0
- package/components/switch/src/switch.d.ts +10 -0
- package/components/switch/src/switch.mjs +7 -0
- package/components/switch/src/switch.vue.d.ts +14 -0
- package/components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs +44 -0
- package/components/switch/src/switch2.mjs +5 -0
- package/components/tab-panel/index.d.ts +3 -0
- package/components/tab-panel/index.mjs +2 -0
- package/components/tab-panel/src/tab-panel.d.ts +2 -0
- package/components/tab-panel/src/tab-panel.mjs +0 -0
- package/components/tab-panel/src/tab-panel.vue.d.ts +8 -0
- package/components/tab-panel/src/tab-panel.vue_vue_type_script_setup_true_lang.mjs +43 -0
- package/components/tab-panel/src/tab-panel2.mjs +5 -0
- package/components/tag/index.d.ts +3 -0
- package/components/tag/index.mjs +3 -0
- package/components/tag/src/tag.d.ts +10 -0
- package/components/tag/src/tag.mjs +7 -0
- package/components/tag/src/tag.vue.d.ts +9 -0
- package/components/tag/src/tag.vue_vue_type_script_setup_true_lang.mjs +53 -0
- package/components/tag/src/tag2.mjs +5 -0
- package/components/tag-input/index.d.ts +3 -0
- package/components/tag-input/index.mjs +3 -0
- package/components/tag-input/src/tag-input.d.ts +11 -0
- package/components/tag-input/src/tag-input.mjs +7 -0
- package/components/tag-input/src/tag-input.vue.d.ts +14 -0
- package/components/tag-input/src/tag-input.vue_vue_type_script_setup_true_lang.mjs +74 -0
- package/components/tag-input/src/tag-input2.mjs +5 -0
- package/components/textarea/index.d.ts +3 -0
- package/components/textarea/index.mjs +2 -0
- package/components/textarea/src/textarea.d.ts +6 -0
- package/components/textarea/src/textarea.mjs +0 -0
- package/components/textarea/src/textarea.vue.d.ts +20 -0
- package/components/textarea/src/textarea.vue_vue_type_script_setup_true_lang.mjs +62 -0
- package/components/textarea/src/textarea.vue_vue_type_style_index_0_scoped_31251e1e_lang.css +1 -0
- package/components/textarea/src/textarea2.mjs +7 -0
- package/components/tree/index.d.ts +3 -0
- package/components/tree/index.mjs +3 -0
- package/components/tree/src/tree.d.ts +23 -0
- package/components/tree/src/tree.mjs +25 -0
- package/components/tree/src/tree.vue.d.ts +18 -0
- package/components/tree/src/tree.vue_vue_type_script_setup_true_lang.mjs +80 -0
- package/components/tree/src/tree2.mjs +5 -0
- package/components/tree-select/index.d.ts +3 -0
- package/components/tree-select/index.mjs +2 -0
- package/components/tree-select/src/tree-select.d.ts +11 -0
- package/components/tree-select/src/tree-select.mjs +0 -0
- package/components/tree-select/src/tree-select.vue.d.ts +12 -0
- package/components/tree-select/src/tree-select.vue_vue_type_script_setup_true_lang.mjs +113 -0
- package/components/tree-select/src/tree-select2.mjs +5 -0
- package/components/upload/index.d.ts +3 -0
- package/components/upload/index.mjs +3 -0
- package/components/upload/src/upload.d.ts +19 -0
- package/components/upload/src/upload.mjs +4 -0
- package/components/upload/src/upload.vue.d.ts +20 -0
- package/components/upload/src/upload.vue_vue_type_script_setup_true_lang.mjs +152 -0
- package/components/upload/src/upload.vue_vue_type_style_index_0_scoped_a8dbc054_lang.css +1 -0
- package/components/upload/src/upload2.mjs +7 -0
- package/constants/others.d.ts +1 -1
- package/constants/others.mjs +1 -1
- package/entry/Provider.mjs +5 -0
- package/entry/Provider.vue.d.ts +15 -0
- package/entry/Provider.vue_vue_type_script_setup_true_lang.mjs +42 -0
- package/entry/appParams.d.ts +11 -0
- package/entry/appParams.mjs +11 -0
- package/hooks/useAnimateAuto.d.ts +6 -0
- package/hooks/useAnimateAuto.mjs +14 -0
- package/hooks/useAppContext.d.ts +5 -0
- package/hooks/useAppContext.mjs +9 -0
- package/hooks/useCommon.d.ts +3 -0
- package/hooks/useCommon.mjs +7 -0
- package/hooks/useContextMenu.d.ts +13 -0
- package/hooks/useContextMenu.mjs +18 -0
- package/hooks/useDic.d.ts +16 -0
- package/hooks/useDic.mjs +58 -0
- package/hooks/useList.d.ts +20 -0
- package/hooks/useList.mjs +38 -0
- package/hooks/useMQ.d.ts +11 -0
- package/hooks/useMQ.mjs +11 -0
- package/hooks/useSysUser.d.ts +11 -0
- package/hooks/useSysUser.mjs +42 -0
- package/index.d.ts +64 -2
- package/index.mjs +43 -3
- package/package.json +19 -3
- package/plugins/alova/index.d.ts +14 -0
- package/plugins/alova/index.mjs +149 -0
- package/plugins/autoImport/_confirm.d.ts +9 -0
- package/plugins/autoImport/_confirm.mjs +32 -0
- package/plugins/autoImport/_dialog.d.ts +22 -0
- package/plugins/autoImport/_dialog.mjs +54 -0
- package/plugins/autoImport/_drawer.d.ts +17 -0
- package/plugins/autoImport/_drawer.mjs +36 -0
- package/plugins/autoImport/_loading.d.ts +17 -0
- package/plugins/autoImport/_loading.mjs +37 -0
- package/plugins/autoImport/_msg.d.ts +18 -0
- package/plugins/autoImport/_msg.mjs +22 -0
- package/plugins/autoImport/_notify.d.ts +16 -0
- package/plugins/autoImport/_notify.mjs +24 -0
- package/plugins/autoImport/dayjs.d.ts +2 -0
- package/plugins/autoImport/dayjs.mjs +7 -0
- package/plugins/others/directive.d.ts +9 -0
- package/plugins/others/directive.mjs +31 -0
- package/plugins/useContextMenuComponent/Index.mjs +7 -0
- package/plugins/useContextMenuComponent/Index.vue.d.ts +5 -0
- package/plugins/useContextMenuComponent/Index.vue_vue_type_script_setup_true_lang.mjs +26 -0
- package/plugins/useContextMenuComponent/Index.vue_vue_type_style_index_0_scoped_1f06355f_lang.css +1 -0
- package/plugins/useContextMenuComponent/MenuNode.mjs +6 -0
- package/plugins/useContextMenuComponent/MenuNode.vue.d.ts +10 -0
- package/plugins/useContextMenuComponent/MenuNode.vue_vue_type_script_setup_true_lang.mjs +54 -0
- package/plugins/useContextMenuComponent/MenuNode.vue_vue_type_style_index_0_lang.css +1 -0
- package/plugins/useContextMenuComponent/types.d.ts +12 -0
- package/router/index.d.ts +7 -0
- package/router/index.mjs +41 -0
- package/store/index.d.ts +4 -0
- package/store/index.mjs +7 -0
- package/store/modules/common.d.ts +21 -0
- package/store/modules/common.mjs +44 -0
- package/store/modules/excludeKPname.d.ts +9 -0
- package/store/modules/excludeKPname.mjs +24 -0
- package/store/modules/login.d.ts +13 -0
- package/store/modules/login.mjs +45 -0
- package/store/modules/recentRouters.d.ts +22 -0
- package/store/modules/recentRouters.mjs +43 -0
- package/store/modules/router.d.ts +48 -0
- package/store/modules/router.mjs +114 -0
- package/store/modules/user.d.ts +36 -0
- package/store/modules/user.mjs +51 -0
- package/types/module.d.ts +108 -0
- package/utils/boolean.d.ts +1 -1
- package/utils/boolean.mjs +1 -1
- package/utils/number.d.ts +1 -1
- package/utils/number.mjs +1 -1
- package/utils/string.d.ts +1 -1
- package/utils/string.mjs +1 -1
- package/utils/tool.d.ts +1 -1
- package/utils/tool.mjs +1 -1
- package/utils/tree.d.ts +1 -1
- package/utils/tree.mjs +1 -1
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_4a93d2ce_lang.css +0 -2
package/README.md
CHANGED
|
@@ -10,3 +10,13 @@
|
|
|
10
10
|
└─ ② 才执行 package.json 里的 build
|
|
11
11
|
→ pnpm run -C internal/build start
|
|
12
12
|
→ jiti buildfile.ts(clean / vite / copy)
|
|
13
|
+
|
|
14
|
+
- icons
|
|
15
|
+
- 选择地址[https://icon-sets.iconify.design/?category=UI+24px](https://icon-sets.iconify.design/?category=UI+24px)
|
|
16
|
+
- 使用方法
|
|
17
|
+
|
|
18
|
+
```vue
|
|
19
|
+
<template>
|
|
20
|
+
<TIcon icon="material-symbols-light:refresh"></TIcon>
|
|
21
|
+
</template>
|
|
22
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PopconfirmProps as PopconfirmProps$1 } from "../../popconfirm/src/popconfirm.js";
|
|
2
|
+
import "../../popconfirm/index.js";
|
|
3
|
+
import _default from "../../../store/modules/user.js";
|
|
4
|
+
import { ButtonProps as ButtonProps$1 } from "tdesign-vue-next";
|
|
5
|
+
import { ClassValue, StyleValue } from "vue";
|
|
6
|
+
//#region ../../packages/dlzn-ui/components/button/src/button.d.ts
|
|
7
|
+
export declare const buttonPropsInit: {
|
|
8
|
+
readonly autoIcon: true;
|
|
9
|
+
readonly autoLoading: true;
|
|
10
|
+
readonly autoTheme: true;
|
|
11
|
+
readonly loading: undefined;
|
|
12
|
+
};
|
|
13
|
+
export type ButtonProps = {
|
|
14
|
+
/**
|
|
15
|
+
* @description: 是否自动添加icon, 默认 true
|
|
16
|
+
*/
|
|
17
|
+
autoIcon?: boolean;
|
|
18
|
+
autoLoading?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description: 自动设置按钮的 theme, 默认 true
|
|
21
|
+
*/
|
|
22
|
+
autoTheme?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @description: 按钮icon, 如果设置了icon, autoIcon 就会失效
|
|
25
|
+
*/
|
|
26
|
+
icon?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @description: 按钮权限点
|
|
29
|
+
*/
|
|
30
|
+
permission?: Parameters<ReturnType<typeof _default>['checkPermissions']>[0];
|
|
31
|
+
popconfirm?: Omit<PopconfirmProps$1, 'default'>;
|
|
32
|
+
} & Omit<ButtonProps$1, 'content' | 'icon'> & {
|
|
33
|
+
class?: ClassValue;
|
|
34
|
+
style?: StyleValue;
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonProps } from "./button.js";
|
|
2
|
+
//#region ../../packages/dlzn-ui/components/button/src/button.vue.d.ts
|
|
3
|
+
declare var __VLS_25: string, __VLS_26: any, __VLS_46: string, __VLS_47: any;
|
|
4
|
+
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_25>]?: (props: typeof __VLS_26) => any; } & { [K in NonNullable<typeof __VLS_46>]?: (props: typeof __VLS_47) => any; };
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
autoIcon: boolean;
|
|
8
|
+
autoLoading: boolean;
|
|
9
|
+
autoTheme: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { _default as default };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { buttonPropsInit as e } from "./button.mjs";
|
|
2
|
+
import t from "../../../plugins/autoImport/_loading.mjs";
|
|
3
|
+
import n from "../../../store/modules/user.mjs";
|
|
4
|
+
import r from "../../icon/src/icon2.mjs";
|
|
5
|
+
import i from "../../popconfirm/src/popconfirm2.mjs";
|
|
6
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createVNode as d, defineComponent as f, getCurrentInstance as p, guardReactiveProps as m, h, mergeDefaults as g, mergeProps as _, normalizeProps as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, unref as w, useAttrs as T, watch as E, withCtx as D } from "vue";
|
|
7
|
+
import { useFocus as O } from "@vueuse/core";
|
|
8
|
+
import { Button as k } from "tdesign-vue-next";
|
|
9
|
+
//#region ../../packages/dlzn-ui/components/button/src/button.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var A = /*@__PURE__*/ f({
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
name: "TButton",
|
|
13
|
+
__name: "button",
|
|
14
|
+
props: /*@__PURE__*/ g({
|
|
15
|
+
autoIcon: { type: Boolean },
|
|
16
|
+
autoLoading: { type: Boolean },
|
|
17
|
+
autoTheme: { type: Boolean },
|
|
18
|
+
icon: {},
|
|
19
|
+
permission: {},
|
|
20
|
+
popconfirm: {},
|
|
21
|
+
block: { type: Boolean },
|
|
22
|
+
default: {},
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
form: {},
|
|
25
|
+
ghost: { type: Boolean },
|
|
26
|
+
href: {},
|
|
27
|
+
loading: { type: Boolean },
|
|
28
|
+
loadingProps: {},
|
|
29
|
+
shape: {},
|
|
30
|
+
size: {},
|
|
31
|
+
suffix: {},
|
|
32
|
+
tag: {},
|
|
33
|
+
theme: {},
|
|
34
|
+
type: {},
|
|
35
|
+
variant: {},
|
|
36
|
+
onClick: { type: Function },
|
|
37
|
+
class: { type: [
|
|
38
|
+
Boolean,
|
|
39
|
+
null,
|
|
40
|
+
String,
|
|
41
|
+
Object,
|
|
42
|
+
Array
|
|
43
|
+
] },
|
|
44
|
+
style: { type: [
|
|
45
|
+
Boolean,
|
|
46
|
+
null,
|
|
47
|
+
String,
|
|
48
|
+
Object,
|
|
49
|
+
Array
|
|
50
|
+
] }
|
|
51
|
+
}, e),
|
|
52
|
+
setup(e) {
|
|
53
|
+
let f = e, g = b("");
|
|
54
|
+
function A() {
|
|
55
|
+
if (!f.autoTheme || g.value.trim() === "") return {};
|
|
56
|
+
let e = /* @__PURE__ */ new Map([
|
|
57
|
+
[{ theme: "danger" }, ["删除", "清除"]],
|
|
58
|
+
[{
|
|
59
|
+
theme: "primary",
|
|
60
|
+
variant: "outline"
|
|
61
|
+
}, [
|
|
62
|
+
"上传",
|
|
63
|
+
"导入",
|
|
64
|
+
"导出",
|
|
65
|
+
"下载"
|
|
66
|
+
]],
|
|
67
|
+
[{ theme: "warning" }, ["预警"]]
|
|
68
|
+
]), t = {};
|
|
69
|
+
for (let [n, r] of e) if (r.some((e) => g.value.includes(e))) {
|
|
70
|
+
t = n;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
}
|
|
75
|
+
let j = b(!1), M = t.isLoading, N = b(null), { focused: P } = O(N), F, I;
|
|
76
|
+
E(M, (e) => {
|
|
77
|
+
e ? (clearTimeout(I), I = void 0, F = setTimeout(() => {
|
|
78
|
+
j.value = P.value, clearTimeout(F), F = void 0;
|
|
79
|
+
}, 150)) : F === void 0 ? I = setTimeout(() => {
|
|
80
|
+
j.value = !1;
|
|
81
|
+
}, 150) : (clearTimeout(F), F = void 0, j.value = !1);
|
|
82
|
+
}, { immediate: !0 }), E(P, (e) => {
|
|
83
|
+
e && M.value && (j.value = !0);
|
|
84
|
+
});
|
|
85
|
+
let L = o(() => f.loading === void 0 ? f.autoLoading ? j.value : !1 : f.loading), R = o(() => {
|
|
86
|
+
let e = {
|
|
87
|
+
...f,
|
|
88
|
+
...A(),
|
|
89
|
+
loading: L.value
|
|
90
|
+
};
|
|
91
|
+
return Object.keys(e).forEach((t) => {
|
|
92
|
+
e[t] === void 0 && delete e[t];
|
|
93
|
+
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
94
|
+
}), z = k, B = p();
|
|
95
|
+
function V(e) {
|
|
96
|
+
let t = e ?? {};
|
|
97
|
+
B.exposed = t, N.value = t.$el;
|
|
98
|
+
}
|
|
99
|
+
function H() {
|
|
100
|
+
g.value = N.value?.textContent ?? "";
|
|
101
|
+
}
|
|
102
|
+
let U = o(() => {
|
|
103
|
+
if (!f.autoIcon || g.value.trim() === "") return;
|
|
104
|
+
let e = {
|
|
105
|
+
"mdi:plus": [
|
|
106
|
+
"新增",
|
|
107
|
+
"添加",
|
|
108
|
+
"加入"
|
|
109
|
+
],
|
|
110
|
+
"mdi:cancel": ["取消"],
|
|
111
|
+
"mdi:remove": ["清除"],
|
|
112
|
+
"entypo:switch": ["开启"],
|
|
113
|
+
"material-symbols:pause": ["暂停"],
|
|
114
|
+
"ri:edit-line": ["编辑"],
|
|
115
|
+
"uil:edit": ["修改"],
|
|
116
|
+
"boxicons:send": ["发送"],
|
|
117
|
+
"carbon:executable-program": ["执行"],
|
|
118
|
+
"ri:save-line": ["保存", "提交"],
|
|
119
|
+
"uiw:down": ["展开"],
|
|
120
|
+
"uiw:up": ["收起"],
|
|
121
|
+
"mdi:close": ["关闭"],
|
|
122
|
+
"ri:reset-left-fill": ["重置"],
|
|
123
|
+
"tabler:refresh": [
|
|
124
|
+
"刷新",
|
|
125
|
+
"换一批",
|
|
126
|
+
"更新"
|
|
127
|
+
],
|
|
128
|
+
"tabler:restore": ["还原", "恢复"],
|
|
129
|
+
"codicon:debug-rerun": ["重跑"],
|
|
130
|
+
"ix:select-alt": ["选择"],
|
|
131
|
+
"iconoir:search": ["查询", "搜索"],
|
|
132
|
+
"material-symbols:cell-merge": ["合并"],
|
|
133
|
+
"mdi:upload-outline": ["上传", "导入"],
|
|
134
|
+
"carbon:inspection": ["检查"],
|
|
135
|
+
"material-symbols:delete-outline": ["删除"],
|
|
136
|
+
"mdi:download-outline": ["下载", "导出"],
|
|
137
|
+
"ri:alert-line": ["预警"],
|
|
138
|
+
"material-symbols:login": ["登录"],
|
|
139
|
+
"carbon:report": ["报告"],
|
|
140
|
+
"icon-park-outline:setting-config": ["配置"],
|
|
141
|
+
"subway:mark-1": ["标记"],
|
|
142
|
+
"tdesign:summary": ["汇总"],
|
|
143
|
+
"ph:open-ai-logo": ["AI"],
|
|
144
|
+
"material-symbols:comment-outline": ["评论"],
|
|
145
|
+
"hugeicons:view": ["预览", "查看"],
|
|
146
|
+
"majesticons:checkbox-list-detail-line": ["详情", "详细"],
|
|
147
|
+
"lucide:user-round": ["角色", "用户"],
|
|
148
|
+
"material-symbols:folder-outline": ["文件夹"],
|
|
149
|
+
"mdi:file-outline": ["文件"],
|
|
150
|
+
"bi:journal-text": ["日志"],
|
|
151
|
+
"material-symbols:security": ["权限"]
|
|
152
|
+
}, t;
|
|
153
|
+
for (let [n, r] of Object.entries(e)) if (r.some((e) => g.value.includes(e))) {
|
|
154
|
+
t = n;
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
if (t !== void 0) return t;
|
|
158
|
+
}), W = T(), G = o(() => _(W, {
|
|
159
|
+
...R.value,
|
|
160
|
+
ref: V
|
|
161
|
+
}, { class: "flex-shrink-0" })), K = o(() => {
|
|
162
|
+
if (f.popconfirm) return {
|
|
163
|
+
...f.popconfirm,
|
|
164
|
+
onVisibleChange: (...e) => {
|
|
165
|
+
f.popconfirm?.onVisibleChange?.(...e), !e[0] && (document.activeElement?.classList.contains("t-popconfirm__confirm") || document.activeElement?.classList.contains("t-popconfirm__cancel")) && (P.value = !0);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
return (t, o) => w(n)().checkPermissions(e.permission) ? (y(), l(a, { key: 0 }, [K.value ? (y(), s(i, v(_({ key: 0 }, K.value)), {
|
|
170
|
+
default: D(() => [(y(), s(C(h(w(z), G.value)), {
|
|
171
|
+
onVnodeMounted: H,
|
|
172
|
+
onVnodeUpdated: H
|
|
173
|
+
}, u({ _: 2 }, [e.icon || U.value ? {
|
|
174
|
+
name: "icon",
|
|
175
|
+
fn: D(() => [d(r, { icon: e.icon || U.value }, null, 8, ["icon"])]),
|
|
176
|
+
key: "0"
|
|
177
|
+
} : void 0, x(Object.keys(t.$slots), (e) => ({
|
|
178
|
+
name: e,
|
|
179
|
+
fn: D((n) => [S(t.$slots, e, v(m(n)), void 0, !0)])
|
|
180
|
+
}))]), 1536))]),
|
|
181
|
+
_: 3
|
|
182
|
+
}, 16)) : (y(), s(C(h(w(z), G.value)), {
|
|
183
|
+
key: 1,
|
|
184
|
+
onVnodeMounted: H,
|
|
185
|
+
onVnodeUpdated: H
|
|
186
|
+
}, u({ _: 2 }, [e.icon || U.value ? {
|
|
187
|
+
name: "icon",
|
|
188
|
+
fn: D(() => [d(r, { icon: e.icon || U.value }, null, 8, ["icon"])]),
|
|
189
|
+
key: "0"
|
|
190
|
+
} : void 0, x(Object.keys(t.$slots), (e) => ({
|
|
191
|
+
name: e,
|
|
192
|
+
fn: D((n) => [S(t.$slots, e, v(m(n)), void 0, !0)])
|
|
193
|
+
}))]), 1536))], 64)) : c("v-if", !0);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
//#endregion
|
|
197
|
+
export { A as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-v-f7b8d56d] .iconify{flex-shrink:0;font-size:var(--td-font-size-body-large)!important}[data-v-f7b8d56d] .iconify+.t-button__text:not(:empty){margin-left:8px}.t-size-s[data-v-f7b8d56d] .iconify{font-size:var(--td-font-size-body-medium)!important}.t-size-l[data-v-f7b8d56d] .iconify{font-size:var(--td-font-size-title-large)!important}.t-button+.t-button[data-v-f7b8d56d]{margin-left:var(--td-comp-margin-m)}.t-button+.t-button.t-size-s[data-v-f7b8d56d]{margin-left:var(--td-comp-margin-xs)}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./button.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
import './button.vue_vue_type_style_index_0_scoped_f7b8d56d_lang.css';/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/button/src/button.vue
|
|
5
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-f7b8d56d"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardProps as CardProps$1 } from "tdesign-vue-next";
|
|
2
|
-
//#region ../../packages/components/card/src/card.d.ts
|
|
2
|
+
//#region ../../packages/dlzn-ui/components/card/src/card.d.ts
|
|
3
3
|
export declare const cardPropsInit: {
|
|
4
4
|
readonly bodyFullHeight: false;
|
|
5
5
|
readonly headerBordered: true;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { CardProps } from "./card.js";
|
|
2
|
-
//#region ../../packages/components/card/src/card.vue.d.ts
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
2
|
+
//#region ../../packages/dlzn-ui/components/card/src/card.vue.d.ts
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
4
|
+
headerBordered: boolean;
|
|
5
|
+
shadow: boolean;
|
|
6
|
+
bodyFullHeight: boolean;
|
|
7
|
+
titleEllipsis: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
9
|
declare const _default: typeof __VLS_export;
|
|
5
10
|
//#endregion
|
|
6
11
|
export { _default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cardPropsInit as e } from "./card.mjs";
|
|
2
2
|
import { computed as t, createBlock as n, defineComponent as r, getCurrentInstance as i, h as a, mergeDefaults as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u } from "vue";
|
|
3
3
|
import { Card as d } from "tdesign-vue-next";
|
|
4
|
-
//#region ../../packages/components/card/src/card.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/card/src/card.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var f = /*@__PURE__*/ r({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
name: "TCard",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.title_ellipsis[data-v-d9b8941b] .t-card__header-wrapper{display:inline;overflow:hidden}.title_ellipsis[data-v-d9b8941b] .t-card__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-v-d9b8941b] .t-card__title{line-height:32px}[data-v-d9b8941b] .t-card__header{align-items:flex-start}[data-v-d9b8941b] .t-card__title--bordered:last-child{border-bottom:none}[data-v-d9b8941b] .t-card__body:has(>.t-form:last-child){padding-bottom:0}[data-v-d9b8941b] .t-card__actions{min-height:32px;color:inherit;align-items:center;display:flex}[data-v-d9b8941b] .t-loading__parent:has(.t-card__body.flex-1){flex-direction:column;flex:1;display:flex;overflow-y:auto}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
//#region ../../packages/components/card/src/card.vue
|
|
5
|
-
var n = /*#__PURE__*/ t
|
|
1
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import t from "./card.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './card.vue_vue_type_style_index_0_scoped_d9b8941b_lang.css';/* empty css */
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/card/src/card.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-d9b8941b"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckboxProps as CheckboxProps$1 } from "tdesign-vue-next";
|
|
2
|
+
//#region ../../packages/dlzn-ui/components/checkbox/src/checkbox.d.ts
|
|
3
|
+
export interface CheckboxProps extends Omit<CheckboxProps$1, 'checked' | 'default' | 'defaultChecked' | 'modelValue'> {
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CheckboxProps } from "./checkbox.js";
|
|
2
|
+
//#region ../../packages/dlzn-ui/components/checkbox/src/checkbox.vue.d.ts
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<CheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: boolean) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
value: string | number | boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { _default as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, defineComponent as n, getCurrentInstance as r, h as i, mergeProps as a, openBlock as o, resolveDynamicComponent as s, unref as c } from "vue";
|
|
2
|
+
import { Checkbox as l } from "tdesign-vue-next";
|
|
3
|
+
//#region ../../packages/dlzn-ui/components/checkbox/src/checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var u = /*@__PURE__*/ n({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
name: "TCheckbox",
|
|
7
|
+
__name: "checkbox",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
checkAll: { type: Boolean },
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
indeterminate: { type: Boolean },
|
|
16
|
+
label: {},
|
|
17
|
+
lazyLoad: { type: Boolean },
|
|
18
|
+
name: {},
|
|
19
|
+
readonly: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
title: {},
|
|
24
|
+
value: {
|
|
25
|
+
type: [
|
|
26
|
+
String,
|
|
27
|
+
Number,
|
|
28
|
+
Boolean
|
|
29
|
+
],
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
onChange: {}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(n, { emit: u }) {
|
|
36
|
+
let d = n, f = u, p = e(() => {
|
|
37
|
+
let e = { ...d };
|
|
38
|
+
return Object.keys(e).forEach((t) => {
|
|
39
|
+
e[t] === void 0 && delete e[t];
|
|
40
|
+
}), e;
|
|
41
|
+
}), m = l, h = r();
|
|
42
|
+
function g(e) {
|
|
43
|
+
h.exposed = e ?? {};
|
|
44
|
+
}
|
|
45
|
+
return (e, n) => (o(), t(s(i(c(m), a(e.$attrs, {
|
|
46
|
+
...p.value,
|
|
47
|
+
onChange: (...e) => {
|
|
48
|
+
f("update:modelValue", e[0]), d.onChange?.(...e);
|
|
49
|
+
},
|
|
50
|
+
ref: g
|
|
51
|
+
}), e.$slots))));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { u as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseListKey } from "../../../hooks/useList.js";
|
|
2
|
+
import { CheckboxGroupProps as CheckboxGroupProps$1, CheckboxGroupValue } from "tdesign-vue-next";
|
|
3
|
+
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.d.ts
|
|
4
|
+
export interface CheckboxGroupProps extends Omit<CheckboxGroupProps$1, 'defaultValue' | 'options' | 'value'> {
|
|
5
|
+
dicCode?: string;
|
|
6
|
+
modelValue: CheckboxGroupValue;
|
|
7
|
+
options?: CheckboxGroupProps$1['options'] | UseListKey;
|
|
8
|
+
showCheckAll?: boolean;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CheckboxGroupProps as CheckboxGroupProps$1 } from "./checkbox-group.js";
|
|
2
|
+
import { CheckboxGroupValue } from "tdesign-vue-next";
|
|
3
|
+
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue.d.ts
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<CheckboxGroupProps$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: CheckboxGroupValue) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxGroupProps$1> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: CheckboxGroupValue) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
showCheckAll: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _default as default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import e from "../../../plugins/autoImport/_notify.mjs";
|
|
2
|
+
import { isFalsy as t, isValidNumberString as n } from "../../../utils/boolean.mjs";
|
|
3
|
+
import { useDicOptions as r } from "../../../hooks/useDic.mjs";
|
|
4
|
+
import { useList as i } from "../../../hooks/useList.mjs";
|
|
5
|
+
import { computed as a, createBlock as o, defineComponent as s, getCurrentInstance as c, h as l, mergeProps as u, openBlock as d, resolveDynamicComponent as f, unref as p } from "vue";
|
|
6
|
+
import { CheckboxGroup as m } from "tdesign-vue-next";
|
|
7
|
+
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var h = /*@__PURE__*/ s({
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
name: "TCheckboxGroup",
|
|
11
|
+
__name: "checkbox-group",
|
|
12
|
+
props: {
|
|
13
|
+
dicCode: {},
|
|
14
|
+
modelValue: {},
|
|
15
|
+
options: {},
|
|
16
|
+
showCheckAll: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
lazyLoad: { type: Boolean },
|
|
25
|
+
max: {},
|
|
26
|
+
name: {},
|
|
27
|
+
readonly: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
onChange: {}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:modelValue"],
|
|
34
|
+
setup(s, { emit: h }) {
|
|
35
|
+
let g = s, _ = h, v = m, y = c();
|
|
36
|
+
function b(e) {
|
|
37
|
+
y.exposed = e ?? {};
|
|
38
|
+
}
|
|
39
|
+
let x = a(() => {
|
|
40
|
+
let t;
|
|
41
|
+
return g.dicCode ? (g.options && e.error("TCheckboxGroup: dicCode and options cannot be used together"), t = r(g.dicCode).value) : t = typeof g.options == "string" ? i(g.options).value : g.options, g.showCheckAll && (t === void 0 ? e.error("TCheckboxGroup: options is required, when showCheckAll is true") : t.unshift({
|
|
42
|
+
checkAll: !0,
|
|
43
|
+
label: "全选"
|
|
44
|
+
})), t;
|
|
45
|
+
}), S = a(() => {
|
|
46
|
+
if (!Array.isArray(g.modelValue)) e.error("TCheckboxGroup: modelValue must be an array");
|
|
47
|
+
else if (x.value !== void 0) {
|
|
48
|
+
let e = x.value.every((e) => typeof (e.value ?? e) == "string"), r = x.value.every((e) => typeof (e.value ?? e) == "number");
|
|
49
|
+
if (e) return g.modelValue.map((e) => t(e) ? e : String(e));
|
|
50
|
+
if (r) return g.modelValue.map((e) => n(e) ? Number(e) : e);
|
|
51
|
+
}
|
|
52
|
+
return g.modelValue;
|
|
53
|
+
}), C = a(() => {
|
|
54
|
+
let e = { ...g };
|
|
55
|
+
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
56
|
+
e[t] === void 0 && delete e[t];
|
|
57
|
+
}), e;
|
|
58
|
+
});
|
|
59
|
+
return (e, t) => (d(), o(f(l(p(v), u(e.$attrs, {
|
|
60
|
+
...C.value,
|
|
61
|
+
options: x.value,
|
|
62
|
+
modelValue: S.value,
|
|
63
|
+
onChange: (...e) => {
|
|
64
|
+
_("update:modelValue", e[0]), g.onChange?.(...e);
|
|
65
|
+
},
|
|
66
|
+
ref: b
|
|
67
|
+
}), e.$slots))));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { h as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AllowedComponentProps, FormExposed, FormInstance, FormItem, FormItemComponentPropsUnderlyingWithMeta, FormItemProps, FormProps, FormPropsData, GetFormData, ResolvedFormItem, SetFormData, SlotItem, formPropsInit } from "./src/form.js";
|
|
2
|
+
import _default from "./src/form.vue.js";
|
|
3
|
+
export { AllowedComponentProps, FormExposed, FormInstance, FormItem, FormItemComponentPropsUnderlyingWithMeta, FormItemProps, FormProps, FormPropsData, GetFormData, ResolvedFormItem, SetFormData, SlotItem, _default as TForm, formPropsInit };
|