@epie/bi-crud 2.0.3 → 2.0.6
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/README.md +3 -3
- package/lib/bi-crud.esm.js +515 -115
- package/lib/bi-crud.umd.js +515 -114
- package/lib/components/adv-search.d.ts +4 -4
- package/lib/components/context-menu/index.d.ts +4 -4
- package/lib/components/crud/helper.d.ts +1 -0
- package/lib/components/crud/index.d.ts +1 -0
- package/lib/components/descriptions/helper.d.ts +3 -0
- package/lib/components/descriptions/index.d.ts +70 -0
- package/lib/components/filter-group.d.ts +5 -5
- package/lib/components/inline-search/index.d.ts +4 -4
- package/lib/components/table/index.d.ts +4 -4
- package/lib/components/upsert/index.d.ts +4 -4
- package/lib/css/bi-crud.min.css +1 -1
- package/lib/emitter.d.ts +2 -2
- package/lib/hooks/core.d.ts +2 -2
- package/lib/hooks/crud.d.ts +7 -6
- package/lib/index.d.ts +1 -0
- package/lib/types/base/adv-search.d.ts +4 -4
- package/lib/types/base/base.d.ts +14 -0
- package/lib/types/base/context-menu.d.ts +1 -1
- package/lib/types/base/crud.d.ts +2 -1
- package/lib/types/base/descriptions.d.ts +11 -0
- package/lib/types/base/emitter.d.ts +2 -2
- package/lib/types/base/form.d.ts +1 -1
- package/lib/types/base/index.d.ts +1 -0
- package/lib/types/base/table.d.ts +48 -50
- package/lib/types/base/upsert.d.ts +10 -10
- package/lib/types/emitter.d.ts +2 -2
- package/lib/types/index.d.ts +1 -2
- package/package.json +2 -2
package/lib/bi-crud.umd.js
CHANGED
|
@@ -14878,6 +14878,14 @@
|
|
|
14878
14878
|
} // 打开编辑
|
|
14879
14879
|
|
|
14880
14880
|
|
|
14881
|
+
function rowDescription(data) {
|
|
14882
|
+
mitt.emit("crud.proxy", {
|
|
14883
|
+
name: "description",
|
|
14884
|
+
data: [data]
|
|
14885
|
+
});
|
|
14886
|
+
} // 打开编辑
|
|
14887
|
+
|
|
14888
|
+
|
|
14881
14889
|
function rowEdit(data) {
|
|
14882
14890
|
mitt.emit("crud.proxy", {
|
|
14883
14891
|
name: "edit",
|
|
@@ -15018,6 +15026,7 @@
|
|
|
15018
15026
|
rowClose: rowClose,
|
|
15019
15027
|
refresh: refresh,
|
|
15020
15028
|
doExport: doExport,
|
|
15029
|
+
rowDescription: rowDescription,
|
|
15021
15030
|
getPermission: getPermission,
|
|
15022
15031
|
paramsReplace: paramsReplace,
|
|
15023
15032
|
getParams: getParams
|
|
@@ -15102,7 +15111,7 @@
|
|
|
15102
15111
|
}();
|
|
15103
15112
|
|
|
15104
15113
|
var Crud$1 = vue.defineComponent({
|
|
15105
|
-
name: "
|
|
15114
|
+
name: "epie-crud",
|
|
15106
15115
|
props: {
|
|
15107
15116
|
name: String,
|
|
15108
15117
|
border: Boolean,
|
|
@@ -15205,7 +15214,7 @@
|
|
|
15205
15214
|
},
|
|
15206
15215
|
render: function render(ctx) {
|
|
15207
15216
|
return vue.createVNode("div", {
|
|
15208
|
-
"class": ["
|
|
15217
|
+
"class": ["epie-crud", {
|
|
15209
15218
|
"is-border": ctx.border
|
|
15210
15219
|
}],
|
|
15211
15220
|
"style": {
|
|
@@ -15222,7 +15231,7 @@
|
|
|
15222
15231
|
var parent = proxy.$.parent;
|
|
15223
15232
|
|
|
15224
15233
|
if (parent) {
|
|
15225
|
-
while (parent && ((_parent$type = parent.type) === null || _parent$type === void 0 ? void 0 : _parent$type.name) != name && ((_parent$type2 = parent.type) === null || _parent$type2 === void 0 ? void 0 : _parent$type2.name) != "
|
|
15234
|
+
while (parent && ((_parent$type = parent.type) === null || _parent$type === void 0 ? void 0 : _parent$type.name) != name && ((_parent$type2 = parent.type) === null || _parent$type2 === void 0 ? void 0 : _parent$type2.name) != "epie-crud") {
|
|
15226
15235
|
var _parent$type, _parent$type2, _parent;
|
|
15227
15236
|
|
|
15228
15237
|
parent = (_parent = parent) === null || _parent === void 0 ? void 0 : _parent.parent;
|
|
@@ -15244,7 +15253,7 @@
|
|
|
15244
15253
|
onDelete = _ref.onDelete;
|
|
15245
15254
|
|
|
15246
15255
|
var Crud = vue.ref();
|
|
15247
|
-
useParent("
|
|
15256
|
+
useParent("epie-crud", Crud);
|
|
15248
15257
|
vue.watch(function () {
|
|
15249
15258
|
return Crud.value;
|
|
15250
15259
|
}, function (val) {
|
|
@@ -15281,7 +15290,7 @@
|
|
|
15281
15290
|
|
|
15282
15291
|
function useTable(options) {
|
|
15283
15292
|
var Table = vue.ref();
|
|
15284
|
-
useParent("
|
|
15293
|
+
useParent("epie-table", Table);
|
|
15285
15294
|
vue.watch(function () {
|
|
15286
15295
|
return Table.value;
|
|
15287
15296
|
}, function (val) {
|
|
@@ -15306,7 +15315,7 @@
|
|
|
15306
15315
|
|
|
15307
15316
|
function useForm(cb) {
|
|
15308
15317
|
var Form = vue.ref();
|
|
15309
|
-
useParent("
|
|
15318
|
+
useParent("epie-form", Form);
|
|
15310
15319
|
vue.nextTick(function () {
|
|
15311
15320
|
if (cb && Form.value) {
|
|
15312
15321
|
cb(Form.value);
|
|
@@ -15323,6 +15332,19 @@
|
|
|
15323
15332
|
options === null || options === void 0 ? void 0 : options.onFullscreen(val);
|
|
15324
15333
|
});
|
|
15325
15334
|
return Dialog;
|
|
15335
|
+
} // 表格
|
|
15336
|
+
|
|
15337
|
+
function useDescriptions(options) {
|
|
15338
|
+
var descriptions = vue.ref();
|
|
15339
|
+
useParent("epie-descriptions", descriptions);
|
|
15340
|
+
vue.watch(function () {
|
|
15341
|
+
return descriptions.value;
|
|
15342
|
+
}, function (val) {
|
|
15343
|
+
if (val) {
|
|
15344
|
+
Object.assign(val.$.props, options);
|
|
15345
|
+
}
|
|
15346
|
+
});
|
|
15347
|
+
return descriptions;
|
|
15326
15348
|
}
|
|
15327
15349
|
|
|
15328
15350
|
function useRefs() {
|
|
@@ -15436,7 +15458,7 @@
|
|
|
15436
15458
|
}
|
|
15437
15459
|
|
|
15438
15460
|
var AddBtn = vue.defineComponent({
|
|
15439
|
-
name: "
|
|
15461
|
+
name: "epie-add-btn",
|
|
15440
15462
|
setup: function setup(_, _ref) {
|
|
15441
15463
|
var slots = _ref.slots;
|
|
15442
15464
|
|
|
@@ -15619,7 +15641,7 @@
|
|
|
15619
15641
|
var search_default = /* @__PURE__ */export_helper_default(_sfc_main220, [["render", _sfc_render220], ["__file", "search.vue"]]); // src/components/select.vue
|
|
15620
15642
|
|
|
15621
15643
|
var AdvBtn = vue.defineComponent({
|
|
15622
|
-
name: "
|
|
15644
|
+
name: "epie-adv-btn",
|
|
15623
15645
|
components: {
|
|
15624
15646
|
Search: search_default
|
|
15625
15647
|
},
|
|
@@ -15678,7 +15700,7 @@
|
|
|
15678
15700
|
scope: scope
|
|
15679
15701
|
}, options._data));
|
|
15680
15702
|
} else {
|
|
15681
|
-
return vue.createVNode(vue.resolveComponent("
|
|
15703
|
+
return vue.createVNode(vue.resolveComponent("epie-error-message"), {
|
|
15682
15704
|
"title": "\u7EC4\u4EF6\u6E32\u67D3\u5931\u8D25\uFF0C\u672A\u627E\u5230\u63D2\u69FD\uFF1A".concat(vnode.name)
|
|
15683
15705
|
}, null);
|
|
15684
15706
|
}
|
|
@@ -15841,7 +15863,7 @@
|
|
|
15841
15863
|
label = e.label;
|
|
15842
15864
|
value = e.value;
|
|
15843
15865
|
} else {
|
|
15844
|
-
return vue.createVNode(vue.resolveComponent("
|
|
15866
|
+
return vue.createVNode(vue.resolveComponent("epie-error-message"), {
|
|
15845
15867
|
"title": "\u7EC4\u4EF6\u6E32\u67D3\u5931\u8D25\uFF0Coptions \u53C2\u6570\u9519\u8BEF"
|
|
15846
15868
|
}, null);
|
|
15847
15869
|
}
|
|
@@ -15918,7 +15940,7 @@
|
|
|
15918
15940
|
});
|
|
15919
15941
|
}
|
|
15920
15942
|
|
|
15921
|
-
return vue.createVNode(vue.resolveComponent("
|
|
15943
|
+
return vue.createVNode(vue.resolveComponent("epie-error-message"), {
|
|
15922
15944
|
"title": "\u7EC4\u4EF6\u6E32\u67D3\u5931\u8D25\uFF0C\u7EC4\u4EF6 name \u4E0D\u80FD\u4E3A\u7A7A"
|
|
15923
15945
|
}, null);
|
|
15924
15946
|
}
|
|
@@ -15966,7 +15988,7 @@
|
|
|
15966
15988
|
}
|
|
15967
15989
|
}
|
|
15968
15990
|
|
|
15969
|
-
function _isSlot$
|
|
15991
|
+
function _isSlot$3(s) {
|
|
15970
15992
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
15971
15993
|
}
|
|
15972
15994
|
|
|
@@ -16144,7 +16166,7 @@
|
|
|
16144
16166
|
});
|
|
16145
16167
|
return apis;
|
|
16146
16168
|
}
|
|
16147
|
-
function useRender$
|
|
16169
|
+
function useRender$3(ctx) {
|
|
16148
16170
|
var _useTools = useTools(),
|
|
16149
16171
|
browser = _useTools.browser,
|
|
16150
16172
|
style = _useTools.style; // 渲染表单及表单项
|
|
@@ -16154,7 +16176,7 @@
|
|
|
16154
16176
|
// 表单项列表
|
|
16155
16177
|
var children = ctx.conf.items.map(function (e) {
|
|
16156
16178
|
if (e.type == "tabs") {
|
|
16157
|
-
return vue.createVNode(vue.resolveComponent("
|
|
16179
|
+
return vue.createVNode(vue.resolveComponent("epie-form-tabs"), vue.mergeProps({
|
|
16158
16180
|
"modelValue": ctx.tabActive,
|
|
16159
16181
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
16160
16182
|
return ctx.tabActive = $event;
|
|
@@ -16187,10 +16209,10 @@
|
|
|
16187
16209
|
},
|
|
16188
16210
|
default: function _default() {
|
|
16189
16211
|
return vue.createVNode("div", null, [vue.createVNode("div", {
|
|
16190
|
-
"class": "
|
|
16212
|
+
"class": "epie-form-item"
|
|
16191
16213
|
}, [["prepend", "component", "append"].map(function (name) {
|
|
16192
16214
|
return e[name] && vue.withDirectives(vue.createVNode("div", {
|
|
16193
|
-
"class": ["
|
|
16215
|
+
"class": ["epie-form-item__".concat(name), {
|
|
16194
16216
|
"is-flex": e.flex !== false
|
|
16195
16217
|
}]
|
|
16196
16218
|
}, [renderNode(e[name], {
|
|
@@ -16201,7 +16223,7 @@
|
|
|
16201
16223
|
_data: ctx.conf._data
|
|
16202
16224
|
})]), [[vue.vShow, !e.collapse]]);
|
|
16203
16225
|
})]), isBoolean(e.collapse) && vue.createVNode("div", {
|
|
16204
|
-
"class": "
|
|
16226
|
+
"class": "epie-form-item__collapse",
|
|
16205
16227
|
"onClick": function onClick() {
|
|
16206
16228
|
ctx.collapseItem(e);
|
|
16207
16229
|
}
|
|
@@ -16230,7 +16252,7 @@
|
|
|
16230
16252
|
|
|
16231
16253
|
return vue.createVNode(vue.resolveComponent("el-col"), vue.mergeProps({
|
|
16232
16254
|
"span": 24
|
|
16233
|
-
}, e), _isSlot$
|
|
16255
|
+
}, e), _isSlot$3(FormItem) ? FormItem : {
|
|
16234
16256
|
default: function _default() {
|
|
16235
16257
|
return [FormItem];
|
|
16236
16258
|
}
|
|
@@ -16251,7 +16273,7 @@
|
|
|
16251
16273
|
default: function _default() {
|
|
16252
16274
|
return ctx.inline ? children : vue.withDirectives(vue.createVNode(vue.resolveComponent("el-row"), {
|
|
16253
16275
|
"gutter": 10
|
|
16254
|
-
}, _isSlot$
|
|
16276
|
+
}, _isSlot$3(children) ? children : {
|
|
16255
16277
|
default: function _default() {
|
|
16256
16278
|
return [children];
|
|
16257
16279
|
}
|
|
@@ -16281,7 +16303,7 @@
|
|
|
16281
16303
|
"onClick": function onClick() {
|
|
16282
16304
|
ctx.submit();
|
|
16283
16305
|
}
|
|
16284
|
-
}, _isSlot$
|
|
16306
|
+
}, _isSlot$3(saveButtonText) ? saveButtonText : {
|
|
16285
16307
|
default: function _default() {
|
|
16286
16308
|
return [saveButtonText];
|
|
16287
16309
|
}
|
|
@@ -16290,7 +16312,7 @@
|
|
|
16290
16312
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
16291
16313
|
"size": style.size,
|
|
16292
16314
|
"onClick": ctx.close
|
|
16293
|
-
}, _isSlot$
|
|
16315
|
+
}, _isSlot$3(closeButtonText) ? closeButtonText : {
|
|
16294
16316
|
default: function _default() {
|
|
16295
16317
|
return [closeButtonText];
|
|
16296
16318
|
}
|
|
@@ -16311,7 +16333,7 @@
|
|
|
16311
16333
|
title = _ctx$conf.title,
|
|
16312
16334
|
width = _ctx$conf.width,
|
|
16313
16335
|
dialog = _ctx$conf.dialog;
|
|
16314
|
-
return vue.h(vue.createVNode(vue.resolveComponent("
|
|
16336
|
+
return vue.h(vue.createVNode(vue.resolveComponent("epie-dialog"), {
|
|
16315
16337
|
"modelValue": ctx.visible,
|
|
16316
16338
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
16317
16339
|
return ctx.visible = $event;
|
|
@@ -16337,7 +16359,7 @@
|
|
|
16337
16359
|
}
|
|
16338
16360
|
|
|
16339
16361
|
var AdvSearch = vue.defineComponent({
|
|
16340
|
-
name: "
|
|
16362
|
+
name: "epie-adv-search",
|
|
16341
16363
|
components: {
|
|
16342
16364
|
Close: close_default
|
|
16343
16365
|
},
|
|
@@ -16375,7 +16397,7 @@
|
|
|
16375
16397
|
|
|
16376
16398
|
var _useCore = useCore(),
|
|
16377
16399
|
crud = _useCore.crud,
|
|
16378
|
-
mitt = _useCore.mitt; //
|
|
16400
|
+
mitt = _useCore.mitt; // epie-form
|
|
16379
16401
|
|
|
16380
16402
|
|
|
16381
16403
|
var Form = vue.ref(); // el-drawer
|
|
@@ -16468,7 +16490,7 @@
|
|
|
16468
16490
|
|
|
16469
16491
|
|
|
16470
16492
|
function renderForm() {
|
|
16471
|
-
return vue.h(vue.createVNode(vue.resolveComponent("
|
|
16493
|
+
return vue.h(vue.createVNode(vue.resolveComponent("epie-form"), {
|
|
16472
16494
|
"ref": "Form",
|
|
16473
16495
|
"inner": true
|
|
16474
16496
|
}, null), {}, ctx.$slots);
|
|
@@ -16504,7 +16526,7 @@
|
|
|
16504
16526
|
|
|
16505
16527
|
return vue.createVNode(vue.resolveComponent("el-drawer"), {
|
|
16506
16528
|
"ref": "Drawer",
|
|
16507
|
-
"custom-class": "
|
|
16529
|
+
"custom-class": "epie-adv-search",
|
|
16508
16530
|
"modelValue": ctx.visible,
|
|
16509
16531
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
16510
16532
|
return ctx.visible = $event;
|
|
@@ -16515,7 +16537,7 @@
|
|
|
16515
16537
|
}, {
|
|
16516
16538
|
default: function _default() {
|
|
16517
16539
|
return [vue.createVNode("div", {
|
|
16518
|
-
"class": "
|
|
16540
|
+
"class": "epie-adv-search__header"
|
|
16519
16541
|
}, [vue.createVNode("span", {
|
|
16520
16542
|
"class": "text"
|
|
16521
16543
|
}, [ctx.title]), vue.createVNode(vue.resolveComponent("el-icon"), {
|
|
@@ -16526,9 +16548,9 @@
|
|
|
16526
16548
|
return [vue.createVNode(vue.resolveComponent("close"), null, null)];
|
|
16527
16549
|
}
|
|
16528
16550
|
})]), vue.createVNode("div", {
|
|
16529
|
-
"class": "
|
|
16551
|
+
"class": "epie-adv-search__container"
|
|
16530
16552
|
}, [renderForm()]), vue.createVNode("div", {
|
|
16531
|
-
"class": "
|
|
16553
|
+
"class": "epie-adv-search__footer"
|
|
16532
16554
|
}, [renderFooter()])];
|
|
16533
16555
|
}
|
|
16534
16556
|
});
|
|
@@ -16536,12 +16558,12 @@
|
|
|
16536
16558
|
});
|
|
16537
16559
|
|
|
16538
16560
|
var Flex = vue.defineComponent({
|
|
16539
|
-
name: "
|
|
16561
|
+
name: "epie-flex1",
|
|
16540
16562
|
setup: function setup(_, _ref) {
|
|
16541
16563
|
var slots = _ref.slots;
|
|
16542
16564
|
return function () {
|
|
16543
16565
|
return vue.createVNode("div", {
|
|
16544
|
-
"class": "
|
|
16566
|
+
"class": "epie-flex1"
|
|
16545
16567
|
}, [slots.default ? slots.default() : null]);
|
|
16546
16568
|
};
|
|
16547
16569
|
}
|
|
@@ -16694,7 +16716,7 @@
|
|
|
16694
16716
|
};
|
|
16695
16717
|
|
|
16696
16718
|
var Form = vue.defineComponent({
|
|
16697
|
-
name: "
|
|
16719
|
+
name: "epie-form",
|
|
16698
16720
|
props: {
|
|
16699
16721
|
// 是否只显示表单
|
|
16700
16722
|
inner: Boolean,
|
|
@@ -17020,7 +17042,7 @@
|
|
|
17020
17042
|
})) : data[e.prop];
|
|
17021
17043
|
});
|
|
17022
17044
|
Object.assign(form, data, d);
|
|
17023
|
-
} // 切换
|
|
17045
|
+
} // 切换 epie-form-tab
|
|
17024
17046
|
|
|
17025
17047
|
|
|
17026
17048
|
function changeTab(value) {
|
|
@@ -17088,17 +17110,17 @@
|
|
|
17088
17110
|
}));
|
|
17089
17111
|
},
|
|
17090
17112
|
render: function render(ctx) {
|
|
17091
|
-
var _useRender = useRender$
|
|
17113
|
+
var _useRender = useRender$3(ctx),
|
|
17092
17114
|
renderForm = _useRender.renderForm,
|
|
17093
17115
|
renderFooter = _useRender.renderFooter,
|
|
17094
17116
|
renderDialog = _useRender.renderDialog;
|
|
17095
17117
|
|
|
17096
17118
|
var Form = vue.createVNode("div", {
|
|
17097
|
-
"class": "
|
|
17119
|
+
"class": "epie-form"
|
|
17098
17120
|
}, [vue.createVNode("div", {
|
|
17099
|
-
"class": "
|
|
17121
|
+
"class": "epie-form__container"
|
|
17100
17122
|
}, [renderForm()]), vue.createVNode("div", {
|
|
17101
|
-
"class": "
|
|
17123
|
+
"class": "epie-form__footer"
|
|
17102
17124
|
}, [renderFooter()])]);
|
|
17103
17125
|
|
|
17104
17126
|
if (ctx.inner) {
|
|
@@ -17110,7 +17132,7 @@
|
|
|
17110
17132
|
});
|
|
17111
17133
|
|
|
17112
17134
|
var FormTabs = vue.defineComponent({
|
|
17113
|
-
name: "
|
|
17135
|
+
name: "epie-form-tabs",
|
|
17114
17136
|
props: {
|
|
17115
17137
|
modelValue: [String, Number],
|
|
17116
17138
|
labels: {
|
|
@@ -17211,7 +17233,7 @@
|
|
|
17211
17233
|
},
|
|
17212
17234
|
render: function render(ctx) {
|
|
17213
17235
|
return vue.createVNode("div", {
|
|
17214
|
-
"class": "
|
|
17236
|
+
"class": "epie-form-tabs"
|
|
17215
17237
|
}, [vue.createVNode("ul", {
|
|
17216
17238
|
"style": {
|
|
17217
17239
|
textAlign: ctx.justify
|
|
@@ -17231,14 +17253,14 @@
|
|
|
17231
17253
|
}
|
|
17232
17254
|
}, [e.label]);
|
|
17233
17255
|
}), ctx.line.width && vue.createVNode("div", {
|
|
17234
|
-
"class": "
|
|
17256
|
+
"class": "epie-form-tabs__line",
|
|
17235
17257
|
"style": ctx.line
|
|
17236
17258
|
}, null)])]);
|
|
17237
17259
|
}
|
|
17238
17260
|
});
|
|
17239
17261
|
|
|
17240
17262
|
var MultiDeleteBtn = vue.defineComponent({
|
|
17241
|
-
name: "
|
|
17263
|
+
name: "epie-multi-delete-btn",
|
|
17242
17264
|
setup: function setup(_, _ref) {
|
|
17243
17265
|
var slots = _ref.slots;
|
|
17244
17266
|
|
|
@@ -17268,7 +17290,7 @@
|
|
|
17268
17290
|
});
|
|
17269
17291
|
|
|
17270
17292
|
var Pagination = vue.defineComponent({
|
|
17271
|
-
name: "
|
|
17293
|
+
name: "epie-pagination",
|
|
17272
17294
|
setup: function setup() {
|
|
17273
17295
|
var _useCore = useCore(),
|
|
17274
17296
|
crud = _useCore.crud,
|
|
@@ -17339,7 +17361,7 @@
|
|
|
17339
17361
|
});
|
|
17340
17362
|
|
|
17341
17363
|
var Query = vue.defineComponent({
|
|
17342
|
-
name: "
|
|
17364
|
+
name: "epie-query",
|
|
17343
17365
|
props: {
|
|
17344
17366
|
modelValue: null,
|
|
17345
17367
|
list: {
|
|
@@ -17433,7 +17455,7 @@
|
|
|
17433
17455
|
},
|
|
17434
17456
|
render: function render(ctx) {
|
|
17435
17457
|
return vue.createVNode("div", {
|
|
17436
|
-
"class": "
|
|
17458
|
+
"class": "epie-query"
|
|
17437
17459
|
}, [ctx.list2.map(function (item, index) {
|
|
17438
17460
|
return vue.createVNode("button", {
|
|
17439
17461
|
"class": {
|
|
@@ -17449,7 +17471,7 @@
|
|
|
17449
17471
|
});
|
|
17450
17472
|
|
|
17451
17473
|
var RefreshBtn = vue.defineComponent({
|
|
17452
|
-
name: "
|
|
17474
|
+
name: "epie-refresh-btn",
|
|
17453
17475
|
setup: function setup(_, _ref) {
|
|
17454
17476
|
var slots = _ref.slots;
|
|
17455
17477
|
|
|
@@ -17477,7 +17499,7 @@
|
|
|
17477
17499
|
});
|
|
17478
17500
|
|
|
17479
17501
|
var ExportBtn = vue.defineComponent({
|
|
17480
|
-
name: "
|
|
17502
|
+
name: "epie-export-btn",
|
|
17481
17503
|
setup: function setup(_, _ref) {
|
|
17482
17504
|
var _crud$dict$label;
|
|
17483
17505
|
|
|
@@ -17561,12 +17583,12 @@
|
|
|
17561
17583
|
}
|
|
17562
17584
|
});
|
|
17563
17585
|
|
|
17564
|
-
function _isSlot$
|
|
17586
|
+
function _isSlot$2(s) {
|
|
17565
17587
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
17566
17588
|
}
|
|
17567
17589
|
|
|
17568
17590
|
var SearchKey = vue.defineComponent({
|
|
17569
|
-
name: "
|
|
17591
|
+
name: "epie-search-key",
|
|
17570
17592
|
props: {
|
|
17571
17593
|
// 绑定值
|
|
17572
17594
|
modelValue: String,
|
|
@@ -17678,9 +17700,9 @@
|
|
|
17678
17700
|
style = _useTools.style;
|
|
17679
17701
|
|
|
17680
17702
|
return vue.createVNode("div", {
|
|
17681
|
-
"class": "
|
|
17703
|
+
"class": "epie-search-key"
|
|
17682
17704
|
}, [vue.withDirectives(vue.createVNode(vue.resolveComponent("el-select"), {
|
|
17683
|
-
"class": "
|
|
17705
|
+
"class": "epie-search-key__select",
|
|
17684
17706
|
"filterable": true,
|
|
17685
17707
|
"size": style.size,
|
|
17686
17708
|
"modelValue": ctx.selectField,
|
|
@@ -17688,7 +17710,7 @@
|
|
|
17688
17710
|
return ctx.selectField = $event;
|
|
17689
17711
|
},
|
|
17690
17712
|
"onChange": ctx.onFieldChange
|
|
17691
|
-
}, _isSlot$
|
|
17713
|
+
}, _isSlot$2(_slot = ctx.fieldList.map(function (e, i) {
|
|
17692
17714
|
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
17693
17715
|
"key": i,
|
|
17694
17716
|
"label": e.label,
|
|
@@ -17699,7 +17721,7 @@
|
|
|
17699
17721
|
return [_slot];
|
|
17700
17722
|
}
|
|
17701
17723
|
}), [[vue.vShow, ctx.fieldList.length > 0]]), vue.createVNode(vue.resolveComponent("el-input"), {
|
|
17702
|
-
"class": "
|
|
17724
|
+
"class": "epie-search-key__input",
|
|
17703
17725
|
"modelValue": ctx.value,
|
|
17704
17726
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
17705
17727
|
return ctx.value = $event;
|
|
@@ -17710,7 +17732,7 @@
|
|
|
17710
17732
|
"onInput": ctx.onInput,
|
|
17711
17733
|
"clearable": true
|
|
17712
17734
|
}, null), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
17713
|
-
"class": "
|
|
17735
|
+
"class": "epie-search-key__button",
|
|
17714
17736
|
"size": style.size,
|
|
17715
17737
|
"type": "primary",
|
|
17716
17738
|
"onClick": ctx.search
|
|
@@ -17722,8 +17744,8 @@
|
|
|
17722
17744
|
}
|
|
17723
17745
|
});
|
|
17724
17746
|
|
|
17725
|
-
var
|
|
17726
|
-
name: "
|
|
17747
|
+
var EpieContextMenu = vue.defineComponent({
|
|
17748
|
+
name: "epie-context-menu",
|
|
17727
17749
|
props: {
|
|
17728
17750
|
show: Boolean,
|
|
17729
17751
|
options: {
|
|
@@ -17788,7 +17810,7 @@
|
|
|
17788
17810
|
function close() {
|
|
17789
17811
|
visible.value = false;
|
|
17790
17812
|
ids.value = "";
|
|
17791
|
-
removeClass(targetEl, "
|
|
17813
|
+
removeClass(targetEl, "epie-context-menu__target");
|
|
17792
17814
|
} // 打开菜单
|
|
17793
17815
|
|
|
17794
17816
|
|
|
@@ -17811,7 +17833,7 @@
|
|
|
17811
17833
|
}
|
|
17812
17834
|
}
|
|
17813
17835
|
|
|
17814
|
-
addClass(targetEl, d.className || "
|
|
17836
|
+
addClass(targetEl, d.className || "epie-context-menu__target");
|
|
17815
17837
|
}
|
|
17816
17838
|
|
|
17817
17839
|
if (options.list) {
|
|
@@ -17827,7 +17849,7 @@
|
|
|
17827
17849
|
h1 = _event$target$ownerDo.clientHeight,
|
|
17828
17850
|
w1 = _event$target$ownerDo.clientWidth;
|
|
17829
17851
|
|
|
17830
|
-
var _refs$value$contextM = refs.value["context-menu"].querySelector(".
|
|
17852
|
+
var _refs$value$contextM = refs.value["context-menu"].querySelector(".epie-context-menu__box"),
|
|
17831
17853
|
h2 = _refs$value$contextM.clientHeight,
|
|
17832
17854
|
w2 = _refs$value$contextM.clientWidth;
|
|
17833
17855
|
|
|
@@ -17901,7 +17923,7 @@
|
|
|
17901
17923
|
render: function render(ctx) {
|
|
17902
17924
|
function deep(list, pId, level) {
|
|
17903
17925
|
return vue.createVNode("div", {
|
|
17904
|
-
"class": ["
|
|
17926
|
+
"class": ["epie-context-menu__box", level > 1 && "is-append"]
|
|
17905
17927
|
}, [list.filter(function (e) {
|
|
17906
17928
|
return !e.hidden;
|
|
17907
17929
|
}).map(function (e, i) {
|
|
@@ -17925,7 +17947,7 @@
|
|
|
17925
17947
|
}
|
|
17926
17948
|
|
|
17927
17949
|
return ctx.visible && vue.createVNode("div", {
|
|
17928
|
-
"class": "
|
|
17950
|
+
"class": "epie-context-menu",
|
|
17929
17951
|
"ref": ctx.setRefs("context-menu"),
|
|
17930
17952
|
"style": ctx.style,
|
|
17931
17953
|
"onContextmenu": ctx.stopDefault
|
|
@@ -17934,7 +17956,7 @@
|
|
|
17934
17956
|
});
|
|
17935
17957
|
var ContextMenu = {
|
|
17936
17958
|
open: function open(event, options) {
|
|
17937
|
-
var vm = vue.h(
|
|
17959
|
+
var vm = vue.h(EpieContextMenu, {
|
|
17938
17960
|
show: true,
|
|
17939
17961
|
event: event,
|
|
17940
17962
|
options: options
|
|
@@ -18187,7 +18209,7 @@
|
|
|
18187
18209
|
if (vm) {
|
|
18188
18210
|
var _h = 15; // 获取表格元素
|
|
18189
18211
|
|
|
18190
|
-
while (!((_vm$$parent = vm.$parent) !== null && _vm$$parent !== void 0 && _vm$$parent.$el.className.includes("
|
|
18212
|
+
while (!((_vm$$parent = vm.$parent) !== null && _vm$$parent !== void 0 && _vm$$parent.$el.className.includes("epie-crud"))) {
|
|
18191
18213
|
var _vm$$parent;
|
|
18192
18214
|
|
|
18193
18215
|
vm = vm.$parent;
|
|
@@ -18222,7 +18244,7 @@
|
|
|
18222
18244
|
maxHeight: maxHeight
|
|
18223
18245
|
};
|
|
18224
18246
|
}
|
|
18225
|
-
function useRender$
|
|
18247
|
+
function useRender$2(_ref7) {
|
|
18226
18248
|
var columns = _ref7.columns,
|
|
18227
18249
|
emptyText = _ref7.emptyText;
|
|
18228
18250
|
var slots = vue.useSlots();
|
|
@@ -18237,10 +18259,10 @@
|
|
|
18237
18259
|
|
|
18238
18260
|
function renderColumn() {
|
|
18239
18261
|
return columns.filter(function (e) {
|
|
18240
|
-
return !e.hidden;
|
|
18262
|
+
return !e.hidden && !e.hideInTable;
|
|
18241
18263
|
}).map(function (item, index) {
|
|
18242
18264
|
var ElTableColumn = vue.createVNode(vue.resolveComponent("el-table-column"), {
|
|
18243
|
-
"key": "
|
|
18265
|
+
"key": "epie-table-column__".concat(index),
|
|
18244
18266
|
"align": "center"
|
|
18245
18267
|
}, null); // 操作按钮
|
|
18246
18268
|
|
|
@@ -18253,7 +18275,7 @@
|
|
|
18253
18275
|
}, item), {
|
|
18254
18276
|
default: function _default(scope) {
|
|
18255
18277
|
return vue.createVNode("div", {
|
|
18256
|
-
"class": "
|
|
18278
|
+
"class": "epie-table__op"
|
|
18257
18279
|
}, [(item.buttons || ["edit", "delete"]).map(function (vnode) {
|
|
18258
18280
|
if (vnode === "edit") {
|
|
18259
18281
|
var _crud$dict$label;
|
|
@@ -18342,7 +18364,7 @@
|
|
|
18342
18364
|
} else {
|
|
18343
18365
|
// 自定义渲染
|
|
18344
18366
|
if (item.component) {
|
|
18345
|
-
|
|
18367
|
+
value = renderNode(item.component, {
|
|
18346
18368
|
prop: item.prop,
|
|
18347
18369
|
scope: nScope.row,
|
|
18348
18370
|
_data: {
|
|
@@ -18356,7 +18378,7 @@
|
|
|
18356
18378
|
var list = (vue.isRef(item.dict) ? item.dict.value : item.dict) || []; // 多个值
|
|
18357
18379
|
|
|
18358
18380
|
var arr = isArray(value) ? value : [value];
|
|
18359
|
-
|
|
18381
|
+
value = arr.map(function (v) {
|
|
18360
18382
|
var d = list.find(function (d) {
|
|
18361
18383
|
return d.value == v;
|
|
18362
18384
|
});
|
|
@@ -18368,17 +18390,35 @@
|
|
|
18368
18390
|
"style": "margin: 0 2px"
|
|
18369
18391
|
}, null);
|
|
18370
18392
|
|
|
18371
|
-
return vue.h(ElTag, d,
|
|
18393
|
+
return vue.h(ElTag, d, {
|
|
18394
|
+
default: function _default() {
|
|
18395
|
+
return d.label;
|
|
18396
|
+
}
|
|
18397
|
+
});
|
|
18372
18398
|
} else {
|
|
18373
18399
|
return v;
|
|
18374
18400
|
}
|
|
18375
18401
|
});
|
|
18376
18402
|
} // 空数据
|
|
18377
18403
|
else if (isEmpty(value)) {
|
|
18378
|
-
|
|
18379
|
-
} else
|
|
18380
|
-
|
|
18404
|
+
value = scope.emptyText;
|
|
18405
|
+
} else ;
|
|
18406
|
+
|
|
18407
|
+
if (item.detailExpand) {
|
|
18408
|
+
return vue.h(vue.createVNode(vue.resolveComponent("el-link"), null, null), {
|
|
18409
|
+
type: "primary",
|
|
18410
|
+
underline: false,
|
|
18411
|
+
onClick: function onClick() {
|
|
18412
|
+
crud.rowDescription(scope.row);
|
|
18413
|
+
}
|
|
18414
|
+
}, {
|
|
18415
|
+
default: function _default() {
|
|
18416
|
+
return value;
|
|
18417
|
+
}
|
|
18418
|
+
});
|
|
18381
18419
|
}
|
|
18420
|
+
|
|
18421
|
+
return value;
|
|
18382
18422
|
}
|
|
18383
18423
|
}
|
|
18384
18424
|
});
|
|
@@ -18392,7 +18432,7 @@
|
|
|
18392
18432
|
|
|
18393
18433
|
function renderEmpty() {
|
|
18394
18434
|
return vue.createVNode("div", {
|
|
18395
|
-
"class": "
|
|
18435
|
+
"class": "epie-table__empty"
|
|
18396
18436
|
}, [slots.empty ? slots.empty() : vue.createVNode(vue.resolveComponent("el-empty"), {
|
|
18397
18437
|
"description": emptyText
|
|
18398
18438
|
}, null)]);
|
|
@@ -18401,7 +18441,7 @@
|
|
|
18401
18441
|
|
|
18402
18442
|
function renderAppend() {
|
|
18403
18443
|
return vue.createVNode("div", {
|
|
18404
|
-
"class": "
|
|
18444
|
+
"class": "epie-table__append"
|
|
18405
18445
|
}, [slots.append && slots.append()]);
|
|
18406
18446
|
}
|
|
18407
18447
|
|
|
@@ -18413,7 +18453,7 @@
|
|
|
18413
18453
|
}
|
|
18414
18454
|
|
|
18415
18455
|
var Table = vue.defineComponent({
|
|
18416
|
-
name: "
|
|
18456
|
+
name: "epie-table",
|
|
18417
18457
|
props: {
|
|
18418
18458
|
columns: {
|
|
18419
18459
|
type: Array,
|
|
@@ -18497,7 +18537,7 @@
|
|
|
18497
18537
|
reBuild(function () {
|
|
18498
18538
|
props.columns.forEach(function (e) {
|
|
18499
18539
|
if (e.prop && keys.includes(e.prop)) {
|
|
18500
|
-
e.
|
|
18540
|
+
e.hide = isBoolean(status) ? !status : false;
|
|
18501
18541
|
}
|
|
18502
18542
|
});
|
|
18503
18543
|
});
|
|
@@ -18559,13 +18599,13 @@
|
|
|
18559
18599
|
var _useTools = useTools(),
|
|
18560
18600
|
style = _useTools.style;
|
|
18561
18601
|
|
|
18562
|
-
var _useRender = useRender$
|
|
18602
|
+
var _useRender = useRender$2(ctx),
|
|
18563
18603
|
renderAppend = _useRender.renderAppend,
|
|
18564
18604
|
renderColumn = _useRender.renderColumn,
|
|
18565
18605
|
renderEmpty = _useRender.renderEmpty;
|
|
18566
18606
|
|
|
18567
18607
|
var ElTable = vue.withDirectives(vue.createVNode(vue.resolveComponent("el-table"), {
|
|
18568
|
-
"class": "
|
|
18608
|
+
"class": "epie-table",
|
|
18569
18609
|
"ref": "Table",
|
|
18570
18610
|
"border": true,
|
|
18571
18611
|
"highlight-current-row": true,
|
|
@@ -18595,7 +18635,7 @@
|
|
|
18595
18635
|
});
|
|
18596
18636
|
|
|
18597
18637
|
var Upsert = vue.defineComponent({
|
|
18598
|
-
name: "
|
|
18638
|
+
name: "epie-upsert",
|
|
18599
18639
|
props: {
|
|
18600
18640
|
// 表单项
|
|
18601
18641
|
items: {
|
|
@@ -18610,7 +18650,7 @@
|
|
|
18610
18650
|
sync: Boolean,
|
|
18611
18651
|
// 操作按钮参数
|
|
18612
18652
|
op: Object,
|
|
18613
|
-
//
|
|
18653
|
+
// epie-dialog 参数
|
|
18614
18654
|
dialog: Object,
|
|
18615
18655
|
// 打开表单钩子
|
|
18616
18656
|
onOpen: Function,
|
|
@@ -18712,7 +18752,7 @@
|
|
|
18712
18752
|
var _Form$value4;
|
|
18713
18753
|
|
|
18714
18754
|
if (!Form.value) {
|
|
18715
|
-
return console.error("[异常]
|
|
18755
|
+
return console.error("[异常] epie-upsert 组件不存在");
|
|
18716
18756
|
}
|
|
18717
18757
|
|
|
18718
18758
|
(_Form$value4 = Form.value) === null || _Form$value4 === void 0 ? void 0 : _Form$value4.open({
|
|
@@ -18899,8 +18939,8 @@
|
|
|
18899
18939
|
return crud.service[reqName]({
|
|
18900
18940
|
id: data.id
|
|
18901
18941
|
}).then(function (res) {
|
|
18902
|
-
done(res);
|
|
18903
|
-
resolve(res);
|
|
18942
|
+
done(res.data);
|
|
18943
|
+
resolve(res.data);
|
|
18904
18944
|
}).catch(function (err) {
|
|
18905
18945
|
elementPlus.ElMessage.error(err.message);
|
|
18906
18946
|
reject(err);
|
|
@@ -18954,15 +18994,15 @@
|
|
|
18954
18994
|
},
|
|
18955
18995
|
render: function render(ctx) {
|
|
18956
18996
|
return vue.createVNode("div", {
|
|
18957
|
-
"class": "
|
|
18958
|
-
}, [vue.h(vue.createVNode(vue.resolveComponent("
|
|
18997
|
+
"class": "epie-upsert"
|
|
18998
|
+
}, [vue.h(vue.createVNode(vue.resolveComponent("epie-form"), {
|
|
18959
18999
|
"ref": "Form"
|
|
18960
19000
|
}, null), {}, ctx.$slots)]);
|
|
18961
19001
|
}
|
|
18962
19002
|
});
|
|
18963
19003
|
|
|
18964
19004
|
var Dialog = vue.defineComponent({
|
|
18965
|
-
name: "
|
|
19005
|
+
name: "epie-dialog",
|
|
18966
19006
|
components: {
|
|
18967
19007
|
Close: close_default,
|
|
18968
19008
|
FullScreen: full_screen_default,
|
|
@@ -19109,12 +19149,12 @@
|
|
|
19109
19149
|
// 渲染头部
|
|
19110
19150
|
function renderHeader() {
|
|
19111
19151
|
return ctx.hideHeader ? null : vue.createVNode("div", {
|
|
19112
|
-
"class": "
|
|
19152
|
+
"class": "epie-dialog__header",
|
|
19113
19153
|
"onDblclick": ctx.dblClickFullscreen
|
|
19114
19154
|
}, [vue.createVNode("span", {
|
|
19115
|
-
"class": "
|
|
19155
|
+
"class": "epie-dialog__title"
|
|
19116
19156
|
}, [ctx.title]), vue.createVNode("div", {
|
|
19117
|
-
"class": "
|
|
19157
|
+
"class": "epie-dialog__controls"
|
|
19118
19158
|
}, [ctx.controls.map(function (vnode) {
|
|
19119
19159
|
// 全屏按钮
|
|
19120
19160
|
if (vnode === "fullscreen") {
|
|
@@ -19172,7 +19212,7 @@
|
|
|
19172
19212
|
|
|
19173
19213
|
var ElDialog = vue.createVNode(vue.resolveComponent("el-dialog"), {
|
|
19174
19214
|
"ref": "Dialog",
|
|
19175
|
-
"custom-class": "
|
|
19215
|
+
"custom-class": "epie-dialog epie-dialog--".concat(ctx.$.uid, " ").concat(ctx.customClass),
|
|
19176
19216
|
"width": ctx.width,
|
|
19177
19217
|
"draggable": true,
|
|
19178
19218
|
"beforeClose": ctx.beforeClose,
|
|
@@ -19198,7 +19238,7 @@
|
|
|
19198
19238
|
},
|
|
19199
19239
|
default: function _default() {
|
|
19200
19240
|
return main && vue.createVNode("div", {
|
|
19201
|
-
"class": "
|
|
19241
|
+
"class": "epie-dialog__container",
|
|
19202
19242
|
"style": {
|
|
19203
19243
|
height: height
|
|
19204
19244
|
},
|
|
@@ -19207,7 +19247,7 @@
|
|
|
19207
19247
|
},
|
|
19208
19248
|
footer: function footer() {
|
|
19209
19249
|
return _footer && vue.createVNode("div", {
|
|
19210
|
-
"class": "
|
|
19250
|
+
"class": "epie-dialog__footer"
|
|
19211
19251
|
}, [_footer()]);
|
|
19212
19252
|
}
|
|
19213
19253
|
});
|
|
@@ -19215,21 +19255,21 @@
|
|
|
19215
19255
|
});
|
|
19216
19256
|
|
|
19217
19257
|
var Filter = vue.defineComponent({
|
|
19218
|
-
name: "
|
|
19258
|
+
name: "epie-filter",
|
|
19219
19259
|
props: {
|
|
19220
19260
|
label: String
|
|
19221
19261
|
},
|
|
19222
19262
|
render: function render(ctx) {
|
|
19223
19263
|
return vue.createVNode("div", {
|
|
19224
|
-
"class": "
|
|
19264
|
+
"class": "epie-filter"
|
|
19225
19265
|
}, [vue.withDirectives(vue.createVNode("span", {
|
|
19226
|
-
"class": "
|
|
19266
|
+
"class": "epie-filter__label"
|
|
19227
19267
|
}, [ctx.label]), [[vue.vShow, ctx.label]]), ctx.$slots.default ? ctx.$slots.default() : null]);
|
|
19228
19268
|
}
|
|
19229
19269
|
});
|
|
19230
19270
|
|
|
19231
19271
|
var FilterGroup = vue.defineComponent({
|
|
19232
|
-
name: "
|
|
19272
|
+
name: "epie-filter-group",
|
|
19233
19273
|
props: {
|
|
19234
19274
|
// 表单值
|
|
19235
19275
|
data: {
|
|
@@ -19255,7 +19295,7 @@
|
|
|
19255
19295
|
},
|
|
19256
19296
|
setup: function setup(props) {
|
|
19257
19297
|
var _useCore = useCore(),
|
|
19258
|
-
crud = _useCore.crud; //
|
|
19298
|
+
crud = _useCore.crud; // epie-form
|
|
19259
19299
|
|
|
19260
19300
|
|
|
19261
19301
|
var Form = useForm(); // 加载中
|
|
@@ -19335,15 +19375,15 @@
|
|
|
19335
19375
|
style = _useTools.style;
|
|
19336
19376
|
|
|
19337
19377
|
return ctx.items.length > 0 && vue.createVNode("div", {
|
|
19338
|
-
"class": "
|
|
19378
|
+
"class": "epie-filter-group"
|
|
19339
19379
|
}, [vue.createVNode("div", {
|
|
19340
|
-
"class": "
|
|
19341
|
-
}, [vue.createVNode(vue.resolveComponent("
|
|
19380
|
+
"class": "epie-filter-group__form"
|
|
19381
|
+
}, [vue.createVNode(vue.resolveComponent("epie-form"), {
|
|
19342
19382
|
"ref": "Form",
|
|
19343
19383
|
"inner": true,
|
|
19344
19384
|
"inline": true
|
|
19345
19385
|
}, null)]), vue.createVNode("div", {
|
|
19346
|
-
"class": "
|
|
19386
|
+
"class": "epie-filter-group__op"
|
|
19347
19387
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
19348
19388
|
"type": "primary",
|
|
19349
19389
|
"loading": ctx.loading,
|
|
@@ -19365,7 +19405,7 @@
|
|
|
19365
19405
|
});
|
|
19366
19406
|
|
|
19367
19407
|
var ErrorMessage = vue.defineComponent({
|
|
19368
|
-
name: "
|
|
19408
|
+
name: "epie-error-message",
|
|
19369
19409
|
props: {
|
|
19370
19410
|
title: String
|
|
19371
19411
|
},
|
|
@@ -19379,11 +19419,11 @@
|
|
|
19379
19419
|
}
|
|
19380
19420
|
});
|
|
19381
19421
|
|
|
19382
|
-
function _isSlot(s) {
|
|
19422
|
+
function _isSlot$1(s) {
|
|
19383
19423
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
19384
19424
|
}
|
|
19385
19425
|
|
|
19386
|
-
function useRender(ctx) {
|
|
19426
|
+
function useRender$1(ctx) {
|
|
19387
19427
|
var _useTools = useTools(),
|
|
19388
19428
|
browser = _useTools.browser,
|
|
19389
19429
|
style = _useTools.style; // 渲染表单及表单项
|
|
@@ -19421,9 +19461,9 @@
|
|
|
19421
19461
|
},
|
|
19422
19462
|
default: function _default() {
|
|
19423
19463
|
return vue.createVNode("div", null, [vue.createVNode("div", {
|
|
19424
|
-
"class": "
|
|
19464
|
+
"class": "epie-form-item"
|
|
19425
19465
|
}, [vue.withDirectives(vue.createVNode("div", {
|
|
19426
|
-
"class": ["
|
|
19466
|
+
"class": ["epie-form-item__".concat(name), {
|
|
19427
19467
|
"is-flex": e.flex !== false
|
|
19428
19468
|
}]
|
|
19429
19469
|
}, [renderNode(e.component, {
|
|
@@ -19445,7 +19485,7 @@
|
|
|
19445
19485
|
"lg": {
|
|
19446
19486
|
span: 6
|
|
19447
19487
|
}
|
|
19448
|
-
}, e), _isSlot(FormItem) ? FormItem : {
|
|
19488
|
+
}, e), _isSlot$1(FormItem) ? FormItem : {
|
|
19449
19489
|
default: function _default() {
|
|
19450
19490
|
return [FormItem];
|
|
19451
19491
|
}
|
|
@@ -19468,7 +19508,7 @@
|
|
|
19468
19508
|
return [vue.createVNode(vue.resolveComponent("el-form-item"), {
|
|
19469
19509
|
"label-width": "auto",
|
|
19470
19510
|
"label": ""
|
|
19471
|
-
}, _isSlot(_slot = renderOp()) ? _slot : {
|
|
19511
|
+
}, _isSlot$1(_slot = renderOp()) ? _slot : {
|
|
19472
19512
|
default: function _default() {
|
|
19473
19513
|
return [_slot];
|
|
19474
19514
|
}
|
|
@@ -19533,7 +19573,7 @@
|
|
|
19533
19573
|
}
|
|
19534
19574
|
|
|
19535
19575
|
var InlineSearch = vue.defineComponent({
|
|
19536
|
-
name: "
|
|
19576
|
+
name: "epie-inline-search",
|
|
19537
19577
|
props: {
|
|
19538
19578
|
// 表单值
|
|
19539
19579
|
data: {
|
|
@@ -19625,17 +19665,376 @@
|
|
|
19625
19665
|
};
|
|
19626
19666
|
},
|
|
19627
19667
|
render: function render(ctx) {
|
|
19628
|
-
var _useRender = useRender(ctx),
|
|
19668
|
+
var _useRender = useRender$1(ctx),
|
|
19629
19669
|
renderForm = _useRender.renderForm;
|
|
19630
19670
|
|
|
19631
19671
|
return ctx.items.length > 0 && vue.createVNode("div", {
|
|
19632
|
-
"class": "
|
|
19672
|
+
"class": "epie-inline-search"
|
|
19633
19673
|
}, [vue.createVNode("div", {
|
|
19634
|
-
"class": "
|
|
19674
|
+
"class": "epie-inline-search__form"
|
|
19635
19675
|
}, [renderForm()])]);
|
|
19636
19676
|
}
|
|
19637
19677
|
});
|
|
19638
19678
|
|
|
19679
|
+
function useRender(_ref) {
|
|
19680
|
+
var columns = _ref.columns,
|
|
19681
|
+
data = _ref.data;
|
|
19682
|
+
_ref.title;
|
|
19683
|
+
var slots = vue.useSlots();
|
|
19684
|
+
|
|
19685
|
+
var _useCore = useCore();
|
|
19686
|
+
_useCore.crud;
|
|
19687
|
+
|
|
19688
|
+
var _useTools = useTools();
|
|
19689
|
+
_useTools.browser;
|
|
19690
|
+
_useTools.style; // 渲染列
|
|
19691
|
+
|
|
19692
|
+
|
|
19693
|
+
function renderDescriptions() {
|
|
19694
|
+
return columns.filter(function (e) {
|
|
19695
|
+
return !e.hidden && !e.hideInDescriptions && !['op', 'selection', 'index', 'expand'].includes(e.type);
|
|
19696
|
+
}).map(function (item, index) {
|
|
19697
|
+
var ElDescriptionsColumn = vue.createVNode(vue.resolveComponent("el-descriptions-item"), {
|
|
19698
|
+
"key": "epie-descriptions-column__".concat(index)
|
|
19699
|
+
}, null); // 默认
|
|
19700
|
+
|
|
19701
|
+
|
|
19702
|
+
function deep(item) {
|
|
19703
|
+
var props = cloneDeep_1(item); // Cannot set property children of #<Element>
|
|
19704
|
+
|
|
19705
|
+
delete props.children;
|
|
19706
|
+
return vue.h(ElDescriptionsColumn, props, {
|
|
19707
|
+
// header: (scope: any) => {
|
|
19708
|
+
// const slot = slots[`header-${item.prop}`];
|
|
19709
|
+
// if (slot) {
|
|
19710
|
+
// return slot({
|
|
19711
|
+
// scope
|
|
19712
|
+
// });
|
|
19713
|
+
// } else {
|
|
19714
|
+
// return scope.column.label;
|
|
19715
|
+
// }
|
|
19716
|
+
// },
|
|
19717
|
+
default: function _default(scope) {
|
|
19718
|
+
if (item.children) {
|
|
19719
|
+
return item.children.map(deep);
|
|
19720
|
+
}
|
|
19721
|
+
|
|
19722
|
+
var row = data; // 作用域值
|
|
19723
|
+
|
|
19724
|
+
var nScope = _objectSpread2({
|
|
19725
|
+
row: data
|
|
19726
|
+
}, item); // 绑定值
|
|
19727
|
+
|
|
19728
|
+
|
|
19729
|
+
var value = row[item.prop]; // 使用插槽
|
|
19730
|
+
|
|
19731
|
+
var slot = slots["column-".concat(item.prop)]; // 格式化
|
|
19732
|
+
|
|
19733
|
+
if (item.formatter) {
|
|
19734
|
+
value = item.formatter(nScope.row, nScope.column, value, nScope.$index);
|
|
19735
|
+
}
|
|
19736
|
+
|
|
19737
|
+
if (slot) {
|
|
19738
|
+
return slot({
|
|
19739
|
+
scope: nScope
|
|
19740
|
+
});
|
|
19741
|
+
} else {
|
|
19742
|
+
// 自定义渲染
|
|
19743
|
+
if (item.component) {
|
|
19744
|
+
return renderNode(item.component, {
|
|
19745
|
+
prop: item.prop,
|
|
19746
|
+
scope: nScope.row,
|
|
19747
|
+
_data: {
|
|
19748
|
+
column: nScope.column,
|
|
19749
|
+
index: nScope.$index,
|
|
19750
|
+
row: nScope.row
|
|
19751
|
+
}
|
|
19752
|
+
});
|
|
19753
|
+
} // 字典状态
|
|
19754
|
+
else if (item.dict) {
|
|
19755
|
+
var list = (vue.isRef(item.dict) ? item.dict.value : item.dict) || []; // 多个值
|
|
19756
|
+
|
|
19757
|
+
var arr = isArray(value) ? value : [value];
|
|
19758
|
+
return arr.map(function (v) {
|
|
19759
|
+
var d = list.find(function (d) {
|
|
19760
|
+
return d.value == v;
|
|
19761
|
+
});
|
|
19762
|
+
|
|
19763
|
+
if (d) {
|
|
19764
|
+
var ElTag = vue.createVNode(vue.resolveComponent("el-tag"), {
|
|
19765
|
+
"disable-transitions": true,
|
|
19766
|
+
"effect": "dark",
|
|
19767
|
+
"style": "margin: 0 2px"
|
|
19768
|
+
}, null);
|
|
19769
|
+
|
|
19770
|
+
return vue.h(ElTag, d, {
|
|
19771
|
+
default: function _default() {
|
|
19772
|
+
return d.label;
|
|
19773
|
+
}
|
|
19774
|
+
});
|
|
19775
|
+
} else {
|
|
19776
|
+
return v;
|
|
19777
|
+
}
|
|
19778
|
+
});
|
|
19779
|
+
} // 空数据
|
|
19780
|
+
else if (isEmpty(value)) {
|
|
19781
|
+
return "";
|
|
19782
|
+
} else {
|
|
19783
|
+
return value;
|
|
19784
|
+
}
|
|
19785
|
+
}
|
|
19786
|
+
}
|
|
19787
|
+
});
|
|
19788
|
+
}
|
|
19789
|
+
|
|
19790
|
+
return deep(item);
|
|
19791
|
+
});
|
|
19792
|
+
} // function renderHeader() {
|
|
19793
|
+
// return <div class="epie-adv-search__header">
|
|
19794
|
+
// <span class="text">{title}</span>
|
|
19795
|
+
// <el-icon size={20} onClick={ctx.close}>
|
|
19796
|
+
// <close />
|
|
19797
|
+
// </el-icon>
|
|
19798
|
+
// </div>
|
|
19799
|
+
// }
|
|
19800
|
+
|
|
19801
|
+
|
|
19802
|
+
return {
|
|
19803
|
+
renderDescriptions: renderDescriptions
|
|
19804
|
+
};
|
|
19805
|
+
}
|
|
19806
|
+
|
|
19807
|
+
function _isSlot(s) {
|
|
19808
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
19809
|
+
}
|
|
19810
|
+
|
|
19811
|
+
var EpieDescriptions = vue.defineComponent({
|
|
19812
|
+
name: "epie-descriptions",
|
|
19813
|
+
props: {
|
|
19814
|
+
border: {
|
|
19815
|
+
type: Boolean,
|
|
19816
|
+
default: false
|
|
19817
|
+
},
|
|
19818
|
+
column: {
|
|
19819
|
+
type: Number,
|
|
19820
|
+
default: 3
|
|
19821
|
+
},
|
|
19822
|
+
direction: {
|
|
19823
|
+
type: String,
|
|
19824
|
+
default: 'horizontal'
|
|
19825
|
+
},
|
|
19826
|
+
size: {
|
|
19827
|
+
type: String
|
|
19828
|
+
},
|
|
19829
|
+
title: {
|
|
19830
|
+
type: String,
|
|
19831
|
+
default: ''
|
|
19832
|
+
},
|
|
19833
|
+
extra: {
|
|
19834
|
+
type: String,
|
|
19835
|
+
default: ''
|
|
19836
|
+
},
|
|
19837
|
+
columns: {
|
|
19838
|
+
type: Array,
|
|
19839
|
+
default: []
|
|
19840
|
+
}
|
|
19841
|
+
},
|
|
19842
|
+
// props: {
|
|
19843
|
+
// columns: {
|
|
19844
|
+
// type: Array as PropType<EpieDescriptionsItemProps[]>,
|
|
19845
|
+
// default: []
|
|
19846
|
+
// },
|
|
19847
|
+
// } & ElDescriptions,
|
|
19848
|
+
setup: function setup(props, _ref) {
|
|
19849
|
+
_ref.emit;
|
|
19850
|
+
var data = vue.ref();
|
|
19851
|
+
var show = vue.ref(false);
|
|
19852
|
+
vue.ref(); // const props = defineProps<EpieDescriptionsProps>();
|
|
19853
|
+
// const { proxy }: any = getCurrentInstance();
|
|
19854
|
+
// const { crud, mitt } = useCore();
|
|
19855
|
+
// // el-table
|
|
19856
|
+
// const Table = ref<any>();
|
|
19857
|
+
// // 排序
|
|
19858
|
+
// const Sort = useSort({ props, emit, Table });
|
|
19859
|
+
// // 行
|
|
19860
|
+
// const Row = useRow({
|
|
19861
|
+
// Table,
|
|
19862
|
+
// props,
|
|
19863
|
+
// changeSort: Sort.changeSort
|
|
19864
|
+
// });
|
|
19865
|
+
// // 计算高度
|
|
19866
|
+
// const Height = useHeight({ Table, props });
|
|
19867
|
+
// // 列表数据
|
|
19868
|
+
// const data = ref<any[]>([]);
|
|
19869
|
+
// // 是否可见,用于解决一些显示隐藏的副作用
|
|
19870
|
+
// const visible = ref<boolean>(true);
|
|
19871
|
+
// // 重新构建
|
|
19872
|
+
// function reBuild(cb?: fun) {
|
|
19873
|
+
// visible.value = false;
|
|
19874
|
+
// nextTick(() => {
|
|
19875
|
+
// if (cb) {
|
|
19876
|
+
// cb();
|
|
19877
|
+
// }
|
|
19878
|
+
// visible.value = true;
|
|
19879
|
+
// mitt.emit("crud.resize");
|
|
19880
|
+
// });
|
|
19881
|
+
// }
|
|
19882
|
+
// // 显示列
|
|
19883
|
+
// function showColumn(prop: string | string[], status?: boolean) {
|
|
19884
|
+
// const keys = isArray(prop) ? prop : [prop];
|
|
19885
|
+
// reBuild(() => {
|
|
19886
|
+
// props.columns.forEach((e: EpieTable.Column) => {
|
|
19887
|
+
// if (e.prop && keys.includes(e.prop)) {
|
|
19888
|
+
// e.hidden = isBoolean(status) ? !status : false;
|
|
19889
|
+
// }
|
|
19890
|
+
// });
|
|
19891
|
+
// });
|
|
19892
|
+
// }
|
|
19893
|
+
// // 隐藏列
|
|
19894
|
+
// function hideColumn(prop: string | string[]) {
|
|
19895
|
+
// showColumn(prop, false);
|
|
19896
|
+
// }
|
|
19897
|
+
// // 设置列
|
|
19898
|
+
// function setColumns(list: EpieTable.Column[]) {
|
|
19899
|
+
// if (list) {
|
|
19900
|
+
// reBuild(() => {
|
|
19901
|
+
// proxy.$.props.columns = list;
|
|
19902
|
+
// });
|
|
19903
|
+
// }
|
|
19904
|
+
// }
|
|
19905
|
+
// // 选择项发生变化
|
|
19906
|
+
// function onSelectionChange(selection: any[]) {
|
|
19907
|
+
// crud.selection.splice(0, crud.selection.length, ...selection);
|
|
19908
|
+
// emit("selection-change", selection);
|
|
19909
|
+
// }
|
|
19910
|
+
// // 返回值
|
|
19911
|
+
// const ret = {
|
|
19912
|
+
// Table,
|
|
19913
|
+
// data,
|
|
19914
|
+
// visible,
|
|
19915
|
+
// selection: crud.selection,
|
|
19916
|
+
// reBuild,
|
|
19917
|
+
// showColumn,
|
|
19918
|
+
// hideColumn,
|
|
19919
|
+
// setColumns,
|
|
19920
|
+
// onSelectionChange,
|
|
19921
|
+
// ...Sort,
|
|
19922
|
+
// ...Row,
|
|
19923
|
+
// ...Height,
|
|
19924
|
+
// ...useElTable({ Table })
|
|
19925
|
+
// };
|
|
19926
|
+
// // 设置表格
|
|
19927
|
+
// crud.Table = proxy;
|
|
19928
|
+
// 返回值
|
|
19929
|
+
|
|
19930
|
+
var ret = {
|
|
19931
|
+
description: function description(d) {
|
|
19932
|
+
data.value = d;
|
|
19933
|
+
show.value = true;
|
|
19934
|
+
}
|
|
19935
|
+
}; // 事件代理
|
|
19936
|
+
|
|
19937
|
+
useProxy(ret); // // 刷新事件
|
|
19938
|
+
// mitt.on("crud.refresh", ({ list }: any) => {
|
|
19939
|
+
// data.value = list;
|
|
19940
|
+
// });
|
|
19941
|
+
|
|
19942
|
+
return {
|
|
19943
|
+
show: show,
|
|
19944
|
+
data: data
|
|
19945
|
+
}; //return ret;
|
|
19946
|
+
},
|
|
19947
|
+
render: function render(ctx) {
|
|
19948
|
+
// const { crud } = useCore();
|
|
19949
|
+
var _useTools = useTools(),
|
|
19950
|
+
browser = _useTools.browser;
|
|
19951
|
+
|
|
19952
|
+
var columns = ctx.columns,
|
|
19953
|
+
data = ctx.data,
|
|
19954
|
+
title = ctx.title; // watch(() => show, (val) => {
|
|
19955
|
+
// console.log(show);
|
|
19956
|
+
// }, {immediate: true})
|
|
19957
|
+
|
|
19958
|
+
var _useRender = useRender({
|
|
19959
|
+
columns: columns,
|
|
19960
|
+
data: data,
|
|
19961
|
+
title: title
|
|
19962
|
+
}),
|
|
19963
|
+
renderDescriptions = _useRender.renderDescriptions;
|
|
19964
|
+
|
|
19965
|
+
return vue.h(vue.createVNode(vue.resolveComponent("el-drawer"), {
|
|
19966
|
+
"custom-class": "epie-descriptions",
|
|
19967
|
+
"modelValue": ctx.show,
|
|
19968
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
19969
|
+
return ctx.show = $event;
|
|
19970
|
+
},
|
|
19971
|
+
"direction": "rtl",
|
|
19972
|
+
"with-header": true,
|
|
19973
|
+
"title": ctx.title,
|
|
19974
|
+
"size": browser.isMini ? "100%" : ctx.size
|
|
19975
|
+
}, null), {}, {
|
|
19976
|
+
default: function _default() {
|
|
19977
|
+
var _slot;
|
|
19978
|
+
|
|
19979
|
+
return vue.createVNode("div", {
|
|
19980
|
+
"class": "epie-descriptions__container"
|
|
19981
|
+
}, [vue.createVNode(vue.resolveComponent("el-descriptions"), {
|
|
19982
|
+
"column": ctx.column,
|
|
19983
|
+
"border": ctx.border
|
|
19984
|
+
}, _isSlot(_slot = renderDescriptions()) ? _slot : {
|
|
19985
|
+
default: function _default() {
|
|
19986
|
+
return [_slot];
|
|
19987
|
+
}
|
|
19988
|
+
})]);
|
|
19989
|
+
}
|
|
19990
|
+
});
|
|
19991
|
+
}
|
|
19992
|
+
}); // <ProDescriptions<TableListItem>
|
|
19993
|
+
// column={1}
|
|
19994
|
+
// bordered={true}
|
|
19995
|
+
// size="small"
|
|
19996
|
+
// title={`订单【${row?.orderid}】详细信息`}
|
|
19997
|
+
// request={async () => ({
|
|
19998
|
+
// data: row || {},
|
|
19999
|
+
// })}
|
|
20000
|
+
// params={{
|
|
20001
|
+
// orderid: row?.orderid,
|
|
20002
|
+
// }}
|
|
20003
|
+
// columns={columns}
|
|
20004
|
+
// />
|
|
20005
|
+
// const ElTable = (
|
|
20006
|
+
// <el-table
|
|
20007
|
+
// ref="Table"
|
|
20008
|
+
// border
|
|
20009
|
+
// highlight-current-row
|
|
20010
|
+
// size={style.size}
|
|
20011
|
+
// v-loading={crud.loading}
|
|
20012
|
+
// data={ctx.data}
|
|
20013
|
+
// ></el-table>
|
|
20014
|
+
// );
|
|
20015
|
+
// const props: any = {
|
|
20016
|
+
// maxHeight: ctx.autoHeight ? ctx.maxHeight : ctx.height,
|
|
20017
|
+
// defaultSort: ctx.defaultSort,
|
|
20018
|
+
// onRowContextmenu: ctx.onRowContextMenu,
|
|
20019
|
+
// onSelectionChange: ctx.onSelectionChange,
|
|
20020
|
+
// onSortChange: ctx.onSortChange
|
|
20021
|
+
// };
|
|
20022
|
+
// return ctx.visible
|
|
20023
|
+
// ? h(ElTable, props, {
|
|
20024
|
+
// default() {
|
|
20025
|
+
// return renderColumn();
|
|
20026
|
+
// },
|
|
20027
|
+
// empty() {
|
|
20028
|
+
// return renderEmpty();
|
|
20029
|
+
// },
|
|
20030
|
+
// append() {
|
|
20031
|
+
// return renderAppend();
|
|
20032
|
+
// }
|
|
20033
|
+
// })
|
|
20034
|
+
// : null;
|
|
20035
|
+
// }
|
|
20036
|
+
// });
|
|
20037
|
+
|
|
19639
20038
|
var components = {
|
|
19640
20039
|
Crud: Crud$1,
|
|
19641
20040
|
AddBtn: AddBtn,
|
|
@@ -19656,7 +20055,8 @@
|
|
|
19656
20055
|
FilterGroup: FilterGroup,
|
|
19657
20056
|
ErrorMessage: ErrorMessage,
|
|
19658
20057
|
InlineSearch: InlineSearch,
|
|
19659
|
-
ExportBtn: ExportBtn
|
|
20058
|
+
ExportBtn: ExportBtn,
|
|
20059
|
+
EpieDescriptions: EpieDescriptions
|
|
19660
20060
|
};
|
|
19661
20061
|
function useComponent(app) {
|
|
19662
20062
|
for (var i in components) {
|
|
@@ -19690,7 +20090,7 @@
|
|
|
19690
20090
|
|
|
19691
20091
|
useComponent(app);
|
|
19692
20092
|
return {
|
|
19693
|
-
name: "
|
|
20093
|
+
name: "epie-crud"
|
|
19694
20094
|
};
|
|
19695
20095
|
}
|
|
19696
20096
|
};
|
|
@@ -19703,6 +20103,7 @@
|
|
|
19703
20103
|
exports.useBrowser = useBrowser;
|
|
19704
20104
|
exports.useCore = useCore;
|
|
19705
20105
|
exports.useCrud = useCrud;
|
|
20106
|
+
exports.useDescriptions = useDescriptions;
|
|
19706
20107
|
exports.useDialog = useDialog;
|
|
19707
20108
|
exports.useForm = useForm;
|
|
19708
20109
|
exports.useProxy = useProxy;
|