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.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent, inject, ref as ref$1, watch, onMounted, resolveComponent as resolveComponent$1, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, toDisplayString, mergeProps, withCtx, Fragment, renderList, createBlock, createTextVNode, provide, resolveDynamicComponent, unref, toRefs, computed, resolveDirective, withDirectives, nextTick, renderSlot, normalizeProps, guardReactiveProps } from "vue";
1
+ import { defineComponent, inject, ref as ref$1, watch, onMounted, resolveComponent as resolveComponent$1, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, toDisplayString, mergeProps, unref, withCtx, Fragment, renderList, createBlock, createTextVNode, provide, resolveDynamicComponent, toRefs, computed, resolveDirective, withDirectives, nextTick, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { useRouter, useRoute } from "vue-router";
3
3
  import { defineStore } from "pinia";
4
- import { ElNotification, ElMessage, ElMessageBox } from "element-plus";
4
+ import { ElRadioGroup, ElRadio, ElSelect, ElOption, ElDialog, ElButton, ElNotification, ElTable, ElTableColumn, ElPagination, ElMessage, ElRow, ElInput, ElForm, ElFormItem, ElMessageBox } from "element-plus";
5
5
  function _mergeNamespaces(n, m) {
6
6
  for (var i = 0; i < m.length; i++) {
7
7
  const e = m[i];
@@ -162,18 +162,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
162
162
  reset
163
163
  });
164
164
  return (_ctx, _cache) => {
165
- const _component_el_radio = resolveComponent$1("el-radio");
166
- const _component_el_radio_group = resolveComponent$1("el-radio-group");
167
165
  return openBlock(), createElementBlock("div", _hoisted_1$a, [
168
166
  createElementVNode("div", _hoisted_2$4, [
169
167
  createElementVNode("span", _hoisted_3$3, toDisplayString(__props.schema.label), 1),
170
- createVNode(_component_el_radio_group, {
168
+ createVNode(unref(ElRadioGroup), {
171
169
  modelValue: radioData.value,
172
170
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => radioData.value = $event)
173
171
  }, {
174
172
  default: withCtx(() => [
175
173
  (openBlock(true), createElementBlock(Fragment, null, renderList(enumerate.value, (item) => {
176
- return openBlock(), createBlock(_component_el_radio, {
174
+ return openBlock(), createBlock(unref(ElRadio), {
177
175
  key: item.value,
178
176
  value: item.value,
179
177
  size: "large"
@@ -193,7 +191,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
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 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
291
289
  reset
292
290
  });
293
291
  return (_ctx, _cache) => {
294
- const _component_el_option = resolveComponent$1("el-option");
295
- const _component_el_select = resolveComponent$1("el-select");
296
292
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
297
293
  createElementVNode("div", _hoisted_2$2, [
298
294
  createElementVNode("span", _hoisted_3$1, toDisplayString(__props.schema.label), 1),
299
- createVNode(_component_el_select, {
295
+ createVNode(unref(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: withCtx(() => [
305
301
  (openBlock(true), createElementBlock(Fragment, null, renderList(enumerate.value, (item) => {
306
- return openBlock(), createBlock(_component_el_option, {
302
+ return openBlock(), createBlock(unref(ElOption), {
307
303
  key: item.value,
308
304
  label: item.label,
309
305
  value: item.value
@@ -318,7 +314,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
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 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6600
6596
  useRoute();
6601
6597
  useUserStore();
6602
6598
  return (_ctx, _cache) => {
6603
- const _component_el_button = resolveComponent$1("el-button");
6604
- const _component_el_dialog = resolveComponent$1("el-dialog");
6605
6599
  return openBlock(), createElementBlock("div", _hoisted_1$6, [
6606
- createVNode(_component_el_dialog, {
6600
+ createVNode(unref(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 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6621
6615
  ];
6622
6616
  }),
6623
6617
  footer: withCtx(() => [
6624
- createVNode(_component_el_button, {
6618
+ createVNode(unref(ElButton), {
6625
6619
  type: "primary",
6626
6620
  onClick: submit
6627
6621
  }, {
@@ -6630,7 +6624,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6630
6624
  ])]),
6631
6625
  _: 1
6632
6626
  }),
6633
- createVNode(_component_el_button, {
6627
+ createVNode(unref(ElButton), {
6634
6628
  type: "primary",
6635
6629
  onClick: close
6636
6630
  }, {
@@ -6646,7 +6640,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
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__ */ defineComponent({
6652
6646
  __name: "editForm",
@@ -6703,10 +6697,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6703
6697
  useRoute();
6704
6698
  useUserStore();
6705
6699
  return (_ctx, _cache) => {
6706
- const _component_el_button = resolveComponent$1("el-button");
6707
- const _component_el_dialog = resolveComponent$1("el-dialog");
6708
6700
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
6709
- createVNode(_component_el_dialog, {
6701
+ createVNode(unref(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 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6725
6717
  ];
6726
6718
  }),
6727
6719
  footer: withCtx(() => [
6728
- createVNode(_component_el_button, {
6720
+ createVNode(unref(ElButton), {
6729
6721
  type: "primary",
6730
6722
  onClick: submit
6731
6723
  }, {
@@ -7034,13 +7026,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7034
7026
  useRoute();
7035
7027
  useUserStore();
7036
7028
  return (_ctx, _cache) => {
7037
- const _component_el_table_column = resolveComponent$1("el-table-column");
7038
- const _component_el_button = resolveComponent$1("el-button");
7039
- const _component_el_table = resolveComponent$1("el-table");
7040
- const _component_el_pagination = resolveComponent$1("el-pagination");
7041
7029
  const _directive_loading = resolveDirective("loading");
7042
7030
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
7043
- __props.schema && __props.schema.properties ? withDirectives((openBlock(), createBlock(_component_el_table, {
7031
+ __props.schema && __props.schema.properties ? withDirectives((openBlock(), createBlock(unref(ElTable), {
7044
7032
  key: 0,
7045
7033
  data: tableData.value,
7046
7034
  style: { "width": "100%" },
@@ -7052,7 +7040,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7052
7040
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.schema.properties, (value, keyItem) => {
7053
7041
  var _a2;
7054
7042
  return openBlock(), createElementBlock(Fragment, { key: keyItem }, [
7055
- ((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (openBlock(), createBlock(_component_el_table_column, mergeProps({
7043
+ ((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (openBlock(), createBlock(unref(ElTableColumn), mergeProps({
7056
7044
  key: 0,
7057
7045
  prop: keyItem,
7058
7046
  label: value.label
@@ -7073,7 +7061,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7073
7061
  }, 1040, ["prop", "label"])) : createCommentVNode("", true)
7074
7062
  ], 64);
7075
7063
  }), 128)),
7076
- ((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (openBlock(), createBlock(_component_el_table_column, {
7064
+ ((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (openBlock(), createBlock(unref(ElTableColumn), {
7077
7065
  key: 0,
7078
7066
  label: "操作",
7079
7067
  align: "center",
@@ -7081,7 +7069,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7081
7069
  }, {
7082
7070
  default: withCtx((scope2) => [
7083
7071
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttons, (item, index) => {
7084
- return openBlock(), createBlock(_component_el_button, mergeProps({ key: index }, { ref_for: true }, item, {
7072
+ return openBlock(), createBlock(unref(ElButton), 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: withCtx(() => [
@@ -7100,7 +7088,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7100
7088
  [_directive_loading, loading.value]
7101
7089
  ]) : createCommentVNode("", true),
7102
7090
  createElementVNode("div", _hoisted_3, [
7103
- createVNode(_component_el_pagination, {
7091
+ createVNode(unref(ElPagination), {
7104
7092
  layout: "total, prev, pager, next, sizes",
7105
7093
  total: total.value,
7106
7094
  "page-size": pageSize.value,
@@ -7113,7 +7101,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
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__ */ defineComponent({
@@ -7156,16 +7144,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7156
7144
  useUserStore();
7157
7145
  return (_ctx, _cache) => {
7158
7146
  var _a, _b;
7159
- const _component_el_button = resolveComponent$1("el-button");
7160
- const _component_el_row = resolveComponent$1("el-row");
7161
7147
  return openBlock(), createElementBlock("div", _hoisted_1$3, [
7162
7148
  createElementVNode("div", _hoisted_2, [
7163
- ((_a = unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (openBlock(), createBlock(_component_el_row, { key: 0 }, {
7149
+ ((_a = unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (openBlock(), createBlock(unref(ElRow), { key: 0 }, {
7164
7150
  default: withCtx(() => {
7165
7151
  var _a2;
7166
7152
  return [
7167
7153
  (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = unref(tableConfig2)) == null ? void 0 : _a2.headerButtons, (buttonItem) => {
7168
- return openBlock(), createBlock(_component_el_button, {
7154
+ return openBlock(), createBlock(unref(ElButton), {
7169
7155
  key: buttonItem.eventKey,
7170
7156
  onClick: ($event) => onOperate({ btnConfig: buttonItem })
7171
7157
  }, {
@@ -7198,7 +7184,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
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__ */ defineComponent({
7203
7189
  __name: "input",
7204
7190
  props: {
@@ -7230,8 +7216,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7230
7216
  reset
7231
7217
  });
7232
7218
  return (_ctx, _cache) => {
7233
- const _component_el_input = resolveComponent$1("el-input");
7234
- return openBlock(), createBlock(_component_el_input, mergeProps({
7219
+ return openBlock(), createBlock(unref(ElInput), 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 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7297
7282
  load
7298
7283
  });
7299
7284
  return (_ctx, _cache) => {
7300
- const _component_el_form_item = resolveComponent$1("el-form-item");
7301
- const _component_el_button = resolveComponent$1("el-button");
7302
- const _component_el_form = resolveComponent$1("el-form");
7303
7285
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
7304
- createVNode(_component_el_form, {
7286
+ createVNode(unref(ElForm), {
7305
7287
  inline: true,
7306
7288
  class: "flex items-center justify-start flex-wrap"
7307
7289
  }, {
7308
7290
  default: withCtx(() => [
7309
7291
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.schema.properties, (value, key) => {
7310
- return openBlock(), createBlock(_component_el_form_item, {
7292
+ return openBlock(), createBlock(unref(ElFormItem), {
7311
7293
  key,
7312
7294
  label: value.label
7313
7295
  }, {
@@ -7325,9 +7307,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7325
7307
  _: 2
7326
7308
  }, 1032, ["label"]);
7327
7309
  }), 128)),
7328
- createVNode(_component_el_form_item, null, {
7310
+ createVNode(unref(ElFormItem), null, {
7329
7311
  default: withCtx(() => [
7330
- createVNode(_component_el_button, {
7312
+ createVNode(unref(ElButton), {
7331
7313
  type: "primary",
7332
7314
  onClick: search
7333
7315
  }, {
@@ -7336,7 +7318,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7336
7318
  ])]),
7337
7319
  _: 1
7338
7320
  }),
7339
- createVNode(_component_el_button, { onClick: reset }, {
7321
+ createVNode(unref(ElButton), { onClick: reset }, {
7340
7322
  default: withCtx(() => [..._cache[1] || (_cache[1] = [
7341
7323
  createTextVNode("重置", -1)
7342
7324
  ])]),
@@ -7580,7 +7562,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
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;