page-schema-enginer-shun 1.0.14 → 1.0.17

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/index.umd.js CHANGED
@@ -162,18 +162,16 @@
162
162
  reset
163
163
  });
164
164
  return (_ctx, _cache) => {
165
- const _component_el_radio = vue.resolveComponent("el-radio");
166
- const _component_el_radio_group = vue.resolveComponent("el-radio-group");
167
165
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
168
166
  vue.createElementVNode("div", _hoisted_2$4, [
169
167
  vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(__props.schema.label), 1),
170
- vue.createVNode(_component_el_radio_group, {
168
+ vue.createVNode(vue.unref(elementPlus.ElRadioGroup), {
171
169
  modelValue: radioData.value,
172
170
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => radioData.value = $event)
173
171
  }, {
174
172
  default: vue.withCtx(() => [
175
173
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(enumerate.value, (item) => {
176
- return vue.openBlock(), vue.createBlock(_component_el_radio, {
174
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadio), {
177
175
  key: item.value,
178
176
  value: item.value,
179
177
  size: "large"
@@ -193,7 +191,7 @@
193
191
  };
194
192
  }
195
193
  });
196
- const radio = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-a791fef4"]]);
194
+ const radio = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-1141884d"]]);
197
195
  const _hoisted_1$9 = { class: "schema-form-input-number-container" };
198
196
  const _hoisted_2$3 = { class: "schema-form-input-number" };
199
197
  const _hoisted_3$2 = { class: "schema-form-input-number-label" };
@@ -291,19 +289,17 @@
291
289
  reset
292
290
  });
293
291
  return (_ctx, _cache) => {
294
- const _component_el_option = vue.resolveComponent("el-option");
295
- const _component_el_select = vue.resolveComponent("el-select");
296
292
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
297
293
  vue.createElementVNode("div", _hoisted_2$2, [
298
294
  vue.createElementVNode("span", _hoisted_3$1, vue.toDisplayString(__props.schema.label), 1),
299
- vue.createVNode(_component_el_select, {
295
+ vue.createVNode(vue.unref(elementPlus.ElSelect), {
300
296
  modelValue: selectData.value,
301
297
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectData.value = $event),
302
298
  placeholder: "请选择"
303
299
  }, {
304
300
  default: vue.withCtx(() => [
305
301
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(enumerate.value, (item) => {
306
- return vue.openBlock(), vue.createBlock(_component_el_option, {
302
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElOption), {
307
303
  key: item.value,
308
304
  label: item.label,
309
305
  value: item.value
@@ -318,7 +314,7 @@
318
314
  };
319
315
  }
320
316
  });
321
- const select = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-65d85e93"]]);
317
+ const select = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-3518f453"]]);
322
318
  const formItemConfig = {
323
319
  input: {
324
320
  component: input
@@ -6600,10 +6596,8 @@
6600
6596
  vueRouter.useRoute();
6601
6597
  useUserStore();
6602
6598
  return (_ctx, _cache) => {
6603
- const _component_el_button = vue.resolveComponent("el-button");
6604
- const _component_el_dialog = vue.resolveComponent("el-dialog");
6605
6599
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
6606
- vue.createVNode(_component_el_dialog, {
6600
+ vue.createVNode(vue.unref(elementPlus.ElDialog), {
6607
6601
  modelValue: isShow.value,
6608
6602
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
6609
6603
  title: "新建",
@@ -6621,7 +6615,7 @@
6621
6615
  ];
6622
6616
  }),
6623
6617
  footer: vue.withCtx(() => [
6624
- vue.createVNode(_component_el_button, {
6618
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
6625
6619
  type: "primary",
6626
6620
  onClick: submit
6627
6621
  }, {
@@ -6630,7 +6624,7 @@
6630
6624
  ])]),
6631
6625
  _: 1
6632
6626
  }),
6633
- vue.createVNode(_component_el_button, {
6627
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
6634
6628
  type: "primary",
6635
6629
  onClick: close
6636
6630
  }, {
@@ -6646,7 +6640,7 @@
6646
6640
  };
6647
6641
  }
6648
6642
  });
6649
- const createFormC = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-cb04a018"]]);
6643
+ const createFormC = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-5ac725c5"]]);
6650
6644
  const _hoisted_1$5 = { class: "editForm" };
6651
6645
  const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
6652
6646
  __name: "editForm",
@@ -6703,10 +6697,8 @@
6703
6697
  vueRouter.useRoute();
6704
6698
  useUserStore();
6705
6699
  return (_ctx, _cache) => {
6706
- const _component_el_button = vue.resolveComponent("el-button");
6707
- const _component_el_dialog = vue.resolveComponent("el-dialog");
6708
6700
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
6709
- vue.createVNode(_component_el_dialog, {
6701
+ vue.createVNode(vue.unref(elementPlus.ElDialog), {
6710
6702
  modelValue: isDrawer.value,
6711
6703
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isDrawer.value = $event),
6712
6704
  title: "编辑",
@@ -6725,7 +6717,7 @@
6725
6717
  ];
6726
6718
  }),
6727
6719
  footer: vue.withCtx(() => [
6728
- vue.createVNode(_component_el_button, {
6720
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
6729
6721
  type: "primary",
6730
6722
  onClick: submit
6731
6723
  }, {
@@ -7034,13 +7026,9 @@
7034
7026
  vueRouter.useRoute();
7035
7027
  useUserStore();
7036
7028
  return (_ctx, _cache) => {
7037
- const _component_el_table_column = vue.resolveComponent("el-table-column");
7038
- const _component_el_button = vue.resolveComponent("el-button");
7039
- const _component_el_table = vue.resolveComponent("el-table");
7040
- const _component_el_pagination = vue.resolveComponent("el-pagination");
7041
7029
  const _directive_loading = vue.resolveDirective("loading");
7042
7030
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
7043
- __props.schema && __props.schema.properties ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_table, {
7031
+ __props.schema && __props.schema.properties ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTable), {
7044
7032
  key: 0,
7045
7033
  data: tableData.value,
7046
7034
  style: { "width": "100%" },
@@ -7052,7 +7040,7 @@
7052
7040
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.schema.properties, (value, keyItem) => {
7053
7041
  var _a2;
7054
7042
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: keyItem }, [
7055
- ((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (vue.openBlock(), vue.createBlock(_component_el_table_column, vue.mergeProps({
7043
+ ((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), vue.mergeProps({
7056
7044
  key: 0,
7057
7045
  prop: keyItem,
7058
7046
  label: value.label
@@ -7073,7 +7061,7 @@
7073
7061
  }, 1040, ["prop", "label"])) : vue.createCommentVNode("", true)
7074
7062
  ], 64);
7075
7063
  }), 128)),
7076
- ((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (vue.openBlock(), vue.createBlock(_component_el_table_column, {
7064
+ ((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), {
7077
7065
  key: 0,
7078
7066
  label: "操作",
7079
7067
  align: "center",
@@ -7081,7 +7069,7 @@
7081
7069
  }, {
7082
7070
  default: vue.withCtx((scope2) => [
7083
7071
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.buttons, (item, index) => {
7084
- return vue.openBlock(), vue.createBlock(_component_el_button, vue.mergeProps({ key: index }, { ref_for: true }, item, {
7072
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), vue.mergeProps({ key: index }, { ref_for: true }, item, {
7085
7073
  onClick: ($event) => operatetionHandler({ btnConfig: item, rowData: (scope2 == null ? void 0 : scope2.row) || {} })
7086
7074
  }), {
7087
7075
  default: vue.withCtx(() => [
@@ -7100,7 +7088,7 @@
7100
7088
  [_directive_loading, loading.value]
7101
7089
  ]) : vue.createCommentVNode("", true),
7102
7090
  vue.createElementVNode("div", _hoisted_3, [
7103
- vue.createVNode(_component_el_pagination, {
7091
+ vue.createVNode(vue.unref(elementPlus.ElPagination), {
7104
7092
  layout: "total, prev, pager, next, sizes",
7105
7093
  total: total.value,
7106
7094
  "page-size": pageSize.value,
@@ -7113,7 +7101,7 @@
7113
7101
  };
7114
7102
  }
7115
7103
  });
7116
- const SchemaTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-5d41e7cf"]]);
7104
+ const SchemaTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-af54a88b"]]);
7117
7105
  const _hoisted_1$3 = { class: "table-panel" };
7118
7106
  const _hoisted_2 = { class: "operation-panel" };
7119
7107
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
@@ -7156,16 +7144,14 @@
7156
7144
  useUserStore();
7157
7145
  return (_ctx, _cache) => {
7158
7146
  var _a, _b;
7159
- const _component_el_button = vue.resolveComponent("el-button");
7160
- const _component_el_row = vue.resolveComponent("el-row");
7161
7147
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
7162
7148
  vue.createElementVNode("div", _hoisted_2, [
7163
- ((_a = vue.unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (vue.openBlock(), vue.createBlock(_component_el_row, { key: 0 }, {
7149
+ ((_a = vue.unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRow), { key: 0 }, {
7164
7150
  default: vue.withCtx(() => {
7165
7151
  var _a2;
7166
7152
  return [
7167
7153
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = vue.unref(tableConfig2)) == null ? void 0 : _a2.headerButtons, (buttonItem) => {
7168
- return vue.openBlock(), vue.createBlock(_component_el_button, {
7154
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
7169
7155
  key: buttonItem.eventKey,
7170
7156
  onClick: ($event) => onOperate({ btnConfig: buttonItem })
7171
7157
  }, {
@@ -7198,7 +7184,7 @@
7198
7184
  };
7199
7185
  }
7200
7186
  });
7201
- const tablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-cef68da3"]]);
7187
+ const tablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-34ee246e"]]);
7202
7188
  const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
7203
7189
  __name: "input",
7204
7190
  props: {
@@ -7230,8 +7216,7 @@
7230
7216
  reset
7231
7217
  });
7232
7218
  return (_ctx, _cache) => {
7233
- const _component_el_input = vue.resolveComponent("el-input");
7234
- return vue.openBlock(), vue.createBlock(_component_el_input, vue.mergeProps({
7219
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInput), vue.mergeProps({
7235
7220
  type: "text",
7236
7221
  modelValue: dtoValue.value,
7237
7222
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dtoValue.value = $event)
@@ -7297,17 +7282,14 @@
7297
7282
  load
7298
7283
  });
7299
7284
  return (_ctx, _cache) => {
7300
- const _component_el_form_item = vue.resolveComponent("el-form-item");
7301
- const _component_el_button = vue.resolveComponent("el-button");
7302
- const _component_el_form = vue.resolveComponent("el-form");
7303
7285
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
7304
- vue.createVNode(_component_el_form, {
7286
+ vue.createVNode(vue.unref(elementPlus.ElForm), {
7305
7287
  inline: true,
7306
7288
  class: "flex items-center justify-start flex-wrap"
7307
7289
  }, {
7308
7290
  default: vue.withCtx(() => [
7309
7291
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.schema.properties, (value, key) => {
7310
- return vue.openBlock(), vue.createBlock(_component_el_form_item, {
7292
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElFormItem), {
7311
7293
  key,
7312
7294
  label: value.label
7313
7295
  }, {
@@ -7325,9 +7307,9 @@
7325
7307
  _: 2
7326
7308
  }, 1032, ["label"]);
7327
7309
  }), 128)),
7328
- vue.createVNode(_component_el_form_item, null, {
7310
+ vue.createVNode(vue.unref(elementPlus.ElFormItem), null, {
7329
7311
  default: vue.withCtx(() => [
7330
- vue.createVNode(_component_el_button, {
7312
+ vue.createVNode(vue.unref(elementPlus.ElButton), {
7331
7313
  type: "primary",
7332
7314
  onClick: search
7333
7315
  }, {
@@ -7336,7 +7318,7 @@
7336
7318
  ])]),
7337
7319
  _: 1
7338
7320
  }),
7339
- vue.createVNode(_component_el_button, { onClick: reset }, {
7321
+ vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: reset }, {
7340
7322
  default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
7341
7323
  vue.createTextVNode("重置", -1)
7342
7324
  ])]),
@@ -7580,7 +7562,7 @@
7580
7562
  };
7581
7563
  }
7582
7564
  });
7583
- const schemaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6aa05693"]]);
7565
+ const schemaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d797bc6e"]]);
7584
7566
  let routerClient = null;
7585
7567
  function setRouterClient(client) {
7586
7568
  routerClient = client;