@fangzhongya/fang-ui 0.1.55 → 0.1.56
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/components/audios/src/index2.cjs +16 -10
- package/dist/components/audios/src/index2.js +16 -10
- package/dist/components/box-adjust/src/index2.cjs +6 -4
- package/dist/components/box-adjust/src/index2.js +6 -4
- package/dist/components/box-title/src/index2.cjs +3 -2
- package/dist/components/box-title/src/index2.js +3 -2
- package/dist/components/buttons/src/data.d.ts +5 -5
- package/dist/components/buttons/src/index2.cjs +2 -2
- package/dist/components/buttons/src/index2.js +2 -2
- package/dist/components/cascaders/src/data.d.ts +5 -5
- package/dist/components/checks/src/data.d.ts +5 -5
- package/dist/components/common/list.d.ts +1 -1
- package/dist/components/common/use.cjs +1 -1
- package/dist/components/common/use.js +1 -1
- package/dist/components/dates/src/data.d.ts +5 -5
- package/dist/components/dates2/src/data.d.ts +5 -5
- package/dist/components/double/src/index2.cjs +3 -2
- package/dist/components/double/src/index2.js +3 -2
- package/dist/components/edit/src/index2.cjs +3 -2
- package/dist/components/edit/src/index2.js +3 -2
- package/dist/components/edit-data/src/area/array-json2.cjs +8 -4
- package/dist/components/edit-data/src/area/array-json2.js +8 -4
- package/dist/components/edit-data/src/area/array2.cjs +46 -8
- package/dist/components/edit-data/src/area/array2.js +47 -9
- package/dist/components/edit-data/src/area/editor2.cjs +22 -4
- package/dist/components/edit-data/src/area/editor2.js +22 -4
- package/dist/components/edit-data/src/area/general2.cjs +8 -1
- package/dist/components/edit-data/src/area/general2.js +8 -1
- package/dist/components/edit-data/src/area/object-json2.cjs +5 -1
- package/dist/components/edit-data/src/area/object-json2.js +5 -1
- package/dist/components/edit-data/src/area/object2.cjs +48 -11
- package/dist/components/edit-data/src/area/object2.js +49 -12
- package/dist/components/edit-data/src/data/array2.cjs +9 -5
- package/dist/components/edit-data/src/data/array2.js +9 -5
- package/dist/components/edit-data/src/data/bigint2.cjs +7 -3
- package/dist/components/edit-data/src/data/bigint2.js +7 -3
- package/dist/components/edit-data/src/data/boolean2.cjs +7 -3
- package/dist/components/edit-data/src/data/boolean2.js +7 -3
- package/dist/components/edit-data/src/data/date.cjs +4 -0
- package/dist/components/edit-data/src/data/date.js +4 -0
- package/dist/components/edit-data/src/data/date2.cjs +48 -0
- package/dist/components/edit-data/src/data/date2.js +48 -0
- package/dist/components/edit-data/src/data/function2.cjs +16 -7
- package/dist/components/edit-data/src/data/function2.js +17 -8
- package/dist/components/edit-data/src/data/null2.cjs +3 -1
- package/dist/components/edit-data/src/data/null2.js +4 -2
- package/dist/components/edit-data/src/data/number2.cjs +7 -3
- package/dist/components/edit-data/src/data/number2.js +7 -3
- package/dist/components/edit-data/src/data/object2.cjs +9 -5
- package/dist/components/edit-data/src/data/object2.js +9 -5
- package/dist/components/edit-data/src/data/other2.cjs +13 -5
- package/dist/components/edit-data/src/data/other2.js +14 -6
- package/dist/components/edit-data/src/data/string2.cjs +7 -3
- package/dist/components/edit-data/src/data/string2.js +7 -3
- package/dist/components/edit-data/src/data/symbol2.cjs +7 -3
- package/dist/components/edit-data/src/data/symbol2.js +7 -3
- package/dist/components/edit-data/src/data/undefined2.cjs +3 -1
- package/dist/components/edit-data/src/data/undefined2.js +4 -2
- package/dist/components/edit-data/src/data.cjs +10 -0
- package/dist/components/edit-data/src/data.d.ts +20 -0
- package/dist/components/edit-data/src/data.js +10 -0
- package/dist/components/edit-data/src/index2.cjs +31 -2
- package/dist/components/edit-data/src/index2.js +45 -16
- package/dist/components/edit-data-add/src/index2.cjs +2 -0
- package/dist/components/edit-data-add/src/index2.js +2 -0
- package/dist/components/edit-float/src/index2.cjs +3 -2
- package/dist/components/edit-float/src/index2.js +3 -2
- package/dist/components/history/src/index2.cjs +6 -4
- package/dist/components/history/src/index2.js +6 -4
- package/dist/components/input-array/src/index2.cjs +3 -2
- package/dist/components/input-array/src/index2.js +3 -2
- package/dist/components/input-history/src/index2.cjs +3 -2
- package/dist/components/input-history/src/index2.js +3 -2
- package/dist/components/input-select/src/index2.cjs +6 -4
- package/dist/components/input-select/src/index2.js +6 -4
- package/dist/components/labels/src/data.d.ts +5 -5
- package/dist/components/message/index.d.ts +11 -4
- package/dist/components/message/src/function.d.ts +11 -4
- package/dist/components/message-box/index.d.ts +2 -3
- package/dist/components/message-box/src/function.d.ts +2 -3
- package/dist/components/retract/index.css +23 -20
- package/dist/components/retract/index.scss +39 -20
- package/dist/components/retract/src/data.cjs +4 -1
- package/dist/components/retract/src/data.d.ts +4 -1
- package/dist/components/retract/src/data.js +4 -1
- package/dist/components/retract/src/index2.cjs +12 -10
- package/dist/components/retract/src/index2.js +9 -7
- package/dist/components/right-key/index.css +2 -1
- package/dist/components/right-key/index.scss +2 -1
- package/dist/components/right-key/src/data.cjs +7 -2
- package/dist/components/right-key/src/data.d.ts +5 -0
- package/dist/components/right-key/src/data.js +7 -2
- package/dist/components/right-key/src/index2.cjs +134 -60
- package/dist/components/right-key/src/index2.js +135 -61
- package/dist/components/selects/src/data.d.ts +5 -5
- package/dist/components/stick-window/src/index2.cjs +3 -2
- package/dist/components/stick-window/src/index2.js +3 -2
- package/dist/components/switchs/src/data.d.ts +5 -4
- package/dist/components/uploads/src/data.d.ts +5 -5
- package/dist/components/uploads/src/index2.cjs +26 -21
- package/dist/components/uploads/src/index2.js +15 -10
- package/dist/components/videos/src/index2.cjs +30 -19
- package/dist/components/videos/src/index2.js +30 -19
- package/dist/components/window/src/index2.cjs +9 -6
- package/dist/components/window/src/index2.js +9 -6
- package/dist/css/index.css +25 -21
- package/dist/css/retract.css +23 -20
- package/dist/css/right-key.css +2 -1
- package/dist/hooks/model/index.cjs +25 -0
- package/dist/hooks/model/index.d.ts +2 -0
- package/dist/hooks/model/index.js +25 -0
- package/dist/icons/index.json +1 -1
- package/dist/icons/vue/bar.cjs +2 -18
- package/dist/icons/vue/bar.js +1 -17
- package/dist/icons/vue/bar2.cjs +21 -2
- package/dist/icons/vue/bar2.js +21 -2
- package/dist/icons/vue/below.cjs +2 -18
- package/dist/icons/vue/below.js +1 -17
- package/dist/icons/vue/below2.cjs +21 -2
- package/dist/icons/vue/below2.js +21 -2
- package/dist/icons/vue/bicycle.cjs +2 -15
- package/dist/icons/vue/bicycle.js +1 -14
- package/dist/icons/vue/bicycle2.cjs +18 -2
- package/dist/icons/vue/bicycle2.js +18 -2
- package/dist/icons/vue/bottom-left.cjs +2 -22
- package/dist/icons/vue/bottom-left.js +1 -21
- package/dist/icons/vue/bottom-left2.cjs +25 -2
- package/dist/icons/vue/bottom-left2.js +25 -2
- package/dist/icons/vue/bottom-right.cjs +2 -22
- package/dist/icons/vue/bottom-right.js +1 -21
- package/dist/icons/vue/bottom-right2.cjs +25 -2
- package/dist/icons/vue/bottom-right2.js +25 -2
- package/dist/icons/vue/bottom.cjs +2 -18
- package/dist/icons/vue/bottom.js +1 -17
- package/dist/icons/vue/bottom2.cjs +21 -2
- package/dist/icons/vue/bottom2.js +21 -2
- package/dist/icons/vue/catalogue.cjs +2 -23
- package/dist/icons/vue/catalogue.js +1 -22
- package/dist/icons/vue/catalogue2.cjs +26 -2
- package/dist/icons/vue/catalogue2.js +26 -2
- package/dist/icons/vue/clear.cjs +2 -23
- package/dist/icons/vue/clear.js +1 -22
- package/dist/icons/vue/clear2.cjs +26 -2
- package/dist/icons/vue/clear2.js +26 -2
- package/dist/icons/vue/close.cjs +2 -18
- package/dist/icons/vue/close.js +1 -17
- package/dist/icons/vue/close2.cjs +21 -2
- package/dist/icons/vue/close2.js +21 -2
- package/dist/icons/vue/delete.cjs +2 -18
- package/dist/icons/vue/delete.js +1 -17
- package/dist/icons/vue/delete2.cjs +21 -2
- package/dist/icons/vue/delete2.js +21 -2
- package/dist/icons/vue/document.cjs +2 -23
- package/dist/icons/vue/document.js +1 -22
- package/dist/icons/vue/document2.cjs +26 -2
- package/dist/icons/vue/document2.js +26 -2
- package/dist/icons/vue/down.cjs +2 -18
- package/dist/icons/vue/down.js +1 -17
- package/dist/icons/vue/down2.cjs +21 -2
- package/dist/icons/vue/down2.js +21 -2
- package/dist/icons/vue/download.cjs +2 -18
- package/dist/icons/vue/download.js +1 -17
- package/dist/icons/vue/download2.cjs +21 -2
- package/dist/icons/vue/download2.js +21 -2
- package/dist/icons/vue/edit.cjs +2 -23
- package/dist/icons/vue/edit.js +1 -22
- package/dist/icons/vue/edit2.cjs +26 -2
- package/dist/icons/vue/edit2.js +26 -2
- package/dist/icons/vue/enter.cjs +2 -19
- package/dist/icons/vue/enter.js +1 -18
- package/dist/icons/vue/enter2.cjs +22 -2
- package/dist/icons/vue/enter2.js +22 -2
- package/dist/icons/vue/frame.cjs +2 -15
- package/dist/icons/vue/frame.js +1 -14
- package/dist/icons/vue/frame2.cjs +18 -2
- package/dist/icons/vue/frame2.js +18 -2
- package/dist/icons/vue/index.cjs +81 -54
- package/dist/icons/vue/index.js +54 -27
- package/dist/icons/vue/left.cjs +2 -18
- package/dist/icons/vue/left.js +1 -17
- package/dist/icons/vue/left2.cjs +21 -2
- package/dist/icons/vue/left2.js +21 -2
- package/dist/icons/vue/mute.cjs +2 -18
- package/dist/icons/vue/mute.js +1 -17
- package/dist/icons/vue/mute2.cjs +21 -2
- package/dist/icons/vue/mute2.js +21 -2
- package/dist/icons/vue/pause.cjs +2 -24
- package/dist/icons/vue/pause.js +1 -23
- package/dist/icons/vue/pause2.cjs +27 -2
- package/dist/icons/vue/pause2.js +27 -2
- package/dist/icons/vue/play.cjs +2 -19
- package/dist/icons/vue/play.js +1 -18
- package/dist/icons/vue/play2.cjs +22 -2
- package/dist/icons/vue/play2.js +22 -2
- package/dist/icons/vue/plus.cjs +2 -18
- package/dist/icons/vue/plus.js +1 -17
- package/dist/icons/vue/plus2.cjs +21 -2
- package/dist/icons/vue/plus2.js +21 -2
- package/dist/icons/vue/retreat.cjs +2 -19
- package/dist/icons/vue/retreat.js +1 -18
- package/dist/icons/vue/retreat2.cjs +22 -2
- package/dist/icons/vue/retreat2.js +22 -2
- package/dist/icons/vue/right.cjs +2 -18
- package/dist/icons/vue/right.js +1 -17
- package/dist/icons/vue/right2.cjs +21 -2
- package/dist/icons/vue/right2.js +21 -2
- package/dist/icons/vue/sound.cjs +2 -22
- package/dist/icons/vue/sound.js +1 -21
- package/dist/icons/vue/sound2.cjs +25 -2
- package/dist/icons/vue/sound2.js +25 -2
- package/dist/icons/vue/star.cjs +2 -22
- package/dist/icons/vue/star.js +1 -21
- package/dist/icons/vue/star2.cjs +25 -2
- package/dist/icons/vue/star2.js +25 -2
- package/dist/icons/vue/up.cjs +2 -18
- package/dist/icons/vue/up.js +1 -17
- package/dist/icons/vue/up2.cjs +21 -2
- package/dist/icons/vue/up2.js +21 -2
- package/dist/icons/vue/views.cjs +2 -18
- package/dist/icons/vue/views.js +1 -17
- package/dist/icons/vue/views2.cjs +21 -2
- package/dist/icons/vue/views2.js +21 -2
- package/dist/index.css +25 -21
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/shared.cjs +19 -0
- package/dist/utils/vues/shared.d.ts +5 -0
- package/dist/utils/vues/shared.js +19 -0
- package/package.json +12 -13
- package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -10
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- /package/dist/components/{box-fun → box}/index.css +0 -0
- /package/dist/css/{box-fun.css → box.css} +0 -0
|
@@ -3,7 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const index$5 = require("../../../no-data/index.cjs");
|
|
5
5
|
const index$3 = require("../../../icon/index.cjs");
|
|
6
|
-
|
|
6
|
+
require("../../../../icons/vue/edit.cjs");
|
|
7
|
+
require("../../../../icons/vue/delete.cjs");
|
|
7
8
|
const data = require("../data.cjs");
|
|
8
9
|
const index = require("../../../../hooks/cssname/index.cjs");
|
|
9
10
|
const index$1 = require("../../../../hooks/locale/index.cjs");
|
|
@@ -12,6 +13,8 @@ const index$4 = require("../../../../directives/sortable/index.cjs");
|
|
|
12
13
|
const index$2 = require("../../../button/index.cjs");
|
|
13
14
|
const index$6 = require("../../../edit-data-add/index.cjs");
|
|
14
15
|
const index_vue_vue_type_script_setup_true_lang = require("../index2.cjs");
|
|
16
|
+
const edit_vue_vue_type_script_setup_true_lang = require("../../../../icons/vue/edit2.cjs");
|
|
17
|
+
const delete_vue_vue_type_script_setup_true_lang = require("../../../../icons/vue/delete2.cjs");
|
|
15
18
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
19
|
__name: "array",
|
|
17
20
|
props: data.dataDataProps,
|
|
@@ -21,7 +24,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
24
|
const { getLocale } = index$1.useLocale();
|
|
22
25
|
const props = __props;
|
|
23
26
|
const emit = __emit;
|
|
24
|
-
const box = vue.
|
|
27
|
+
const box = vue.reactive({
|
|
28
|
+
value: false,
|
|
29
|
+
type: 0,
|
|
30
|
+
row: 0
|
|
31
|
+
});
|
|
25
32
|
const value = vue.computed({
|
|
26
33
|
get() {
|
|
27
34
|
return props.modelValue;
|
|
@@ -47,13 +54,28 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
54
|
};
|
|
48
55
|
const onAdd = () => {
|
|
49
56
|
box.value = true;
|
|
57
|
+
box.type = 0;
|
|
58
|
+
box.row = 0;
|
|
50
59
|
};
|
|
51
60
|
const onSubmit = (v) => {
|
|
52
|
-
value.value
|
|
61
|
+
if (value.value === void 0) {
|
|
62
|
+
value.value = [v.value];
|
|
63
|
+
} else {
|
|
64
|
+
if (box.type == 0) {
|
|
65
|
+
value.value.push(v.value);
|
|
66
|
+
} else {
|
|
67
|
+
value.value[box.row] = v.value;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
53
70
|
};
|
|
54
71
|
const onDelete = (index2) => {
|
|
55
72
|
value.value.splice(index2, 1);
|
|
56
73
|
};
|
|
74
|
+
const onEdit = (index2) => {
|
|
75
|
+
box.value = true;
|
|
76
|
+
box.type = 1;
|
|
77
|
+
box.row = index2;
|
|
78
|
+
};
|
|
57
79
|
return (_ctx, _cache) => {
|
|
58
80
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
59
81
|
class: vue.normalizeClass(vue.unref(cs).z("area-array"))
|
|
@@ -94,8 +116,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
116
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
95
117
|
], 2),
|
|
96
118
|
vue.createElementVNode("div", null, [
|
|
97
|
-
props.
|
|
119
|
+
props.isEmpty && item === void 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Button), {
|
|
98
120
|
key: 0,
|
|
121
|
+
type: "primary",
|
|
122
|
+
onClick: ($event) => onEdit(index2),
|
|
123
|
+
text: ""
|
|
124
|
+
}, {
|
|
125
|
+
default: vue.withCtx(() => [
|
|
126
|
+
vue.createVNode(vue.unref(index$3.Icon), { title: "修改" }, {
|
|
127
|
+
default: vue.withCtx(() => [
|
|
128
|
+
vue.createVNode(edit_vue_vue_type_script_setup_true_lang.default)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["onClick"])) : vue.createCommentVNode("", true),
|
|
135
|
+
props.editable ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Button), {
|
|
136
|
+
key: 1,
|
|
99
137
|
type: "danger",
|
|
100
138
|
onClick: ($event) => onDelete(index2),
|
|
101
139
|
text: ""
|
|
@@ -103,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
103
141
|
default: vue.withCtx(() => [
|
|
104
142
|
vue.createVNode(vue.unref(index$3.Icon), { title: "删除" }, {
|
|
105
143
|
default: vue.withCtx(() => [
|
|
106
|
-
vue.createVNode(
|
|
144
|
+
vue.createVNode(delete_vue_vue_type_script_setup_true_lang.default)
|
|
107
145
|
]),
|
|
108
146
|
_: 1
|
|
109
147
|
})
|
|
@@ -116,18 +154,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
116
154
|
], 2)), [
|
|
117
155
|
[vue.unref(index$4.default), sortable]
|
|
118
156
|
]),
|
|
119
|
-
value.value.length == 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.NoData), {
|
|
157
|
+
(value.value ? value.value.length == 0 : true) ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.NoData), {
|
|
120
158
|
key: 1,
|
|
121
159
|
value: "空数组"
|
|
122
160
|
})) : vue.createCommentVNode("", true),
|
|
123
161
|
vue.createVNode(vue.unref(index$6.EditDataAdd), vue.mergeProps(props, {
|
|
124
162
|
type: "array",
|
|
125
163
|
labelName: "数组",
|
|
126
|
-
title: "新增数组",
|
|
164
|
+
title: box.type == 1 ? "修改数组" : "新增数组",
|
|
127
165
|
modelValue: box.value,
|
|
128
166
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => box.value = $event),
|
|
129
167
|
onSubmit
|
|
130
|
-
}), null, 16, ["modelValue"])
|
|
168
|
+
}), null, 16, ["title", "modelValue"])
|
|
131
169
|
], 2);
|
|
132
170
|
};
|
|
133
171
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, reactive, computed, ref, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, withDirectives, createBlock, createVNode, withCtx, createTextVNode, Fragment, renderList, createElementVNode, toDisplayString, mergeProps } from "vue";
|
|
2
2
|
import { NoData } from "../../../no-data/index.js";
|
|
3
3
|
import { Icon } from "../../../icon/index.js";
|
|
4
|
-
import
|
|
4
|
+
import "../../../../icons/vue/edit.js";
|
|
5
|
+
import "../../../../icons/vue/delete.js";
|
|
5
6
|
import { name, dataDataEmits, dataDataProps } from "../data.js";
|
|
6
7
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
7
8
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -10,6 +11,8 @@ import vSortable from "../../../../directives/sortable/index.js";
|
|
|
10
11
|
import { Button } from "../../../button/index.js";
|
|
11
12
|
import { EditDataAdd } from "../../../edit-data-add/index.js";
|
|
12
13
|
import _sfc_main$1 from "../index2.js";
|
|
14
|
+
import _sfc_main$2 from "../../../../icons/vue/edit2.js";
|
|
15
|
+
import _sfc_main$3 from "../../../../icons/vue/delete2.js";
|
|
13
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
17
|
__name: "array",
|
|
15
18
|
props: dataDataProps,
|
|
@@ -19,7 +22,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
22
|
const { getLocale } = useLocale();
|
|
20
23
|
const props = __props;
|
|
21
24
|
const emit = __emit;
|
|
22
|
-
const box =
|
|
25
|
+
const box = reactive({
|
|
26
|
+
value: false,
|
|
27
|
+
type: 0,
|
|
28
|
+
row: 0
|
|
29
|
+
});
|
|
23
30
|
const value = computed({
|
|
24
31
|
get() {
|
|
25
32
|
return props.modelValue;
|
|
@@ -45,13 +52,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
52
|
};
|
|
46
53
|
const onAdd = () => {
|
|
47
54
|
box.value = true;
|
|
55
|
+
box.type = 0;
|
|
56
|
+
box.row = 0;
|
|
48
57
|
};
|
|
49
58
|
const onSubmit = (v) => {
|
|
50
|
-
value.value
|
|
59
|
+
if (value.value === void 0) {
|
|
60
|
+
value.value = [v.value];
|
|
61
|
+
} else {
|
|
62
|
+
if (box.type == 0) {
|
|
63
|
+
value.value.push(v.value);
|
|
64
|
+
} else {
|
|
65
|
+
value.value[box.row] = v.value;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
51
68
|
};
|
|
52
69
|
const onDelete = (index) => {
|
|
53
70
|
value.value.splice(index, 1);
|
|
54
71
|
};
|
|
72
|
+
const onEdit = (index) => {
|
|
73
|
+
box.value = true;
|
|
74
|
+
box.type = 1;
|
|
75
|
+
box.row = index;
|
|
76
|
+
};
|
|
55
77
|
return (_ctx, _cache) => {
|
|
56
78
|
return openBlock(), createElementBlock("div", {
|
|
57
79
|
class: normalizeClass(unref(cs).z("area-array"))
|
|
@@ -92,8 +114,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
114
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
93
115
|
], 2),
|
|
94
116
|
createElementVNode("div", null, [
|
|
95
|
-
props.
|
|
117
|
+
props.isEmpty && item === void 0 ? (openBlock(), createBlock(unref(Button), {
|
|
96
118
|
key: 0,
|
|
119
|
+
type: "primary",
|
|
120
|
+
onClick: ($event) => onEdit(index),
|
|
121
|
+
text: ""
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
createVNode(unref(Icon), { title: "修改" }, {
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createVNode(_sfc_main$2)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
133
|
+
props.editable ? (openBlock(), createBlock(unref(Button), {
|
|
134
|
+
key: 1,
|
|
97
135
|
type: "danger",
|
|
98
136
|
onClick: ($event) => onDelete(index),
|
|
99
137
|
text: ""
|
|
@@ -101,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
139
|
default: withCtx(() => [
|
|
102
140
|
createVNode(unref(Icon), { title: "删除" }, {
|
|
103
141
|
default: withCtx(() => [
|
|
104
|
-
createVNode(
|
|
142
|
+
createVNode(_sfc_main$3)
|
|
105
143
|
]),
|
|
106
144
|
_: 1
|
|
107
145
|
})
|
|
@@ -114,18 +152,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
152
|
], 2)), [
|
|
115
153
|
[unref(vSortable), sortable]
|
|
116
154
|
]),
|
|
117
|
-
value.value.length == 0 ? (openBlock(), createBlock(unref(NoData), {
|
|
155
|
+
(value.value ? value.value.length == 0 : true) ? (openBlock(), createBlock(unref(NoData), {
|
|
118
156
|
key: 1,
|
|
119
157
|
value: "空数组"
|
|
120
158
|
})) : createCommentVNode("", true),
|
|
121
159
|
createVNode(unref(EditDataAdd), mergeProps(props, {
|
|
122
160
|
type: "array",
|
|
123
161
|
labelName: "数组",
|
|
124
|
-
title: "新增数组",
|
|
162
|
+
title: box.type == 1 ? "修改数组" : "新增数组",
|
|
125
163
|
modelValue: box.value,
|
|
126
164
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => box.value = $event),
|
|
127
165
|
onSubmit
|
|
128
|
-
}), null, 16, ["modelValue"])
|
|
166
|
+
}), null, 16, ["title", "modelValue"])
|
|
129
167
|
], 2);
|
|
130
168
|
};
|
|
131
169
|
}
|
|
@@ -33,12 +33,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
const { getLocale } = index$1.useLocale();
|
|
34
34
|
const props = __props;
|
|
35
35
|
const emit = __emit;
|
|
36
|
-
const code = vue.ref(props.value);
|
|
36
|
+
const code = vue.ref(props.value ?? props.default);
|
|
37
37
|
const value = vue.computed({
|
|
38
38
|
get() {
|
|
39
39
|
const v = props.modelValue;
|
|
40
40
|
if (v) {
|
|
41
|
-
code.value = props.value;
|
|
41
|
+
code.value = props.value ?? props.default;
|
|
42
42
|
}
|
|
43
43
|
return v;
|
|
44
44
|
},
|
|
@@ -49,11 +49,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
const size = vue.ref(0);
|
|
50
50
|
function onClick(key) {
|
|
51
51
|
if (key == 9) {
|
|
52
|
-
|
|
52
|
+
const v = props.value ?? props.default;
|
|
53
|
+
if (v) {
|
|
54
|
+
code.value = v;
|
|
55
|
+
} else {
|
|
56
|
+
if (props.type == "object") {
|
|
57
|
+
code.value = {};
|
|
58
|
+
} else if (props.type == "array") {
|
|
59
|
+
code.value = [];
|
|
60
|
+
} else if (props.type == "function") {
|
|
61
|
+
code.value = function() {
|
|
62
|
+
};
|
|
63
|
+
} else {
|
|
64
|
+
code.value = void 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
53
67
|
} else if (key == 1) {
|
|
54
68
|
submit();
|
|
55
69
|
} else {
|
|
56
|
-
code.value =
|
|
70
|
+
code.value = void 0;
|
|
57
71
|
}
|
|
58
72
|
}
|
|
59
73
|
function submit() {
|
|
@@ -84,6 +98,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
98
|
}, [
|
|
85
99
|
props.type == "array" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
86
100
|
props.isJson ? (vue.openBlock(), vue.createBlock(arrayJson_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({ key: 0 }, props, {
|
|
101
|
+
default: void 0,
|
|
87
102
|
modelValue: code.value,
|
|
88
103
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => code.value = $event)
|
|
89
104
|
}), {
|
|
@@ -97,11 +112,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
112
|
]),
|
|
98
113
|
_: 1
|
|
99
114
|
}, 16, ["modelValue"])) : (vue.openBlock(), vue.createBlock(array_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({ key: 1 }, props, {
|
|
115
|
+
default: void 0,
|
|
100
116
|
modelValue: code.value,
|
|
101
117
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => code.value = $event)
|
|
102
118
|
}), null, 16, ["modelValue"]))
|
|
103
119
|
], 64)) : props.type == "object" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
104
120
|
props.isJson ? (vue.openBlock(), vue.createBlock(objectJson_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({ key: 0 }, props, {
|
|
121
|
+
default: void 0,
|
|
105
122
|
modelValue: code.value,
|
|
106
123
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => code.value = $event)
|
|
107
124
|
}), {
|
|
@@ -115,6 +132,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
132
|
]),
|
|
116
133
|
_: 1
|
|
117
134
|
}, 16, ["modelValue"])) : (vue.openBlock(), vue.createBlock(object_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({ key: 1 }, props, {
|
|
135
|
+
default: void 0,
|
|
118
136
|
modelValue: code.value,
|
|
119
137
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => code.value = $event)
|
|
120
138
|
}), null, 16, ["modelValue"]))
|
|
@@ -31,12 +31,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
const { getLocale } = useLocale();
|
|
32
32
|
const props = __props;
|
|
33
33
|
const emit = __emit;
|
|
34
|
-
const code = ref(props.value);
|
|
34
|
+
const code = ref(props.value ?? props.default);
|
|
35
35
|
const value = computed({
|
|
36
36
|
get() {
|
|
37
37
|
const v = props.modelValue;
|
|
38
38
|
if (v) {
|
|
39
|
-
code.value = props.value;
|
|
39
|
+
code.value = props.value ?? props.default;
|
|
40
40
|
}
|
|
41
41
|
return v;
|
|
42
42
|
},
|
|
@@ -47,11 +47,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
const size = ref(0);
|
|
48
48
|
function onClick(key) {
|
|
49
49
|
if (key == 9) {
|
|
50
|
-
|
|
50
|
+
const v = props.value ?? props.default;
|
|
51
|
+
if (v) {
|
|
52
|
+
code.value = v;
|
|
53
|
+
} else {
|
|
54
|
+
if (props.type == "object") {
|
|
55
|
+
code.value = {};
|
|
56
|
+
} else if (props.type == "array") {
|
|
57
|
+
code.value = [];
|
|
58
|
+
} else if (props.type == "function") {
|
|
59
|
+
code.value = function() {
|
|
60
|
+
};
|
|
61
|
+
} else {
|
|
62
|
+
code.value = void 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
51
65
|
} else if (key == 1) {
|
|
52
66
|
submit();
|
|
53
67
|
} else {
|
|
54
|
-
code.value =
|
|
68
|
+
code.value = void 0;
|
|
55
69
|
}
|
|
56
70
|
}
|
|
57
71
|
function submit() {
|
|
@@ -82,6 +96,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
96
|
}, [
|
|
83
97
|
props.type == "array" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
84
98
|
props.isJson ? (openBlock(), createBlock(_sfc_main$1, mergeProps({ key: 0 }, props, {
|
|
99
|
+
default: void 0,
|
|
85
100
|
modelValue: code.value,
|
|
86
101
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => code.value = $event)
|
|
87
102
|
}), {
|
|
@@ -95,11 +110,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
110
|
]),
|
|
96
111
|
_: 1
|
|
97
112
|
}, 16, ["modelValue"])) : (openBlock(), createBlock(_sfc_main$3, mergeProps({ key: 1 }, props, {
|
|
113
|
+
default: void 0,
|
|
98
114
|
modelValue: code.value,
|
|
99
115
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => code.value = $event)
|
|
100
116
|
}), null, 16, ["modelValue"]))
|
|
101
117
|
], 64)) : props.type == "object" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
102
118
|
props.isJson ? (openBlock(), createBlock(_sfc_main$4, mergeProps({ key: 0 }, props, {
|
|
119
|
+
default: void 0,
|
|
103
120
|
modelValue: code.value,
|
|
104
121
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => code.value = $event)
|
|
105
122
|
}), {
|
|
@@ -113,6 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
130
|
]),
|
|
114
131
|
_: 1
|
|
115
132
|
}, 16, ["modelValue"])) : (openBlock(), createBlock(_sfc_main$5, mergeProps({ key: 1 }, props, {
|
|
133
|
+
default: void 0,
|
|
116
134
|
modelValue: code.value,
|
|
117
135
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => code.value = $event)
|
|
118
136
|
}), null, 16, ["modelValue"]))
|
|
@@ -8,6 +8,7 @@ const index$2 = require("../../../inputs/index.cjs");
|
|
|
8
8
|
const index$3 = require("../../../button/index.cjs");
|
|
9
9
|
require("./editor.cjs");
|
|
10
10
|
const index$4 = require("../../../message/index.cjs");
|
|
11
|
+
const deepCopy = require("@fangzhongya/utils/basic/object/deepCopy");
|
|
11
12
|
const json5 = require("json5");
|
|
12
13
|
const editor_vue_vue_type_script_setup_true_lang = require("./editor2.cjs");
|
|
13
14
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -32,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
33
|
emit("update:modelValue", value2);
|
|
33
34
|
}
|
|
34
35
|
});
|
|
36
|
+
const code = vue.ref();
|
|
35
37
|
const inputValue = vue.computed(() => {
|
|
36
38
|
if (value.value) {
|
|
37
39
|
return json5.stringify(value.value);
|
|
@@ -51,6 +53,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
51
53
|
box.value = false;
|
|
52
54
|
};
|
|
53
55
|
const onClick = () => {
|
|
56
|
+
if (props.isConfirmUpdate) {
|
|
57
|
+
code.value = deepCopy.deepCopy(props.modelValue);
|
|
58
|
+
} else {
|
|
59
|
+
code.value = value.value;
|
|
60
|
+
}
|
|
54
61
|
box.value = true;
|
|
55
62
|
};
|
|
56
63
|
return (_ctx, _cache) => {
|
|
@@ -78,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
85
|
vue.createVNode(editor_vue_vue_type_script_setup_true_lang.default, vue.mergeProps(props, {
|
|
79
86
|
modelValue: box.value,
|
|
80
87
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => box.value = $event),
|
|
81
|
-
value:
|
|
88
|
+
value: code.value,
|
|
82
89
|
onSubmit
|
|
83
90
|
}), null, 16, ["modelValue", "value"])
|
|
84
91
|
], 2);
|
|
@@ -6,6 +6,7 @@ import { Inputs } from "../../../inputs/index.js";
|
|
|
6
6
|
import { Button } from "../../../button/index.js";
|
|
7
7
|
import "./editor.js";
|
|
8
8
|
import { Message } from "../../../message/index.js";
|
|
9
|
+
import { deepCopy } from "@fangzhongya/utils/basic/object/deepCopy";
|
|
9
10
|
import json5 from "json5";
|
|
10
11
|
import _sfc_main$1 from "./editor2.js";
|
|
11
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -30,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
31
|
emit("update:modelValue", value2);
|
|
31
32
|
}
|
|
32
33
|
});
|
|
34
|
+
const code = ref();
|
|
33
35
|
const inputValue = computed(() => {
|
|
34
36
|
if (value.value) {
|
|
35
37
|
return json5.stringify(value.value);
|
|
@@ -49,6 +51,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
51
|
box.value = false;
|
|
50
52
|
};
|
|
51
53
|
const onClick = () => {
|
|
54
|
+
if (props.isConfirmUpdate) {
|
|
55
|
+
code.value = deepCopy(props.modelValue);
|
|
56
|
+
} else {
|
|
57
|
+
code.value = value.value;
|
|
58
|
+
}
|
|
52
59
|
box.value = true;
|
|
53
60
|
};
|
|
54
61
|
return (_ctx, _cache) => {
|
|
@@ -76,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
83
|
createVNode(_sfc_main$1, mergeProps(props, {
|
|
77
84
|
modelValue: box.value,
|
|
78
85
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => box.value = $event),
|
|
79
|
-
value:
|
|
86
|
+
value: code.value,
|
|
80
87
|
onSubmit
|
|
81
88
|
}), null, 16, ["modelValue", "value"])
|
|
82
89
|
], 2);
|
|
@@ -55,7 +55,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
if (typeof value.value === "string") {
|
|
56
56
|
value.value = value.value;
|
|
57
57
|
} else {
|
|
58
|
-
|
|
58
|
+
let o = value.value;
|
|
59
|
+
if (!props.isEmpty) {
|
|
60
|
+
o = o || {};
|
|
61
|
+
}
|
|
62
|
+
const v = json5.stringify(o, null, 4);
|
|
59
63
|
value.value = v;
|
|
60
64
|
}
|
|
61
65
|
return true;
|
|
@@ -53,7 +53,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
if (typeof value.value === "string") {
|
|
54
54
|
value.value = value.value;
|
|
55
55
|
} else {
|
|
56
|
-
|
|
56
|
+
let o = value.value;
|
|
57
|
+
if (!props.isEmpty) {
|
|
58
|
+
o = o || {};
|
|
59
|
+
}
|
|
60
|
+
const v = json5.stringify(o, null, 4);
|
|
57
61
|
value.value = v;
|
|
58
62
|
}
|
|
59
63
|
return true;
|
|
@@ -3,7 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const index$4 = require("../../../no-data/index.cjs");
|
|
5
5
|
const index$3 = require("../../../icon/index.cjs");
|
|
6
|
-
|
|
6
|
+
require("../../../../icons/vue/edit.cjs");
|
|
7
|
+
require("../../../../icons/vue/delete.cjs");
|
|
7
8
|
const data = require("../data.cjs");
|
|
8
9
|
const index = require("../../../../hooks/cssname/index.cjs");
|
|
9
10
|
const index$1 = require("../../../../hooks/locale/index.cjs");
|
|
@@ -11,16 +12,22 @@ require("../index.cjs");
|
|
|
11
12
|
const index$2 = require("../../../button/index.cjs");
|
|
12
13
|
const index$5 = require("../../../edit-data-add/index.cjs");
|
|
13
14
|
const index_vue_vue_type_script_setup_true_lang = require("../index2.cjs");
|
|
15
|
+
const edit_vue_vue_type_script_setup_true_lang = require("../../../../icons/vue/edit2.cjs");
|
|
16
|
+
const delete_vue_vue_type_script_setup_true_lang = require("../../../../icons/vue/delete2.cjs");
|
|
14
17
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
18
|
__name: "object",
|
|
16
19
|
props: data.dataDataProps,
|
|
17
20
|
emits: data.dataDataEmits,
|
|
18
|
-
setup(__props, {
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
19
22
|
const cs = index.useCssName(data.name);
|
|
20
23
|
const { getLocale } = index$1.useLocale();
|
|
21
24
|
const props = __props;
|
|
22
25
|
const emit = __emit;
|
|
23
|
-
const box = vue.
|
|
26
|
+
const box = vue.reactive({
|
|
27
|
+
value: false,
|
|
28
|
+
type: 0,
|
|
29
|
+
row: ""
|
|
30
|
+
});
|
|
24
31
|
const value = vue.computed({
|
|
25
32
|
get() {
|
|
26
33
|
return props.modelValue;
|
|
@@ -34,15 +41,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
41
|
};
|
|
35
42
|
const onAdd = () => {
|
|
36
43
|
box.value = true;
|
|
44
|
+
box.type = 0;
|
|
45
|
+
box.row = "";
|
|
37
46
|
};
|
|
38
47
|
const onSubmit = (v) => {
|
|
39
|
-
value.value
|
|
48
|
+
if (value.value === void 0) {
|
|
49
|
+
value.value = { [v.label]: v.value };
|
|
50
|
+
} else {
|
|
51
|
+
if (box.type == 0) {
|
|
52
|
+
value.value[v.label] = v.value;
|
|
53
|
+
} else {
|
|
54
|
+
value.value[box.row] = v.value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
40
57
|
};
|
|
41
58
|
const onDelete = (index2) => {
|
|
42
59
|
value.value[index2] = void 0;
|
|
43
60
|
delete value.value[index2];
|
|
44
61
|
};
|
|
45
|
-
|
|
62
|
+
const onEdit = (index2) => {
|
|
63
|
+
box.value = true;
|
|
64
|
+
box.type = 1;
|
|
65
|
+
box.row = index2;
|
|
66
|
+
};
|
|
46
67
|
return (_ctx, _cache) => {
|
|
47
68
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
48
69
|
class: vue.normalizeClass(vue.unref(cs).z("area-object"))
|
|
@@ -79,8 +100,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
100
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
80
101
|
], 2),
|
|
81
102
|
vue.createElementVNode("div", null, [
|
|
82
|
-
props.
|
|
103
|
+
props.isEmpty && item === void 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Button), {
|
|
83
104
|
key: 0,
|
|
105
|
+
type: "primary",
|
|
106
|
+
onClick: ($event) => onEdit(index2),
|
|
107
|
+
text: ""
|
|
108
|
+
}, {
|
|
109
|
+
default: vue.withCtx(() => [
|
|
110
|
+
vue.createVNode(vue.unref(index$3.Icon), { title: "修改" }, {
|
|
111
|
+
default: vue.withCtx(() => [
|
|
112
|
+
vue.createVNode(edit_vue_vue_type_script_setup_true_lang.default)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["onClick"])) : vue.createCommentVNode("", true),
|
|
119
|
+
props.editable ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Button), {
|
|
120
|
+
key: 1,
|
|
84
121
|
type: "danger",
|
|
85
122
|
onClick: ($event) => onDelete(index2),
|
|
86
123
|
text: ""
|
|
@@ -88,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
88
125
|
default: vue.withCtx(() => [
|
|
89
126
|
vue.createVNode(vue.unref(index$3.Icon), { title: "删除" }, {
|
|
90
127
|
default: vue.withCtx(() => [
|
|
91
|
-
vue.createVNode(
|
|
128
|
+
vue.createVNode(delete_vue_vue_type_script_setup_true_lang.default)
|
|
92
129
|
]),
|
|
93
130
|
_: 1
|
|
94
131
|
})
|
|
@@ -98,17 +135,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
98
135
|
])
|
|
99
136
|
], 2);
|
|
100
137
|
}), 128)),
|
|
101
|
-
Object.keys(value.value).length == 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.NoData), {
|
|
138
|
+
(value.value ? Object.keys(value.value).length == 0 : true) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.NoData), {
|
|
102
139
|
key: 1,
|
|
103
140
|
value: "空对象"
|
|
104
141
|
})) : vue.createCommentVNode("", true),
|
|
105
142
|
vue.createVNode(vue.unref(index$5.EditDataAdd), vue.mergeProps(props, {
|
|
106
|
-
type: "object",
|
|
107
|
-
title: "新增对象",
|
|
143
|
+
type: box.type == 1 ? "array" : "object",
|
|
144
|
+
title: box.type == 1 ? "修改对象" : "新增对象",
|
|
108
145
|
modelValue: box.value,
|
|
109
146
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => box.value = $event),
|
|
110
147
|
onSubmit
|
|
111
|
-
}), null, 16, ["modelValue"])
|
|
148
|
+
}), null, 16, ["type", "title", "modelValue"])
|
|
112
149
|
], 2);
|
|
113
150
|
};
|
|
114
151
|
}
|