@epie/bi-crud 2.0.23 → 2.0.25
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 +77 -3
- package/lib/bi-crud.umd.js +78 -2
- package/lib/components/export-btn.d.ts +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/locales/index.d.ts +2 -0
- package/package.json +2 -2
package/lib/bi-crud.esm.js
CHANGED
|
@@ -9693,8 +9693,9 @@ var AddBtn = defineComponent({
|
|
|
9693
9693
|
const {
|
|
9694
9694
|
style
|
|
9695
9695
|
} = useTools();
|
|
9696
|
+
const addPermission = computed(() => crud.getPermission("add"));
|
|
9696
9697
|
return () => {
|
|
9697
|
-
return
|
|
9698
|
+
return addPermission.value && createVNode(resolveComponent("el-button"), {
|
|
9698
9699
|
"type": "primary",
|
|
9699
9700
|
"size": style.size,
|
|
9700
9701
|
"onClick": crud.rowAdd
|
|
@@ -11780,7 +11781,7 @@ var ExportBtn = defineComponent({
|
|
|
11780
11781
|
});
|
|
11781
11782
|
};
|
|
11782
11783
|
|
|
11783
|
-
const hasPermission = crud.getPermission("export");
|
|
11784
|
+
const hasPermission = computed(() => crud.getPermission("export"));
|
|
11784
11785
|
return {
|
|
11785
11786
|
hasPermission,
|
|
11786
11787
|
exportVisible,
|
|
@@ -14365,6 +14366,79 @@ function useComponent(app) {
|
|
|
14365
14366
|
}
|
|
14366
14367
|
}
|
|
14367
14368
|
|
|
14369
|
+
var zhCN = {
|
|
14370
|
+
epie: {
|
|
14371
|
+
crud: {
|
|
14372
|
+
add: "新增",
|
|
14373
|
+
refresh: "刷新",
|
|
14374
|
+
edit: "编辑",
|
|
14375
|
+
delete: "删除",
|
|
14376
|
+
multidelete: "批量删除",
|
|
14377
|
+
select: "选择",
|
|
14378
|
+
unselect: "取消选择",
|
|
14379
|
+
action: "操作",
|
|
14380
|
+
nomethodinservice: "[配置] Service 中不存在 {name} 方法",
|
|
14381
|
+
responseformaterror: "[响应] 格式错误!",
|
|
14382
|
+
order: {
|
|
14383
|
+
desc: "{name} - 降序",
|
|
14384
|
+
asc: "{name} - 升序"
|
|
14385
|
+
},
|
|
14386
|
+
actiondel: {
|
|
14387
|
+
tip: "提示",
|
|
14388
|
+
prompt: "此操作将永久删除选中数据,是否继续?",
|
|
14389
|
+
cancel: "取消",
|
|
14390
|
+
ok: "确定",
|
|
14391
|
+
success: "删除成功"
|
|
14392
|
+
},
|
|
14393
|
+
descriptions: {
|
|
14394
|
+
title: "{title} - 详情"
|
|
14395
|
+
},
|
|
14396
|
+
form: {
|
|
14397
|
+
show: "查看更多",
|
|
14398
|
+
hide: "隐藏内容",
|
|
14399
|
+
title: "自定义表单",
|
|
14400
|
+
save: "保存",
|
|
14401
|
+
cancel: "取消",
|
|
14402
|
+
cannotbeempty: "{name} 不能为空"
|
|
14403
|
+
},
|
|
14404
|
+
inlinesearch: {
|
|
14405
|
+
search: "搜索",
|
|
14406
|
+
reset: "重置"
|
|
14407
|
+
},
|
|
14408
|
+
upsert: {
|
|
14409
|
+
success: "保存成功",
|
|
14410
|
+
invalid: "[异常] epie-upsert 组件不存在",
|
|
14411
|
+
edit: "编辑",
|
|
14412
|
+
add: "新增"
|
|
14413
|
+
},
|
|
14414
|
+
advsearch: {
|
|
14415
|
+
title: "高级搜索",
|
|
14416
|
+
search: "搜索",
|
|
14417
|
+
reset: "重置",
|
|
14418
|
+
clear: "清空",
|
|
14419
|
+
close: "取消"
|
|
14420
|
+
},
|
|
14421
|
+
export: {
|
|
14422
|
+
label: "导出",
|
|
14423
|
+
success: "导出成功",
|
|
14424
|
+
failed: "导出失败: {msg}",
|
|
14425
|
+
ok: "确定",
|
|
14426
|
+
cancel: "取消",
|
|
14427
|
+
prompt: "即将按照最近一次查询条件导出"
|
|
14428
|
+
},
|
|
14429
|
+
filtergroup: {
|
|
14430
|
+
search: "search",
|
|
14431
|
+
reset: "reset"
|
|
14432
|
+
},
|
|
14433
|
+
searchkey: {
|
|
14434
|
+
pleaseinput: "请输入",
|
|
14435
|
+
pleaseinputkey: "请输入关键字",
|
|
14436
|
+
search: "搜索"
|
|
14437
|
+
}
|
|
14438
|
+
}
|
|
14439
|
+
}
|
|
14440
|
+
};
|
|
14441
|
+
|
|
14368
14442
|
const Crud = {
|
|
14369
14443
|
install(app, options) {
|
|
14370
14444
|
const {
|
|
@@ -14396,4 +14470,4 @@ const Crud = {
|
|
|
14396
14470
|
};
|
|
14397
14471
|
// export { ContextMenu } from "./components/context-menu";
|
|
14398
14472
|
|
|
14399
|
-
export { EpieDescriptions, EpieInlineSearch, components, crudList, Crud as default, emitter$1 as emitter, epieDescriptionsProps, epieInlineSearchProps, useAdvSearch, useBrowser, useComponent, useCore, useCrud, useDescriptions, useDialog, useForm, usePermission, useProxy, useRefs, useSetPermission, useTable, useTools, useUpsert };
|
|
14473
|
+
export { EpieDescriptions, EpieInlineSearch, components, crudList, Crud as default, emitter$1 as emitter, EnglishEpie as enUSEpie, epieDescriptionsProps, epieInlineSearchProps, useAdvSearch, useBrowser, useComponent, useCore, useCrud, useDescriptions, useDialog, useForm, usePermission, useProxy, useRefs, useSetPermission, useTable, useTools, useUpsert, zhCN as zhCNEpie };
|
package/lib/bi-crud.umd.js
CHANGED
|
@@ -9696,8 +9696,9 @@
|
|
|
9696
9696
|
const {
|
|
9697
9697
|
style
|
|
9698
9698
|
} = useTools();
|
|
9699
|
+
const addPermission = vue.computed(() => crud.getPermission("add"));
|
|
9699
9700
|
return () => {
|
|
9700
|
-
return
|
|
9701
|
+
return addPermission.value && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
9701
9702
|
"type": "primary",
|
|
9702
9703
|
"size": style.size,
|
|
9703
9704
|
"onClick": crud.rowAdd
|
|
@@ -11783,7 +11784,7 @@
|
|
|
11783
11784
|
});
|
|
11784
11785
|
};
|
|
11785
11786
|
|
|
11786
|
-
const hasPermission = crud.getPermission("export");
|
|
11787
|
+
const hasPermission = vue.computed(() => crud.getPermission("export"));
|
|
11787
11788
|
return {
|
|
11788
11789
|
hasPermission,
|
|
11789
11790
|
exportVisible,
|
|
@@ -14368,6 +14369,79 @@
|
|
|
14368
14369
|
}
|
|
14369
14370
|
}
|
|
14370
14371
|
|
|
14372
|
+
var zhCN = {
|
|
14373
|
+
epie: {
|
|
14374
|
+
crud: {
|
|
14375
|
+
add: "新增",
|
|
14376
|
+
refresh: "刷新",
|
|
14377
|
+
edit: "编辑",
|
|
14378
|
+
delete: "删除",
|
|
14379
|
+
multidelete: "批量删除",
|
|
14380
|
+
select: "选择",
|
|
14381
|
+
unselect: "取消选择",
|
|
14382
|
+
action: "操作",
|
|
14383
|
+
nomethodinservice: "[配置] Service 中不存在 {name} 方法",
|
|
14384
|
+
responseformaterror: "[响应] 格式错误!",
|
|
14385
|
+
order: {
|
|
14386
|
+
desc: "{name} - 降序",
|
|
14387
|
+
asc: "{name} - 升序"
|
|
14388
|
+
},
|
|
14389
|
+
actiondel: {
|
|
14390
|
+
tip: "提示",
|
|
14391
|
+
prompt: "此操作将永久删除选中数据,是否继续?",
|
|
14392
|
+
cancel: "取消",
|
|
14393
|
+
ok: "确定",
|
|
14394
|
+
success: "删除成功"
|
|
14395
|
+
},
|
|
14396
|
+
descriptions: {
|
|
14397
|
+
title: "{title} - 详情"
|
|
14398
|
+
},
|
|
14399
|
+
form: {
|
|
14400
|
+
show: "查看更多",
|
|
14401
|
+
hide: "隐藏内容",
|
|
14402
|
+
title: "自定义表单",
|
|
14403
|
+
save: "保存",
|
|
14404
|
+
cancel: "取消",
|
|
14405
|
+
cannotbeempty: "{name} 不能为空"
|
|
14406
|
+
},
|
|
14407
|
+
inlinesearch: {
|
|
14408
|
+
search: "搜索",
|
|
14409
|
+
reset: "重置"
|
|
14410
|
+
},
|
|
14411
|
+
upsert: {
|
|
14412
|
+
success: "保存成功",
|
|
14413
|
+
invalid: "[异常] epie-upsert 组件不存在",
|
|
14414
|
+
edit: "编辑",
|
|
14415
|
+
add: "新增"
|
|
14416
|
+
},
|
|
14417
|
+
advsearch: {
|
|
14418
|
+
title: "高级搜索",
|
|
14419
|
+
search: "搜索",
|
|
14420
|
+
reset: "重置",
|
|
14421
|
+
clear: "清空",
|
|
14422
|
+
close: "取消"
|
|
14423
|
+
},
|
|
14424
|
+
export: {
|
|
14425
|
+
label: "导出",
|
|
14426
|
+
success: "导出成功",
|
|
14427
|
+
failed: "导出失败: {msg}",
|
|
14428
|
+
ok: "确定",
|
|
14429
|
+
cancel: "取消",
|
|
14430
|
+
prompt: "即将按照最近一次查询条件导出"
|
|
14431
|
+
},
|
|
14432
|
+
filtergroup: {
|
|
14433
|
+
search: "search",
|
|
14434
|
+
reset: "reset"
|
|
14435
|
+
},
|
|
14436
|
+
searchkey: {
|
|
14437
|
+
pleaseinput: "请输入",
|
|
14438
|
+
pleaseinputkey: "请输入关键字",
|
|
14439
|
+
search: "搜索"
|
|
14440
|
+
}
|
|
14441
|
+
}
|
|
14442
|
+
}
|
|
14443
|
+
};
|
|
14444
|
+
|
|
14371
14445
|
const Crud = {
|
|
14372
14446
|
install(app, options) {
|
|
14373
14447
|
const {
|
|
@@ -14405,6 +14479,7 @@
|
|
|
14405
14479
|
exports.crudList = crudList;
|
|
14406
14480
|
exports["default"] = Crud;
|
|
14407
14481
|
exports.emitter = emitter$1;
|
|
14482
|
+
exports.enUSEpie = EnglishEpie;
|
|
14408
14483
|
exports.epieDescriptionsProps = epieDescriptionsProps;
|
|
14409
14484
|
exports.epieInlineSearchProps = epieInlineSearchProps;
|
|
14410
14485
|
exports.useAdvSearch = useAdvSearch;
|
|
@@ -14422,6 +14497,7 @@
|
|
|
14422
14497
|
exports.useTable = useTable;
|
|
14423
14498
|
exports.useTools = useTools;
|
|
14424
14499
|
exports.useUpsert = useUpsert;
|
|
14500
|
+
exports.zhCNEpie = zhCN;
|
|
14425
14501
|
|
|
14426
14502
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14427
14503
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
onExport: FunctionConstructor;
|
|
3
3
|
}, {
|
|
4
|
-
hasPermission: boolean
|
|
4
|
+
hasPermission: import("vue").ComputedRef<boolean>;
|
|
5
5
|
exportVisible: import("vue").Ref<boolean>;
|
|
6
6
|
exportLoading: import("vue").Ref<boolean>;
|
|
7
7
|
onExport: () => Promise<unknown>;
|
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epie/bi-crud",
|
|
3
3
|
"simpleName": "bi-crud",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.25",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/bi-crud.umd.js",
|
|
7
7
|
"module": "lib/bi-crud.esm.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@element-plus/icons-vue": "^2.0.6",
|
|
26
|
-
"@epie/bi-crud": "^2.0.
|
|
26
|
+
"@epie/bi-crud": "^2.0.23",
|
|
27
27
|
"array.prototype.flat": "^1.2.4",
|
|
28
28
|
"clone-deep": "^4.0.1",
|
|
29
29
|
"core-js": "^3.21.1",
|