page-schema-enginer-shun 1.0.15 → 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.cjs.js +28 -54
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +30 -56
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -54
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +10 -10
- package/dist/wigdets/schema-search/schema-search-bar.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -164,18 +164,16 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
164
164
|
reset
|
|
165
165
|
});
|
|
166
166
|
return (_ctx, _cache) => {
|
|
167
|
-
const _component_el_radio = vue.resolveComponent("el-radio");
|
|
168
|
-
const _component_el_radio_group = vue.resolveComponent("el-radio-group");
|
|
169
167
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
170
168
|
vue.createElementVNode("div", _hoisted_2$4, [
|
|
171
169
|
vue.createElementVNode("span", _hoisted_3$3, vue.toDisplayString(__props.schema.label), 1),
|
|
172
|
-
vue.createVNode(
|
|
170
|
+
vue.createVNode(vue.unref(elementPlus.ElRadioGroup), {
|
|
173
171
|
modelValue: radioData.value,
|
|
174
172
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => radioData.value = $event)
|
|
175
173
|
}, {
|
|
176
174
|
default: vue.withCtx(() => [
|
|
177
175
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(enumerate.value, (item) => {
|
|
178
|
-
return vue.openBlock(), vue.createBlock(
|
|
176
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRadio), {
|
|
179
177
|
key: item.value,
|
|
180
178
|
value: item.value,
|
|
181
179
|
size: "large"
|
|
@@ -195,7 +193,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
195
193
|
};
|
|
196
194
|
}
|
|
197
195
|
});
|
|
198
|
-
const radio = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
196
|
+
const radio = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-1141884d"]]);
|
|
199
197
|
const _hoisted_1$9 = { class: "schema-form-input-number-container" };
|
|
200
198
|
const _hoisted_2$3 = { class: "schema-form-input-number" };
|
|
201
199
|
const _hoisted_3$2 = { class: "schema-form-input-number-label" };
|
|
@@ -293,19 +291,17 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
293
291
|
reset
|
|
294
292
|
});
|
|
295
293
|
return (_ctx, _cache) => {
|
|
296
|
-
const _component_el_option = vue.resolveComponent("el-option");
|
|
297
|
-
const _component_el_select = vue.resolveComponent("el-select");
|
|
298
294
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
299
295
|
vue.createElementVNode("div", _hoisted_2$2, [
|
|
300
296
|
vue.createElementVNode("span", _hoisted_3$1, vue.toDisplayString(__props.schema.label), 1),
|
|
301
|
-
vue.createVNode(
|
|
297
|
+
vue.createVNode(vue.unref(elementPlus.ElSelect), {
|
|
302
298
|
modelValue: selectData.value,
|
|
303
299
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectData.value = $event),
|
|
304
300
|
placeholder: "请选择"
|
|
305
301
|
}, {
|
|
306
302
|
default: vue.withCtx(() => [
|
|
307
303
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(enumerate.value, (item) => {
|
|
308
|
-
return vue.openBlock(), vue.createBlock(
|
|
304
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElOption), {
|
|
309
305
|
key: item.value,
|
|
310
306
|
label: item.label,
|
|
311
307
|
value: item.value
|
|
@@ -320,7 +316,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
320
316
|
};
|
|
321
317
|
}
|
|
322
318
|
});
|
|
323
|
-
const select = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
319
|
+
const select = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-3518f453"]]);
|
|
324
320
|
const formItemConfig = {
|
|
325
321
|
input: {
|
|
326
322
|
component: input
|
|
@@ -6602,10 +6598,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
6602
6598
|
vueRouter.useRoute();
|
|
6603
6599
|
useUserStore();
|
|
6604
6600
|
return (_ctx, _cache) => {
|
|
6605
|
-
const _component_el_button = vue.resolveComponent("el-button");
|
|
6606
|
-
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
6607
6601
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
6608
|
-
vue.createVNode(
|
|
6602
|
+
vue.createVNode(vue.unref(elementPlus.ElDialog), {
|
|
6609
6603
|
modelValue: isShow.value,
|
|
6610
6604
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
|
|
6611
6605
|
title: "新建",
|
|
@@ -6623,7 +6617,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
6623
6617
|
];
|
|
6624
6618
|
}),
|
|
6625
6619
|
footer: vue.withCtx(() => [
|
|
6626
|
-
vue.createVNode(
|
|
6620
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
6627
6621
|
type: "primary",
|
|
6628
6622
|
onClick: submit
|
|
6629
6623
|
}, {
|
|
@@ -6632,7 +6626,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
6632
6626
|
])]),
|
|
6633
6627
|
_: 1
|
|
6634
6628
|
}),
|
|
6635
|
-
vue.createVNode(
|
|
6629
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
6636
6630
|
type: "primary",
|
|
6637
6631
|
onClick: close
|
|
6638
6632
|
}, {
|
|
@@ -6648,7 +6642,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
6648
6642
|
};
|
|
6649
6643
|
}
|
|
6650
6644
|
});
|
|
6651
|
-
const createFormC = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
6645
|
+
const createFormC = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-5ac725c5"]]);
|
|
6652
6646
|
const _hoisted_1$5 = { class: "editForm" };
|
|
6653
6647
|
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
6654
6648
|
__name: "editForm",
|
|
@@ -6705,10 +6699,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6705
6699
|
vueRouter.useRoute();
|
|
6706
6700
|
useUserStore();
|
|
6707
6701
|
return (_ctx, _cache) => {
|
|
6708
|
-
const _component_el_button = vue.resolveComponent("el-button");
|
|
6709
|
-
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
6710
6702
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
6711
|
-
vue.createVNode(
|
|
6703
|
+
vue.createVNode(vue.unref(elementPlus.ElDialog), {
|
|
6712
6704
|
modelValue: isDrawer.value,
|
|
6713
6705
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isDrawer.value = $event),
|
|
6714
6706
|
title: "编辑",
|
|
@@ -6727,7 +6719,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
6727
6719
|
];
|
|
6728
6720
|
}),
|
|
6729
6721
|
footer: vue.withCtx(() => [
|
|
6730
|
-
vue.createVNode(
|
|
6722
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
6731
6723
|
type: "primary",
|
|
6732
6724
|
onClick: submit
|
|
6733
6725
|
}, {
|
|
@@ -7036,13 +7028,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7036
7028
|
vueRouter.useRoute();
|
|
7037
7029
|
useUserStore();
|
|
7038
7030
|
return (_ctx, _cache) => {
|
|
7039
|
-
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
7040
|
-
const _component_el_button = vue.resolveComponent("el-button");
|
|
7041
|
-
const _component_el_table = vue.resolveComponent("el-table");
|
|
7042
|
-
const _component_el_pagination = vue.resolveComponent("el-pagination");
|
|
7043
7031
|
const _directive_loading = vue.resolveDirective("loading");
|
|
7044
7032
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
7045
|
-
__props.schema && __props.schema.properties ? vue.withDirectives((vue.openBlock(), vue.createBlock(
|
|
7033
|
+
__props.schema && __props.schema.properties ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTable), {
|
|
7046
7034
|
key: 0,
|
|
7047
7035
|
data: tableData.value,
|
|
7048
7036
|
style: { "width": "100%" },
|
|
@@ -7054,7 +7042,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7054
7042
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.schema.properties, (value, keyItem) => {
|
|
7055
7043
|
var _a2;
|
|
7056
7044
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: keyItem }, [
|
|
7057
|
-
((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (vue.openBlock(), vue.createBlock(
|
|
7045
|
+
((_a2 = value.option) == null ? void 0 : _a2.visible) !== false ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), vue.mergeProps({
|
|
7058
7046
|
key: 0,
|
|
7059
7047
|
prop: keyItem,
|
|
7060
7048
|
label: value.label
|
|
@@ -7075,7 +7063,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7075
7063
|
}, 1040, ["prop", "label"])) : vue.createCommentVNode("", true)
|
|
7076
7064
|
], 64);
|
|
7077
7065
|
}), 128)),
|
|
7078
|
-
((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (vue.openBlock(), vue.createBlock(
|
|
7066
|
+
((_a = __props.buttons) == null ? void 0 : _a.length) > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), {
|
|
7079
7067
|
key: 0,
|
|
7080
7068
|
label: "操作",
|
|
7081
7069
|
align: "center",
|
|
@@ -7083,7 +7071,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7083
7071
|
}, {
|
|
7084
7072
|
default: vue.withCtx((scope2) => [
|
|
7085
7073
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.buttons, (item, index) => {
|
|
7086
|
-
return vue.openBlock(), vue.createBlock(
|
|
7074
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), vue.mergeProps({ key: index }, { ref_for: true }, item, {
|
|
7087
7075
|
onClick: ($event) => operatetionHandler({ btnConfig: item, rowData: (scope2 == null ? void 0 : scope2.row) || {} })
|
|
7088
7076
|
}), {
|
|
7089
7077
|
default: vue.withCtx(() => [
|
|
@@ -7102,7 +7090,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7102
7090
|
[_directive_loading, loading.value]
|
|
7103
7091
|
]) : vue.createCommentVNode("", true),
|
|
7104
7092
|
vue.createElementVNode("div", _hoisted_3, [
|
|
7105
|
-
vue.createVNode(
|
|
7093
|
+
vue.createVNode(vue.unref(elementPlus.ElPagination), {
|
|
7106
7094
|
layout: "total, prev, pager, next, sizes",
|
|
7107
7095
|
total: total.value,
|
|
7108
7096
|
"page-size": pageSize.value,
|
|
@@ -7115,7 +7103,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7115
7103
|
};
|
|
7116
7104
|
}
|
|
7117
7105
|
});
|
|
7118
|
-
const SchemaTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
7106
|
+
const SchemaTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-af54a88b"]]);
|
|
7119
7107
|
const _hoisted_1$3 = { class: "table-panel" };
|
|
7120
7108
|
const _hoisted_2 = { class: "operation-panel" };
|
|
7121
7109
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -7158,16 +7146,14 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7158
7146
|
useUserStore();
|
|
7159
7147
|
return (_ctx, _cache) => {
|
|
7160
7148
|
var _a, _b;
|
|
7161
|
-
const _component_el_button = vue.resolveComponent("el-button");
|
|
7162
|
-
const _component_el_row = vue.resolveComponent("el-row");
|
|
7163
7149
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
7164
7150
|
vue.createElementVNode("div", _hoisted_2, [
|
|
7165
|
-
((_a = vue.unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (vue.openBlock(), vue.createBlock(
|
|
7151
|
+
((_a = vue.unref(tableConfig2)) == null ? void 0 : _a.headerButtons.length) > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElRow), { key: 0 }, {
|
|
7166
7152
|
default: vue.withCtx(() => {
|
|
7167
7153
|
var _a2;
|
|
7168
7154
|
return [
|
|
7169
7155
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = vue.unref(tableConfig2)) == null ? void 0 : _a2.headerButtons, (buttonItem) => {
|
|
7170
|
-
return vue.openBlock(), vue.createBlock(
|
|
7156
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
7171
7157
|
key: buttonItem.eventKey,
|
|
7172
7158
|
onClick: ($event) => onOperate({ btnConfig: buttonItem })
|
|
7173
7159
|
}, {
|
|
@@ -7200,7 +7186,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7200
7186
|
};
|
|
7201
7187
|
}
|
|
7202
7188
|
});
|
|
7203
|
-
const tablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
7189
|
+
const tablePanel = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-34ee246e"]]);
|
|
7204
7190
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
7205
7191
|
__name: "input",
|
|
7206
7192
|
props: {
|
|
@@ -7232,8 +7218,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7232
7218
|
reset
|
|
7233
7219
|
});
|
|
7234
7220
|
return (_ctx, _cache) => {
|
|
7235
|
-
|
|
7236
|
-
return vue.openBlock(), vue.createBlock(_component_el_input, vue.mergeProps({
|
|
7221
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
7237
7222
|
type: "text",
|
|
7238
7223
|
modelValue: dtoValue.value,
|
|
7239
7224
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dtoValue.value = $event)
|
|
@@ -7299,17 +7284,14 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7299
7284
|
load
|
|
7300
7285
|
});
|
|
7301
7286
|
return (_ctx, _cache) => {
|
|
7302
|
-
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
7303
|
-
const _component_el_button = vue.resolveComponent("el-button");
|
|
7304
|
-
const _component_el_form = vue.resolveComponent("el-form");
|
|
7305
7287
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
7306
|
-
vue.createVNode(
|
|
7288
|
+
vue.createVNode(vue.unref(elementPlus.ElForm), {
|
|
7307
7289
|
inline: true,
|
|
7308
7290
|
class: "flex items-center justify-start flex-wrap"
|
|
7309
7291
|
}, {
|
|
7310
7292
|
default: vue.withCtx(() => [
|
|
7311
7293
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.schema.properties, (value, key) => {
|
|
7312
|
-
return vue.openBlock(), vue.createBlock(
|
|
7294
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElFormItem), {
|
|
7313
7295
|
key,
|
|
7314
7296
|
label: value.label
|
|
7315
7297
|
}, {
|
|
@@ -7327,9 +7309,9 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7327
7309
|
_: 2
|
|
7328
7310
|
}, 1032, ["label"]);
|
|
7329
7311
|
}), 128)),
|
|
7330
|
-
vue.createVNode(
|
|
7312
|
+
vue.createVNode(vue.unref(elementPlus.ElFormItem), null, {
|
|
7331
7313
|
default: vue.withCtx(() => [
|
|
7332
|
-
vue.createVNode(
|
|
7314
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
7333
7315
|
type: "primary",
|
|
7334
7316
|
onClick: search
|
|
7335
7317
|
}, {
|
|
@@ -7338,7 +7320,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7338
7320
|
])]),
|
|
7339
7321
|
_: 1
|
|
7340
7322
|
}),
|
|
7341
|
-
vue.createVNode(
|
|
7323
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: reset }, {
|
|
7342
7324
|
default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
7343
7325
|
vue.createTextVNode("重置", -1)
|
|
7344
7326
|
])]),
|
|
@@ -7548,14 +7530,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
7548
7530
|
(_a = EventHandleMap[eventKey]) == null ? void 0 : _a.call(EventHandleMap, { btnConfig, rowData });
|
|
7549
7531
|
};
|
|
7550
7532
|
vue.onMounted(() => {
|
|
7551
|
-
var _a;
|
|
7552
|
-
const inst = vue.getCurrentInstance();
|
|
7553
|
-
const comps = ((_a = inst == null ? void 0 : inst.appContext) == null ? void 0 : _a.components) || {};
|
|
7554
|
-
const required2 = ["ElTable", "ElTableColumn", "ElButton", "ElPagination", "ElForm", "ElDialog", "ElInput"];
|
|
7555
|
-
const missing = required2.filter((k) => !(k in comps));
|
|
7556
|
-
if (missing.length > 0) {
|
|
7557
|
-
elementPlus.ElMessage.error("请在宿主应用中注册 Element Plus 并引入样式");
|
|
7558
|
-
}
|
|
7559
7533
|
});
|
|
7560
7534
|
vue.provide("schemeViewData", {
|
|
7561
7535
|
tableSchema,
|
|
@@ -7590,7 +7564,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
7590
7564
|
};
|
|
7591
7565
|
}
|
|
7592
7566
|
});
|
|
7593
|
-
const schemaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
7567
|
+
const schemaView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d797bc6e"]]);
|
|
7594
7568
|
let routerClient = null;
|
|
7595
7569
|
function setRouterClient(client) {
|
|
7596
7570
|
routerClient = client;
|