sun-form-v3 1.0.93 → 1.0.94
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-DthMEmZw.js → index-0uHaNbAY.js} +1 -1
- package/dist/index-B2sOA6Dw.js +105512 -0
- package/dist/index-BU3xx_sm.js +163 -0
- package/dist/{index-jz0GJanW.js → index-C5p41SA4.js} +1 -1
- package/dist/{index-D-EqwiW2.js → index-C7OcHL5P.js} +1 -1
- package/dist/{index-Dwn90L2Z.js → index-CCitDq_n.js} +1 -1
- package/dist/{index-BeZ1WZov.js → index-DjnpS_nN.js} +1 -1
- package/dist/{index-BMp3tQ-9.js → index-hn1cb6ui.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +241 -94
- package/package.json +4 -2
- package/dist/index-p5oohjOA.js +0 -79435
@@ -0,0 +1,163 @@
|
|
1
|
+
import { resolveComponent as u, openBlock as V, createElementBlock as g, Fragment as w, createVNode as e, withCtx as a, unref as t } from "vue";
|
2
|
+
const U = /* @__PURE__ */ Object.assign({ name: "config-file" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(f) {
|
15
|
+
let l = f;
|
16
|
+
return (b, o) => {
|
17
|
+
const i = u("el-option"), m = u("el-select"), p = u("common-label-container"), n = u("el-input"), r = u("el-input-number"), s = u("el-switch");
|
18
|
+
return V(), g(w, null, [
|
19
|
+
e(p, { label: "组件尺寸" }, {
|
20
|
+
default: a(() => [
|
21
|
+
e(m, {
|
22
|
+
modelValue: t(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
|
24
|
+
}, {
|
25
|
+
default: a(() => [
|
26
|
+
e(i, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(i, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(i, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(p, { label: "上传字段" }, {
|
45
|
+
default: a(() => [
|
46
|
+
e(n, {
|
47
|
+
modelValue: t(l).widget.props.fileField,
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.fileField = d),
|
49
|
+
placeholder: "填写上传字段"
|
50
|
+
}, null, 8, ["modelValue"])
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
}),
|
54
|
+
e(p, { label: "文件ID字段" }, {
|
55
|
+
default: a(() => [
|
56
|
+
e(n, {
|
57
|
+
modelValue: t(l).widget.props.fileIdField,
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.fileIdField = d),
|
59
|
+
placeholder: "填写文件ID字段"
|
60
|
+
}, null, 8, ["modelValue"])
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
}),
|
64
|
+
e(p, { label: "文件名称字段" }, {
|
65
|
+
default: a(() => [
|
66
|
+
e(n, {
|
67
|
+
modelValue: t(l).widget.props.fileNameField,
|
68
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.fileNameField = d),
|
69
|
+
placeholder: "填写文件名称字段"
|
70
|
+
}, null, 8, ["modelValue"])
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
}),
|
74
|
+
e(p, { label: "文件URL字段" }, {
|
75
|
+
default: a(() => [
|
76
|
+
e(n, {
|
77
|
+
modelValue: t(l).widget.props.fileUrlField,
|
78
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.fileUrlField = d),
|
79
|
+
placeholder: "填写文件URL字段"
|
80
|
+
}, null, 8, ["modelValue"])
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
}),
|
84
|
+
e(p, { label: "大小限制(mb)" }, {
|
85
|
+
default: a(() => [
|
86
|
+
e(r, {
|
87
|
+
class: "w-full",
|
88
|
+
placeholder: "填写最大文件大小",
|
89
|
+
modelValue: t(l).widget.props.fileSize,
|
90
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.fileSize = d),
|
91
|
+
min: 0,
|
92
|
+
"controls-position": "right"
|
93
|
+
}, null, 8, ["modelValue"])
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
}),
|
97
|
+
e(p, { label: "个数限制" }, {
|
98
|
+
default: a(() => [
|
99
|
+
e(r, {
|
100
|
+
class: "w-full",
|
101
|
+
placeholder: "限制文件个数",
|
102
|
+
modelValue: t(l).widget.props.limit,
|
103
|
+
"onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.limit = d),
|
104
|
+
min: 0,
|
105
|
+
"controls-position": "right"
|
106
|
+
}, null, 8, ["modelValue"])
|
107
|
+
]),
|
108
|
+
_: 1
|
109
|
+
}),
|
110
|
+
e(p, { label: "上传限制类型" }, {
|
111
|
+
default: a(() => [
|
112
|
+
e(m, {
|
113
|
+
modelValue: t(l).widget.props.accept,
|
114
|
+
"onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.accept = d)
|
115
|
+
}, {
|
116
|
+
default: a(() => [
|
117
|
+
e(i, {
|
118
|
+
label: "所有文件",
|
119
|
+
value: ""
|
120
|
+
}),
|
121
|
+
e(i, {
|
122
|
+
label: "图片",
|
123
|
+
value: "img"
|
124
|
+
}),
|
125
|
+
e(i, {
|
126
|
+
label: "视频",
|
127
|
+
value: "video"
|
128
|
+
}),
|
129
|
+
e(i, {
|
130
|
+
label: "音频",
|
131
|
+
value: "audio"
|
132
|
+
})
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
}, 8, ["modelValue"])
|
136
|
+
]),
|
137
|
+
_: 1
|
138
|
+
}),
|
139
|
+
e(p, { label: "支持多文件" }, {
|
140
|
+
default: a(() => [
|
141
|
+
e(s, {
|
142
|
+
modelValue: t(l).widget.props.multiple,
|
143
|
+
"onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).widget.props.multiple = d)
|
144
|
+
}, null, 8, ["modelValue"])
|
145
|
+
]),
|
146
|
+
_: 1
|
147
|
+
}),
|
148
|
+
e(p, { label: "是否只读" }, {
|
149
|
+
default: a(() => [
|
150
|
+
e(s, {
|
151
|
+
modelValue: t(l).widget.props.readonly,
|
152
|
+
"onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).widget.props.readonly = d)
|
153
|
+
}, null, 8, ["modelValue"])
|
154
|
+
]),
|
155
|
+
_: 1
|
156
|
+
})
|
157
|
+
], 64);
|
158
|
+
};
|
159
|
+
}
|
160
|
+
});
|
161
|
+
export {
|
162
|
+
U as default
|
163
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-B2sOA6Dw.js";
|
3
3
|
const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
-
import { e as E, i as M } from "./index-
|
2
|
+
import { e as E, i as M } from "./index-B2sOA6Dw.js";
|
3
3
|
const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-B2sOA6Dw.js";
|
3
3
|
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-B2sOA6Dw.js";
|
3
3
|
const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as x, resolveComponent as s, openBlock as k, createElementBlock as T, Fragment as E, createVNode as e, unref as l, withCtx as a, createTextVNode as _, isRef as L, createElementVNode as f, toDisplayString as h, createCommentVNode as D, pushScopeId as B, popScopeId as J } from "vue";
|
2
|
-
import { _ as R } from "./index-
|
2
|
+
import { _ as R } from "./index-B2sOA6Dw.js";
|
3
3
|
const I = (c) => (B("data-v-75dc2686"), c = c(), J(), c), W = /* @__PURE__ */ I(() => /* @__PURE__ */ f("span", null, "复杂表头配置", -1)), q = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex h-full flex-col"
|