jfv3-zzzrkxg 1.0.1 → 1.0.3

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.
@@ -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) {
@@ -18448,6 +18475,9 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
18448
18475
  const _component_draggable = resolveComponent("draggable");
18449
18476
  const _component_el_form = resolveComponent("el-form");
18450
18477
  const _component_el_input = resolveComponent("el-input");
18478
+ const _component_el_select = resolveComponent("el-select");
18479
+ const _component_el_option = resolveComponent("el-option");
18480
+ const _component_el_divider = resolveComponent("el-divider");
18451
18481
  const _component_el_col = resolveComponent("el-col");
18452
18482
  const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
18453
18483
  const _component_el_row = resolveComponent("el-row");
@@ -18540,7 +18570,24 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
18540
18570
  ]),
18541
18571
  _: 1
18542
18572
  }, 8, ["onClick"])
18543
- ])
18573
+ ]),
18574
+ createVNode(_component_el_divider),
18575
+ createVNode(_component_el_form_item, { label: "\u8868\u5355\u6253\u5F00\u65B9\u5F0F" }, {
18576
+ default: withCtx(() => [
18577
+ createVNode(_component_el_select, {
18578
+ modelValue: $props.widgetForm.config.openFormMode,
18579
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $props.widgetForm.config.openFormMode = $event),
18580
+ placeholder: "\u8BF7\u9009\u62E9"
18581
+ }, {
18582
+ default: withCtx(() => [
18583
+ createVNode(_component_el_option, { label: "\u5F39\u7A97", value: "dialog" }, null, 8, ["label", "value"]),
18584
+ createVNode(_component_el_option, { label: "Tab\u9875", value: "tab" }, null, 8, ["label", "value"])
18585
+ ]),
18586
+ _: 1
18587
+ }, 8, ["modelValue"])
18588
+ ]),
18589
+ _: 1
18590
+ })
18544
18591
  ]),
18545
18592
  _: 1
18546
18593
  })
@@ -18699,6 +18746,32 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
18699
18746
  ]),
18700
18747
  _: 1
18701
18748
  }),
18749
+ createVNode(_component_el_col, { span: 24 }, {
18750
+ default: withCtx(() => [
18751
+ createVNode(_component_el_form_item, {
18752
+ label: "\u6253\u5F00\u65B9\u5F0F",
18753
+ prop: "openMode",
18754
+ rules: []
18755
+ }, {
18756
+ default: withCtx(() => [
18757
+ createVNode(_component_el_select, {
18758
+ modelValue: $data.inputForm.openMode,
18759
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.inputForm.openMode = $event),
18760
+ placeholder: "\u8BF7\u9009\u62E9\u6253\u5F00\u65B9\u5F0F"
18761
+ }, {
18762
+ default: withCtx(() => [
18763
+ createVNode(_component_el_option, { label: "\u5F39\u7A97", value: "dialog" }),
18764
+ createVNode(_component_el_option, { label: "Tab\u9875", value: "newTab" }),
18765
+ createVNode(_component_el_option, { label: "\u65B0\u7A97\u53E3", value: "window" })
18766
+ ]),
18767
+ _: 1
18768
+ }, 8, ["modelValue"])
18769
+ ]),
18770
+ _: 1
18771
+ })
18772
+ ]),
18773
+ _: 1
18774
+ }),
18702
18775
  createVNode(_component_el_col, { span: 24 }, {
18703
18776
  default: withCtx(() => [
18704
18777
  createVNode(_component_el_form_item, {
@@ -18709,7 +18782,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
18709
18782
  default: withCtx(() => [
18710
18783
  createVNode(_component_el_input, {
18711
18784
  modelValue: $data.inputForm.auth,
18712
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.inputForm.auth = $event),
18785
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.inputForm.auth = $event),
18713
18786
  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
18787
  }, null, 8, ["modelValue"])
18715
18788
  ]),
@@ -26641,7 +26714,6 @@ const _sfc_main$z = {
26641
26714
  },
26642
26715
  deleteSelected(index2) {
26643
26716
  this.selected.splice(index2, 1);
26644
- console.log(this.selected);
26645
26717
  if (this.type == 1) {
26646
26718
  this.$refs.userTree.setCheckedKeys(this.selectedIds);
26647
26719
  } else if (this.type == 2) {
@@ -34685,7 +34757,8 @@ const layoutComponents = [
34685
34757
  type: "",
34686
34758
  accordion: false,
34687
34759
  customClass: "",
34688
- hidden: false
34760
+ hidden: false,
34761
+ defaultActive: ""
34689
34762
  }
34690
34763
  },
34691
34764
  {
@@ -34989,7 +35062,7 @@ function generateCode(data2, type = "html", ui = "element") {
34989
35062
  <body>
34990
35063
  <div id="app">
34991
35064
  <${templateName}
34992
- :data="jsonData"
35065
+ :data="jsonData"
34993
35066
  :remote="remoteFuncs"
34994
35067
  :remote-option="dynamicData"
34995
35068
  ref="generateForm"
@@ -34997,7 +35070,7 @@ function generateCode(data2, type = "html", ui = "element") {
34997
35070
  </${templateName}>
34998
35071
  </div>
34999
35072
  <script src="https://unpkg.com/vue@next/dist/vue.global.prod.js"><\/script>${ui == "antd" ? `
35000
- <script src="https://unpkg.com/dayjs/dayjs.min.js"><\/script>` : ""}
35073
+ <script src="https://unpkg.com/dayjs/dayjs.min.js"><\/script>` : ""}
35001
35074
  <script src="${cdnjs}"><\/script>
35002
35075
  <script src="https://form.making.link/public/lib/form-making-v3/dist/form-making-v3.umd.js"><\/script>
35003
35076
  <script>
@@ -35020,9 +35093,9 @@ function generateCode(data2, type = "html", ui = "element") {
35020
35093
  } else {
35021
35094
  return `<template>
35022
35095
  <div>
35023
- <${templateName}
35024
- :data="jsonData"
35025
- :remote="remoteFuncs"
35096
+ <${templateName}
35097
+ :data="jsonData"
35098
+ :remote="remoteFuncs"
35026
35099
  :remote-option="dynamicData"
35027
35100
  ref="generateForm"
35028
35101
  >${blankTemplate}
@@ -39617,9 +39690,10 @@ const _sfc_main$8 = {
39617
39690
  },
39618
39691
  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
39692
  data() {
39620
- return {
39693
+ 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 : "");
39694
+ return {
39621
39695
  dataModels: this.model,
39622
- tabActive: this.element.tabs.length ? [this.element.tabs[0].name] : ""
39696
+ tabActive: defaultName
39623
39697
  };
39624
39698
  },
39625
39699
  methods: {},
@@ -39629,6 +39703,26 @@ const _sfc_main$8 = {
39629
39703
  handler(val) {
39630
39704
  this.dataModels = this.model;
39631
39705
  }
39706
+ },
39707
+ 'element.options.defaultActive': {
39708
+ handler(val) {
39709
+ 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 : "");
39710
+ this.element.options.defaultActive = defaultName;
39711
+ this.tabActive = defaultName;
39712
+ },
39713
+ immediate: true
39714
+ },
39715
+ 'element.options.accordion': {
39716
+ handler(val) {
39717
+ if (this.element && this.element.options && (typeof this.element.options.defaultActive === 'undefined' || this.element.options.defaultActive === null || this.element.options.defaultActive === '')) {
39718
+ const defaultName = (this.element.tabs && this.element.tabs.length) ? this.element.tabs[0].name : '';
39719
+ this.element.options.defaultActive = defaultName;
39720
+ this.tabActive = defaultName;
39721
+ } else {
39722
+ this.tabActive = this.element.options.defaultActive;
39723
+ }
39724
+ },
39725
+ immediate: true
39632
39726
  }
39633
39727
  }
39634
39728
  };
@@ -46311,7 +46405,9 @@ const _sfc_main = {
46311
46405
  actions: [],
46312
46406
  width: "100%",
46313
46407
  hideLabel: false,
46314
- hideErrorMessage: false
46408
+ hideErrorMessage: false,
46409
+ openDialogForm: false,
46410
+ openFormMode: "dialog"
46315
46411
  }
46316
46412
  },
46317
46413
  configTab: "form",
@@ -47776,6 +47872,7 @@ var enUS = {
47776
47872
  collapseOptions: "Collapse Options",
47777
47873
  collapseTitle: "Title",
47778
47874
  accordion: "Accordion Mode",
47875
+ defaultActive: "Default Active",
47779
47876
  customClass: "Custom Class",
47780
47877
  attribute: "Attribute Action",
47781
47878
  dataBind: "Data Binding",
@@ -48178,6 +48275,7 @@ var zhCN = {
48178
48275
  collapseOptions: "\u9762\u677F\u9009\u9879",
48179
48276
  collapseTitle: "\u9762\u677F\u6807\u9898",
48180
48277
  accordion: "\u624B\u98CE\u7434\u6A21\u5F0F",
48278
+ defaultActive: "\u9ED8\u8BA4\u5C55\u5F00\u9879",
48181
48279
  customClass: "\u81EA\u5B9A\u4E49Class",
48182
48280
  attribute: "\u64CD\u4F5C\u5C5E\u6027",
48183
48281
  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.1",
4
+ "version": "1.0.3",
5
5
  "files": [
6
6
  "dist"
7
7
  ],