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