dlzn-ui 1.72.0 → 1.74.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/{plugins/useContextMenuComponent/MenuNode.vue_vue_type_script_setup_true_lang.mjs → chunks/MenuNode-C10tFXwn.mjs} +4 -3
- package/{entry/Provider.vue_vue_type_script_setup_true_lang.mjs → chunks/Provider-DSTMx3l3.mjs} +4 -3
- package/{_virtual/_plugin-vue_export-helper.mjs → chunks/_plugin-vue_export-helper-B3ysoDQm.mjs} +1 -1
- package/{components/button/src/button.vue_vue_type_script_setup_true_lang.mjs → chunks/button-CM6_TpFv.mjs} +47 -45
- package/{components/card/src/card.vue_vue_type_script_setup_true_lang.mjs → chunks/card-BkFRQIOC.mjs} +17 -15
- package/{components/checkbox/src/checkbox.vue_vue_type_script_setup_true_lang.mjs → chunks/checkbox-CLlUEbkk.mjs} +4 -3
- package/{components/checkbox-group/src/checkbox-group.vue_vue_type_script_setup_true_lang.mjs → chunks/checkbox-group-B0BJCKGC.mjs} +14 -13
- package/{components/form/src/form.vue_vue_type_script_setup_true_lang.mjs → chunks/form-BcTtjD3t.mjs} +78 -76
- package/{components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs → chunks/icon-COjp1yrx.mjs} +4 -3
- package/chunks/image-Cunr39w4.mjs +46 -0
- package/{components/image-viewer/src/image-viewer.vue_vue_type_script_setup_true_lang.mjs → chunks/image-viewer-B1GG5ogH.mjs} +5 -4
- package/{components/input/src/input.vue_vue_type_script_setup_true_lang.mjs → chunks/input-CGJncROR.mjs} +5 -4
- package/{components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs → chunks/input-number-D5ZdJKFz.mjs} +20 -18
- package/{components/link/src/link.vue_vue_type_script_setup_true_lang.mjs → chunks/link-BuO-XtLZ.mjs} +5 -4
- package/{components/pagination/src/pagination.vue_vue_type_script_setup_true_lang.mjs → chunks/pagination-DP_iqkwA.mjs} +14 -12
- package/{components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs → chunks/popconfirm-DxWa7vWm.mjs} +4 -3
- package/{components/popup/src/popup.vue_vue_type_script_setup_true_lang.mjs → chunks/popup-BO_hNSY5.mjs} +4 -3
- package/{components/radio-group/src/radio-group.vue_vue_type_script_setup_true_lang.mjs → chunks/radio-group-Wa4NlEWK.mjs} +15 -14
- package/{components/range-input/src/range-input.vue_vue_type_script_setup_true_lang.mjs → chunks/range-input-DCI4kH6p.mjs} +6 -5
- package/{components/select/src/select.vue_vue_type_script_setup_true_lang.mjs → chunks/select-BIKnY5zf.mjs} +19 -18
- package/{components/slider/src/slider.vue_vue_type_script_setup_true_lang.mjs → chunks/slider-47gg2-Of.mjs} +5 -4
- package/{components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs → chunks/switch-b7w8iKxZ.mjs} +5 -4
- package/{components/tab-panel/src/tab-panel.vue_vue_type_script_setup_true_lang.mjs → chunks/tab-panel-CtYeK29i.mjs} +4 -3
- package/{components/tag/src/tag.vue_vue_type_script_setup_true_lang.mjs → chunks/tag-CtbOiURT.mjs} +6 -5
- package/{components/tag-input/src/tag-input.vue_vue_type_script_setup_true_lang.mjs → chunks/tag-input-DN7xD3ly.mjs} +5 -4
- package/{components/textarea/src/textarea.vue_vue_type_script_setup_true_lang.mjs → chunks/textarea-Cw15vQzL.mjs} +12 -10
- package/{components/tree/src/tree.vue_vue_type_script_setup_true_lang.mjs → chunks/tree-DEwIJXty.mjs} +5 -4
- package/{components/tree-select/src/tree-select.vue_vue_type_script_setup_true_lang.mjs → chunks/tree-select-D2kftzY6.mjs} +6 -5
- package/{components/upload/src/upload.vue_vue_type_script_setup_true_lang.mjs → chunks/upload-BE0MC-8C.mjs} +35 -34
- package/chunks/user-g1zF8j96.mjs +465 -0
- package/components/button/index.ts.mjs +3 -0
- package/components/button/src/button.vue.mjs +2 -0
- package/components/card/index.ts.mjs +3 -0
- package/components/card/src/card.vue.mjs +2 -0
- package/components/checkbox/index.ts.mjs +2 -0
- package/components/checkbox/src/checkbox.vue.mjs +2 -0
- package/components/checkbox-group/index.ts.mjs +2 -0
- package/components/checkbox-group/src/checkbox-group.vue.mjs +2 -0
- package/components/form/index.ts.mjs +3 -0
- package/components/form/src/form.vue.d.ts +1 -1
- package/components/form/src/form.vue.mjs +2 -0
- package/components/icon/index.ts.mjs +2 -0
- package/components/icon/src/icon.vue.mjs +2 -0
- package/components/image/index.ts.mjs +3 -0
- package/components/image/src/image.vue.mjs +2 -0
- package/components/image-viewer/index.ts.mjs +3 -0
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/image-viewer/src/image-viewer.vue.mjs +2 -0
- package/components/index.ts.mjs +42 -0
- package/components/input/index.ts.mjs +3 -0
- package/components/input/src/input.vue.d.ts +1 -1
- package/components/input/src/input.vue.mjs +2 -0
- package/components/input-number/index.ts.mjs +3 -0
- package/components/input-number/src/input-number.vue.d.ts +1 -1
- package/components/input-number/src/input-number.vue.mjs +2 -0
- package/components/link/index.ts.mjs +3 -0
- package/components/link/src/link.vue.mjs +2 -0
- package/components/pagination/index.ts.mjs +2 -0
- package/components/pagination/src/pagination.vue.mjs +2 -0
- package/components/popconfirm/index.ts.mjs +2 -0
- package/components/popconfirm/src/popconfirm.vue.mjs +2 -0
- package/components/popup/index.ts.mjs +2 -0
- package/components/popup/src/popup.vue.mjs +2 -0
- package/components/radio-group/index.ts.mjs +2 -0
- package/components/radio-group/src/radio-group.vue.mjs +2 -0
- package/components/range-input/index.ts.mjs +2 -0
- package/components/range-input/src/range-input.vue.d.ts +1 -1
- package/components/range-input/src/range-input.vue.mjs +2 -0
- package/components/select/index.ts.mjs +3 -0
- package/components/select/src/select.vue.d.ts +3 -3
- package/components/select/src/select.vue.mjs +2 -0
- package/components/slider/index.ts.mjs +3 -0
- package/components/slider/src/slider.vue.mjs +2 -0
- package/components/switch/index.ts.mjs +3 -0
- package/components/switch/src/switch.vue.mjs +2 -0
- package/components/tab-panel/index.ts.mjs +2 -0
- package/components/tab-panel/src/tab-panel.vue.mjs +2 -0
- package/components/tag/index.ts.mjs +3 -0
- package/components/tag/src/tag.vue.d.ts +1 -1
- package/components/tag/src/tag.vue.mjs +2 -0
- package/components/tag-input/index.ts.mjs +3 -0
- package/components/tag-input/src/tag-input.vue.mjs +2 -0
- package/components/textarea/index.ts.mjs +2 -0
- package/components/textarea/src/textarea.vue.d.ts +1 -1
- package/components/textarea/src/textarea.vue.mjs +2 -0
- package/components/tree/index.ts.mjs +3 -0
- package/components/tree/src/{tree.mjs → tree.ts.mjs} +2 -2
- package/components/tree/src/tree.vue.d.ts +1 -1
- package/components/tree/src/tree.vue.mjs +2 -0
- package/components/tree-select/index.ts.mjs +2 -0
- package/components/tree-select/src/tree-select.vue.mjs +2 -0
- package/components/upload/index.ts.mjs +3 -0
- package/components/upload/src/upload.vue.d.ts +2 -2
- package/components/upload/src/upload.vue.mjs +2 -0
- package/constants/{index.mjs → index.ts.mjs} +1 -1
- package/entry/Provider.vue.mjs +2 -0
- package/hooks/useDic.ts.mjs +2 -0
- package/hooks/{useList.mjs → useList.ts.mjs} +1 -1
- package/hooks/useSysUser.ts.mjs +2 -0
- package/index.ts.mjs +43 -0
- package/package.json +5 -1
- package/plugins/alova/index.ts.mjs +2 -0
- package/plugins/autoImport/{_confirm.mjs → _confirm.ts.mjs} +1 -1
- package/plugins/autoImport/{_dialog.mjs → _dialog.ts.mjs} +2 -2
- package/plugins/autoImport/{_drawer.mjs → _drawer.ts.mjs} +2 -2
- package/plugins/autoImport/{_loading.mjs → _loading.ts.mjs} +1 -1
- package/plugins/autoImport/{_msg.mjs → _msg.ts.mjs} +1 -1
- package/plugins/autoImport/{_notify.mjs → _notify.ts.mjs} +1 -1
- package/plugins/others/{directive.mjs → directive.ts.mjs} +12 -12
- package/plugins/useContextMenuComponent/Index.vue.mjs +28 -0
- package/plugins/useContextMenuComponent/MenuNode.vue.mjs +2 -0
- package/store/modules/common.ts.mjs +2 -0
- package/store/modules/login.ts.mjs +2 -0
- package/store/modules/{recentRouters.mjs → recentRouters.ts.mjs} +1 -1
- package/store/modules/router.ts.mjs +2 -0
- package/store/modules/user.ts.mjs +2 -0
- package/utils/{boolean.mjs → boolean.ts.mjs} +1 -1
- package/utils/{index.mjs → index.ts.mjs} +5 -5
- package/utils/{number.mjs → number.ts.mjs} +1 -1
- package/components/button/index.mjs +0 -3
- package/components/button/src/button2.mjs +0 -7
- package/components/card/index.mjs +0 -3
- package/components/card/src/card2.mjs +0 -7
- package/components/checkbox/index.mjs +0 -2
- package/components/checkbox/src/checkbox2.mjs +0 -5
- package/components/checkbox-group/index.mjs +0 -2
- package/components/checkbox-group/src/checkbox-group2.mjs +0 -5
- package/components/form/index.mjs +0 -3
- package/components/form/src/form2.mjs +0 -7
- package/components/icon/index.mjs +0 -2
- package/components/icon/src/icon2.mjs +0 -5
- package/components/image/index.mjs +0 -3
- package/components/image/src/image.vue_vue_type_script_setup_true_lang.mjs +0 -45
- package/components/image/src/image2.mjs +0 -7
- package/components/image-viewer/index.mjs +0 -3
- package/components/image-viewer/src/image-viewer2.mjs +0 -5
- package/components/index.mjs +0 -42
- package/components/input/index.mjs +0 -3
- package/components/input/src/input2.mjs +0 -6
- package/components/input-number/index.mjs +0 -3
- package/components/input-number/src/input-number2.mjs +0 -7
- package/components/link/index.mjs +0 -3
- package/components/link/src/link2.mjs +0 -5
- package/components/pagination/index.mjs +0 -2
- package/components/pagination/src/pagination2.mjs +0 -7
- package/components/popconfirm/index.mjs +0 -2
- package/components/popconfirm/src/popconfirm2.mjs +0 -5
- package/components/popup/index.mjs +0 -2
- package/components/popup/src/popup2.mjs +0 -5
- package/components/radio-group/index.mjs +0 -2
- package/components/radio-group/src/radio-group2.mjs +0 -5
- package/components/range-input/index.mjs +0 -2
- package/components/range-input/src/range-input2.mjs +0 -5
- package/components/select/index.mjs +0 -3
- package/components/select/src/select2.mjs +0 -6
- package/components/slider/index.mjs +0 -3
- package/components/slider/src/slider2.mjs +0 -5
- package/components/switch/index.mjs +0 -3
- package/components/switch/src/switch2.mjs +0 -5
- package/components/tab-panel/index.mjs +0 -2
- package/components/tab-panel/src/tab-panel2.mjs +0 -5
- package/components/tag/index.mjs +0 -3
- package/components/tag/src/tag2.mjs +0 -5
- package/components/tag-input/index.mjs +0 -3
- package/components/tag-input/src/tag-input2.mjs +0 -5
- package/components/textarea/index.mjs +0 -2
- package/components/textarea/src/textarea2.mjs +0 -7
- package/components/tree/index.mjs +0 -3
- package/components/tree/src/tree2.mjs +0 -5
- package/components/tree-select/index.mjs +0 -2
- package/components/tree-select/src/tree-select2.mjs +0 -5
- package/components/upload/index.mjs +0 -3
- package/components/upload/src/upload2.mjs +0 -7
- package/entry/Provider.mjs +0 -5
- package/hooks/useDic.mjs +0 -58
- package/hooks/useSysUser.mjs +0 -42
- package/index.mjs +0 -42
- package/plugins/alova/index.mjs +0 -149
- package/plugins/useContextMenuComponent/Index.mjs +0 -7
- package/plugins/useContextMenuComponent/Index.vue_vue_type_script_setup_true_lang.mjs +0 -26
- package/plugins/useContextMenuComponent/MenuNode.mjs +0 -6
- package/store/modules/common.mjs +0 -44
- package/store/modules/login.mjs +0 -45
- package/store/modules/router.mjs +0 -114
- package/store/modules/user.mjs +0 -51
- package/virtual-app-params.d.mjs +0 -0
- package/virtual-app-params.d.ts +0 -6
- /package/{plugins/useContextMenuComponent/Index.vue_vue_type_style_index_0_scoped_1f06355f_lang.css → assets/Index-CRPjy593.css} +0 -0
- /package/{plugins/useContextMenuComponent/MenuNode.vue_vue_type_style_index_0_lang.css → assets/MenuNode-BWhgOPrH.css} +0 -0
- /package/{components/button/src/button.vue_vue_type_style_index_0_scoped_f7b8d56d_lang.css → assets/button-ySOkGcQh.css} +0 -0
- /package/{components/card/src/card.vue_vue_type_style_index_0_scoped_d9b8941b_lang.css → assets/card-BQk39jnB.css} +0 -0
- /package/{components/form/src/form.vue_vue_type_style_index_0_scoped_178687e3_lang.css → assets/form-DD3wq8_T.css} +0 -0
- /package/{components/image/src/image.vue_vue_type_style_index_0_scoped_beb4af3d_lang.css → assets/image-BpCE1tpL.css} +0 -0
- /package/{components/input/src/input.vue_vue_type_style_index_0_lang.css → assets/input-DUBiAo2D.css} +0 -0
- /package/{components/input-number/src/input-number.vue_vue_type_style_index_0_scoped_5f2e8637_lang.css → assets/input-number-DBKtI-Fk.css} +0 -0
- /package/{components/pagination/src/pagination.vue_vue_type_style_index_0_scoped_ea93e350_lang.css → assets/pagination-DqSXT3ik.css} +0 -0
- /package/{components/select/src/select.vue_vue_type_style_index_0_lang.css → assets/select-cEZdThYc.css} +0 -0
- /package/{components/textarea/src/textarea.vue_vue_type_style_index_0_scoped_31251e1e_lang.css → assets/textarea-Dm5xaBIR.css} +0 -0
- /package/{components/upload/src/upload.vue_vue_type_style_index_0_scoped_a8dbc054_lang.css → assets/upload-BJHvcU-9.css} +0 -0
- /package/components/button/src/{button.mjs → button.ts.mjs} +0 -0
- /package/components/card/src/{card.mjs → card.ts.mjs} +0 -0
- /package/components/checkbox/src/{checkbox.mjs → checkbox.ts.mjs} +0 -0
- /package/components/checkbox-group/src/{checkbox-group.mjs → checkbox-group.ts.mjs} +0 -0
- /package/components/form/src/{form.mjs → form.ts.mjs} +0 -0
- /package/components/icon/src/{icon.mjs → icon.ts.mjs} +0 -0
- /package/components/image/src/{image.mjs → image.ts.mjs} +0 -0
- /package/components/image-viewer/src/{image-viewer.mjs → image-viewer.ts.mjs} +0 -0
- /package/components/input/src/{input.mjs → input.ts.mjs} +0 -0
- /package/components/input-number/src/{input-number.mjs → input-number.ts.mjs} +0 -0
- /package/components/link/src/{link.mjs → link.ts.mjs} +0 -0
- /package/components/pagination/src/{pagination.mjs → pagination.ts.mjs} +0 -0
- /package/components/popconfirm/src/{popconfirm.mjs → popconfirm.ts.mjs} +0 -0
- /package/components/popup/src/{popup.mjs → popup.ts.mjs} +0 -0
- /package/components/radio-group/src/{radio-group.mjs → radio-group.ts.mjs} +0 -0
- /package/components/range-input/src/{range-input.mjs → range-input.ts.mjs} +0 -0
- /package/components/select/src/{select.mjs → select.ts.mjs} +0 -0
- /package/components/slider/src/{slider.mjs → slider.ts.mjs} +0 -0
- /package/components/switch/src/{switch.mjs → switch.ts.mjs} +0 -0
- /package/components/tab-panel/src/{tab-panel.mjs → tab-panel.ts.mjs} +0 -0
- /package/components/tag/src/{tag.mjs → tag.ts.mjs} +0 -0
- /package/components/tag-input/src/{tag-input.mjs → tag-input.ts.mjs} +0 -0
- /package/components/textarea/src/{textarea.mjs → textarea.ts.mjs} +0 -0
- /package/components/tree-select/src/{tree-select.mjs → tree-select.ts.mjs} +0 -0
- /package/components/upload/src/{upload.mjs → upload.ts.mjs} +0 -0
- /package/constants/{others.mjs → others.ts.mjs} +0 -0
- /package/hooks/{useAnimateAuto.mjs → useAnimateAuto.ts.mjs} +0 -0
- /package/hooks/{useAppContext.mjs → useAppContext.ts.mjs} +0 -0
- /package/hooks/{useCommon.mjs → useCommon.ts.mjs} +0 -0
- /package/hooks/{useContextMenu.mjs → useContextMenu.ts.mjs} +0 -0
- /package/hooks/{useMQ.mjs → useMQ.ts.mjs} +0 -0
- /package/plugins/autoImport/{dayjs.mjs → dayjs.ts.mjs} +0 -0
- /package/router/{index.mjs → index.ts.mjs} +0 -0
- /package/store/{index.mjs → index.ts.mjs} +0 -0
- /package/store/modules/{excludeKPname.mjs → excludeKPname.ts.mjs} +0 -0
- /package/utils/{string.mjs → string.ts.mjs} +0 -0
- /package/utils/{tool.mjs → tool.ts.mjs} +0 -0
- /package/utils/{tree.mjs → tree.ts.mjs} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Fragment as e, createBlock as t, createElementBlock as n, createSlots as r, createVNode as i, defineComponent as a, mergeProps as o, openBlock as s, renderList as c, resolveComponent as l, unref as u, withCtx as d } from "vue";
|
|
2
2
|
import { Icon as f, MenuItem as p, Submenu as m } from "tdesign-vue-next";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import '../assets/MenuNode-BWhgOPrH.css';//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/plugins/useContextMenuComponent/MenuNode.vue
|
|
5
|
+
var h = /* @__PURE__ */ a({
|
|
5
6
|
name: "MenuNode",
|
|
6
7
|
__name: "MenuNode",
|
|
7
8
|
props: {
|
|
@@ -51,4 +52,4 @@ var h = /*@__PURE__*/ a({
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
//#endregion
|
|
54
|
-
export { h as
|
|
55
|
+
export { h as t };
|
package/{entry/Provider.vue_vue_type_script_setup_true_lang.mjs → chunks/Provider-DSTMx3l3.mjs}
RENAMED
|
@@ -2,8 +2,9 @@ import { createBlock as e, createVNode as t, defineComponent as n, openBlock as
|
|
|
2
2
|
import { Button as c, Icon as l } from "tdesign-vue-next";
|
|
3
3
|
import { ElConfigProvider as u } from "element-plus";
|
|
4
4
|
import d from "element-plus/es/locale/lang/zh-cn";
|
|
5
|
-
//#
|
|
6
|
-
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ../../packages/dlzn-ui/entry/Provider.vue
|
|
7
|
+
var f = /* @__PURE__ */ n({
|
|
7
8
|
__name: "Provider",
|
|
8
9
|
setup(n) {
|
|
9
10
|
let f = { table: {
|
|
@@ -39,4 +40,4 @@ var f = /*@__PURE__*/ n({
|
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
42
|
//#endregion
|
|
42
|
-
export { f as
|
|
43
|
+
export { f as t };
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { buttonPropsInit as e } from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { buttonPropsInit as e } from "../components/button/src/button.ts.mjs";
|
|
2
|
+
import t from "../plugins/autoImport/_loading.ts.mjs";
|
|
3
|
+
import { n } from "./user-g1zF8j96.mjs";
|
|
4
|
+
import { t as r } from "./icon-COjp1yrx.mjs";
|
|
5
|
+
import { t as i } from "./popconfirm-DxWa7vWm.mjs";
|
|
6
|
+
import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
7
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createSlots as d, createVNode as f, defineComponent as p, getCurrentInstance as m, guardReactiveProps as h, h as g, mergeDefaults as _, mergeProps as v, normalizeProps as y, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as w, unref as T, useAttrs as E, watch as D, withCtx as O } from "vue";
|
|
8
|
+
import { useFocus as k } from "@vueuse/core";
|
|
9
|
+
import { Button as A } from "tdesign-vue-next";
|
|
10
|
+
import '../assets/button-ySOkGcQh.css';//#endregion
|
|
11
|
+
//#region ../../packages/dlzn-ui/components/button/src/button.vue
|
|
12
|
+
var j = /*#__PURE__*/ a(/* @__PURE__ */ p({
|
|
11
13
|
inheritAttrs: !1,
|
|
12
14
|
name: "TButton",
|
|
13
15
|
__name: "button",
|
|
14
|
-
props: /*@__PURE__*/
|
|
16
|
+
props: /*@__PURE__*/ _({
|
|
15
17
|
autoIcon: { type: Boolean },
|
|
16
18
|
autoLoading: { type: Boolean },
|
|
17
19
|
autoTheme: { type: Boolean },
|
|
@@ -50,9 +52,9 @@ var A = /*@__PURE__*/ f({
|
|
|
50
52
|
] }
|
|
51
53
|
}, e),
|
|
52
54
|
setup(e) {
|
|
53
|
-
let
|
|
54
|
-
function
|
|
55
|
-
if (!
|
|
55
|
+
let a = e, p = x("");
|
|
56
|
+
function _() {
|
|
57
|
+
if (!a.autoTheme || p.value.trim() === "") return {};
|
|
56
58
|
let e = /* @__PURE__ */ new Map([
|
|
57
59
|
[{ theme: "danger" }, ["删除", "清除"]],
|
|
58
60
|
[{
|
|
@@ -66,41 +68,41 @@ var A = /*@__PURE__*/ f({
|
|
|
66
68
|
]],
|
|
67
69
|
[{ theme: "warning" }, ["预警"]]
|
|
68
70
|
]), t = {};
|
|
69
|
-
for (let [n, r] of e) if (r.some((e) =>
|
|
71
|
+
for (let [n, r] of e) if (r.some((e) => p.value.includes(e))) {
|
|
70
72
|
t = n;
|
|
71
73
|
break;
|
|
72
74
|
}
|
|
73
75
|
return t;
|
|
74
76
|
}
|
|
75
|
-
let j =
|
|
76
|
-
|
|
77
|
+
let j = x(!1), M = t.isLoading, N = x(null), { focused: P } = k(N), F, I;
|
|
78
|
+
D(M, (e) => {
|
|
77
79
|
e ? (clearTimeout(I), I = void 0, F = setTimeout(() => {
|
|
78
80
|
j.value = P.value, clearTimeout(F), F = void 0;
|
|
79
81
|
}, 150)) : F === void 0 ? I = setTimeout(() => {
|
|
80
82
|
j.value = !1;
|
|
81
83
|
}, 150) : (clearTimeout(F), F = void 0, j.value = !1);
|
|
82
|
-
}, { immediate: !0 }),
|
|
84
|
+
}, { immediate: !0 }), D(P, (e) => {
|
|
83
85
|
e && M.value && (j.value = !0);
|
|
84
86
|
});
|
|
85
|
-
let L =
|
|
87
|
+
let L = s(() => a.loading === void 0 ? a.autoLoading ? j.value : !1 : a.loading), R = s(() => {
|
|
86
88
|
let e = {
|
|
87
|
-
...
|
|
88
|
-
...
|
|
89
|
+
...a,
|
|
90
|
+
..._(),
|
|
89
91
|
loading: L.value
|
|
90
92
|
};
|
|
91
93
|
return Object.keys(e).forEach((t) => {
|
|
92
94
|
e[t] === void 0 && delete e[t];
|
|
93
95
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
94
|
-
}), z =
|
|
96
|
+
}), z = A, B = m();
|
|
95
97
|
function V(e) {
|
|
96
98
|
let t = e ?? {};
|
|
97
99
|
B.exposed = t, N.value = t.$el;
|
|
98
100
|
}
|
|
99
101
|
function H() {
|
|
100
|
-
|
|
102
|
+
p.value = N.value?.textContent ?? "";
|
|
101
103
|
}
|
|
102
|
-
let U =
|
|
103
|
-
if (!
|
|
104
|
+
let U = s(() => {
|
|
105
|
+
if (!a.autoIcon || p.value.trim() === "") return;
|
|
104
106
|
let e = {
|
|
105
107
|
"mdi:plus": [
|
|
106
108
|
"新增",
|
|
@@ -150,48 +152,48 @@ var A = /*@__PURE__*/ f({
|
|
|
150
152
|
"bi:journal-text": ["日志"],
|
|
151
153
|
"material-symbols:security": ["权限"]
|
|
152
154
|
}, t;
|
|
153
|
-
for (let [n, r] of Object.entries(e)) if (r.some((e) =>
|
|
155
|
+
for (let [n, r] of Object.entries(e)) if (r.some((e) => p.value.includes(e))) {
|
|
154
156
|
t = n;
|
|
155
157
|
break;
|
|
156
158
|
}
|
|
157
159
|
if (t !== void 0) return t;
|
|
158
|
-
}), W =
|
|
160
|
+
}), W = E(), G = s(() => v(W, {
|
|
159
161
|
...R.value,
|
|
160
162
|
ref: V
|
|
161
|
-
}, { class: "flex-shrink-0" })), K =
|
|
162
|
-
if (
|
|
163
|
-
...
|
|
163
|
+
}, { class: "flex-shrink-0" })), K = s(() => {
|
|
164
|
+
if (a.popconfirm) return {
|
|
165
|
+
...a.popconfirm,
|
|
164
166
|
onVisibleChange: (...e) => {
|
|
165
|
-
|
|
167
|
+
a.popconfirm?.onVisibleChange?.(...e), !e[0] && (document.activeElement?.classList.contains("t-popconfirm__confirm") || document.activeElement?.classList.contains("t-popconfirm__cancel")) && (P.value = !0);
|
|
166
168
|
}
|
|
167
169
|
};
|
|
168
170
|
});
|
|
169
|
-
return (t,
|
|
170
|
-
default:
|
|
171
|
+
return (t, a) => T(n)().checkPermissions(e.permission) ? (b(), u(o, { key: 0 }, [K.value ? (b(), c(i, y(v({ key: 0 }, K.value)), {
|
|
172
|
+
default: O(() => [(b(), c(w(g(T(z), G.value)), {
|
|
171
173
|
onVnodeMounted: H,
|
|
172
174
|
onVnodeUpdated: H
|
|
173
|
-
},
|
|
175
|
+
}, d({ _: 2 }, [e.icon || U.value ? {
|
|
174
176
|
name: "icon",
|
|
175
|
-
fn:
|
|
177
|
+
fn: O(() => [f(r, { icon: e.icon || U.value }, null, 8, ["icon"])]),
|
|
176
178
|
key: "0"
|
|
177
|
-
} : void 0,
|
|
179
|
+
} : void 0, S(Object.keys(t.$slots), (e) => ({
|
|
178
180
|
name: e,
|
|
179
|
-
fn:
|
|
181
|
+
fn: O((n) => [C(t.$slots, e, y(h(n)), void 0, !0)])
|
|
180
182
|
}))]), 1536))]),
|
|
181
183
|
_: 3
|
|
182
|
-
}, 16)) : (
|
|
184
|
+
}, 16)) : (b(), c(w(g(T(z), G.value)), {
|
|
183
185
|
key: 1,
|
|
184
186
|
onVnodeMounted: H,
|
|
185
187
|
onVnodeUpdated: H
|
|
186
|
-
},
|
|
188
|
+
}, d({ _: 2 }, [e.icon || U.value ? {
|
|
187
189
|
name: "icon",
|
|
188
|
-
fn:
|
|
190
|
+
fn: O(() => [f(r, { icon: e.icon || U.value }, null, 8, ["icon"])]),
|
|
189
191
|
key: "0"
|
|
190
|
-
} : void 0,
|
|
192
|
+
} : void 0, S(Object.keys(t.$slots), (e) => ({
|
|
191
193
|
name: e,
|
|
192
|
-
fn:
|
|
193
|
-
}))]), 1536))], 64)) :
|
|
194
|
+
fn: O((n) => [C(t.$slots, e, y(h(n)), void 0, !0)])
|
|
195
|
+
}))]), 1536))], 64)) : l("v-if", !0);
|
|
194
196
|
}
|
|
195
|
-
});
|
|
197
|
+
}), [["__scopeId", "data-v-f7b8d56d"]]);
|
|
196
198
|
//#endregion
|
|
197
|
-
export {
|
|
199
|
+
export { j as t };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
2
|
+
import { cardPropsInit as t } from "../components/card/src/card.ts.mjs";
|
|
3
|
+
import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeDefaults as s, mergeProps as c, openBlock as l, resolveDynamicComponent as u, unref as d } from "vue";
|
|
4
|
+
import { Card as f } from "tdesign-vue-next";
|
|
5
|
+
import '../assets/card-BQk39jnB.css';//#endregion
|
|
6
|
+
//#region ../../packages/dlzn-ui/components/card/src/card.vue
|
|
7
|
+
var p = /*#__PURE__*/ e(/* @__PURE__ */ i({
|
|
6
8
|
inheritAttrs: !1,
|
|
7
9
|
name: "TCard",
|
|
8
10
|
__name: "card",
|
|
9
|
-
props: /*@__PURE__*/
|
|
11
|
+
props: /*@__PURE__*/ s({
|
|
10
12
|
actions: {},
|
|
11
13
|
avatar: {},
|
|
12
14
|
bordered: { type: Boolean },
|
|
@@ -33,26 +35,26 @@ var f = /*@__PURE__*/ r({
|
|
|
33
35
|
title: {},
|
|
34
36
|
bodyFullHeight: { type: Boolean },
|
|
35
37
|
titleEllipsis: { type: Boolean }
|
|
36
|
-
},
|
|
38
|
+
}, t),
|
|
37
39
|
setup(e) {
|
|
38
|
-
let
|
|
39
|
-
let e = { ...
|
|
40
|
+
let t = e, i = n(() => {
|
|
41
|
+
let e = { ...t };
|
|
40
42
|
return delete e.bodyFullHeight, delete e.titleEllipsis, Object.keys(e).forEach((t) => {
|
|
41
43
|
e[t] === void 0 && delete e[t];
|
|
42
44
|
}), e;
|
|
43
|
-
}),
|
|
45
|
+
}), s = f, p = a();
|
|
44
46
|
function m(e) {
|
|
45
47
|
p.exposed = e ?? {};
|
|
46
48
|
}
|
|
47
|
-
return (t,
|
|
48
|
-
...
|
|
49
|
+
return (t, n) => (l(), r(u(o(d(s), c(t.$attrs, {
|
|
50
|
+
...i.value,
|
|
49
51
|
ref: m,
|
|
50
|
-
bodyClassName: [e.bodyFullHeight ? "flex-1" : "",
|
|
52
|
+
bodyClassName: [e.bodyFullHeight ? "flex-1" : "", i.value.bodyClassName].filter(Boolean).join(" ")
|
|
51
53
|
}, { class: {
|
|
52
54
|
"flex flex-col": e.bodyFullHeight,
|
|
53
55
|
title_ellipsis: e.titleEllipsis
|
|
54
56
|
} }), t.$slots))));
|
|
55
57
|
}
|
|
56
|
-
});
|
|
58
|
+
}), [["__scopeId", "data-v-d9b8941b"]]);
|
|
57
59
|
//#endregion
|
|
58
|
-
export {
|
|
60
|
+
export { p as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
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
2
|
import { Checkbox as l } from "tdesign-vue-next";
|
|
3
|
-
//#
|
|
4
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/checkbox/src/checkbox.vue
|
|
5
|
+
var u = /* @__PURE__ */ n({
|
|
5
6
|
inheritAttrs: !1,
|
|
6
7
|
name: "TCheckbox",
|
|
7
8
|
__name: "checkbox",
|
|
@@ -52,4 +53,4 @@ var u = /*@__PURE__*/ n({
|
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
//#endregion
|
|
55
|
-
export { u as
|
|
56
|
+
export { u as t };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useList as i } from "
|
|
1
|
+
import e from "../plugins/autoImport/_notify.ts.mjs";
|
|
2
|
+
import { m as t } from "./user-g1zF8j96.mjs";
|
|
3
|
+
import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.ts.mjs";
|
|
4
|
+
import { useList as i } from "../hooks/useList.ts.mjs";
|
|
5
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
6
|
import { CheckboxGroup as m } from "tdesign-vue-next";
|
|
7
|
-
//#
|
|
8
|
-
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
9
|
+
var h = /* @__PURE__ */ s({
|
|
9
10
|
inheritAttrs: !1,
|
|
10
11
|
name: "TCheckboxGroup",
|
|
11
12
|
__name: "checkbox-group",
|
|
@@ -37,17 +38,17 @@ var h = /*@__PURE__*/ s({
|
|
|
37
38
|
y.exposed = e ?? {};
|
|
38
39
|
}
|
|
39
40
|
let x = a(() => {
|
|
40
|
-
let
|
|
41
|
-
return g.dicCode ? (g.options && e.error("TCheckboxGroup: dicCode and options cannot be used together"),
|
|
41
|
+
let n;
|
|
42
|
+
return g.dicCode ? (g.options && e.error("TCheckboxGroup: dicCode and options cannot be used together"), n = t(g.dicCode).value) : n = typeof g.options == "string" ? i(g.options).value : g.options, g.showCheckAll && (n === void 0 ? e.error("TCheckboxGroup: options is required, when showCheckAll is true") : n.unshift({
|
|
42
43
|
checkAll: !0,
|
|
43
44
|
label: "全选"
|
|
44
|
-
})),
|
|
45
|
+
})), n;
|
|
45
46
|
}), S = a(() => {
|
|
46
47
|
if (!Array.isArray(g.modelValue)) e.error("TCheckboxGroup: modelValue must be an array");
|
|
47
48
|
else if (x.value !== void 0) {
|
|
48
|
-
let e = x.value.every((e) => typeof (e.value ?? e) == "string"),
|
|
49
|
-
if (e) return g.modelValue.map((e) =>
|
|
50
|
-
if (
|
|
49
|
+
let e = x.value.every((e) => typeof (e.value ?? e) == "string"), t = x.value.every((e) => typeof (e.value ?? e) == "number");
|
|
50
|
+
if (e) return g.modelValue.map((e) => n(e) ? e : String(e));
|
|
51
|
+
if (t) return g.modelValue.map((e) => r(e) ? Number(e) : e);
|
|
51
52
|
}
|
|
52
53
|
return g.modelValue;
|
|
53
54
|
}), C = a(() => {
|
|
@@ -68,4 +69,4 @@ var h = /*@__PURE__*/ s({
|
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
71
|
//#endregion
|
|
71
|
-
export { h as
|
|
72
|
+
export { h as t };
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import { isFalsy as n } from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import o from "
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import l from "
|
|
11
|
-
import u from "
|
|
12
|
-
import d from "
|
|
13
|
-
import f from "
|
|
14
|
-
import p from "
|
|
15
|
-
import m from "
|
|
16
|
-
import ee from "
|
|
17
|
-
import te from "
|
|
18
|
-
import ne from "
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import B from "
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import e from "../plugins/autoImport/_msg.ts.mjs";
|
|
2
|
+
import t from "../plugins/autoImport/_notify.ts.mjs";
|
|
3
|
+
import { isFalsy as n } from "../utils/boolean.ts.mjs";
|
|
4
|
+
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
5
|
+
import { t as i } from "./checkbox-CLlUEbkk.mjs";
|
|
6
|
+
import { t as a } from "./checkbox-group-B0BJCKGC.mjs";
|
|
7
|
+
import { formPropsInit as o } from "../components/form/src/form.ts.mjs";
|
|
8
|
+
import { t as s } from "./input-number-D5ZdJKFz.mjs";
|
|
9
|
+
import { t as c } from "./input-CGJncROR.mjs";
|
|
10
|
+
import { t as l } from "./radio-group-Wa4NlEWK.mjs";
|
|
11
|
+
import { t as u } from "./range-input-DCI4kH6p.mjs";
|
|
12
|
+
import { t as d } from "./select-BIKnY5zf.mjs";
|
|
13
|
+
import { t as f } from "./slider-47gg2-Of.mjs";
|
|
14
|
+
import { t as p } from "./switch-b7w8iKxZ.mjs";
|
|
15
|
+
import { t as m } from "./tag-input-DN7xD3ly.mjs";
|
|
16
|
+
import { t as ee } from "./textarea-Cw15vQzL.mjs";
|
|
17
|
+
import { t as te } from "./tree-select-D2kftzY6.mjs";
|
|
18
|
+
import { t as ne } from "./tree-DEwIJXty.mjs";
|
|
19
|
+
import { t as h } from "./upload-BE0MC-8C.mjs";
|
|
20
|
+
import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, defineAsyncComponent as x, defineComponent as S, getCurrentInstance as C, mergeDefaults as w, mergeProps as T, nextTick as E, onMounted as re, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, shallowRef as N, unref as P, watch as F, withCtx as I } from "vue";
|
|
21
|
+
import { useMutationObserver as L, useResizeObserver as R } from "@vueuse/core";
|
|
22
|
+
import { Form as z, FormItem as B } from "tdesign-vue-next";
|
|
23
|
+
import V from "virtual:dlzn-ui/app-params";
|
|
24
|
+
import '../assets/form-DD3wq8_T.css';//#endregion
|
|
25
|
+
//#region ../../packages/dlzn-ui/components/form/src/form.vue
|
|
26
|
+
var H = /*#__PURE__*/ r(/* @__PURE__ */ S({
|
|
25
27
|
inheritAttrs: !1,
|
|
26
28
|
name: "TForm",
|
|
27
29
|
__name: "form",
|
|
28
|
-
props: /*@__PURE__*/
|
|
30
|
+
props: /*@__PURE__*/ w({
|
|
29
31
|
autoLabelWidth: { type: Boolean },
|
|
30
32
|
data: {},
|
|
31
33
|
items: {},
|
|
@@ -49,15 +51,15 @@ var V = /*@__PURE__*/ x({
|
|
|
49
51
|
onReset: { type: Function },
|
|
50
52
|
onSubmit: { type: Function },
|
|
51
53
|
onValidate: { type: Function }
|
|
52
|
-
},
|
|
53
|
-
setup(
|
|
54
|
-
let
|
|
54
|
+
}, o),
|
|
55
|
+
setup(r, { expose: o }) {
|
|
56
|
+
let S = r, { busComponentInitialValueMap: w, busFormItems: H } = V, U = C(), W = k(null), G = _(() => S.items.map((e) => {
|
|
55
57
|
if (typeof e.__others == "function") {
|
|
56
58
|
let t = {
|
|
57
59
|
...e,
|
|
58
60
|
...e.__others({
|
|
59
61
|
exposed: W,
|
|
60
|
-
formData:
|
|
62
|
+
formData: S.data
|
|
61
63
|
})
|
|
62
64
|
};
|
|
63
65
|
return delete t.__others, t;
|
|
@@ -66,10 +68,10 @@ var V = /*@__PURE__*/ x({
|
|
|
66
68
|
}));
|
|
67
69
|
function K() {
|
|
68
70
|
G.value.forEach((e) => {
|
|
69
|
-
if (e.model !== void 0 && !Object.hasOwn(
|
|
70
|
-
if (
|
|
71
|
-
let t =
|
|
72
|
-
|
|
71
|
+
if (e.model !== void 0 && !Object.hasOwn(S.data, e.model)) {
|
|
72
|
+
if (w.has(e.component)) {
|
|
73
|
+
let t = w.get(e.component);
|
|
74
|
+
S.data[e.model] = t(e);
|
|
73
75
|
return;
|
|
74
76
|
}
|
|
75
77
|
let t = [
|
|
@@ -87,34 +89,34 @@ var V = /*@__PURE__*/ x({
|
|
|
87
89
|
"yearrange",
|
|
88
90
|
"years"
|
|
89
91
|
].includes(e.type) || e.component === "TSlider" && e.range === !0;
|
|
90
|
-
|
|
92
|
+
S.data[e.model] = t ? [] : e.component === "TCheckbox" ? !1 : e.component === "TSwitch" ? Array.isArray(e.customValue) ? e.customValue[1] : !1 : "";
|
|
91
93
|
}
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
|
-
|
|
96
|
+
F(G, K, {
|
|
95
97
|
deep: 2,
|
|
96
98
|
immediate: !0
|
|
97
|
-
}),
|
|
99
|
+
}), F(() => S.data, () => {
|
|
98
100
|
t.error("TForm: data is changed");
|
|
99
101
|
});
|
|
100
102
|
let q = /* @__PURE__ */ new Map(), J = {
|
|
101
|
-
TCheckbox:
|
|
102
|
-
TCheckboxGroup:
|
|
103
|
-
TInput:
|
|
104
|
-
TInputNumber:
|
|
105
|
-
TRadioGroup:
|
|
106
|
-
TRangeInput:
|
|
107
|
-
TSelect:
|
|
108
|
-
TSlider:
|
|
109
|
-
TSwitch:
|
|
110
|
-
TTagInput:
|
|
111
|
-
TTextarea:
|
|
112
|
-
TTree:
|
|
113
|
-
TTreeSelect:
|
|
114
|
-
TUpload:
|
|
103
|
+
TCheckbox: i,
|
|
104
|
+
TCheckboxGroup: a,
|
|
105
|
+
TInput: c,
|
|
106
|
+
TInputNumber: s,
|
|
107
|
+
TRadioGroup: l,
|
|
108
|
+
TRangeInput: u,
|
|
109
|
+
TSelect: d,
|
|
110
|
+
TSlider: f,
|
|
111
|
+
TSwitch: p,
|
|
112
|
+
TTagInput: m,
|
|
113
|
+
TTextarea: ee,
|
|
114
|
+
TTree: ne,
|
|
115
|
+
TTreeSelect: te,
|
|
116
|
+
TUpload: h
|
|
115
117
|
};
|
|
116
118
|
function Y(e) {
|
|
117
|
-
return typeof e == "string" ? H.has(e) ? (q.has(e) || q.set(e,
|
|
119
|
+
return typeof e == "string" ? H.has(e) ? (q.has(e) || q.set(e, x(H.get(e))), q.get(e)) : J[e] : c;
|
|
118
120
|
}
|
|
119
121
|
function ie(e) {
|
|
120
122
|
let t = {};
|
|
@@ -133,7 +135,7 @@ var V = /*@__PURE__*/ x({
|
|
|
133
135
|
"TCheckboxGroup",
|
|
134
136
|
"TRadioGroup"
|
|
135
137
|
].includes(e.component), r = e.component === "TUpload" ? "请上传文件" : typeof t.label == "string" ? n ? `请选择${t.label}` : `请填写${t.label}` : "必填";
|
|
136
|
-
return t.required === !0 && (t.rules === void 0 && (t.rules = []), !t.rules.some((e) => e.required === !0) &&
|
|
138
|
+
return t.required === !0 && (t.rules === void 0 && (t.rules = []), !t.rules.some((e) => e.required === !0) && S.rules?.[e.model ?? ""] === void 0 && t.rules.unshift({
|
|
137
139
|
message: r,
|
|
138
140
|
required: !0
|
|
139
141
|
}, {
|
|
@@ -144,8 +146,8 @@ var V = /*@__PURE__*/ x({
|
|
|
144
146
|
whitespace: !0
|
|
145
147
|
}), t;
|
|
146
148
|
}
|
|
147
|
-
let ae =
|
|
148
|
-
let e = { ...
|
|
149
|
+
let ae = _(() => {
|
|
150
|
+
let e = { ...S };
|
|
149
151
|
if (e.rules !== void 0) {
|
|
150
152
|
let t = {};
|
|
151
153
|
Object.keys(e.rules).forEach((n) => {
|
|
@@ -162,8 +164,8 @@ var V = /*@__PURE__*/ x({
|
|
|
162
164
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
163
165
|
e[t] === void 0 && delete e[t];
|
|
164
166
|
}), e;
|
|
165
|
-
}), oe =
|
|
166
|
-
let e = { ...
|
|
167
|
+
}), oe = z, Z = () => {
|
|
168
|
+
let e = { ...S.data };
|
|
167
169
|
return G.value.forEach((t) => {
|
|
168
170
|
t.show === !1 && delete e[t.model];
|
|
169
171
|
}), e;
|
|
@@ -175,7 +177,7 @@ var V = /*@__PURE__*/ x({
|
|
|
175
177
|
let t = r.validate;
|
|
176
178
|
r.validate = (...n) => new Promise((r, i) => {
|
|
177
179
|
t(...n).then((t) => {
|
|
178
|
-
t === !0 ? r(Z()) : (
|
|
180
|
+
t === !0 ? r(Z()) : (S.msgErrorWhenValidate && Object.keys(t).forEach((n) => {
|
|
179
181
|
t[n].forEach((t) => {
|
|
180
182
|
t.result === !1 && e.error(t.message);
|
|
181
183
|
});
|
|
@@ -194,11 +196,11 @@ var V = /*@__PURE__*/ x({
|
|
|
194
196
|
if (!r.clearValidate._alreadyReplace) {
|
|
195
197
|
let e = r.clearValidate;
|
|
196
198
|
r.clearValidate = (...t) => {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
E(() => {
|
|
200
|
+
E(() => {
|
|
201
|
+
E(() => {
|
|
202
|
+
E(() => {
|
|
203
|
+
E(() => {
|
|
202
204
|
e(...t);
|
|
203
205
|
});
|
|
204
206
|
});
|
|
@@ -209,24 +211,24 @@ var V = /*@__PURE__*/ x({
|
|
|
209
211
|
}
|
|
210
212
|
r.getFormData = Z, r.setFormData = (e, t) => {
|
|
211
213
|
let { ignoreKeys: r = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
212
|
-
Object.keys(
|
|
213
|
-
r.includes(t) || (s.includes(t) ?
|
|
214
|
-
}), Object.assign(
|
|
214
|
+
Object.keys(S.data).forEach((t) => {
|
|
215
|
+
r.includes(t) || (s.includes(t) ? S.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && n(e[t]) || (S.data[t] = e[t]), a.includes(t) && typeof S.data[t] == "number" && (S.data[t] = String(S.data[t])));
|
|
216
|
+
}), Object.assign(S.data, o);
|
|
215
217
|
};
|
|
216
218
|
}
|
|
217
219
|
let r = t ?? {};
|
|
218
220
|
W.value = r, U.exposed = r;
|
|
219
221
|
}
|
|
220
|
-
let Q =
|
|
222
|
+
let Q = N();
|
|
221
223
|
re(() => {
|
|
222
|
-
Q.value = U.exposed.$el.getElementsByClassName("t-form__label"), $(),
|
|
224
|
+
Q.value = U.exposed.$el.getElementsByClassName("t-form__label"), $(), L(U.exposed.$el, () => {
|
|
223
225
|
$();
|
|
224
226
|
}, {
|
|
225
227
|
attributeFilter: ["class"],
|
|
226
228
|
characterData: !0,
|
|
227
229
|
childList: !0,
|
|
228
230
|
subtree: !0
|
|
229
|
-
}),
|
|
231
|
+
}), R(U.exposed.$el, () => {
|
|
230
232
|
$();
|
|
231
233
|
});
|
|
232
234
|
});
|
|
@@ -234,7 +236,7 @@ var V = /*@__PURE__*/ x({
|
|
|
234
236
|
let e = [...Q.value];
|
|
235
237
|
if (e.forEach((e) => {
|
|
236
238
|
e.style.minWidth = "auto";
|
|
237
|
-
}),
|
|
239
|
+
}), S.labelAlign === "top" || !S.autoLabelWidth) return;
|
|
238
240
|
let t = 0;
|
|
239
241
|
e.forEach((e) => {
|
|
240
242
|
t = Math.max(t, e.offsetWidth);
|
|
@@ -242,21 +244,21 @@ var V = /*@__PURE__*/ x({
|
|
|
242
244
|
e.style.minWidth = `${t}px`;
|
|
243
245
|
});
|
|
244
246
|
}
|
|
245
|
-
return
|
|
247
|
+
return O("formData", S.data), O("formExposed", W), O("isFormDisabled", _(() => S.disabled)), O("isFormReadonly", _(() => S.readonly)), o({}), (e, t) => (D(), b(g, null, [y(" eslint-disable vue/no-mutating-props "), (D(), v(M(P(oe)), T(T(e.$attrs, {
|
|
246
248
|
...ae.value,
|
|
247
249
|
ref: se
|
|
248
250
|
}), { "label-width": "fit-content" }), {
|
|
249
|
-
default:
|
|
250
|
-
default:
|
|
251
|
+
default: I(() => [(D(!0), b(g, null, A(G.value.filter((e) => e.show !== !1), (t) => (D(), v(P(B), T({ key: t.model ?? t.slot }, { ref_for: !0 }, T({ ...X(t) }, { class: { no_label_item: P(n)(t._label) } }), { name: t.model }), {
|
|
252
|
+
default: I(() => [t.slot ? j(e.$slots, t.slot, {}, void 0, !0, 0) : (D(), v(M(Y(t.component)), T({
|
|
251
253
|
key: 1,
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue": (e) =>
|
|
254
|
+
modelValue: r.data[t.model],
|
|
255
|
+
"onUpdate:modelValue": (e) => r.data[t.model] = e
|
|
254
256
|
}, { ref_for: !0 }, ie(t)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
255
257
|
_: 2
|
|
256
258
|
}, 1040, ["name"]))), 128))]),
|
|
257
259
|
_: 3
|
|
258
260
|
}, 16))], 2112));
|
|
259
261
|
}
|
|
260
|
-
});
|
|
262
|
+
}), [["__scopeId", "data-v-178687e3"]]);
|
|
261
263
|
//#endregion
|
|
262
|
-
export {
|
|
264
|
+
export { H as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r, unref as i } from "vue";
|
|
2
2
|
import { Icon as a } from "@iconify/vue";
|
|
3
|
-
//#
|
|
4
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region ../../packages/dlzn-ui/components/icon/src/icon.vue
|
|
5
|
+
var o = /* @__PURE__ */ t({
|
|
5
6
|
name: "TIcon",
|
|
6
7
|
__name: "icon",
|
|
7
8
|
props: {
|
|
@@ -17,4 +18,4 @@ var o = /*@__PURE__*/ t({
|
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
20
|
//#endregion
|
|
20
|
-
export { o as
|
|
21
|
+
export { o as t };
|