@houaoran/designer 1.0.4 → 1.0.5
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.es.js +24 -15
- package/dist/components.umd.js +4 -4
- package/dist/index.es.js +34 -25
- package/dist/index.umd.js +26 -26
- package/package.json +1 -1
- package/src/components/DictSelect.vue +10 -5
- package/src/config/rule/dictSelect.js +3 -3
- package/src/locale/zh-cn.js +1 -1
- package/src/utils/dict.js +6 -0
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* FormCreate 可视化表单设计器
|
|
3
|
-
* @houaoran/designer v1.0.
|
|
3
|
+
* @houaoran/designer v1.0.4
|
|
4
4
|
* (c) 2021-2026 xaboy
|
|
5
5
|
* Github https://github.com/xaboy/form-create-designer
|
|
6
6
|
* Site https://form-create.com/
|
|
@@ -908,7 +908,7 @@ const qp = {
|
|
|
908
908
|
name: "\u5B57\u5178\u9009\u62E9",
|
|
909
909
|
props: {
|
|
910
910
|
disabled: "\u662F\u5426\u7981\u7528",
|
|
911
|
-
dictCode: "\u5B57\u5178\
|
|
911
|
+
dictCode: "\u5B57\u5178\u7F16\u7801",
|
|
912
912
|
type: "\u7C7B\u578B"
|
|
913
913
|
}
|
|
914
914
|
},
|
|
@@ -4047,7 +4047,7 @@ file.url = res.data.url;`
|
|
|
4047
4047
|
}
|
|
4048
4048
|
}, py = "\u5B57\u5178\u9009\u62E9", Lf = "dictSelect", hy = {
|
|
4049
4049
|
menu: "main",
|
|
4050
|
-
icon: "icon-
|
|
4050
|
+
icon: "icon-dict",
|
|
4051
4051
|
label: py,
|
|
4052
4052
|
name: Lf,
|
|
4053
4053
|
input: !0,
|
|
@@ -4073,8 +4073,8 @@ file.url = res.data.url;`
|
|
|
4073
4073
|
{ type: "input", field: "dictCode", value: "" },
|
|
4074
4074
|
{ type: "select", field: "type", value: "select", options: [
|
|
4075
4075
|
{ label: "\u9009\u62E9\u5668", value: "select" },
|
|
4076
|
-
{ label: "\
|
|
4077
|
-
{ label: "\u5355\u9009
|
|
4076
|
+
{ label: "\u591A\u9009", value: "checkbox" },
|
|
4077
|
+
{ label: "\u5355\u9009", value: "radio" }
|
|
4078
4078
|
] }
|
|
4079
4079
|
]);
|
|
4080
4080
|
}
|
|
@@ -39186,7 +39186,11 @@ function FC(e, i, r, o, t, l) {
|
|
|
39186
39186
|
}, null, 8, ["modelValue", "min", "max", "step", "disabled", "placeholder", "onChange"])
|
|
39187
39187
|
]);
|
|
39188
39188
|
}
|
|
39189
|
-
const PC = /* @__PURE__ */ We(MC, [["render", FC], ["__scopeId", "data-v-7986bf16"]]), BC =
|
|
39189
|
+
const PC = /* @__PURE__ */ We(MC, [["render", FC], ["__scopeId", "data-v-7986bf16"]]), BC = (e) => {
|
|
39190
|
+
var o, t, l, u;
|
|
39191
|
+
const { v: i } = (l = (t = JSON.parse((o = sessionStorage.getItem("dictCache")) != null ? o : "{}")) != null ? t : {}) != null ? l : {}, r = (u = JSON.parse(i != null ? i : "{}")) != null ? u : {};
|
|
39192
|
+
return console.log(r, "data"), r[e];
|
|
39193
|
+
}, $C = et({
|
|
39190
39194
|
name: "DictSelect",
|
|
39191
39195
|
emits: ["update:modelValue", "change"],
|
|
39192
39196
|
props: {
|
|
@@ -39207,11 +39211,16 @@ const PC = /* @__PURE__ */ We(MC, [["render", FC], ["__scopeId", "data-v-7986bf1
|
|
|
39207
39211
|
},
|
|
39208
39212
|
computed: {
|
|
39209
39213
|
dictOptions() {
|
|
39210
|
-
|
|
39211
|
-
|
|
39212
|
-
|
|
39213
|
-
|
|
39214
|
-
|
|
39214
|
+
return BC(this.dictCode);
|
|
39215
|
+
},
|
|
39216
|
+
value: {
|
|
39217
|
+
get() {
|
|
39218
|
+
var e;
|
|
39219
|
+
return (e = this.modelValue) != null ? e : null;
|
|
39220
|
+
},
|
|
39221
|
+
set(e) {
|
|
39222
|
+
this.update(e);
|
|
39223
|
+
}
|
|
39215
39224
|
}
|
|
39216
39225
|
},
|
|
39217
39226
|
methods: {
|
|
@@ -39221,10 +39230,10 @@ const PC = /* @__PURE__ */ We(MC, [["render", FC], ["__scopeId", "data-v-7986bf1
|
|
|
39221
39230
|
},
|
|
39222
39231
|
mounted() {
|
|
39223
39232
|
}
|
|
39224
|
-
}),
|
|
39225
|
-
function
|
|
39233
|
+
}), VC = { style: { width: "100%" } };
|
|
39234
|
+
function zC(e, i, r, o, t, l) {
|
|
39226
39235
|
const u = ue("el-option"), s = ue("el-select"), c = ue("el-radio"), p = ue("el-radio-group"), m = ue("el-checkbox"), v = ue("el-checkbox-group");
|
|
39227
|
-
return Y(), ce("div",
|
|
39236
|
+
return Y(), ce("div", VC, [
|
|
39228
39237
|
e.type === "select" ? (Y(), ke(s, {
|
|
39229
39238
|
key: 0,
|
|
39230
39239
|
disabled: e.disabled,
|
|
@@ -39284,7 +39293,7 @@ function VC(e, i, r, o, t, l) {
|
|
|
39284
39293
|
}, 8, ["disabled", "modelValue", "onChange"])) : Se("", !0)
|
|
39285
39294
|
]);
|
|
39286
39295
|
}
|
|
39287
|
-
const
|
|
39296
|
+
const HC = /* @__PURE__ */ We($C, [["render", zC]]);
|
|
39288
39297
|
const Xi = (e, i, r) => {
|
|
39289
39298
|
tt.component(e, r || i), eo.component(e, i);
|
|
39290
39299
|
};
|
|
@@ -39318,15 +39327,15 @@ Xi("SignaturePad", Vx);
|
|
|
39318
39327
|
Xi("TableForm", Ix, Rx);
|
|
39319
39328
|
Xi("FcTable", Uk, zk);
|
|
39320
39329
|
Xi("InputRange", PC);
|
|
39321
|
-
Xi("DictSelect",
|
|
39322
|
-
const
|
|
39330
|
+
Xi("DictSelect", HC);
|
|
39331
|
+
const jC = function(e) {
|
|
39323
39332
|
e.component("FcDesigner", zt);
|
|
39324
|
-
}, jC = function(e, i) {
|
|
39325
|
-
Array.isArray(e) || (e = [e]), i ? Bu.unshift(...e) : Bu.push(...e);
|
|
39326
39333
|
}, UC = function(e, i) {
|
|
39334
|
+
Array.isArray(e) || (e = [e]), i ? Bu.unshift(...e) : Bu.push(...e);
|
|
39335
|
+
}, WC = function(e, i) {
|
|
39327
39336
|
Array.isArray(e) || (e = [e]), i ? sl.unshift(...e) : sl.push(...e);
|
|
39328
39337
|
};
|
|
39329
|
-
zt.install =
|
|
39338
|
+
zt.install = jC;
|
|
39330
39339
|
zt.makeOptionsRule = Jo;
|
|
39331
39340
|
zt.copyTextToClipboard = ui;
|
|
39332
39341
|
zt.getInjectArg = si;
|
|
@@ -39340,8 +39349,8 @@ zt.formCreate = eo;
|
|
|
39340
39349
|
zt.designerForm = tt;
|
|
39341
39350
|
zt.component = Xi;
|
|
39342
39351
|
zt.useLocale = yh;
|
|
39343
|
-
zt.addMenu =
|
|
39344
|
-
zt.addDragRule =
|
|
39352
|
+
zt.addMenu = UC;
|
|
39353
|
+
zt.addDragRule = WC;
|
|
39345
39354
|
zt.t = $u;
|
|
39346
39355
|
zt.utils = {
|
|
39347
39356
|
copyTextToClipboard: ui,
|
|
@@ -39359,14 +39368,14 @@ Tv(jp, eo.version) === 1 && console.warn("Please use FormCreate version " + jp +
|
|
|
39359
39368
|
zt.version = "3.5.0";
|
|
39360
39369
|
typeof window < "u" && (window.FcDesigner = zt);
|
|
39361
39370
|
export {
|
|
39362
|
-
|
|
39363
|
-
|
|
39371
|
+
WC as addDragRule,
|
|
39372
|
+
UC as addMenu,
|
|
39364
39373
|
ui as copyTextToClipboard,
|
|
39365
39374
|
zt as default,
|
|
39366
39375
|
tt as designerForm,
|
|
39367
39376
|
eo as formCreate,
|
|
39368
39377
|
si as getInjectArg,
|
|
39369
|
-
|
|
39378
|
+
jC as install,
|
|
39370
39379
|
Bt as localeOptions,
|
|
39371
39380
|
Xe as localeProps,
|
|
39372
39381
|
Jo as makeOptionsRule,
|