@duxweb/dvha-pro 1.0.25 → 1.0.26
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/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/designEditor/components/grid.cjs +1 -0
- package/dist/cjs/components/designEditor/editor/hook.cjs +1 -0
- package/dist/cjs/components/designEditor/editor/preview.cjs +1 -0
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -0
- package/dist/cjs/components/designEditor/editor.cjs +1 -0
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -0
- package/dist/cjs/components/formEditor/base/json.cjs +1 -0
- package/dist/cjs/components/formEditor/base/options.cjs +1 -0
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -0
- package/dist/cjs/components/formEditor/components/cascader.cjs +1 -0
- package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -0
- package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -0
- package/dist/cjs/components/formEditor/components/color.cjs +1 -0
- package/dist/cjs/components/formEditor/components/date.cjs +1 -0
- package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -0
- package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -0
- package/dist/cjs/components/formEditor/components/editor.cjs +1 -0
- package/dist/cjs/components/formEditor/components/input.cjs +1 -0
- package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -0
- package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -0
- package/dist/cjs/components/formEditor/components/radio.cjs +1 -0
- package/dist/cjs/components/formEditor/components/region.cjs +1 -0
- package/dist/cjs/components/formEditor/components/select.cjs +1 -0
- package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -0
- package/dist/cjs/components/formEditor/components/sider.cjs +1 -0
- package/dist/cjs/components/formEditor/components/switch.cjs +1 -0
- package/dist/cjs/components/formEditor/components/time.cjs +1 -0
- package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -0
- package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -0
- package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -0
- package/dist/cjs/components/formEditor/editor.cjs +1 -0
- package/dist/cjs/components/formEditor/json.cjs +1 -0
- package/dist/cjs/components/formEditor/preview.cjs +1 -0
- package/dist/cjs/components/formEditor/renderer.cjs +1 -0
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/grid.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -0
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -0
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +34 -2
- package/dist/esm/component.js +33 -31
- package/dist/esm/components/chart/echart.js +6 -5
- package/dist/esm/components/crop/imageCrop.js +7 -6
- package/dist/esm/components/data/dynamicSelect.js +8 -7
- package/dist/esm/components/data/selectModal.js +6 -5
- package/dist/esm/components/designEditor/components/grid.js +175 -0
- package/dist/esm/components/designEditor/editor/hook.js +87 -0
- package/dist/esm/components/designEditor/editor/preview.js +65 -0
- package/dist/esm/components/designEditor/editor/setting.js +98 -0
- package/dist/esm/components/designEditor/editor.js +161 -0
- package/dist/esm/components/form/drawerForm.js +8 -7
- package/dist/esm/components/form/formItem.js +33 -33
- package/dist/esm/components/form/formLayout.js +11 -11
- package/dist/esm/components/form/modalForm.js +18 -17
- package/dist/esm/components/form/pageForm.js +11 -10
- package/dist/esm/components/form/settingForm.js +5 -4
- package/dist/esm/components/formEditor/base/base.js +117 -0
- package/dist/esm/components/formEditor/base/json.js +39 -0
- package/dist/esm/components/formEditor/base/options.js +48 -0
- package/dist/esm/components/formEditor/base/setting.js +108 -0
- package/dist/esm/components/formEditor/components/cascader.js +219 -0
- package/dist/esm/components/formEditor/components/cascaderAsync.js +213 -0
- package/dist/esm/components/formEditor/components/checkbox.js +212 -0
- package/dist/esm/components/formEditor/components/color.js +156 -0
- package/dist/esm/components/formEditor/components/date.js +197 -0
- package/dist/esm/components/formEditor/components/dynamicInput.js +227 -0
- package/dist/esm/components/formEditor/components/dynamicTags.js +150 -0
- package/dist/esm/components/formEditor/components/editor.js +139 -0
- package/dist/esm/components/formEditor/components/input.js +211 -0
- package/dist/esm/components/formEditor/components/inputNumber.js +188 -0
- package/dist/esm/components/formEditor/components/mentionAsync.js +180 -0
- package/dist/esm/components/formEditor/components/radio.js +212 -0
- package/dist/esm/components/formEditor/components/region.js +167 -0
- package/dist/esm/components/formEditor/components/select.js +203 -0
- package/dist/esm/components/formEditor/components/selectAsync.js +214 -0
- package/dist/esm/components/formEditor/components/sider.js +168 -0
- package/dist/esm/components/formEditor/components/switch.js +153 -0
- package/dist/esm/components/formEditor/components/time.js +171 -0
- package/dist/esm/components/formEditor/components/transferAsync.js +193 -0
- package/dist/esm/components/formEditor/components/treeSelect.js +207 -0
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +179 -0
- package/dist/esm/components/formEditor/editor.js +162 -0
- package/dist/esm/components/formEditor/json.js +24 -0
- package/dist/esm/components/formEditor/preview.js +38 -0
- package/dist/esm/components/formEditor/renderer.js +151 -0
- package/dist/esm/components/icon/icon.js +7 -6
- package/dist/esm/components/layout/grid.js +24 -0
- package/dist/esm/components/layout/list.js +17 -16
- package/dist/esm/components/layout/table.js +15 -14
- package/dist/esm/components/level/level.js +6 -5
- package/dist/esm/components/{image → posterEditor}/pages/RightPanel.js +5 -4
- package/dist/esm/components/{image → posterEditor}/posterEditor.js +5 -4
- package/dist/esm/components/table/table.js +6 -5
- package/dist/esm/components/upload/file.js +10 -9
- package/dist/esm/components/upload/image.js +16 -15
- package/dist/esm/components/upload/manage/item.js +6 -5
- package/dist/esm/components/upload/manager.js +6 -5
- package/dist/esm/hooks/dialog.js +7 -6
- package/dist/esm/hooks/drawer.js +7 -6
- package/dist/esm/hooks/modal.js +6 -5
- package/dist/esm/hooks/table/image.js +6 -5
- package/dist/esm/hooks/table/media.js +6 -5
- package/dist/esm/index.js +218 -201
- package/dist/esm/langs/en-US.json.js +10 -10
- package/dist/esm/langs/zh-CN.json.js +8 -8
- package/dist/esm/pages/authLayout.js +7 -6
- package/dist/esm/pages/layout/page.js +6 -5
- package/dist/esm/pages/login.js +6 -5
- package/dist/esm/pages/menu/avatar.js +11 -10
- package/dist/esm/pages/menu/button.js +6 -5
- package/dist/esm/pages/menu/cmd.js +6 -5
- package/dist/esm/pages/menu/main.js +6 -5
- package/dist/esm/pages/menu/mobile.js +6 -5
- package/dist/esm/pages/page404.js +4 -3
- package/dist/esm/pages/pageStatus.js +9 -8
- package/dist/esm/theme/uno.css.js +34 -2
- package/dist/types/components/designEditor/components/grid.d.ts +2 -0
- package/dist/types/components/designEditor/components/index.d.ts +1 -0
- package/dist/types/components/designEditor/editor/hook.d.ts +57 -0
- package/dist/types/components/designEditor/editor/index.d.ts +3 -0
- package/dist/types/components/designEditor/editor/preview.d.ts +15 -0
- package/dist/types/components/designEditor/editor/setting.d.ts +14 -0
- package/dist/types/components/designEditor/editor.d.ts +19 -0
- package/dist/types/components/designEditor/index.d.ts +3 -0
- package/dist/types/components/form/drawerForm.d.ts +2 -2
- package/dist/types/components/form/formLayout.d.ts +2 -2
- package/dist/types/components/form/modalForm.d.ts +2 -2
- package/dist/types/components/formEditor/base/base.d.ts +26 -0
- package/dist/types/components/formEditor/base/index.d.ts +4 -0
- package/dist/types/components/formEditor/base/json.d.ts +18 -0
- package/dist/types/components/formEditor/base/options.d.ts +23 -0
- package/dist/types/components/formEditor/base/setting.d.ts +13 -0
- package/dist/types/components/formEditor/components/cascader.d.ts +2 -0
- package/dist/types/components/formEditor/components/cascaderAsync.d.ts +2 -0
- package/dist/types/components/formEditor/components/checkbox.d.ts +2 -0
- package/dist/types/components/formEditor/components/color.d.ts +2 -0
- package/dist/types/components/formEditor/components/date.d.ts +2 -0
- package/dist/types/components/formEditor/components/dynamicInput.d.ts +2 -0
- package/dist/types/components/formEditor/components/dynamicTags.d.ts +2 -0
- package/dist/types/components/formEditor/components/editor.d.ts +2 -0
- package/dist/types/components/formEditor/components/index.d.ts +21 -0
- package/dist/types/components/formEditor/components/input.d.ts +2 -0
- package/dist/types/components/formEditor/components/inputNumber.d.ts +2 -0
- package/dist/types/components/formEditor/components/mentionAsync.d.ts +2 -0
- package/dist/types/components/formEditor/components/radio.d.ts +2 -0
- package/dist/types/components/formEditor/components/region.d.ts +2 -0
- package/dist/types/components/formEditor/components/select.d.ts +2 -0
- package/dist/types/components/formEditor/components/selectAsync.d.ts +2 -0
- package/dist/types/components/formEditor/components/sider.d.ts +2 -0
- package/dist/types/components/formEditor/components/switch.d.ts +2 -0
- package/dist/types/components/formEditor/components/time.d.ts +2 -0
- package/dist/types/components/formEditor/components/transferAsync.d.ts +2 -0
- package/dist/types/components/formEditor/components/treeSelect.d.ts +2 -0
- package/dist/types/components/formEditor/components/treeSelectAsync.d.ts +2 -0
- package/dist/types/components/formEditor/editor.d.ts +22 -0
- package/dist/types/components/formEditor/index.d.ts +2 -0
- package/dist/types/components/formEditor/json.d.ts +14 -0
- package/dist/types/components/formEditor/preview.d.ts +25 -0
- package/dist/types/components/formEditor/renderer.d.ts +58 -0
- package/dist/types/components/index.d.ts +3 -1
- package/dist/types/components/layout/filterLayout.d.ts +1 -1
- package/dist/types/components/layout/grid.d.ts +22 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/package.json +4 -3
- package/dist/cjs/components/image/pages/RightPanel.cjs +0 -1
- package/dist/cjs/components/image/posterEditor.cjs +0 -1
- /package/dist/cjs/components/{image → posterEditor}/components/CanvasRuler.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/elements/circle.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/elements/image.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/elements/index.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/elements/rect.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/elements/text.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/hooks/usePosterEditor.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/pages/LeftToolbar.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/pages/Panel.cjs +0 -0
- /package/dist/cjs/components/{image → posterEditor}/pages/PanelItem.cjs +0 -0
- /package/dist/esm/components/{image → posterEditor}/components/CanvasRuler.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/elements/circle.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/elements/image.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/elements/index.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/elements/rect.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/elements/text.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/hooks/usePosterEditor.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/pages/LeftToolbar.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/pages/Panel.js +0 -0
- /package/dist/esm/components/{image → posterEditor}/pages/PanelItem.js +0 -0
- /package/dist/types/components/{image → posterEditor}/components/CanvasRuler.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/components/index.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/elements/circle.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/elements/image.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/elements/index.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/elements/rect.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/elements/text.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/elements/types.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/hooks/index.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/hooks/usePosterEditor.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/index.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/pages/LeftToolbar.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/pages/Panel.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/pages/PanelItem.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/pages/RightPanel.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/pages/index.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/posterEditor.d.ts +0 -0
- /package/dist/types/components/{image → posterEditor}/types/editor.d.ts +0 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { createVNode as t, defineComponent as n } from "vue";
|
|
2
|
+
import { useI18n as p } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as u } from "@vueuse/core";
|
|
4
|
+
import { NSwitch as d, NInputNumber as s, NDynamicTags as c } from "naive-ui";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "@overlastic/vue";
|
|
8
|
+
import "vue-echarts";
|
|
9
|
+
import "vue3-ace-editor";
|
|
10
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
15
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
17
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
20
|
+
import "vue-cropper";
|
|
21
|
+
import "jinrishici";
|
|
22
|
+
import "lodash-es";
|
|
23
|
+
import "vue-draggable-plus";
|
|
24
|
+
import "aieditor";
|
|
25
|
+
import { DuxFormItem as a } from "../../form/formItem.js";
|
|
26
|
+
import "@vee-validate/i18n";
|
|
27
|
+
import "colorizr";
|
|
28
|
+
import "echarts";
|
|
29
|
+
import "@ant-design/colors";
|
|
30
|
+
import "@unocss/preset-icons/browser";
|
|
31
|
+
import "@unocss/preset-typography";
|
|
32
|
+
import "unocss/preset-wind4";
|
|
33
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
34
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
35
|
+
import "vee-validate";
|
|
36
|
+
import "vue-command-palette";
|
|
37
|
+
import "@duxweb/dvha-naiveui";
|
|
38
|
+
import "../../../pages/page404.js";
|
|
39
|
+
import { DuxFormEditorItem as f, DuxFormEditorRule as v } from "../base/base.js";
|
|
40
|
+
import { WidgetEditorSettingCard as l } from "../../designEditor/editor/setting.js";
|
|
41
|
+
import "@iconify-json/tabler/icons.json";
|
|
42
|
+
import "../../posterEditor/elements/index.js";
|
|
43
|
+
import "fabric";
|
|
44
|
+
import "mime";
|
|
45
|
+
import "dayjs";
|
|
46
|
+
import "@tanstack/vue-query";
|
|
47
|
+
import "pinia";
|
|
48
|
+
import "short-unique-id";
|
|
49
|
+
const g = /* @__PURE__ */ n({
|
|
50
|
+
props: {
|
|
51
|
+
options: Object
|
|
52
|
+
},
|
|
53
|
+
setup(o) {
|
|
54
|
+
return () => t(a, {
|
|
55
|
+
label: o.options?.label,
|
|
56
|
+
description: o.options?.desc
|
|
57
|
+
}, {
|
|
58
|
+
default: () => [t(c, o.options?.attr, null)]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
function b(o) {
|
|
63
|
+
const {
|
|
64
|
+
options: r,
|
|
65
|
+
model: e
|
|
66
|
+
} = o || {};
|
|
67
|
+
return {
|
|
68
|
+
tag: "dux-form-item",
|
|
69
|
+
attrs: {
|
|
70
|
+
label: r?.label,
|
|
71
|
+
description: r?.desc
|
|
72
|
+
},
|
|
73
|
+
children: [{
|
|
74
|
+
tag: "n-dynamic-tags",
|
|
75
|
+
attrs: {
|
|
76
|
+
...r?.attr,
|
|
77
|
+
"v-model:value": [e, r?.name]
|
|
78
|
+
}
|
|
79
|
+
}]
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const x = /* @__PURE__ */ n({
|
|
83
|
+
props: {
|
|
84
|
+
value: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: {}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
setup(o, {
|
|
90
|
+
emit: r
|
|
91
|
+
}) {
|
|
92
|
+
const e = u(o, "value", r), {
|
|
93
|
+
t: i
|
|
94
|
+
} = p();
|
|
95
|
+
return () => t("div", {
|
|
96
|
+
class: ""
|
|
97
|
+
}, [t(f, {
|
|
98
|
+
value: o.value,
|
|
99
|
+
"onUpdate:value": (m) => o.value = m
|
|
100
|
+
}, null), t(l, {
|
|
101
|
+
title: i("components.formEditor.config")
|
|
102
|
+
}, {
|
|
103
|
+
default: () => [t(a, {
|
|
104
|
+
label: i("components.formEditor.common.disabled"),
|
|
105
|
+
labelPlacement: "left"
|
|
106
|
+
}, {
|
|
107
|
+
default: () => [t("div", {
|
|
108
|
+
class: "flex flex-1 justify-end"
|
|
109
|
+
}, [t(d, {
|
|
110
|
+
value: e.value.attr.disabled,
|
|
111
|
+
"onUpdate:value": (m) => e.value.attr.disabled = m
|
|
112
|
+
}, null)])]
|
|
113
|
+
})]
|
|
114
|
+
}), t(l, {
|
|
115
|
+
title: i("components.formEditor.options")
|
|
116
|
+
}, {
|
|
117
|
+
default: () => [t(a, {
|
|
118
|
+
label: i("components.formEditor.dynamicTags.max")
|
|
119
|
+
}, {
|
|
120
|
+
default: () => [t(s, {
|
|
121
|
+
value: e.value.attr.max,
|
|
122
|
+
"onUpdate:value": (m) => e.value.attr.max = m
|
|
123
|
+
}, null)]
|
|
124
|
+
})]
|
|
125
|
+
}), t(v, {
|
|
126
|
+
value: e.value.rule,
|
|
127
|
+
"onUpdate:value": (m) => e.value.rule = m
|
|
128
|
+
}, null)]);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
function ct(o) {
|
|
132
|
+
return {
|
|
133
|
+
name: "dynamic-tags",
|
|
134
|
+
icon: "i-tabler:tag",
|
|
135
|
+
label: o("components.formEditor.dynamicTags.name"),
|
|
136
|
+
group: "form",
|
|
137
|
+
component: (r) => t(g, r, null),
|
|
138
|
+
setting: (r) => t(x, r, null),
|
|
139
|
+
settingDefault: {
|
|
140
|
+
label: o("components.formEditor.dynamicTags.name"),
|
|
141
|
+
name: "dynamic-tags",
|
|
142
|
+
attr: {},
|
|
143
|
+
rule: []
|
|
144
|
+
},
|
|
145
|
+
json: b
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
export {
|
|
149
|
+
ct as duxFormEditorDynamicTags
|
|
150
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { createVNode as r, defineComponent as p } from "vue";
|
|
2
|
+
import { useI18n as n } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as a } from "@vueuse/core";
|
|
4
|
+
import { NInput as u } from "naive-ui";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "@overlastic/vue";
|
|
8
|
+
import "vue-echarts";
|
|
9
|
+
import "vue3-ace-editor";
|
|
10
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
15
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
17
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
20
|
+
import "vue-cropper";
|
|
21
|
+
import "jinrishici";
|
|
22
|
+
import "lodash-es";
|
|
23
|
+
import "vue-draggable-plus";
|
|
24
|
+
import { DuxAiEditor as d } from "../../editor/aiEditor.js";
|
|
25
|
+
import { DuxFormItem as l } from "../../form/formItem.js";
|
|
26
|
+
import "@vee-validate/i18n";
|
|
27
|
+
import "colorizr";
|
|
28
|
+
import "echarts";
|
|
29
|
+
import "@ant-design/colors";
|
|
30
|
+
import "@unocss/preset-icons/browser";
|
|
31
|
+
import "@unocss/preset-typography";
|
|
32
|
+
import "unocss/preset-wind4";
|
|
33
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
34
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
35
|
+
import "vee-validate";
|
|
36
|
+
import "vue-command-palette";
|
|
37
|
+
import "@duxweb/dvha-naiveui";
|
|
38
|
+
import "../../../pages/page404.js";
|
|
39
|
+
import { DuxFormEditorItem as s, DuxFormEditorRule as c } from "../base/base.js";
|
|
40
|
+
import { WidgetEditorSettingCard as f } from "../../designEditor/editor/setting.js";
|
|
41
|
+
import "@iconify-json/tabler/icons.json";
|
|
42
|
+
import "../../posterEditor/elements/index.js";
|
|
43
|
+
import "fabric";
|
|
44
|
+
import "mime";
|
|
45
|
+
import "dayjs";
|
|
46
|
+
import "@tanstack/vue-query";
|
|
47
|
+
import "pinia";
|
|
48
|
+
import "short-unique-id";
|
|
49
|
+
const E = /* @__PURE__ */ p({
|
|
50
|
+
name: "FormEditorAIEditor",
|
|
51
|
+
props: {
|
|
52
|
+
options: Object
|
|
53
|
+
},
|
|
54
|
+
setup(t) {
|
|
55
|
+
return () => r(l, {
|
|
56
|
+
label: t.options?.label,
|
|
57
|
+
description: t.options?.desc
|
|
58
|
+
}, {
|
|
59
|
+
default: () => [r(d, t.options?.attr, null)]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
function v(t) {
|
|
64
|
+
const {
|
|
65
|
+
options: o,
|
|
66
|
+
model: i
|
|
67
|
+
} = t || {};
|
|
68
|
+
return {
|
|
69
|
+
tag: "dux-form-item",
|
|
70
|
+
attrs: {
|
|
71
|
+
label: o?.label,
|
|
72
|
+
description: o?.desc
|
|
73
|
+
},
|
|
74
|
+
children: [{
|
|
75
|
+
tag: "dux-ai-editor",
|
|
76
|
+
attrs: {
|
|
77
|
+
...o?.attr,
|
|
78
|
+
"v-model:value": [i, o?.name]
|
|
79
|
+
}
|
|
80
|
+
}]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
const b = /* @__PURE__ */ p({
|
|
84
|
+
name: "FormEditorAIEditorSetting",
|
|
85
|
+
props: {
|
|
86
|
+
value: {
|
|
87
|
+
type: Object,
|
|
88
|
+
default: {}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
setup(t, {
|
|
92
|
+
emit: o
|
|
93
|
+
}) {
|
|
94
|
+
const i = a(t, "value", o), {
|
|
95
|
+
t: m
|
|
96
|
+
} = n();
|
|
97
|
+
return () => r("div", {
|
|
98
|
+
class: ""
|
|
99
|
+
}, [r(s, {
|
|
100
|
+
value: t.value,
|
|
101
|
+
"onUpdate:value": (e) => t.value = e
|
|
102
|
+
}, null), r(f, {
|
|
103
|
+
title: m("components.formEditor.common.componentConfig")
|
|
104
|
+
}, {
|
|
105
|
+
default: () => [r(l, {
|
|
106
|
+
label: m("components.formEditor.aiEditor.uploadUrl"),
|
|
107
|
+
description: m("components.formEditor.aiEditor.uploadUrlFeedback")
|
|
108
|
+
}, {
|
|
109
|
+
default: () => [r(u, {
|
|
110
|
+
value: i.value.attr.uploadUrl,
|
|
111
|
+
"onUpdate:value": (e) => i.value.attr.uploadUrl = e
|
|
112
|
+
}, null)]
|
|
113
|
+
})]
|
|
114
|
+
}), r(c, {
|
|
115
|
+
value: i.value.rule,
|
|
116
|
+
"onUpdate:value": (e) => i.value.rule = e
|
|
117
|
+
}, null)]);
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
function st(t) {
|
|
121
|
+
return {
|
|
122
|
+
name: "dux-editor",
|
|
123
|
+
icon: "i-tabler:pencil",
|
|
124
|
+
label: t("components.formEditor.aiEditor.label"),
|
|
125
|
+
group: "form",
|
|
126
|
+
component: (o) => r(E, o, null),
|
|
127
|
+
setting: (o) => r(b, o, null),
|
|
128
|
+
settingDefault: {
|
|
129
|
+
label: t("components.formEditor.aiEditor.label"),
|
|
130
|
+
name: "editor",
|
|
131
|
+
attr: {},
|
|
132
|
+
rule: []
|
|
133
|
+
},
|
|
134
|
+
json: v
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
st as duxFormEditorAIEditor
|
|
139
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { createVNode as t, defineComponent as u, mergeProps as d } from "vue";
|
|
2
|
+
import { useI18n as c } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as s } from "@vueuse/core";
|
|
4
|
+
import { NSelect as v, NInput as p, NInputNumber as i, NCheckbox as m } from "naive-ui";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "@overlastic/vue";
|
|
8
|
+
import "vue-echarts";
|
|
9
|
+
import "vue3-ace-editor";
|
|
10
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
15
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
17
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
20
|
+
import "vue-cropper";
|
|
21
|
+
import "jinrishici";
|
|
22
|
+
import "lodash-es";
|
|
23
|
+
import "vue-draggable-plus";
|
|
24
|
+
import "aieditor";
|
|
25
|
+
import { DuxFormItem as n } from "../../form/formItem.js";
|
|
26
|
+
import "@vee-validate/i18n";
|
|
27
|
+
import "colorizr";
|
|
28
|
+
import "echarts";
|
|
29
|
+
import "@ant-design/colors";
|
|
30
|
+
import "@unocss/preset-icons/browser";
|
|
31
|
+
import "@unocss/preset-typography";
|
|
32
|
+
import "unocss/preset-wind4";
|
|
33
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
34
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
35
|
+
import "vee-validate";
|
|
36
|
+
import "vue-command-palette";
|
|
37
|
+
import "@duxweb/dvha-naiveui";
|
|
38
|
+
import "../../../pages/page404.js";
|
|
39
|
+
import { DuxFormEditorItem as f, DuxFormEditorRule as b } from "../base/base.js";
|
|
40
|
+
import { WidgetEditorSettingCard as x } from "../../designEditor/editor/setting.js";
|
|
41
|
+
import "@iconify-json/tabler/icons.json";
|
|
42
|
+
import "../../posterEditor/elements/index.js";
|
|
43
|
+
import "fabric";
|
|
44
|
+
import "mime";
|
|
45
|
+
import "dayjs";
|
|
46
|
+
import "@tanstack/vue-query";
|
|
47
|
+
import "pinia";
|
|
48
|
+
import "short-unique-id";
|
|
49
|
+
const E = /* @__PURE__ */ u({
|
|
50
|
+
name: "FormEditorInput",
|
|
51
|
+
props: {
|
|
52
|
+
options: Object
|
|
53
|
+
},
|
|
54
|
+
setup(r) {
|
|
55
|
+
return () => t(n, {
|
|
56
|
+
label: r.options?.label,
|
|
57
|
+
description: r.options?.desc
|
|
58
|
+
}, {
|
|
59
|
+
default: () => [t(p, d(r.options?.attr, {
|
|
60
|
+
inputProps: {
|
|
61
|
+
autocomplete: "new-password"
|
|
62
|
+
}
|
|
63
|
+
}), null)]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
function h(r) {
|
|
68
|
+
const {
|
|
69
|
+
options: a,
|
|
70
|
+
model: o
|
|
71
|
+
} = r || {};
|
|
72
|
+
return {
|
|
73
|
+
tag: "dux-form-item",
|
|
74
|
+
attrs: {
|
|
75
|
+
label: a?.label,
|
|
76
|
+
description: a?.desc
|
|
77
|
+
},
|
|
78
|
+
children: [{
|
|
79
|
+
tag: "n-input",
|
|
80
|
+
attrs: {
|
|
81
|
+
...a?.attr,
|
|
82
|
+
"v-model:value": [o, a?.name]
|
|
83
|
+
}
|
|
84
|
+
}]
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
const g = /* @__PURE__ */ u({
|
|
88
|
+
name: "FormEditorInputSetting",
|
|
89
|
+
props: {
|
|
90
|
+
value: {
|
|
91
|
+
type: Object,
|
|
92
|
+
default: {}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
setup(r, {
|
|
96
|
+
emit: a
|
|
97
|
+
}) {
|
|
98
|
+
const o = s(r, "value", a), {
|
|
99
|
+
t: l
|
|
100
|
+
} = c();
|
|
101
|
+
return () => t("div", {
|
|
102
|
+
class: ""
|
|
103
|
+
}, [t(f, {
|
|
104
|
+
value: r.value,
|
|
105
|
+
"onUpdate:value": (e) => r.value = e
|
|
106
|
+
}, null), t(x, {
|
|
107
|
+
title: l("components.formEditor.common.componentConfig")
|
|
108
|
+
}, {
|
|
109
|
+
default: () => [t(n, {
|
|
110
|
+
label: l("components.formEditor.common.inputType")
|
|
111
|
+
}, {
|
|
112
|
+
default: () => [t(v, {
|
|
113
|
+
value: o.value.attr.type,
|
|
114
|
+
"onUpdate:value": (e) => o.value.attr.type = e,
|
|
115
|
+
options: [{
|
|
116
|
+
label: l("components.formEditor.input.types.text"),
|
|
117
|
+
value: "text"
|
|
118
|
+
}, {
|
|
119
|
+
label: l("components.formEditor.input.types.textarea"),
|
|
120
|
+
value: "textarea"
|
|
121
|
+
}, {
|
|
122
|
+
label: l("components.formEditor.input.types.password"),
|
|
123
|
+
value: "password"
|
|
124
|
+
}]
|
|
125
|
+
}, null)]
|
|
126
|
+
}), t(n, {
|
|
127
|
+
label: l("components.formEditor.common.placeholder")
|
|
128
|
+
}, {
|
|
129
|
+
default: () => [t(p, {
|
|
130
|
+
value: o.value.attr.placeholder,
|
|
131
|
+
"onUpdate:value": (e) => o.value.attr.placeholder = e
|
|
132
|
+
}, null)]
|
|
133
|
+
}), t(n, {
|
|
134
|
+
label: l("components.formEditor.common.minLength")
|
|
135
|
+
}, {
|
|
136
|
+
default: () => [t(i, {
|
|
137
|
+
value: o.value.attr.minlength,
|
|
138
|
+
"onUpdate:value": (e) => o.value.attr.minlength = e
|
|
139
|
+
}, null)]
|
|
140
|
+
}), t(n, {
|
|
141
|
+
label: l("components.formEditor.common.maxLength")
|
|
142
|
+
}, {
|
|
143
|
+
default: () => [t(i, {
|
|
144
|
+
value: o.value.attr.maxlength,
|
|
145
|
+
"onUpdate:value": (e) => o.value.attr.maxlength = e
|
|
146
|
+
}, null)]
|
|
147
|
+
}), t(n, {
|
|
148
|
+
label: l("components.formEditor.common.prefix")
|
|
149
|
+
}, {
|
|
150
|
+
default: () => [t(p, {
|
|
151
|
+
value: o.value.attr["v-slot:prefix"],
|
|
152
|
+
"onUpdate:value": (e) => o.value.attr["v-slot:prefix"] = e
|
|
153
|
+
}, null)]
|
|
154
|
+
}), t(n, {
|
|
155
|
+
label: l("components.formEditor.common.suffix")
|
|
156
|
+
}, {
|
|
157
|
+
default: () => [t(p, {
|
|
158
|
+
value: o.value.attr["v-slot:suffix"],
|
|
159
|
+
"onUpdate:value": (e) => o.value.attr["v-slot:suffix"] = e
|
|
160
|
+
}, null)]
|
|
161
|
+
}), t(n, {
|
|
162
|
+
label: l("components.formEditor.common.status")
|
|
163
|
+
}, {
|
|
164
|
+
default: () => [t("div", {
|
|
165
|
+
class: "w-full grid grid-cols-2"
|
|
166
|
+
}, [t(m, {
|
|
167
|
+
label: l("components.formEditor.common.readonly"),
|
|
168
|
+
checked: o.value.attr.readonly,
|
|
169
|
+
"onUpdate:checked": (e) => o.value.attr.readonly = e
|
|
170
|
+
}, null), t(m, {
|
|
171
|
+
label: l("components.formEditor.common.disabled"),
|
|
172
|
+
checked: o.value.attr.disabled,
|
|
173
|
+
"onUpdate:checked": (e) => o.value.attr.disabled = e
|
|
174
|
+
}, null), t(m, {
|
|
175
|
+
label: l("components.formEditor.common.clearable"),
|
|
176
|
+
checked: o.value.attr.clearable,
|
|
177
|
+
"onUpdate:checked": (e) => o.value.attr.clearable = e
|
|
178
|
+
}, null), t(m, {
|
|
179
|
+
label: l("components.formEditor.common.showCount"),
|
|
180
|
+
checked: o.value.attr.showCount,
|
|
181
|
+
"onUpdate:checked": (e) => o.value.attr.showCount = e
|
|
182
|
+
}, null)])]
|
|
183
|
+
})]
|
|
184
|
+
}), t(b, {
|
|
185
|
+
value: o.value.rule,
|
|
186
|
+
"onUpdate:value": (e) => o.value.rule = e
|
|
187
|
+
}, null)]);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
function ft(r) {
|
|
191
|
+
return {
|
|
192
|
+
name: "dux-input",
|
|
193
|
+
icon: "i-tabler:cursor-text",
|
|
194
|
+
label: r("components.formEditor.input.label"),
|
|
195
|
+
group: "form",
|
|
196
|
+
component: (a) => t(E, a, null),
|
|
197
|
+
setting: (a) => t(g, a, null),
|
|
198
|
+
settingDefault: {
|
|
199
|
+
label: r("components.formEditor.input.label"),
|
|
200
|
+
name: "text",
|
|
201
|
+
attr: {
|
|
202
|
+
type: "text"
|
|
203
|
+
},
|
|
204
|
+
rule: []
|
|
205
|
+
},
|
|
206
|
+
json: h
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
export {
|
|
210
|
+
ft as duxFormEditorInput
|
|
211
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { createVNode as t, defineComponent as p } from "vue";
|
|
2
|
+
import { useI18n as d } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as c } from "@vueuse/core";
|
|
4
|
+
import { NInput as n, NInputNumber as u, NCheckbox as i } from "naive-ui";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "@overlastic/vue";
|
|
8
|
+
import "vue-echarts";
|
|
9
|
+
import "vue3-ace-editor";
|
|
10
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
15
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
17
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
20
|
+
import "vue-cropper";
|
|
21
|
+
import "jinrishici";
|
|
22
|
+
import "lodash-es";
|
|
23
|
+
import "vue-draggable-plus";
|
|
24
|
+
import "aieditor";
|
|
25
|
+
import { DuxFormItem as a } from "../../form/formItem.js";
|
|
26
|
+
import "@vee-validate/i18n";
|
|
27
|
+
import "colorizr";
|
|
28
|
+
import "echarts";
|
|
29
|
+
import "@ant-design/colors";
|
|
30
|
+
import "@unocss/preset-icons/browser";
|
|
31
|
+
import "@unocss/preset-typography";
|
|
32
|
+
import "unocss/preset-wind4";
|
|
33
|
+
import "@vee-validate/i18n/dist/locale/en.json";
|
|
34
|
+
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
35
|
+
import "vee-validate";
|
|
36
|
+
import "vue-command-palette";
|
|
37
|
+
import "@duxweb/dvha-naiveui";
|
|
38
|
+
import "../../../pages/page404.js";
|
|
39
|
+
import { DuxFormEditorItem as s, DuxFormEditorRule as f } from "../base/base.js";
|
|
40
|
+
import { WidgetEditorSettingCard as v } from "../../designEditor/editor/setting.js";
|
|
41
|
+
import "@iconify-json/tabler/icons.json";
|
|
42
|
+
import "../../posterEditor/elements/index.js";
|
|
43
|
+
import "fabric";
|
|
44
|
+
import "mime";
|
|
45
|
+
import "dayjs";
|
|
46
|
+
import "@tanstack/vue-query";
|
|
47
|
+
import "pinia";
|
|
48
|
+
import "short-unique-id";
|
|
49
|
+
const b = /* @__PURE__ */ p({
|
|
50
|
+
name: "FormEditorInputNumber",
|
|
51
|
+
props: {
|
|
52
|
+
options: Object
|
|
53
|
+
},
|
|
54
|
+
setup(l) {
|
|
55
|
+
const r = l.options?.attr;
|
|
56
|
+
return () => t(a, {
|
|
57
|
+
label: l.options?.label,
|
|
58
|
+
description: l.options?.desc
|
|
59
|
+
}, {
|
|
60
|
+
default: () => [t("div", {
|
|
61
|
+
class: "flex-1"
|
|
62
|
+
}, [t(u, r, {
|
|
63
|
+
prefix: r["v-slot:prefix"] ? () => r["v-slot:prefix"] : void 0,
|
|
64
|
+
suffix: r["v-slot:suffix"] ? () => r["v-slot:suffix"] : void 0
|
|
65
|
+
})])]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
function x(l) {
|
|
70
|
+
const {
|
|
71
|
+
options: r,
|
|
72
|
+
model: o
|
|
73
|
+
} = l || {};
|
|
74
|
+
return {
|
|
75
|
+
tag: "dux-form-item",
|
|
76
|
+
attrs: {
|
|
77
|
+
label: r?.label,
|
|
78
|
+
description: r?.desc
|
|
79
|
+
},
|
|
80
|
+
children: [{
|
|
81
|
+
tag: "n-input-number",
|
|
82
|
+
attrs: {
|
|
83
|
+
...r?.attr,
|
|
84
|
+
"v-model:value": [o, r?.name]
|
|
85
|
+
}
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
const E = /* @__PURE__ */ p({
|
|
90
|
+
name: "FormEditorInputNumberSetting",
|
|
91
|
+
props: {
|
|
92
|
+
value: {
|
|
93
|
+
type: Object,
|
|
94
|
+
default: {}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
setup(l, {
|
|
98
|
+
emit: r
|
|
99
|
+
}) {
|
|
100
|
+
const o = c(l, "value", r), {
|
|
101
|
+
t: m
|
|
102
|
+
} = d();
|
|
103
|
+
return () => t("div", null, [t(s, {
|
|
104
|
+
value: l.value,
|
|
105
|
+
"onUpdate:value": (e) => l.value = e
|
|
106
|
+
}, null), t(v, {
|
|
107
|
+
title: m("components.formEditor.common.componentConfig")
|
|
108
|
+
}, {
|
|
109
|
+
default: () => [t(a, {
|
|
110
|
+
label: m("components.formEditor.common.placeholder")
|
|
111
|
+
}, {
|
|
112
|
+
default: () => [t(n, {
|
|
113
|
+
value: o.value.attr.placeholder,
|
|
114
|
+
"onUpdate:value": (e) => o.value.attr.placeholder = e
|
|
115
|
+
}, null)]
|
|
116
|
+
}), t(a, {
|
|
117
|
+
label: m("components.formEditor.common.minValue")
|
|
118
|
+
}, {
|
|
119
|
+
default: () => [t(u, {
|
|
120
|
+
value: o.value.attr.min,
|
|
121
|
+
"onUpdate:value": (e) => o.value.attr.min = e
|
|
122
|
+
}, null)]
|
|
123
|
+
}), t(a, {
|
|
124
|
+
label: m("components.formEditor.common.maxValue")
|
|
125
|
+
}, {
|
|
126
|
+
default: () => [t(u, {
|
|
127
|
+
value: o.value.attr.max,
|
|
128
|
+
"onUpdate:value": (e) => o.value.attr.max = e
|
|
129
|
+
}, null)]
|
|
130
|
+
}), t(a, {
|
|
131
|
+
label: m("components.formEditor.common.prefix")
|
|
132
|
+
}, {
|
|
133
|
+
default: () => [t(n, {
|
|
134
|
+
value: o.value.attr["v-slot:prefix"],
|
|
135
|
+
"onUpdate:value": (e) => o.value.attr["v-slot:prefix"] = e
|
|
136
|
+
}, null)]
|
|
137
|
+
}), t(a, {
|
|
138
|
+
label: m("components.formEditor.common.suffix")
|
|
139
|
+
}, {
|
|
140
|
+
default: () => [t(n, {
|
|
141
|
+
value: o.value.attr["v-slot:suffix"],
|
|
142
|
+
"onUpdate:value": (e) => o.value.attr["v-slot:suffix"] = e
|
|
143
|
+
}, null)]
|
|
144
|
+
}), t(a, {
|
|
145
|
+
label: m("components.formEditor.common.status")
|
|
146
|
+
}, {
|
|
147
|
+
default: () => [t("div", {
|
|
148
|
+
class: "w-full grid grid-cols-2"
|
|
149
|
+
}, [t(i, {
|
|
150
|
+
label: m("components.formEditor.common.readonly"),
|
|
151
|
+
checked: o.value.attr.readonly,
|
|
152
|
+
"onUpdate:checked": (e) => o.value.attr.readonly = e
|
|
153
|
+
}, null), t(i, {
|
|
154
|
+
label: m("components.formEditor.common.disabled"),
|
|
155
|
+
checked: o.value.attr.disabled,
|
|
156
|
+
"onUpdate:checked": (e) => o.value.attr.disabled = e
|
|
157
|
+
}, null), t(i, {
|
|
158
|
+
label: m("components.formEditor.common.clearable"),
|
|
159
|
+
checked: o.value.attr.clearable,
|
|
160
|
+
"onUpdate:checked": (e) => o.value.attr.clearable = e
|
|
161
|
+
}, null)])]
|
|
162
|
+
})]
|
|
163
|
+
}), t(f, {
|
|
164
|
+
value: o.value.rule,
|
|
165
|
+
"onUpdate:value": (e) => o.value.rule = e
|
|
166
|
+
}, null)]);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
function st(l) {
|
|
170
|
+
return {
|
|
171
|
+
name: "dux-input-number",
|
|
172
|
+
icon: "i-tabler:number",
|
|
173
|
+
label: l("components.formEditor.inputNumber.label"),
|
|
174
|
+
group: "form",
|
|
175
|
+
component: (r) => t(b, r, null),
|
|
176
|
+
setting: (r) => t(E, r, null),
|
|
177
|
+
settingDefault: {
|
|
178
|
+
label: l("components.formEditor.inputNumber.label"),
|
|
179
|
+
name: "number",
|
|
180
|
+
attr: {},
|
|
181
|
+
rule: []
|
|
182
|
+
},
|
|
183
|
+
json: x
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
st as duxFormEditorInputNumber
|
|
188
|
+
};
|