page-schema-enginer-shun 1.0.10 → 1.0.12

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
@@ -26,15 +26,15 @@
26
26
  name: "DemoUser"
27
27
  })
28
28
  });
29
- const _hoisted_1$c = { class: "schema-form-input-container" };
29
+ const _hoisted_1$b = { class: "schema-form-input-container" };
30
30
  const _hoisted_2$5 = { class: "schema-form-input" };
31
- const _hoisted_3$3 = { class: "schema-form-input-item-label" };
31
+ const _hoisted_3$4 = { class: "schema-form-input-item-label" };
32
32
  const _hoisted_4$2 = { key: 0 };
33
33
  const _hoisted_5 = {
34
34
  key: 0,
35
35
  style: { "color": "red", "margin-top": "10px" }
36
36
  };
37
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
37
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
38
38
  __name: "input",
39
39
  props: ["model", "ItemKey", "schema"],
40
40
  setup(__props, { expose: __expose }) {
@@ -92,9 +92,9 @@
92
92
  return (_ctx, _cache) => {
93
93
  var _a, _b;
94
94
  const _component_el_input = vue.resolveComponent("el-input");
95
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
95
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
96
96
  vue.createElementVNode("div", _hoisted_2$5, [
97
- vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString((_a = __props.schema) == null ? void 0 : _a.label), 1),
97
+ vue.createElementVNode("span", _hoisted_3$4, vue.toDisplayString((_a = __props.schema) == null ? void 0 : _a.label), 1),
98
98
  ((_b = __props.schema.option) == null ? void 0 : _b.required) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$2, "*")) : vue.createCommentVNode("", true),
99
99
  vue.createVNode(_component_el_input, vue.mergeProps({
100
100
  modelValue: dataValue.value,
@@ -116,12 +116,12 @@
116
116
  }
117
117
  return target;
118
118
  };
119
- const input = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-5d94c475"]]);
120
- const _hoisted_1$b = { class: "schema-form-radio-container" };
119
+ const input = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5d94c475"]]);
120
+ const _hoisted_1$a = { class: "schema-form-radio-container" };
121
121
  const _hoisted_2$4 = { class: "schema-form-radio" };
122
- const _hoisted_3$2 = { class: "schema-form-radio-label" };
122
+ const _hoisted_3$3 = { class: "schema-form-radio-label" };
123
123
  const _hoisted_4$1 = { key: 0 };
124
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
124
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
125
125
  __name: "radio",
126
126
  props: ["model", "ItemKey", "schema"],
127
127
  setup(__props, { expose: __expose }) {
@@ -164,9 +164,9 @@
164
164
  return (_ctx, _cache) => {
165
165
  const _component_el_radio = vue.resolveComponent("el-radio");
166
166
  const _component_el_radio_group = vue.resolveComponent("el-radio-group");
167
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
167
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
168
168
  vue.createElementVNode("div", _hoisted_2$4, [
169
- vue.createElementVNode("span", _hoisted_3$2, vue.toDisplayString(__props.schema.label), 1),
169
+ vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(__props.schema.label), 1),
170
170
  vue.createVNode(_component_el_radio_group, {
171
171
  modelValue: radioData.value,
172
172
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => radioData.value = $event)
@@ -193,11 +193,11 @@
193
193
  };
194
194
  }
195
195
  });
196
- const radio = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a791fef4"]]);
197
- const _hoisted_1$a = { class: "schema-form-input-number-container" };
196
+ const radio = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-a791fef4"]]);
197
+ const _hoisted_1$9 = { class: "schema-form-input-number-container" };
198
198
  const _hoisted_2$3 = { class: "schema-form-input-number" };
199
- const _hoisted_3$1 = { class: "schema-form-input-number-label" };
200
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
199
+ const _hoisted_3$2 = { class: "schema-form-input-number-label" };
200
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
201
201
  __name: "input-number",
202
202
  props: ["model", "ItemKey", "schema"],
203
203
  setup(__props, { expose: __expose }) {
@@ -233,9 +233,9 @@
233
233
  });
234
234
  return (_ctx, _cache) => {
235
235
  const _component_el_input_number = vue.resolveComponent("el-input-number");
236
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
236
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
237
237
  vue.createElementVNode("div", _hoisted_2$3, [
238
- vue.createElementVNode("div", _hoisted_3$1, vue.toDisplayString(__props.schema.label), 1),
238
+ vue.createElementVNode("div", _hoisted_3$2, vue.toDisplayString(__props.schema.label), 1),
239
239
  vue.createVNode(_component_el_input_number, vue.mergeProps({
240
240
  modelValue: num.value,
241
241
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => num.value = $event)
@@ -245,12 +245,12 @@
245
245
  };
246
246
  }
247
247
  });
248
- const inputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-44583072"]]);
249
- const _hoisted_1$9 = { class: "schema-form-select-container" };
248
+ const inputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-44583072"]]);
249
+ const _hoisted_1$8 = { class: "schema-form-select-container" };
250
250
  const _hoisted_2$2 = { class: "schema-form-select" };
251
- const _hoisted_3 = { class: "schema-form-select-label" };
251
+ const _hoisted_3$1 = { class: "schema-form-select-label" };
252
252
  const _hoisted_4 = { key: 0 };
253
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
253
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
254
254
  __name: "select",
255
255
  props: ["model", "ItemKey", "schema"],
256
256
  setup(__props, { expose: __expose }) {
@@ -293,9 +293,9 @@
293
293
  return (_ctx, _cache) => {
294
294
  const _component_el_option = vue.resolveComponent("el-option");
295
295
  const _component_el_select = vue.resolveComponent("el-select");
296
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
296
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
297
297
  vue.createElementVNode("div", _hoisted_2$2, [
298
- vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(__props.schema.label), 1),
298
+ vue.createElementVNode("span", _hoisted_3$1, vue.toDisplayString(__props.schema.label), 1),
299
299
  vue.createVNode(_component_el_select, {
300
300
  modelValue: selectData.value,
301
301
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectData.value = $event),
@@ -318,7 +318,7 @@
318
318
  };
319
319
  }
320
320
  });
321
- const select = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-65d85e93"]]);
321
+ const select = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-65d85e93"]]);
322
322
  const formItemConfig = {
323
323
  input: {
324
324
  component: input
@@ -6480,11 +6480,11 @@
6480
6480
  __proto__: null,
6481
6481
  default: ajv_default
6482
6482
  }, [ajvExports]);
6483
- const _hoisted_1$8 = {
6483
+ const _hoisted_1$7 = {
6484
6484
  key: 0,
6485
6485
  class: "schema-form-complex-view"
6486
6486
  };
6487
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
6487
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
6488
6488
  __name: "schema-form",
6489
6489
  props: {
6490
6490
  schema: {},
@@ -6525,7 +6525,7 @@
6525
6525
  });
6526
6526
  vue.provide("ajvInstance", ajvInstance);
6527
6527
  return (_ctx, _cache) => {
6528
- return __props.schema && __props.schema.properties ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
6528
+ return __props.schema && __props.schema.properties ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
6529
6529
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.schema.properties, (value, key) => {
6530
6530
  var _a, _b;
6531
6531
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
@@ -6544,7 +6544,7 @@
6544
6544
  };
6545
6545
  }
6546
6546
  });
6547
- const schemaForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-eb150555"]]);
6547
+ const schemaForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-eb150555"]]);
6548
6548
  let requestFn = null;
6549
6549
  function setRequestClient(fn) {
6550
6550
  requestFn = fn;
@@ -6554,8 +6554,8 @@
6554
6554
  console.log("requestrequestrequest");
6555
6555
  return requestFn(options);
6556
6556
  }
6557
- const _hoisted_1$7 = { class: "createForm" };
6558
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
6557
+ const _hoisted_1$6 = { class: "createForm" };
6558
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
6559
6559
  __name: "createForm",
6560
6560
  emits: ["command"],
6561
6561
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -6602,7 +6602,7 @@
6602
6602
  return (_ctx, _cache) => {
6603
6603
  const _component_el_button = vue.resolveComponent("el-button");
6604
6604
  const _component_el_dialog = vue.resolveComponent("el-dialog");
6605
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
6605
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
6606
6606
  vue.createVNode(_component_el_dialog, {
6607
6607
  modelValue: isShow.value,
6608
6608
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
@@ -6646,9 +6646,9 @@
6646
6646
  };
6647
6647
  }
6648
6648
  });
6649
- const createFormC = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-cb04a018"]]);
6650
- const _hoisted_1$6 = { class: "editForm" };
6651
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
6649
+ const createFormC = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-cb04a018"]]);
6650
+ const _hoisted_1$5 = { class: "editForm" };
6651
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
6652
6652
  __name: "editForm",
6653
6653
  emits: ["command"],
6654
6654
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -6705,7 +6705,7 @@
6705
6705
  return (_ctx, _cache) => {
6706
6706
  const _component_el_button = vue.resolveComponent("el-button");
6707
6707
  const _component_el_dialog = vue.resolveComponent("el-dialog");
6708
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
6708
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
6709
6709
  vue.createVNode(_component_el_dialog, {
6710
6710
  modelValue: isDrawer.value,
6711
6711
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isDrawer.value = $event),
@@ -6746,10 +6746,10 @@
6746
6746
  component: createFormC
6747
6747
  },
6748
6748
  editForm: {
6749
- component: _sfc_main$a
6749
+ component: _sfc_main$9
6750
6750
  }
6751
6751
  };
6752
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
6752
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
6753
6753
  __name: "tag",
6754
6754
  props: {
6755
6755
  row: {
@@ -6777,7 +6777,7 @@
6777
6777
  };
6778
6778
  }
6779
6779
  });
6780
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
6780
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6781
6781
  __name: "format-enum",
6782
6782
  props: {
6783
6783
  row: {
@@ -6858,20 +6858,7 @@
6858
6858
  }
6859
6859
  return result;
6860
6860
  }
6861
- function formatTimeToStr(times, pattern2) {
6862
- return formatDate(times, pattern2 ?? "yyyy-MM-dd hh:mm:ss");
6863
- }
6864
- function computedAge(birthday) {
6865
- const birthDate = new Date(birthday);
6866
- const today = /* @__PURE__ */ new Date();
6867
- let age = today.getFullYear() - birthDate.getFullYear();
6868
- const monthDifference = today.getMonth() - birthDate.getMonth();
6869
- if (monthDifference < 0 || monthDifference === 0 && today.getDate() < birthDate.getDate()) {
6870
- age--;
6871
- }
6872
- return age;
6873
- }
6874
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6861
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
6875
6862
  __name: "format-date",
6876
6863
  props: {
6877
6864
  row: {
@@ -6912,18 +6899,19 @@
6912
6899
  });
6913
6900
  const tableConfig = {
6914
6901
  tag: {
6915
- component: _sfc_main$9
6902
+ component: _sfc_main$8
6916
6903
  },
6917
6904
  formatEnum: {
6918
- component: _sfc_main$8
6905
+ component: _sfc_main$7
6919
6906
  },
6920
6907
  formatDate: {
6921
- component: _sfc_main$7
6908
+ component: _sfc_main$6
6922
6909
  }
6923
6910
  };
6924
- const _hoisted_1$5 = { class: "schema-table" };
6925
- const _hoisted_2$1 = { class: "gva-pagination" };
6926
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
6911
+ const _hoisted_1$4 = { class: "schema-table" };
6912
+ const _hoisted_2$1 = { key: 1 };
6913
+ const _hoisted_3 = { class: "gva-pagination" };
6914
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
6927
6915
  __name: "schema-table",
6928
6916
  props: {
6929
6917
  schema: {},
@@ -6955,23 +6943,28 @@
6955
6943
  }
6956
6944
  if (loading.value) return;
6957
6945
  showLoding();
6958
- const res = await request({
6959
- url: __props.api.getList,
6960
- method: "get",
6961
- params: {
6962
- ...__props.apiParms,
6963
- page: currentPage.value,
6964
- pageSize: pageSize.value
6946
+ try {
6947
+ const res = await request({
6948
+ url: __props.api.getList,
6949
+ method: "get",
6950
+ params: {
6951
+ ...__props.apiParms,
6952
+ page: currentPage.value,
6953
+ pageSize: pageSize.value
6954
+ }
6955
+ });
6956
+ if (!res || !res.data) {
6957
+ return;
6965
6958
  }
6966
- });
6967
- hideLoding();
6968
- if (!res || !res.data) {
6969
- return;
6959
+ tableData.value = buildTableData(res.data.list) || [];
6960
+ total.value = Number(
6961
+ ((_a = res.data) == null ? void 0 : _a.total) ?? ((_b = res.data) == null ? void 0 : _b.count) ?? ((_d = (_c = res.data) == null ? void 0 : _c.pagination) == null ? void 0 : _d.total) ?? 0
6962
+ );
6963
+ } catch (err) {
6964
+ elementPlus.ElMessage.error((err == null ? void 0 : err.message) || "加载表格数据失败");
6965
+ } finally {
6966
+ hideLoding();
6970
6967
  }
6971
- tableData.value = buildTableData(res.data.list) || [];
6972
- total.value = Number(
6973
- ((_a = res.data) == null ? void 0 : _a.total) ?? ((_b = res.data) == null ? void 0 : _b.count) ?? ((_d = (_c = res.data) == null ? void 0 : _c.pagination) == null ? void 0 : _d.total) ?? 0
6974
- );
6975
6968
  };
6976
6969
  const initData = () => {
6977
6970
  currentPage.value = 1;
@@ -7014,7 +7007,7 @@
7014
7007
  timer = setTimeout(async () => {
7015
7008
  await fetDatbleData();
7016
7009
  timer = null;
7017
- }, 100);
7010
+ }, 300);
7018
7011
  };
7019
7012
  const showLoding = () => {
7020
7013
  loading.value = true;
@@ -7046,7 +7039,7 @@
7046
7039
  const _component_el_table = vue.resolveComponent("el-table");
7047
7040
  const _component_el_pagination = vue.resolveComponent("el-pagination");
7048
7041
  const _directive_loading = vue.resolveDirective("loading");
7049
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
7042
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
7050
7043
  __props.schema && __props.schema.properties ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_table, {
7051
7044
  key: 0,
7052
7045
  data: tableData.value,
@@ -7057,26 +7050,27 @@
7057
7050
  var _a;
7058
7051
  return [
7059
7052
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.schema.properties, (value, keyItem) => {
7060
- var _a2, _b;
7053
+ var _a2;
7061
7054
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: keyItem }, [
7062
7055
  ((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (vue.openBlock(), vue.createBlock(_component_el_table_column, vue.mergeProps({
7063
7056
  key: 0,
7064
7057
  prop: keyItem,
7065
7058
  label: value.label
7066
- }, { ref_for: true }, value.option), vue.createSlots({ _: 2 }, [
7067
- ((_b = value.option) == null ? void 0 : _b.comType) ? {
7068
- name: "default",
7069
- fn: vue.withCtx((scope2) => [
7070
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(buildComponetnName(value.option.comType)), {
7071
- row: scope2.row,
7059
+ }, { ref_for: true }, value.option), {
7060
+ default: vue.withCtx((scope2) => {
7061
+ var _a3, _b;
7062
+ return [
7063
+ ((_a3 = value.option) == null ? void 0 : _a3.comType) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(buildComponetnName(value.option.comType)), {
7064
+ key: 0,
7065
+ row: (scope2 == null ? void 0 : scope2.row) || {},
7072
7066
  column: value,
7073
- index: scope2.$index,
7067
+ index: (scope2 == null ? void 0 : scope2.$index) ?? 0,
7074
7068
  itemKey: keyItem
7075
- }, null, 8, ["row", "column", "index", "itemKey"]))
7076
- ]),
7077
- key: "0"
7078
- } : void 0
7079
- ]), 1040, ["prop", "label"])) : vue.createCommentVNode("", true)
7069
+ }, null, 8, ["row", "column", "index", "itemKey"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$1, vue.toDisplayString(((_b = scope2 == null ? void 0 : scope2.row) == null ? void 0 : _b[keyItem]) ?? ""), 1))
7070
+ ];
7071
+ }),
7072
+ _: 2
7073
+ }, 1040, ["prop", "label"])) : vue.createCommentVNode("", true)
7080
7074
  ], 64);
7081
7075
  }), 128)),
7082
7076
  ((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (vue.openBlock(), vue.createBlock(_component_el_table_column, {
@@ -7088,7 +7082,7 @@
7088
7082
  default: vue.withCtx((scope2) => [
7089
7083
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.buttons, (item, index) => {
7090
7084
  return vue.openBlock(), vue.createBlock(_component_el_button, vue.mergeProps({ key: index }, { ref_for: true }, item, {
7091
- onClick: ($event) => operatetionHandler({ btnConfig: item, rowData: scope2.row })
7085
+ onClick: ($event) => operatetionHandler({ btnConfig: item, rowData: (scope2 == null ? void 0 : scope2.row) || {} })
7092
7086
  }), {
7093
7087
  default: vue.withCtx(() => [
7094
7088
  vue.createTextVNode(vue.toDisplayString(item.label), 1)
@@ -7105,7 +7099,7 @@
7105
7099
  }, 8, ["data"])), [
7106
7100
  [_directive_loading, loading.value]
7107
7101
  ]) : vue.createCommentVNode("", true),
7108
- vue.createElementVNode("div", _hoisted_2$1, [
7102
+ vue.createElementVNode("div", _hoisted_3, [
7109
7103
  vue.createVNode(_component_el_pagination, {
7110
7104
  layout: "total, prev, pager, next, sizes",
7111
7105
  total: total.value,
@@ -7119,10 +7113,10 @@
7119
7113
  };
7120
7114
  }
7121
7115
  });
7122
- const SchemaTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-502fe21c"]]);
7123
- const _hoisted_1$4 = { class: "table-panel" };
7116
+ const SchemaTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-5d41e7cf"]]);
7117
+ const _hoisted_1$3 = { class: "table-panel" };
7124
7118
  const _hoisted_2 = { class: "operation-panel" };
7125
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
7119
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
7126
7120
  __name: "table-panel",
7127
7121
  emits: ["operate"],
7128
7122
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -7164,7 +7158,7 @@
7164
7158
  var _a, _b;
7165
7159
  const _component_el_button = vue.resolveComponent("el-button");
7166
7160
  const _component_el_row = vue.resolveComponent("el-row");
7167
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
7161
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
7168
7162
  vue.createElementVNode("div", _hoisted_2, [
7169
7163
  ((_a = vue.unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (vue.openBlock(), vue.createBlock(_component_el_row, { key: 0 }, {
7170
7164
  default: vue.withCtx(() => {
@@ -7204,8 +7198,8 @@
7204
7198
  };
7205
7199
  }
7206
7200
  });
7207
- const tablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cef68da3"]]);
7208
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
7201
+ const tablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-cef68da3"]]);
7202
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
7209
7203
  __name: "input",
7210
7204
  props: {
7211
7205
  schemaKey: {
@@ -7247,11 +7241,11 @@
7247
7241
  });
7248
7242
  const SearchConfig = {
7249
7243
  input: {
7250
- component: _sfc_main$4
7244
+ component: _sfc_main$3
7251
7245
  }
7252
7246
  };
7253
- const _hoisted_1$3 = { class: "gva-search-box" };
7254
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
7247
+ const _hoisted_1$2 = { class: "gva-search-box" };
7248
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
7255
7249
  __name: "schema-search-bar",
7256
7250
  props: {
7257
7251
  schema: {},
@@ -7306,7 +7300,7 @@
7306
7300
  const _component_el_form_item = vue.resolveComponent("el-form-item");
7307
7301
  const _component_el_button = vue.resolveComponent("el-button");
7308
7302
  const _component_el_form = vue.resolveComponent("el-form");
7309
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
7303
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
7310
7304
  vue.createVNode(_component_el_form, {
7311
7305
  inline: true,
7312
7306
  class: "flex items-center justify-start flex-wrap"
@@ -7358,8 +7352,8 @@
7358
7352
  };
7359
7353
  }
7360
7354
  });
7361
- const _hoisted_1$2 = { class: "search-panel" };
7362
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
7355
+ const _hoisted_1$1 = { class: "search-panel" };
7356
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
7363
7357
  __name: "search-panel",
7364
7358
  props: {},
7365
7359
  emits: ["Search", "Reset"],
@@ -7372,8 +7366,8 @@
7372
7366
  vue.onMounted(() => {
7373
7367
  });
7374
7368
  return (_ctx, _cache) => {
7375
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
7376
- vue.createVNode(_sfc_main$3, {
7369
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
7370
+ vue.createVNode(_sfc_main$2, {
7377
7371
  schema: vue.unref(searchSchema),
7378
7372
  schemaConfig: vue.unref(serachConfig),
7379
7373
  onSearch: handleSearch
@@ -7382,7 +7376,7 @@
7382
7376
  };
7383
7377
  }
7384
7378
  });
7385
- const searchPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-633fcc6e"]]);
7379
+ const searchPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-633fcc6e"]]);
7386
7380
  const useSchema = (schemaConfigDoc) => {
7387
7381
  const {
7388
7382
  api,
@@ -7464,8 +7458,8 @@
7464
7458
  components
7465
7459
  };
7466
7460
  };
7467
- const _hoisted_1$1 = { class: "schema-view" };
7468
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
7461
+ const _hoisted_1 = { class: "schema-view" };
7462
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7469
7463
  __name: "schema-view",
7470
7464
  props: {
7471
7465
  config: {}
@@ -7563,7 +7557,7 @@
7563
7557
  components
7564
7558
  });
7565
7559
  return (_ctx, _cache) => {
7566
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
7560
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
7567
7561
  vue.createVNode(searchPanel, {
7568
7562
  onSearch: handleSearch,
7569
7563
  onReset: handleReset
@@ -7586,7 +7580,7 @@
7586
7580
  };
7587
7581
  }
7588
7582
  });
7589
- const schemaView = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-6aa05693"]]);
7583
+ const schemaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6aa05693"]]);
7590
7584
  let routerClient = null;
7591
7585
  function setRouterClient(client) {
7592
7586
  routerClient = client;
@@ -7600,12 +7594,6 @@
7600
7594
  if (!routerClient || !routerClient.back) return;
7601
7595
  return routerClient.back();
7602
7596
  }
7603
- const _sfc_main = {};
7604
- const _hoisted_1 = { class: "operation-panel-placeholder" };
7605
- function _sfc_render(_ctx, _cache) {
7606
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1);
7607
- }
7608
- const operationPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e002ae22"]]);
7609
7597
  let requestAdapter;
7610
7598
  const setRequestAdapter = (adapter) => {
7611
7599
  console.log("设置requestAdapter", adapter);
@@ -7615,25 +7603,14 @@
7615
7603
  console.log("调用service", config);
7616
7604
  return requestAdapter(config);
7617
7605
  };
7618
- exports2.FormatDate = _sfc_main$7;
7619
- exports2.FormatEnum = _sfc_main$8;
7620
- exports2.OperationPanel = operationPanel;
7621
- exports2.SchemaForm = schemaForm;
7622
- exports2.SchemaSearchBar = _sfc_main$3;
7623
- exports2.SchemaTable = SchemaTable;
7624
7606
  exports2.SchemaView = schemaView;
7625
- exports2.Tag = _sfc_main$9;
7626
7607
  exports2.back = back;
7627
- exports2.computedAge = computedAge;
7628
- exports2.formatDate = formatDate;
7629
- exports2.formatTimeToStr = formatTimeToStr;
7630
7608
  exports2.navigate = navigate;
7631
7609
  exports2.request = request;
7632
7610
  exports2.service = service;
7633
7611
  exports2.setRequestAdapter = setRequestAdapter;
7634
7612
  exports2.setRequestClient = setRequestClient;
7635
7613
  exports2.setRouterClient = setRouterClient;
7636
- exports2.useSchema = useSchema;
7637
7614
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
7638
7615
  });
7639
7616
  //# sourceMappingURL=index.umd.js.map