jfv3-zzzrkxg 1.0.0 → 1.0.2
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/form-making-v3.es.js +81 -12
- package/package.json +1 -2
|
@@ -17792,10 +17792,35 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17792
17792
|
default: withCtx(() => [
|
|
17793
17793
|
createVNode(_component_el_switch, {
|
|
17794
17794
|
modelValue: $props.data.options.accordion,
|
|
17795
|
-
"onUpdate:modelValue": _cache[154] || (_cache[154] = ($event) => $props.data.options.accordion = $event)
|
|
17795
|
+
"onUpdate:modelValue": _cache[154] || (_cache[154] = ($event) => { $props.data.options.accordion = $event; if($event){ if(Array.isArray($props.data.options.defaultActive)){ $props.data.options.defaultActive = $props.data.options.defaultActive.length ? $props.data.options.defaultActive[0] : "" } } else { if(typeof $props.data.options.defaultActive === "string"){ $props.data.options.defaultActive = $props.data.options.defaultActive ? [$props.data.options.defaultActive] : [] } } })
|
|
17796
17796
|
}, null, 8, ["modelValue"])
|
|
17797
17797
|
]),
|
|
17798
17798
|
_: 1
|
|
17799
|
+
}, 8, ["label"]),
|
|
17800
|
+
createVNode(_component_el_form_item, {
|
|
17801
|
+
label: _ctx.$t("fm.config.widget.defaultActive")
|
|
17802
|
+
}, {
|
|
17803
|
+
default: withCtx(() => [
|
|
17804
|
+
createVNode(_component_el_select, {
|
|
17805
|
+
modelValue: $props.data.options.defaultActive,
|
|
17806
|
+
"onUpdate:modelValue": _cache[200] || (_cache[200] = ($event) => $props.data.options.defaultActive = $event),
|
|
17807
|
+
placeholder: _ctx.$t("fm.config.widget.tabName"),
|
|
17808
|
+
clearable: "",
|
|
17809
|
+
multiple: !$props.data.options.accordion
|
|
17810
|
+
}, {
|
|
17811
|
+
default: withCtx(() => [
|
|
17812
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.data.tabs, (t) => {
|
|
17813
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
17814
|
+
key: t.name,
|
|
17815
|
+
label: t.title,
|
|
17816
|
+
value: t.name
|
|
17817
|
+
}, null, 8, ["label", "value"]);
|
|
17818
|
+
}), 128))
|
|
17819
|
+
]),
|
|
17820
|
+
_: 1
|
|
17821
|
+
}, 8, ["modelValue", "placeholder", "clearable", "multiple"])
|
|
17822
|
+
]),
|
|
17823
|
+
_: 1
|
|
17799
17824
|
}, 8, ["label"])
|
|
17800
17825
|
], 64)) : createCommentVNode("", true),
|
|
17801
17826
|
$props.data.type == "report" ? (openBlock(), createElementBlock(Fragment, { key: 64 }, [
|
|
@@ -18386,7 +18411,8 @@ const _sfc_main$H = {
|
|
|
18386
18411
|
link: "",
|
|
18387
18412
|
paramKey: "",
|
|
18388
18413
|
paramValue: "",
|
|
18389
|
-
position: []
|
|
18414
|
+
position: [],
|
|
18415
|
+
openMode: ""
|
|
18390
18416
|
}
|
|
18391
18417
|
};
|
|
18392
18418
|
},
|
|
@@ -18408,7 +18434,8 @@ const _sfc_main$H = {
|
|
|
18408
18434
|
link: "",
|
|
18409
18435
|
paramKey: "",
|
|
18410
18436
|
paramValue: "",
|
|
18411
|
-
position: []
|
|
18437
|
+
position: [],
|
|
18438
|
+
openMode: ""
|
|
18412
18439
|
};
|
|
18413
18440
|
},
|
|
18414
18441
|
handleOptionsRemove(index2) {
|
|
@@ -18699,6 +18726,25 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18699
18726
|
]),
|
|
18700
18727
|
_: 1
|
|
18701
18728
|
}),
|
|
18729
|
+
createVNode(_component_el_col, { span: 24 }, {
|
|
18730
|
+
default: withCtx(() => [
|
|
18731
|
+
createVNode(_component_el_form_item, {
|
|
18732
|
+
label: "\u6253\u5F00\u65B9\u5F0F",
|
|
18733
|
+
prop: "openMode",
|
|
18734
|
+
rules: []
|
|
18735
|
+
}, {
|
|
18736
|
+
default: withCtx(() => [
|
|
18737
|
+
createVNode(_component_el_input, {
|
|
18738
|
+
modelValue: $data.inputForm.openMode,
|
|
18739
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.inputForm.openMode = $event),
|
|
18740
|
+
placeholder: "\u8BF7\u586B\u5199\u6253\u5F00\u65B9\u5F0F\uFF0C\u4F8B\u5982\uFF1A\u5F53\u524D\u9875\u3001\u65B0\u7A97\u53E3\u3001\u5F39\u7A97"
|
|
18741
|
+
}, null, 8, ["modelValue"])
|
|
18742
|
+
]),
|
|
18743
|
+
_: 1
|
|
18744
|
+
})
|
|
18745
|
+
]),
|
|
18746
|
+
_: 1
|
|
18747
|
+
}),
|
|
18702
18748
|
createVNode(_component_el_col, { span: 24 }, {
|
|
18703
18749
|
default: withCtx(() => [
|
|
18704
18750
|
createVNode(_component_el_form_item, {
|
|
@@ -18709,7 +18755,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18709
18755
|
default: withCtx(() => [
|
|
18710
18756
|
createVNode(_component_el_input, {
|
|
18711
18757
|
modelValue: $data.inputForm.auth,
|
|
18712
|
-
"onUpdate:modelValue": _cache[
|
|
18758
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.inputForm.auth = $event),
|
|
18713
18759
|
placeholder: "\u5982\u679C\u8981\u63A7\u5236\u662F\u5426\u663E\u793A\u6309\u94AE\uFF0C\u8BF7\u586B\u5199\u6743\u9650\u6807\u5FD7\uFF0C\u5E76\u5728\u83DC\u5355\u4E2D\u914D\u7F6E\u6743\u9650\u89C4\u5219\uFF0C\u7136\u540E\u5728\u89D2\u8272\u4E2D\u8FDB\u884C\u6388\u6743\u3002"
|
|
18714
18760
|
}, null, 8, ["modelValue"])
|
|
18715
18761
|
]),
|
|
@@ -26641,7 +26687,6 @@ const _sfc_main$z = {
|
|
|
26641
26687
|
},
|
|
26642
26688
|
deleteSelected(index2) {
|
|
26643
26689
|
this.selected.splice(index2, 1);
|
|
26644
|
-
console.log(this.selected);
|
|
26645
26690
|
if (this.type == 1) {
|
|
26646
26691
|
this.$refs.userTree.setCheckedKeys(this.selectedIds);
|
|
26647
26692
|
} else if (this.type == 2) {
|
|
@@ -34685,7 +34730,8 @@ const layoutComponents = [
|
|
|
34685
34730
|
type: "",
|
|
34686
34731
|
accordion: false,
|
|
34687
34732
|
customClass: "",
|
|
34688
|
-
hidden: false
|
|
34733
|
+
hidden: false,
|
|
34734
|
+
defaultActive: ""
|
|
34689
34735
|
}
|
|
34690
34736
|
},
|
|
34691
34737
|
{
|
|
@@ -34989,7 +35035,7 @@ function generateCode(data2, type = "html", ui = "element") {
|
|
|
34989
35035
|
<body>
|
|
34990
35036
|
<div id="app">
|
|
34991
35037
|
<${templateName}
|
|
34992
|
-
:data="jsonData"
|
|
35038
|
+
:data="jsonData"
|
|
34993
35039
|
:remote="remoteFuncs"
|
|
34994
35040
|
:remote-option="dynamicData"
|
|
34995
35041
|
ref="generateForm"
|
|
@@ -35020,9 +35066,9 @@ function generateCode(data2, type = "html", ui = "element") {
|
|
|
35020
35066
|
} else {
|
|
35021
35067
|
return `<template>
|
|
35022
35068
|
<div>
|
|
35023
|
-
<${templateName}
|
|
35024
|
-
:data="jsonData"
|
|
35025
|
-
:remote="remoteFuncs"
|
|
35069
|
+
<${templateName}
|
|
35070
|
+
:data="jsonData"
|
|
35071
|
+
:remote="remoteFuncs"
|
|
35026
35072
|
:remote-option="dynamicData"
|
|
35027
35073
|
ref="generateForm"
|
|
35028
35074
|
>${blankTemplate}
|
|
@@ -39617,9 +39663,10 @@ const _sfc_main$8 = {
|
|
|
39617
39663
|
},
|
|
39618
39664
|
props: ["element", "model", "rules", "remote", "blanks", "display", "edit", "remoteOption", "platform", "preview", "containerKey", "dataSourceValue", "eventFunction", "printRead", "isSubform", "rowIndex", "subName", "subHideFields", "subDisabledFields", "isDialog", "dialogName", "group", "fieldNode", "isGroup"],
|
|
39619
39665
|
data() {
|
|
39620
|
-
|
|
39666
|
+
const defaultName = (this.element.options && this.element.options.defaultActive) ? this.element.options.defaultActive : (this.element.tabs && this.element.tabs.length ? this.element.tabs[0].name : "");
|
|
39667
|
+
return {
|
|
39621
39668
|
dataModels: this.model,
|
|
39622
|
-
tabActive:
|
|
39669
|
+
tabActive: defaultName
|
|
39623
39670
|
};
|
|
39624
39671
|
},
|
|
39625
39672
|
methods: {},
|
|
@@ -39629,6 +39676,26 @@ const _sfc_main$8 = {
|
|
|
39629
39676
|
handler(val) {
|
|
39630
39677
|
this.dataModels = this.model;
|
|
39631
39678
|
}
|
|
39679
|
+
},
|
|
39680
|
+
'element.options.defaultActive': {
|
|
39681
|
+
handler(val) {
|
|
39682
|
+
const defaultName = (this.element.options && this.element.options.defaultActive) ? this.element.options.defaultActive : (this.element.tabs && this.element.tabs.length ? this.element.tabs[0].name : "");
|
|
39683
|
+
this.element.options.defaultActive = defaultName;
|
|
39684
|
+
this.tabActive = defaultName;
|
|
39685
|
+
},
|
|
39686
|
+
immediate: true
|
|
39687
|
+
},
|
|
39688
|
+
'element.options.accordion': {
|
|
39689
|
+
handler(val) {
|
|
39690
|
+
if (this.element && this.element.options && (typeof this.element.options.defaultActive === 'undefined' || this.element.options.defaultActive === null || this.element.options.defaultActive === '')) {
|
|
39691
|
+
const defaultName = (this.element.tabs && this.element.tabs.length) ? this.element.tabs[0].name : '';
|
|
39692
|
+
this.element.options.defaultActive = defaultName;
|
|
39693
|
+
this.tabActive = defaultName;
|
|
39694
|
+
} else {
|
|
39695
|
+
this.tabActive = this.element.options.defaultActive;
|
|
39696
|
+
}
|
|
39697
|
+
},
|
|
39698
|
+
immediate: true
|
|
39632
39699
|
}
|
|
39633
39700
|
}
|
|
39634
39701
|
};
|
|
@@ -47776,6 +47843,7 @@ var enUS = {
|
|
|
47776
47843
|
collapseOptions: "Collapse Options",
|
|
47777
47844
|
collapseTitle: "Title",
|
|
47778
47845
|
accordion: "Accordion Mode",
|
|
47846
|
+
defaultActive: "Default Active",
|
|
47779
47847
|
customClass: "Custom Class",
|
|
47780
47848
|
attribute: "Attribute Action",
|
|
47781
47849
|
dataBind: "Data Binding",
|
|
@@ -48178,6 +48246,7 @@ var zhCN = {
|
|
|
48178
48246
|
collapseOptions: "\u9762\u677F\u9009\u9879",
|
|
48179
48247
|
collapseTitle: "\u9762\u677F\u6807\u9898",
|
|
48180
48248
|
accordion: "\u624B\u98CE\u7434\u6A21\u5F0F",
|
|
48249
|
+
defaultActive: "\u9ED8\u8BA4\u5C55\u5F00\u9879",
|
|
48181
48250
|
customClass: "\u81EA\u5B9A\u4E49Class",
|
|
48182
48251
|
attribute: "\u64CD\u4F5C\u5C5E\u6027",
|
|
48183
48252
|
dataBind: "\u6570\u636E\u7ED1\u5B9A",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jfv3-zzzrkxg",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"lodash": "^4.17.21",
|
|
33
33
|
"moment": "2.24.0",
|
|
34
34
|
"normalize.css": "^8.0.1",
|
|
35
|
-
"npm": "^11.7.0",
|
|
36
35
|
"qiniu-js": "^3.4.0",
|
|
37
36
|
"vant": "^3.4.8",
|
|
38
37
|
"viewerjs": "^1.10.4",
|