@epie/bi-crud 2.0.22 → 2.0.23
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/lib/bi-crud.esm.js +425 -94
- package/lib/bi-crud.umd.js +423 -92
- package/lib/components/adv-search.d.ts +2 -2
- package/lib/components/crud/index.d.ts +0 -9
- package/lib/components/descriptions/descriptions.d.ts +1 -1
- package/lib/components/export-btn.d.ts +1 -1
- package/lib/components/upsert/index.d.ts +2 -2
- package/lib/hooks/i18n.d.ts +1 -0
- package/lib/locales/en-US.d.ts +73 -0
- package/lib/locales/zh-CN.d.ts +73 -0
- package/lib/types/base/crud.d.ts +0 -9
- package/package.json +1 -1
package/lib/bi-crud.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, inject, reactive, provide, onMounted, createVNode, ref, watch, nextTick as nextTick$1, resolveComponent, openBlock, createElementBlock, createElementVNode, h, toRaw, mergeProps, withDirectives, vShow,
|
|
2
|
-
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
1
|
+
import { computed, defineComponent, getCurrentInstance, inject, reactive, provide, onMounted, createVNode, ref, watch, nextTick as nextTick$1, resolveComponent, openBlock, createElementBlock, createElementVNode, h, toRaw, mergeProps, withDirectives, vShow, resolveDirective, isVNode, Fragment, render, useSlots, isRef } from 'vue';
|
|
2
|
+
import { useGlobalConfig, buildLocaleContext, ElMessage, ElMessageBox } from 'element-plus';
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
5
|
|
|
@@ -8778,6 +8778,257 @@ const emitter$1 = {
|
|
|
8778
8778
|
|
|
8779
8779
|
};
|
|
8780
8780
|
|
|
8781
|
+
var en = {};
|
|
8782
|
+
|
|
8783
|
+
(function (exports) {
|
|
8784
|
+
|
|
8785
|
+
Object.defineProperty(exports, '__esModule', {
|
|
8786
|
+
value: true
|
|
8787
|
+
});
|
|
8788
|
+
var English = {
|
|
8789
|
+
name: "en",
|
|
8790
|
+
el: {
|
|
8791
|
+
colorpicker: {
|
|
8792
|
+
confirm: "OK",
|
|
8793
|
+
clear: "Clear",
|
|
8794
|
+
defaultLabel: "color picker",
|
|
8795
|
+
description: "current color is {color}. press enter to select a new color."
|
|
8796
|
+
},
|
|
8797
|
+
datepicker: {
|
|
8798
|
+
now: "Now",
|
|
8799
|
+
today: "Today",
|
|
8800
|
+
cancel: "Cancel",
|
|
8801
|
+
clear: "Clear",
|
|
8802
|
+
confirm: "OK",
|
|
8803
|
+
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
8804
|
+
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
8805
|
+
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
8806
|
+
selectedDate: "Selected date",
|
|
8807
|
+
selectDate: "Select date",
|
|
8808
|
+
selectTime: "Select time",
|
|
8809
|
+
startDate: "Start Date",
|
|
8810
|
+
startTime: "Start Time",
|
|
8811
|
+
endDate: "End Date",
|
|
8812
|
+
endTime: "End Time",
|
|
8813
|
+
prevYear: "Previous Year",
|
|
8814
|
+
nextYear: "Next Year",
|
|
8815
|
+
prevMonth: "Previous Month",
|
|
8816
|
+
nextMonth: "Next Month",
|
|
8817
|
+
year: "",
|
|
8818
|
+
month1: "January",
|
|
8819
|
+
month2: "February",
|
|
8820
|
+
month3: "March",
|
|
8821
|
+
month4: "April",
|
|
8822
|
+
month5: "May",
|
|
8823
|
+
month6: "June",
|
|
8824
|
+
month7: "July",
|
|
8825
|
+
month8: "August",
|
|
8826
|
+
month9: "September",
|
|
8827
|
+
month10: "October",
|
|
8828
|
+
month11: "November",
|
|
8829
|
+
month12: "December",
|
|
8830
|
+
week: "week",
|
|
8831
|
+
weeks: {
|
|
8832
|
+
sun: "Sun",
|
|
8833
|
+
mon: "Mon",
|
|
8834
|
+
tue: "Tue",
|
|
8835
|
+
wed: "Wed",
|
|
8836
|
+
thu: "Thu",
|
|
8837
|
+
fri: "Fri",
|
|
8838
|
+
sat: "Sat"
|
|
8839
|
+
},
|
|
8840
|
+
weeksFull: {
|
|
8841
|
+
sun: "Sunday",
|
|
8842
|
+
mon: "Monday",
|
|
8843
|
+
tue: "Tuesday",
|
|
8844
|
+
wed: "Wednesday",
|
|
8845
|
+
thu: "Thursday",
|
|
8846
|
+
fri: "Friday",
|
|
8847
|
+
sat: "Saturday"
|
|
8848
|
+
},
|
|
8849
|
+
months: {
|
|
8850
|
+
jan: "Jan",
|
|
8851
|
+
feb: "Feb",
|
|
8852
|
+
mar: "Mar",
|
|
8853
|
+
apr: "Apr",
|
|
8854
|
+
may: "May",
|
|
8855
|
+
jun: "Jun",
|
|
8856
|
+
jul: "Jul",
|
|
8857
|
+
aug: "Aug",
|
|
8858
|
+
sep: "Sep",
|
|
8859
|
+
oct: "Oct",
|
|
8860
|
+
nov: "Nov",
|
|
8861
|
+
dec: "Dec"
|
|
8862
|
+
}
|
|
8863
|
+
},
|
|
8864
|
+
inputNumber: {
|
|
8865
|
+
decrease: "decrease number",
|
|
8866
|
+
increase: "increase number"
|
|
8867
|
+
},
|
|
8868
|
+
select: {
|
|
8869
|
+
loading: "Loading",
|
|
8870
|
+
noMatch: "No matching data",
|
|
8871
|
+
noData: "No data",
|
|
8872
|
+
placeholder: "Select"
|
|
8873
|
+
},
|
|
8874
|
+
dropdown: {
|
|
8875
|
+
toggleDropdown: "Toggle Dropdown"
|
|
8876
|
+
},
|
|
8877
|
+
cascader: {
|
|
8878
|
+
noMatch: "No matching data",
|
|
8879
|
+
loading: "Loading",
|
|
8880
|
+
placeholder: "Select",
|
|
8881
|
+
noData: "No data"
|
|
8882
|
+
},
|
|
8883
|
+
pagination: {
|
|
8884
|
+
goto: "Go to",
|
|
8885
|
+
pagesize: "/page",
|
|
8886
|
+
total: "Total {total}",
|
|
8887
|
+
pageClassifier: "",
|
|
8888
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
8889
|
+
},
|
|
8890
|
+
dialog: {
|
|
8891
|
+
close: "Close this dialog"
|
|
8892
|
+
},
|
|
8893
|
+
drawer: {
|
|
8894
|
+
close: "Close this dialog"
|
|
8895
|
+
},
|
|
8896
|
+
messagebox: {
|
|
8897
|
+
title: "Message",
|
|
8898
|
+
confirm: "OK",
|
|
8899
|
+
cancel: "Cancel",
|
|
8900
|
+
error: "Illegal input",
|
|
8901
|
+
close: "Close this dialog"
|
|
8902
|
+
},
|
|
8903
|
+
upload: {
|
|
8904
|
+
deleteTip: "press delete to remove",
|
|
8905
|
+
delete: "Delete",
|
|
8906
|
+
preview: "Preview",
|
|
8907
|
+
continue: "Continue"
|
|
8908
|
+
},
|
|
8909
|
+
slider: {
|
|
8910
|
+
defaultLabel: "slider between {min} and {max}",
|
|
8911
|
+
defaultRangeStartLabel: "pick start value",
|
|
8912
|
+
defaultRangeEndLabel: "pick end value"
|
|
8913
|
+
},
|
|
8914
|
+
table: {
|
|
8915
|
+
emptyText: "No Data",
|
|
8916
|
+
confirmFilter: "Confirm",
|
|
8917
|
+
resetFilter: "Reset",
|
|
8918
|
+
clearFilter: "All",
|
|
8919
|
+
sumText: "Sum"
|
|
8920
|
+
},
|
|
8921
|
+
tree: {
|
|
8922
|
+
emptyText: "No Data"
|
|
8923
|
+
},
|
|
8924
|
+
transfer: {
|
|
8925
|
+
noMatch: "No matching data",
|
|
8926
|
+
noData: "No data",
|
|
8927
|
+
titles: ["List 1", "List 2"],
|
|
8928
|
+
filterPlaceholder: "Enter keyword",
|
|
8929
|
+
noCheckedFormat: "{total} items",
|
|
8930
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
8931
|
+
},
|
|
8932
|
+
image: {
|
|
8933
|
+
error: "FAILED"
|
|
8934
|
+
},
|
|
8935
|
+
pageHeader: {
|
|
8936
|
+
title: "Back"
|
|
8937
|
+
},
|
|
8938
|
+
popconfirm: {
|
|
8939
|
+
confirmButtonText: "Yes",
|
|
8940
|
+
cancelButtonText: "No"
|
|
8941
|
+
}
|
|
8942
|
+
}
|
|
8943
|
+
};
|
|
8944
|
+
exports["default"] = English;
|
|
8945
|
+
})(en);
|
|
8946
|
+
|
|
8947
|
+
var English = /*@__PURE__*/getDefaultExportFromCjs(en);
|
|
8948
|
+
|
|
8949
|
+
var EnglishEpie = {
|
|
8950
|
+
epie: {
|
|
8951
|
+
crud: {
|
|
8952
|
+
add: "add",
|
|
8953
|
+
refresh: "refresh",
|
|
8954
|
+
edit: "edit",
|
|
8955
|
+
delete: "delete",
|
|
8956
|
+
multidelete: "multi-delete",
|
|
8957
|
+
select: "select",
|
|
8958
|
+
unselect: "unselect",
|
|
8959
|
+
action: "action",
|
|
8960
|
+
nomethodinservice: "no {name} method in service",
|
|
8961
|
+
responseformaterror: "reponse format error",
|
|
8962
|
+
order: {
|
|
8963
|
+
desc: "{name} - desc",
|
|
8964
|
+
asc: "{name} - asc"
|
|
8965
|
+
},
|
|
8966
|
+
actiondel: {
|
|
8967
|
+
tip: "tip",
|
|
8968
|
+
prompt: "This operation will permanently delete the selected data, continue?",
|
|
8969
|
+
cancel: "cancel",
|
|
8970
|
+
ok: "ok",
|
|
8971
|
+
success: "success"
|
|
8972
|
+
},
|
|
8973
|
+
descriptions: {
|
|
8974
|
+
title: "{title} - info"
|
|
8975
|
+
},
|
|
8976
|
+
form: {
|
|
8977
|
+
show: "show more",
|
|
8978
|
+
hide: "hide",
|
|
8979
|
+
title: "custom form",
|
|
8980
|
+
save: "save",
|
|
8981
|
+
cancel: "cancel",
|
|
8982
|
+
cannotbeempty: "{name} is required"
|
|
8983
|
+
},
|
|
8984
|
+
inlinesearch: {
|
|
8985
|
+
search: "search",
|
|
8986
|
+
reset: "reset"
|
|
8987
|
+
},
|
|
8988
|
+
upsert: {
|
|
8989
|
+
success: "save success",
|
|
8990
|
+
invalid: "[invalid] epie-upsert compoment not exists",
|
|
8991
|
+
edit: "edit",
|
|
8992
|
+
add: "add"
|
|
8993
|
+
},
|
|
8994
|
+
advsearch: {
|
|
8995
|
+
title: "adv search",
|
|
8996
|
+
search: "search",
|
|
8997
|
+
reset: "reset",
|
|
8998
|
+
clear: "clear",
|
|
8999
|
+
close: "close"
|
|
9000
|
+
},
|
|
9001
|
+
export: {
|
|
9002
|
+
label: "export",
|
|
9003
|
+
success: "export success",
|
|
9004
|
+
failed: "export failed, {msg}",
|
|
9005
|
+
ok: "ok",
|
|
9006
|
+
cancel: "cancel",
|
|
9007
|
+
prompt: "Will be exported according to the latest query criteria"
|
|
9008
|
+
},
|
|
9009
|
+
filtergroup: {
|
|
9010
|
+
search: "search",
|
|
9011
|
+
reset: "reset"
|
|
9012
|
+
},
|
|
9013
|
+
searchkey: {
|
|
9014
|
+
pleaseinput: "please input",
|
|
9015
|
+
pleaseinputkey: "please input keyword",
|
|
9016
|
+
search: "search"
|
|
9017
|
+
}
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
};
|
|
9021
|
+
|
|
9022
|
+
const useLocale = () => {
|
|
9023
|
+
const locale = useGlobalConfig('locale');
|
|
9024
|
+
return buildLocaleContext(computed(() => locale.value || { ...English,
|
|
9025
|
+
...EnglishEpie
|
|
9026
|
+
}));
|
|
9027
|
+
};
|
|
9028
|
+
|
|
9029
|
+
const {
|
|
9030
|
+
t: t$e
|
|
9031
|
+
} = useLocale();
|
|
8781
9032
|
function useHelper({
|
|
8782
9033
|
mitt,
|
|
8783
9034
|
props,
|
|
@@ -8858,7 +9109,9 @@ function useHelper({
|
|
|
8858
9109
|
|
|
8859
9110
|
if (!crud.service[reqName]) {
|
|
8860
9111
|
done();
|
|
8861
|
-
return reject(
|
|
9112
|
+
return reject(t$e("epie.crud.nomethodinservice", {
|
|
9113
|
+
name: reqName
|
|
9114
|
+
}));
|
|
8862
9115
|
}
|
|
8863
9116
|
|
|
8864
9117
|
await crud.service[reqName](params).then(res => {
|
|
@@ -8867,7 +9120,7 @@ function useHelper({
|
|
|
8867
9120
|
}
|
|
8868
9121
|
|
|
8869
9122
|
if (isString(res)) {
|
|
8870
|
-
return reject("
|
|
9123
|
+
return reject(t$e("epie.crud.responseformaterror"));
|
|
8871
9124
|
}
|
|
8872
9125
|
|
|
8873
9126
|
if (isArray(res)) {
|
|
@@ -8949,22 +9202,24 @@ function useHelper({
|
|
|
8949
9202
|
|
|
8950
9203
|
function next(params) {
|
|
8951
9204
|
return new Promise((resolve, reject) => {
|
|
8952
|
-
ElMessageBox.confirm("
|
|
9205
|
+
ElMessageBox.confirm(t$e("epie.crud.actiondel.prompt"), t$e("epie.crud.actiondel.tip"), {
|
|
8953
9206
|
type: "warning",
|
|
8954
|
-
cancelButtonText: "
|
|
8955
|
-
confirmButtonText: "
|
|
9207
|
+
cancelButtonText: t$e("epie.crud.actiondel.cancel"),
|
|
9208
|
+
confirmButtonText: t$e("epie.crud.actiondel.ok")
|
|
8956
9209
|
}).then(res => {
|
|
8957
9210
|
if (res === "confirm") {
|
|
8958
9211
|
// 验证方法
|
|
8959
9212
|
if (!crud.service[reqName]) {
|
|
8960
|
-
return reject(
|
|
9213
|
+
return reject(t$e("epie.crud.nomethodinservice", {
|
|
9214
|
+
name: reqName
|
|
9215
|
+
}));
|
|
8961
9216
|
} // 发送请求
|
|
8962
9217
|
|
|
8963
9218
|
|
|
8964
9219
|
crud.service[reqName](params).then(res => {
|
|
8965
9220
|
// 重新刷新
|
|
8966
9221
|
refresh();
|
|
8967
|
-
ElMessage.success("
|
|
9222
|
+
ElMessage.success(t$e("epie.crud.actiondel.success"));
|
|
8968
9223
|
resolve(res);
|
|
8969
9224
|
}).catch(err => {
|
|
8970
9225
|
ElMessage.error(err.msg);
|
|
@@ -9141,16 +9396,16 @@ var Crud$1 = defineComponent({
|
|
|
9141
9396
|
sort: {
|
|
9142
9397
|
order: "order",
|
|
9143
9398
|
prop: "prop"
|
|
9144
|
-
}
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9399
|
+
} //label: {
|
|
9400
|
+
// add: "新增",
|
|
9401
|
+
// delete: "删除",
|
|
9402
|
+
// multiDelete: "删除",
|
|
9403
|
+
// update: "编辑",
|
|
9404
|
+
// refresh: "刷新",
|
|
9405
|
+
// advSearch: "高级搜索",
|
|
9406
|
+
// export: "导出"
|
|
9407
|
+
//}
|
|
9408
|
+
|
|
9154
9409
|
},
|
|
9155
9410
|
// 权限
|
|
9156
9411
|
permission: {// update: true,
|
|
@@ -9423,6 +9678,9 @@ function useProxy(ret) {
|
|
|
9423
9678
|
});
|
|
9424
9679
|
}
|
|
9425
9680
|
|
|
9681
|
+
const {
|
|
9682
|
+
t: t$d
|
|
9683
|
+
} = useLocale();
|
|
9426
9684
|
var AddBtn = defineComponent({
|
|
9427
9685
|
name: "epie-add-btn",
|
|
9428
9686
|
|
|
@@ -9441,7 +9699,7 @@ var AddBtn = defineComponent({
|
|
|
9441
9699
|
"size": style.size,
|
|
9442
9700
|
"onClick": crud.rowAdd
|
|
9443
9701
|
}, {
|
|
9444
|
-
default: () => [slots.default ? slots.default() : crud.
|
|
9702
|
+
default: () => [slots.default ? slots.default() : t$d("epie.crud.add")]
|
|
9445
9703
|
});
|
|
9446
9704
|
};
|
|
9447
9705
|
}
|
|
@@ -9534,6 +9792,9 @@ function _sfc_render220(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9534
9792
|
|
|
9535
9793
|
var search_default = /* @__PURE__ */export_helper_default(_sfc_main220, [["render", _sfc_render220], ["__file", "search.vue"]]); // src/components/select.vue
|
|
9536
9794
|
|
|
9795
|
+
const {
|
|
9796
|
+
t: t$c
|
|
9797
|
+
} = useLocale();
|
|
9537
9798
|
var AdvBtn = defineComponent({
|
|
9538
9799
|
name: "epie-adv-btn",
|
|
9539
9800
|
components: {
|
|
@@ -9560,7 +9821,7 @@ var AdvBtn = defineComponent({
|
|
|
9560
9821
|
"style": "margin-right: 5px"
|
|
9561
9822
|
}, {
|
|
9562
9823
|
default: () => [createVNode(resolveComponent("search"), null, null)]
|
|
9563
|
-
}), slots.default ? slots.default() : crud.
|
|
9824
|
+
}), slots.default ? slots.default() : t$c("epie.crud.advsearch.title")]
|
|
9564
9825
|
});
|
|
9565
9826
|
};
|
|
9566
9827
|
}
|
|
@@ -9898,10 +10159,13 @@ function Parse (method, {
|
|
|
9898
10159
|
}
|
|
9899
10160
|
}
|
|
9900
10161
|
|
|
9901
|
-
function _isSlot$
|
|
10162
|
+
function _isSlot$7(s) {
|
|
9902
10163
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
9903
10164
|
}
|
|
9904
10165
|
|
|
10166
|
+
const {
|
|
10167
|
+
t: t$b
|
|
10168
|
+
} = useLocale();
|
|
9905
10169
|
function useAction({
|
|
9906
10170
|
conf,
|
|
9907
10171
|
form,
|
|
@@ -10122,7 +10386,7 @@ function useRender$3(ctx) {
|
|
|
10122
10386
|
"style": "vertical-align: middle"
|
|
10123
10387
|
}, [label.text, label.icon && createVNode(resolveComponent("el-icon"), {
|
|
10124
10388
|
"class": "el-icon--right"
|
|
10125
|
-
}, _isSlot$
|
|
10389
|
+
}, _isSlot$7(_slot = h(label.icon, {})) ? _slot : {
|
|
10126
10390
|
default: () => [_slot]
|
|
10127
10391
|
})])]
|
|
10128
10392
|
}); // return renderNode(e.label, {
|
|
@@ -10156,9 +10420,9 @@ function useRender$3(ctx) {
|
|
|
10156
10420
|
}, [createVNode(resolveComponent("el-divider"), {
|
|
10157
10421
|
"content-position": "center"
|
|
10158
10422
|
}, {
|
|
10159
|
-
default: () => [e.collapse ? createVNode("span", null, [
|
|
10423
|
+
default: () => [e.collapse ? createVNode("span", null, [t$b('epie.crud.form.show'), createVNode("i", {
|
|
10160
10424
|
"class": "el-icon-arrow-down"
|
|
10161
|
-
}, null)]) : createVNode("span", null, [
|
|
10425
|
+
}, null)]) : createVNode("span", null, [t$b('epie.crud.form.hide'), createVNode("i", {
|
|
10162
10426
|
"class": "el-icon-arrow-up"
|
|
10163
10427
|
}, null)])]
|
|
10164
10428
|
})])]);
|
|
@@ -10177,7 +10441,7 @@ function useRender$3(ctx) {
|
|
|
10177
10441
|
|
|
10178
10442
|
return createVNode(resolveComponent("el-col"), mergeProps({
|
|
10179
10443
|
"span": baseSpan
|
|
10180
|
-
}, e), _isSlot$
|
|
10444
|
+
}, e), _isSlot$7(FormItem) ? FormItem : {
|
|
10181
10445
|
default: () => [FormItem]
|
|
10182
10446
|
});
|
|
10183
10447
|
}); // el-form
|
|
@@ -10196,7 +10460,7 @@ function useRender$3(ctx) {
|
|
|
10196
10460
|
default: () => {
|
|
10197
10461
|
return ctx.inline ? children : withDirectives(createVNode(resolveComponent("el-row"), {
|
|
10198
10462
|
"gutter": 10
|
|
10199
|
-
}, _isSlot$
|
|
10463
|
+
}, _isSlot$7(children) ? children : {
|
|
10200
10464
|
default: () => [children]
|
|
10201
10465
|
}), [[resolveDirective("loading"), ctx.loading]]);
|
|
10202
10466
|
}
|
|
@@ -10224,14 +10488,14 @@ function useRender$3(ctx) {
|
|
|
10224
10488
|
"onClick": () => {
|
|
10225
10489
|
ctx.submit();
|
|
10226
10490
|
}
|
|
10227
|
-
}, _isSlot$
|
|
10491
|
+
}, _isSlot$7(saveButtonText) ? saveButtonText : {
|
|
10228
10492
|
default: () => [saveButtonText]
|
|
10229
10493
|
});
|
|
10230
10494
|
} else if (vnode == "close") {
|
|
10231
10495
|
return createVNode(resolveComponent("el-button"), {
|
|
10232
10496
|
"size": style.size,
|
|
10233
10497
|
"onClick": ctx.close
|
|
10234
|
-
}, _isSlot$
|
|
10498
|
+
}, _isSlot$7(closeButtonText) ? closeButtonText : {
|
|
10235
10499
|
default: () => [closeButtonText]
|
|
10236
10500
|
});
|
|
10237
10501
|
} else {
|
|
@@ -10275,6 +10539,9 @@ function useRender$3(ctx) {
|
|
|
10275
10539
|
};
|
|
10276
10540
|
}
|
|
10277
10541
|
|
|
10542
|
+
const {
|
|
10543
|
+
t: t$a
|
|
10544
|
+
} = useLocale();
|
|
10278
10545
|
var AdvSearch = defineComponent({
|
|
10279
10546
|
name: "epie-adv-search",
|
|
10280
10547
|
components: {
|
|
@@ -10289,7 +10556,7 @@ var AdvSearch = defineComponent({
|
|
|
10289
10556
|
// 标题
|
|
10290
10557
|
title: {
|
|
10291
10558
|
type: String,
|
|
10292
|
-
default: "
|
|
10559
|
+
default: ""
|
|
10293
10560
|
},
|
|
10294
10561
|
// 窗体大小
|
|
10295
10562
|
size: {
|
|
@@ -10405,10 +10672,10 @@ var AdvSearch = defineComponent({
|
|
|
10405
10672
|
|
|
10406
10673
|
function renderFooter() {
|
|
10407
10674
|
const btns = {
|
|
10408
|
-
search: "
|
|
10409
|
-
reset: "
|
|
10410
|
-
clear: "
|
|
10411
|
-
close: "
|
|
10675
|
+
search: t$a("epie.crud.advsearch.search"),
|
|
10676
|
+
reset: t$a("epie.crud.advsearch.reset"),
|
|
10677
|
+
clear: t$a("epie.crud.advsearch.clear"),
|
|
10678
|
+
close: t$a("epie.crud.advsearch.close")
|
|
10412
10679
|
};
|
|
10413
10680
|
return ctx.op.map(e => {
|
|
10414
10681
|
if (btns[e]) {
|
|
@@ -10595,6 +10862,9 @@ var FormHook = {
|
|
|
10595
10862
|
|
|
10596
10863
|
};
|
|
10597
10864
|
|
|
10865
|
+
const {
|
|
10866
|
+
t: t$9
|
|
10867
|
+
} = useLocale();
|
|
10598
10868
|
var Form = defineComponent({
|
|
10599
10869
|
name: "epie-form",
|
|
10600
10870
|
props: {
|
|
@@ -10614,7 +10884,7 @@ var Form = defineComponent({
|
|
|
10614
10884
|
const tabActive = ref(null); // 表单配置
|
|
10615
10885
|
|
|
10616
10886
|
const conf = reactive({
|
|
10617
|
-
title: "
|
|
10887
|
+
title: t$9("epie.crud.form.title"),
|
|
10618
10888
|
width: "50%",
|
|
10619
10889
|
props: {
|
|
10620
10890
|
labelWidth: 100
|
|
@@ -10623,8 +10893,8 @@ var Form = defineComponent({
|
|
|
10623
10893
|
on: {},
|
|
10624
10894
|
op: {
|
|
10625
10895
|
hidden: false,
|
|
10626
|
-
saveButtonText: "
|
|
10627
|
-
closeButtonText: "
|
|
10896
|
+
saveButtonText: t$9("epie.crud.form.save"),
|
|
10897
|
+
closeButtonText: t$9("epie.crud.form.cancel"),
|
|
10628
10898
|
buttons: ["close", "save"]
|
|
10629
10899
|
},
|
|
10630
10900
|
dialog: {
|
|
@@ -10877,7 +11147,9 @@ var Form = defineComponent({
|
|
|
10877
11147
|
if (e.required) {
|
|
10878
11148
|
e.rules = {
|
|
10879
11149
|
required: true,
|
|
10880
|
-
message:
|
|
11150
|
+
message: t$9("epie.crud.form.cannotbeempty", {
|
|
11151
|
+
name: getLabel(e.label).text || ""
|
|
11152
|
+
})
|
|
10881
11153
|
};
|
|
10882
11154
|
}
|
|
10883
11155
|
} // 设置 tabs 默认值
|
|
@@ -11144,6 +11416,9 @@ var FormTabs = defineComponent({
|
|
|
11144
11416
|
|
|
11145
11417
|
});
|
|
11146
11418
|
|
|
11419
|
+
const {
|
|
11420
|
+
t: t$8
|
|
11421
|
+
} = useLocale();
|
|
11147
11422
|
var MultiDeleteBtn = defineComponent({
|
|
11148
11423
|
name: "epie-multi-delete-btn",
|
|
11149
11424
|
|
|
@@ -11165,7 +11440,7 @@ var MultiDeleteBtn = defineComponent({
|
|
|
11165
11440
|
crud.rowDelete(...crud.selection);
|
|
11166
11441
|
}
|
|
11167
11442
|
}, {
|
|
11168
|
-
default: () => [slots.default ? slots.default() : crud.
|
|
11443
|
+
default: () => [slots.default ? slots.default() : t$8("epie.crud.multidelete")]
|
|
11169
11444
|
});
|
|
11170
11445
|
};
|
|
11171
11446
|
}
|
|
@@ -11355,6 +11630,9 @@ var Query = defineComponent({
|
|
|
11355
11630
|
|
|
11356
11631
|
});
|
|
11357
11632
|
|
|
11633
|
+
const {
|
|
11634
|
+
t: t$7
|
|
11635
|
+
} = useLocale();
|
|
11358
11636
|
var RefreshBtn = defineComponent({
|
|
11359
11637
|
name: "epie-refresh-btn",
|
|
11360
11638
|
|
|
@@ -11374,13 +11652,20 @@ var RefreshBtn = defineComponent({
|
|
|
11374
11652
|
crud.refresh();
|
|
11375
11653
|
}
|
|
11376
11654
|
}, {
|
|
11377
|
-
default: () => [slots.default ? slots.default() : crud.
|
|
11655
|
+
default: () => [slots.default ? slots.default() : t$7("epie.crud.refresh")]
|
|
11378
11656
|
});
|
|
11379
11657
|
};
|
|
11380
11658
|
}
|
|
11381
11659
|
|
|
11382
11660
|
});
|
|
11383
11661
|
|
|
11662
|
+
function _isSlot$6(s) {
|
|
11663
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
11664
|
+
}
|
|
11665
|
+
|
|
11666
|
+
const {
|
|
11667
|
+
t: t$6
|
|
11668
|
+
} = useLocale();
|
|
11384
11669
|
var ExportBtn = defineComponent({
|
|
11385
11670
|
name: "epie-export-btn",
|
|
11386
11671
|
props: {
|
|
@@ -11445,13 +11730,15 @@ var ExportBtn = defineComponent({
|
|
|
11445
11730
|
if (res && res.code === 0) {
|
|
11446
11731
|
ElMessage({
|
|
11447
11732
|
type: 'success',
|
|
11448
|
-
message:
|
|
11733
|
+
message: t$6("epie.crud.export.success")
|
|
11449
11734
|
});
|
|
11450
11735
|
window.open(res.data);
|
|
11451
11736
|
} else {
|
|
11452
11737
|
ElMessage({
|
|
11453
11738
|
type: 'error',
|
|
11454
|
-
message:
|
|
11739
|
+
message: t$6("epie.crud.export.failed", {
|
|
11740
|
+
msg: res.msg
|
|
11741
|
+
})
|
|
11455
11742
|
});
|
|
11456
11743
|
}
|
|
11457
11744
|
|
|
@@ -11464,7 +11751,9 @@ var ExportBtn = defineComponent({
|
|
|
11464
11751
|
|
|
11465
11752
|
if (!crud.service[reqName]) {
|
|
11466
11753
|
done();
|
|
11467
|
-
return reject(
|
|
11754
|
+
return reject(t$6("epie.crud.nomethodinservice", {
|
|
11755
|
+
name: reqName
|
|
11756
|
+
}));
|
|
11468
11757
|
}
|
|
11469
11758
|
|
|
11470
11759
|
const data = paramsReplaceExport(crud.getParams()); // 发送请求
|
|
@@ -11497,7 +11786,7 @@ var ExportBtn = defineComponent({
|
|
|
11497
11786
|
exportVisible,
|
|
11498
11787
|
exportLoading,
|
|
11499
11788
|
onExport,
|
|
11500
|
-
label: crud.
|
|
11789
|
+
label: t$6("epie.crud.export.label"),
|
|
11501
11790
|
slots: slots
|
|
11502
11791
|
};
|
|
11503
11792
|
},
|
|
@@ -11512,24 +11801,28 @@ var ExportBtn = defineComponent({
|
|
|
11512
11801
|
}, null), {
|
|
11513
11802
|
visible: ctx.exportVisible
|
|
11514
11803
|
}, {
|
|
11515
|
-
default: () =>
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
"
|
|
11519
|
-
|
|
11520
|
-
"
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
"
|
|
11526
|
-
|
|
11527
|
-
"
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11804
|
+
default: () => {
|
|
11805
|
+
let _slot, _slot2;
|
|
11806
|
+
|
|
11807
|
+
return createVNode(Fragment, null, [createVNode("p", null, [t$6("epie.crud.export.prompt")]), createVNode("div", {
|
|
11808
|
+
"style": "text-align: right; margin-top: 8px;"
|
|
11809
|
+
}, [createVNode(resolveComponent("el-button"), {
|
|
11810
|
+
"size": "small",
|
|
11811
|
+
"type": "primary",
|
|
11812
|
+
"link": true,
|
|
11813
|
+
"onClick": () => ctx.exportVisible = false
|
|
11814
|
+
}, _isSlot$6(_slot = t$6("epie.crud.export.cancel")) ? _slot : {
|
|
11815
|
+
default: () => [_slot]
|
|
11816
|
+
}), createVNode(resolveComponent("el-button"), mergeProps({
|
|
11817
|
+
"size": "small",
|
|
11818
|
+
"type": "primary",
|
|
11819
|
+
"onClick": ctx.onExport
|
|
11820
|
+
}, {
|
|
11821
|
+
loading: ctx.exportLoading
|
|
11822
|
+
}), _isSlot$6(_slot2 = t$6("epie.crud.export.ok")) ? _slot2 : {
|
|
11823
|
+
default: () => [_slot2]
|
|
11824
|
+
})])]);
|
|
11825
|
+
},
|
|
11533
11826
|
reference: () => createVNode(resolveComponent("el-button"), {
|
|
11534
11827
|
"type": "primary",
|
|
11535
11828
|
"size": style.size,
|
|
@@ -11541,10 +11834,13 @@ var ExportBtn = defineComponent({
|
|
|
11541
11834
|
}
|
|
11542
11835
|
});
|
|
11543
11836
|
|
|
11544
|
-
function _isSlot$
|
|
11837
|
+
function _isSlot$5(s) {
|
|
11545
11838
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
11546
11839
|
}
|
|
11547
11840
|
|
|
11841
|
+
const {
|
|
11842
|
+
t: t$5
|
|
11843
|
+
} = useLocale();
|
|
11548
11844
|
var SearchKey = defineComponent({
|
|
11549
11845
|
name: "epie-search-key",
|
|
11550
11846
|
props: {
|
|
@@ -11581,9 +11877,9 @@ var SearchKey = defineComponent({
|
|
|
11581
11877
|
return props.placeholder;
|
|
11582
11878
|
} else {
|
|
11583
11879
|
if (props.fieldList.length > 0) {
|
|
11584
|
-
return "
|
|
11880
|
+
return t$5("epie.crud.searchkey.pleaseinput");
|
|
11585
11881
|
} else {
|
|
11586
|
-
return "
|
|
11882
|
+
return t$5("epie.crud.searchkey.pleaseinputkey");
|
|
11587
11883
|
}
|
|
11588
11884
|
}
|
|
11589
11885
|
}); // 搜索内容
|
|
@@ -11653,7 +11949,7 @@ var SearchKey = defineComponent({
|
|
|
11653
11949
|
},
|
|
11654
11950
|
|
|
11655
11951
|
render(ctx) {
|
|
11656
|
-
let _slot;
|
|
11952
|
+
let _slot, _slot2;
|
|
11657
11953
|
|
|
11658
11954
|
const {
|
|
11659
11955
|
style
|
|
@@ -11667,7 +11963,7 @@ var SearchKey = defineComponent({
|
|
|
11667
11963
|
"modelValue": ctx.selectField,
|
|
11668
11964
|
"onUpdate:modelValue": $event => ctx.selectField = $event,
|
|
11669
11965
|
"onChange": ctx.onFieldChange
|
|
11670
|
-
}, _isSlot$
|
|
11966
|
+
}, _isSlot$5(_slot = ctx.fieldList.map((e, i) => createVNode(resolveComponent("el-option"), {
|
|
11671
11967
|
"key": i,
|
|
11672
11968
|
"label": e.label,
|
|
11673
11969
|
"value": e.value
|
|
@@ -11687,8 +11983,8 @@ var SearchKey = defineComponent({
|
|
|
11687
11983
|
"size": style.size,
|
|
11688
11984
|
"type": "primary",
|
|
11689
11985
|
"onClick": ctx.search
|
|
11690
|
-
}, {
|
|
11691
|
-
default: () => [
|
|
11986
|
+
}, _isSlot$5(_slot2 = t$5("epie.crud.searchkey.search")) ? _slot2 : {
|
|
11987
|
+
default: () => [_slot2]
|
|
11692
11988
|
})]);
|
|
11693
11989
|
}
|
|
11694
11990
|
|
|
@@ -11919,10 +12215,13 @@ const ContextMenu = {
|
|
|
11919
12215
|
|
|
11920
12216
|
};
|
|
11921
12217
|
|
|
11922
|
-
function _isSlot$
|
|
12218
|
+
function _isSlot$4(s) {
|
|
11923
12219
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
11924
12220
|
}
|
|
11925
12221
|
|
|
12222
|
+
const {
|
|
12223
|
+
t: t$4
|
|
12224
|
+
} = useLocale();
|
|
11926
12225
|
function useElTable({
|
|
11927
12226
|
Table
|
|
11928
12227
|
}) {
|
|
@@ -12051,7 +12350,7 @@ function useRow({
|
|
|
12051
12350
|
switch (e) {
|
|
12052
12351
|
case "refresh":
|
|
12053
12352
|
return {
|
|
12054
|
-
label: "
|
|
12353
|
+
label: t$4("epie.crud.refresh"),
|
|
12055
12354
|
|
|
12056
12355
|
callback(done) {
|
|
12057
12356
|
crud.refresh();
|
|
@@ -12063,7 +12362,7 @@ function useRow({
|
|
|
12063
12362
|
case "edit":
|
|
12064
12363
|
case "update":
|
|
12065
12364
|
return {
|
|
12066
|
-
label: "
|
|
12365
|
+
label: t$4("epie.crud.edit"),
|
|
12067
12366
|
hidden: !crud.getPermission("update"),
|
|
12068
12367
|
|
|
12069
12368
|
callback(done) {
|
|
@@ -12075,7 +12374,7 @@ function useRow({
|
|
|
12075
12374
|
|
|
12076
12375
|
case "delete":
|
|
12077
12376
|
return {
|
|
12078
|
-
label: "
|
|
12377
|
+
label: t$4("epie.crud.delete"),
|
|
12079
12378
|
hidden: !crud.getPermission("delete"),
|
|
12080
12379
|
|
|
12081
12380
|
callback(done) {
|
|
@@ -12087,7 +12386,7 @@ function useRow({
|
|
|
12087
12386
|
|
|
12088
12387
|
case "check":
|
|
12089
12388
|
return {
|
|
12090
|
-
label: crud.selection.find(e => e.id == row.id) ? "
|
|
12389
|
+
label: crud.selection.find(e => e.id == row.id) ? t$4("epie.crud.unselect") : t$4("epie.crud.select"),
|
|
12091
12390
|
hidden: !props.columns.find(e => e.type === "selection"),
|
|
12092
12391
|
|
|
12093
12392
|
callback(done) {
|
|
@@ -12099,7 +12398,9 @@ function useRow({
|
|
|
12099
12398
|
|
|
12100
12399
|
case "order-desc":
|
|
12101
12400
|
return {
|
|
12102
|
-
label:
|
|
12401
|
+
label: t$4("epie.crud.order.desc", {
|
|
12402
|
+
name: column.label
|
|
12403
|
+
}),
|
|
12103
12404
|
hidden: !column.sortable,
|
|
12104
12405
|
|
|
12105
12406
|
callback(done) {
|
|
@@ -12111,7 +12412,9 @@ function useRow({
|
|
|
12111
12412
|
|
|
12112
12413
|
case "order-asc":
|
|
12113
12414
|
return {
|
|
12114
|
-
label:
|
|
12415
|
+
label: t$4("epie.crud.order.asc", {
|
|
12416
|
+
name: column.label
|
|
12417
|
+
}),
|
|
12115
12418
|
hidden: !column.sortable,
|
|
12116
12419
|
|
|
12117
12420
|
callback(done) {
|
|
@@ -12225,7 +12528,7 @@ function useRender$2({
|
|
|
12225
12528
|
|
|
12226
12529
|
if (item.type === "op") {
|
|
12227
12530
|
return h(ElTableColumn, {
|
|
12228
|
-
label: "
|
|
12531
|
+
label: t$4("epie.crud.action"),
|
|
12229
12532
|
width: "160px",
|
|
12230
12533
|
fixed: browser.isMini ? null : "right",
|
|
12231
12534
|
...item
|
|
@@ -12235,6 +12538,8 @@ function useRender$2({
|
|
|
12235
12538
|
"class": "epie-table__op"
|
|
12236
12539
|
}, [(item.buttons || ["edit", "delete"]).map(vnode => {
|
|
12237
12540
|
if (vnode === "edit") {
|
|
12541
|
+
let _slot;
|
|
12542
|
+
|
|
12238
12543
|
return withDirectives(createVNode(resolveComponent("el-button"), {
|
|
12239
12544
|
"text": true,
|
|
12240
12545
|
"bg": true,
|
|
@@ -12243,10 +12548,12 @@ function useRender$2({
|
|
|
12243
12548
|
"onClick": () => {
|
|
12244
12549
|
crud.rowEdit(scope.row);
|
|
12245
12550
|
}
|
|
12246
|
-
}, {
|
|
12247
|
-
default: () => [
|
|
12551
|
+
}, _isSlot$4(_slot = t$4("epie.crud.edit")) ? _slot : {
|
|
12552
|
+
default: () => [_slot]
|
|
12248
12553
|
}), [[vShow, crud.getPermission("update")]]);
|
|
12249
12554
|
} else if (vnode === "delete") {
|
|
12555
|
+
let _slot2;
|
|
12556
|
+
|
|
12250
12557
|
return withDirectives(createVNode(resolveComponent("el-button"), {
|
|
12251
12558
|
"text": true,
|
|
12252
12559
|
"bg": true,
|
|
@@ -12255,8 +12562,8 @@ function useRender$2({
|
|
|
12255
12562
|
"onClick": () => {
|
|
12256
12563
|
crud.rowDelete(scope.row);
|
|
12257
12564
|
}
|
|
12258
|
-
}, {
|
|
12259
|
-
default: () => [
|
|
12565
|
+
}, _isSlot$4(_slot2 = t$4("epie.crud.delete")) ? _slot2 : {
|
|
12566
|
+
default: () => [_slot2]
|
|
12260
12567
|
}), [[vShow, crud.getPermission("delete")]]);
|
|
12261
12568
|
} else {
|
|
12262
12569
|
return renderNode(vnode, {
|
|
@@ -12352,7 +12659,7 @@ function useRender$2({
|
|
|
12352
12659
|
} else if (!!v) {
|
|
12353
12660
|
return createVNode(resolveComponent("el-tag"), {
|
|
12354
12661
|
"style": "margin: 0 2px"
|
|
12355
|
-
}, _isSlot$
|
|
12662
|
+
}, _isSlot$4(v) ? v : {
|
|
12356
12663
|
default: () => [v]
|
|
12357
12664
|
});
|
|
12358
12665
|
} else {
|
|
@@ -12600,6 +12907,9 @@ var Table = defineComponent({
|
|
|
12600
12907
|
|
|
12601
12908
|
});
|
|
12602
12909
|
|
|
12910
|
+
const {
|
|
12911
|
+
t: t$3
|
|
12912
|
+
} = useLocale();
|
|
12603
12913
|
var Upsert = defineComponent({
|
|
12604
12914
|
name: "epie-upsert",
|
|
12605
12915
|
props: {
|
|
@@ -12679,13 +12989,15 @@ var Upsert = defineComponent({
|
|
|
12679
12989
|
|
|
12680
12990
|
if (!crud.service[reqName]) {
|
|
12681
12991
|
done();
|
|
12682
|
-
return reject(
|
|
12992
|
+
return reject(t$3("epie.crud.nomethodinservice", {
|
|
12993
|
+
name: reqName
|
|
12994
|
+
}));
|
|
12683
12995
|
} // 发送请求
|
|
12684
12996
|
|
|
12685
12997
|
|
|
12686
12998
|
crud.service[reqName](data).then(res => {
|
|
12687
12999
|
if (res && res.code === 0) {
|
|
12688
|
-
ElMessage.success("
|
|
13000
|
+
ElMessage.success(t$3("epie.crud.upsert.success"));
|
|
12689
13001
|
done();
|
|
12690
13002
|
close();
|
|
12691
13003
|
crud.refresh();
|
|
@@ -12717,11 +13029,11 @@ var Upsert = defineComponent({
|
|
|
12717
13029
|
function open() {
|
|
12718
13030
|
return new Promise(resolve => {
|
|
12719
13031
|
if (!Form.value) {
|
|
12720
|
-
return console.error("
|
|
13032
|
+
return console.error(t$3("epie.crud.upsert.invalid"));
|
|
12721
13033
|
}
|
|
12722
13034
|
|
|
12723
13035
|
Form.value?.open({
|
|
12724
|
-
title: isEdit.value ? "
|
|
13036
|
+
title: isEdit.value ? t$3("epie.crud.upsert.edit") : t$3("epie.crud.upsert.add"),
|
|
12725
13037
|
props: props.props,
|
|
12726
13038
|
op: props.op,
|
|
12727
13039
|
dialog: props.dialog,
|
|
@@ -12812,7 +13124,9 @@ var Upsert = defineComponent({
|
|
|
12812
13124
|
|
|
12813
13125
|
if (!crud.service[reqName]) {
|
|
12814
13126
|
done();
|
|
12815
|
-
return reject(
|
|
13127
|
+
return reject(t$3("epie.crud.nomethodinservice", {
|
|
13128
|
+
name: reqName
|
|
13129
|
+
}));
|
|
12816
13130
|
} // 发送请求
|
|
12817
13131
|
|
|
12818
13132
|
|
|
@@ -13132,6 +13446,13 @@ var Filter = defineComponent({
|
|
|
13132
13446
|
|
|
13133
13447
|
});
|
|
13134
13448
|
|
|
13449
|
+
function _isSlot$3(s) {
|
|
13450
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
13451
|
+
}
|
|
13452
|
+
|
|
13453
|
+
const {
|
|
13454
|
+
t: t$2
|
|
13455
|
+
} = useLocale();
|
|
13135
13456
|
var FilterGroup = defineComponent({
|
|
13136
13457
|
name: "epie-filter-group",
|
|
13137
13458
|
props: {
|
|
@@ -13209,6 +13530,8 @@ var FilterGroup = defineComponent({
|
|
|
13209
13530
|
},
|
|
13210
13531
|
|
|
13211
13532
|
render(ctx) {
|
|
13533
|
+
let _slot, _slot2;
|
|
13534
|
+
|
|
13212
13535
|
const {
|
|
13213
13536
|
style
|
|
13214
13537
|
} = useTools();
|
|
@@ -13227,13 +13550,13 @@ var FilterGroup = defineComponent({
|
|
|
13227
13550
|
"loading": ctx.loading,
|
|
13228
13551
|
"size": style.size,
|
|
13229
13552
|
"onClick": ctx.search
|
|
13230
|
-
}, {
|
|
13231
|
-
default: () => [
|
|
13553
|
+
}, _isSlot$3(_slot = t$2("epie.crud.filtergroup.search")) ? _slot : {
|
|
13554
|
+
default: () => [_slot]
|
|
13232
13555
|
}), ctx.resetBtn && createVNode(resolveComponent("el-button"), {
|
|
13233
13556
|
"size": style.size,
|
|
13234
13557
|
"onClick": ctx.reset
|
|
13235
|
-
}, {
|
|
13236
|
-
default: () => [
|
|
13558
|
+
}, _isSlot$3(_slot2 = t$2("epie.crud.filtergroup.reset")) ? _slot2 : {
|
|
13559
|
+
default: () => [_slot2]
|
|
13237
13560
|
})])]);
|
|
13238
13561
|
}
|
|
13239
13562
|
|
|
@@ -13260,6 +13583,9 @@ function _isSlot$2(s) {
|
|
|
13260
13583
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
13261
13584
|
}
|
|
13262
13585
|
|
|
13586
|
+
const {
|
|
13587
|
+
t: t$1
|
|
13588
|
+
} = useLocale();
|
|
13263
13589
|
function useRender$1(ctx) {
|
|
13264
13590
|
const {
|
|
13265
13591
|
browser,
|
|
@@ -13376,8 +13702,8 @@ function useRender$1(ctx) {
|
|
|
13376
13702
|
|
|
13377
13703
|
function renderOp() {
|
|
13378
13704
|
const ButtonText = {
|
|
13379
|
-
search: "
|
|
13380
|
-
reset: "
|
|
13705
|
+
search: t$1("epie.crud.inlinesearch.search"),
|
|
13706
|
+
reset: t$1("epie.crud.inlinesearch.reset")
|
|
13381
13707
|
};
|
|
13382
13708
|
return ctx.op?.map(e => {
|
|
13383
13709
|
if (ButtonText[e]) {
|
|
@@ -13619,6 +13945,9 @@ function _isSlot(s) {
|
|
|
13619
13945
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
13620
13946
|
}
|
|
13621
13947
|
|
|
13948
|
+
const {
|
|
13949
|
+
t
|
|
13950
|
+
} = useLocale();
|
|
13622
13951
|
const epieDescriptionsProps = () => ({
|
|
13623
13952
|
border: {
|
|
13624
13953
|
type: Boolean,
|
|
@@ -13815,7 +14144,9 @@ var EpieDescriptions = defineComponent({
|
|
|
13815
14144
|
"onUpdate:modelValue": $event => ctx.show = $event,
|
|
13816
14145
|
"direction": "rtl",
|
|
13817
14146
|
"with-header": true,
|
|
13818
|
-
"title":
|
|
14147
|
+
"title": t("epie.crud.descriptions.title", {
|
|
14148
|
+
title: ctx.title || ""
|
|
14149
|
+
}),
|
|
13819
14150
|
"size": browser.isMini ? "100%" : ctx.size
|
|
13820
14151
|
}, null), {}, {
|
|
13821
14152
|
default: () => {
|