jwt-ui 1.10.9-39 → 1.10.9-40

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/lib/jwt-ui.es.js CHANGED
@@ -6048,7 +6048,10 @@ const index_vue_vue_type_style_index_0_lang$2 = "", _sfc_main$j = defineComponen
6048
6048
  const p$ = Wg == null ? void 0 : Wg.action;
6049
6049
  v$("", p$);
6050
6050
  }, Ig = (Wg, p$ = "") => {
6051
- if (tg.isDrawerEdit) {
6051
+ if (vg.visible) {
6052
+ vg.visible = !1, tg.submitLoading = !1;
6053
+ return;
6054
+ } else if (tg.isDrawerEdit) {
6052
6055
  tg.isDrawerEdit = !1, tg.submitLoading = !1;
6053
6056
  const B$ = lodash.exports.cloneDeep(
6054
6057
  e.currentPageDrawerConfig.item || {}
@@ -6065,9 +6068,6 @@ const index_vue_vue_type_style_index_0_lang$2 = "", _sfc_main$j = defineComponen
6065
6068
  };
6066
6069
  zg(), Tg(u$), Cg();
6067
6070
  return;
6068
- } else if (vg.visible) {
6069
- vg.visible = !1, tg.submitLoading = !1, Ug();
6070
- return;
6071
6071
  }
6072
6072
  pg.visible = !1, tg.submitLoading = !1, Ug();
6073
6073
  }, qg = (Wg, p$ = "") => {
@@ -6134,7 +6134,7 @@ const index_vue_vue_type_style_index_0_lang$2 = "", _sfc_main$j = defineComponen
6134
6134
  }, _hoisted_8$4 = {
6135
6135
  key: 0,
6136
6136
  class: "jwt-drawer-wrapper-content-footer fxr p10"
6137
- }, _hoisted_9$3 = {
6137
+ }, _hoisted_9$4 = {
6138
6138
  key: 0,
6139
6139
  class: "jwt-dialog-wrapper-fullscreen-title"
6140
6140
  }, _hoisted_10$3 = { class: "tc" }, _hoisted_11$3 = { class: "jwt-dialog-wrapper-contnet ex" }, _hoisted_12$3 = {
@@ -6321,7 +6321,7 @@ function _sfc_render$g(e, eg, tg, ng, rg, og) {
6321
6321
  default: withCtx(() => {
6322
6322
  var Kg, m$, g$, k$, v$, o$, d$;
6323
6323
  return [
6324
- (m$ = (Kg = e.config[e.editBoxInfo.boxName]) == null ? void 0 : Kg.dialog) != null && m$.fullscreen ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
6324
+ (m$ = (Kg = e.config[e.editBoxInfo.boxName]) == null ? void 0 : Kg.dialog) != null && m$.fullscreen ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
6325
6325
  createElementVNode("div", _hoisted_10$3, toDisplayString(e.editBoxInfo.title), 1),
6326
6326
  createElementVNode("div", {
6327
6327
  class: "jwt-dialog-wrapper-fullscreen-close cp",
@@ -45880,7 +45880,7 @@ const index$9 = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["render", _sfc_rend
45880
45880
  fill: "currentColor"
45881
45881
  })
45882
45882
  ])
45883
- ], -1)), _hoisted_9$2 = { class: "jwt-material-img-wrapper mt15 w fv" }, _hoisted_10$2 = ["onClick"], _hoisted_11$2 = { class: "image-slot fxmc wh" }, _hoisted_12$2 = {
45883
+ ], -1)), _hoisted_9$3 = { class: "jwt-material-img-wrapper mt15 w fv" }, _hoisted_10$2 = ["onClick"], _hoisted_11$2 = { class: "image-slot fxmc wh" }, _hoisted_12$2 = {
45884
45884
  key: 1,
45885
45885
  controls: "",
45886
45886
  height: "150",
@@ -46168,7 +46168,7 @@ function _sfc_render$8(e, eg, tg, ng, rg, og) {
46168
46168
  _: 1
46169
46169
  }, 8, ["modelValue", "placeholder", "onKeydown"])
46170
46170
  ]),
46171
- createElementVNode("div", _hoisted_9$2, [
46171
+ createElementVNode("div", _hoisted_9$3, [
46172
46172
  createElementVNode("div", {
46173
46173
  class: normalizeClass(["ex oy jwt-material-img-content", [e.showCardListData ? "fx fxwp" : ""]])
46174
46174
  }, [
@@ -46576,8 +46576,9 @@ const index$7 = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_rend
46576
46576
  } },
46577
46577
  fillUrl: { type: Function, default: null },
46578
46578
  options: { type: Array, default: () => [] },
46579
- showAdd: { type: Boolean, default: !1 },
46580
46579
  multiple: { type: Boolean, default: !1 },
46580
+ showAdd: { type: Boolean, default: !1 },
46581
+ alwaysAdd: { type: Boolean, default: !1 },
46581
46582
  autoAdd: { type: Boolean, default: !1 },
46582
46583
  disabled: { type: Boolean, default: !1 },
46583
46584
  addParams: { type: Object, default: () => {
@@ -46659,7 +46660,7 @@ const index$7 = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_rend
46659
46660
  }
46660
46661
  rg.searchVal = vg;
46661
46662
  }, ug = () => {
46662
- eg("add-option");
46663
+ eg("add-option"), rg.fetched = !1, tg.value.blur();
46663
46664
  }, dg = () => {
46664
46665
  const { labelKey: vg, valueKey: gg, multiple: mg, addApi: yg, addParams: $g } = e;
46665
46666
  yg && e.request({
@@ -46712,9 +46713,12 @@ const index$7 = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_rend
46712
46713
  key: 0,
46713
46714
  class: "fxmc p10 bbor sti bcf"
46714
46715
  }, _hoisted_3$4 = {
46716
+ key: 1,
46717
+ class: "fxmc p10 bbor sti bcf"
46718
+ }, _hoisted_4$3 = {
46715
46719
  key: 0,
46716
46720
  class: "fxm ptb10"
46717
- }, _hoisted_4$3 = ["src"], _hoisted_5$2 = { class: "ml10" }, _hoisted_6$2 = { class: "fxmc fv ptb15" }, _hoisted_7$2 = /* @__PURE__ */ createElementVNode("i", {
46721
+ }, _hoisted_5$2 = ["src"], _hoisted_6$2 = { class: "ml10" }, _hoisted_7$2 = { class: "fxmc fv ptb15" }, _hoisted_8$2 = /* @__PURE__ */ createElementVNode("i", {
46718
46722
  class: "el-icon",
46719
46723
  "data-v-ea893728": ""
46720
46724
  }, [
@@ -46728,7 +46732,7 @@ const index$7 = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_rend
46728
46732
  fill: "currentColor"
46729
46733
  })
46730
46734
  ])
46731
- ], -1), _hoisted_8$2 = /* @__PURE__ */ createElementVNode("span", null, "\u7ACB\u5373\u65B0\u589E", -1);
46735
+ ], -1), _hoisted_9$2 = /* @__PURE__ */ createElementVNode("span", null, "\u7ACB\u5373\u65B0\u589E", -1);
46732
46736
  function _sfc_render$6(e, eg, tg, ng, rg, og) {
46733
46737
  const ig = resolveComponent("el-input"), ag = resolveComponent("el-button"), sg = resolveComponent("el-option"), lg = resolveComponent("el-text"), ug = resolveComponent("el-select");
46734
46738
  return openBlock(), createBlock(ug, {
@@ -46766,6 +46770,18 @@ function _sfc_render$6(e, eg, tg, ng, rg, og) {
46766
46770
  ]),
46767
46771
  _: 1
46768
46772
  }, 8, ["onClick"])
46773
+ ])) : e.alwaysAdd ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
46774
+ createVNode(ag, {
46775
+ class: "w",
46776
+ link: "",
46777
+ type: "primary",
46778
+ onClick: e.handleAddDialog
46779
+ }, {
46780
+ default: withCtx(() => [
46781
+ createTextVNode(" \u7ACB\u5373\u65B0\u589E ")
46782
+ ]),
46783
+ _: 1
46784
+ }, 8, ["onClick"])
46769
46785
  ])) : createCommentVNode("", !0),
46770
46786
  (openBlock(!0), createElementBlock(Fragment, null, renderList(e.listData, (dg, fg) => (openBlock(), createBlock(sg, {
46771
46787
  key: fg,
@@ -46774,12 +46790,12 @@ function _sfc_render$6(e, eg, tg, ng, rg, og) {
46774
46790
  value: dg[e.valueKey]
46775
46791
  }, {
46776
46792
  default: withCtx(() => [
46777
- e.avatarKey ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
46793
+ e.avatarKey ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
46778
46794
  createElementVNode("img", {
46779
46795
  class: "w40 r100px",
46780
46796
  src: e.fillUrl(dg[e.avatarKey])
46781
- }, null, 8, _hoisted_4$3),
46782
- createElementVNode("span", _hoisted_5$2, toDisplayString(dg[e.labelKey]), 1)
46797
+ }, null, 8, _hoisted_5$2),
46798
+ createElementVNode("span", _hoisted_6$2, toDisplayString(dg[e.labelKey]), 1)
46783
46799
  ])) : createCommentVNode("", !0)
46784
46800
  ]),
46785
46801
  _: 2
@@ -46788,10 +46804,10 @@ function _sfc_render$6(e, eg, tg, ng, rg, og) {
46788
46804
  ]),
46789
46805
  _: 2
46790
46806
  }, [
46791
- e.showAdd ? {
46807
+ e.showAdd || e.alwaysAdd ? {
46792
46808
  name: "empty",
46793
46809
  fn: withCtx(() => [
46794
- createElementVNode("div", _hoisted_6$2, [
46810
+ createElementVNode("div", _hoisted_7$2, [
46795
46811
  createElementVNode("div", null, [
46796
46812
  createVNode(lg, { type: "info" }, {
46797
46813
  default: withCtx(() => [
@@ -46806,8 +46822,8 @@ function _sfc_render$6(e, eg, tg, ng, rg, og) {
46806
46822
  }, [
46807
46823
  createVNode(lg, { type: "primary" }, {
46808
46824
  default: withCtx(() => [
46809
- _hoisted_7$2,
46810
- _hoisted_8$2
46825
+ _hoisted_8$2,
46826
+ _hoisted_9$2
46811
46827
  ]),
46812
46828
  _: 1
46813
46829
  })