@dt-frames/ui 1.0.33 → 1.0.35
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/es/assets/locales/en.json +94 -94
- package/es/assets/locales/zh.json +2 -1
- package/es/index.js +24 -12
- package/package.json +2 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
{
|
|
2
2
|
"UI": {
|
|
3
|
-
"ADD": "
|
|
4
|
-
"DELETE_CONFIRM": "
|
|
5
|
-
"CONFIRM_DELETE": "
|
|
6
|
-
"NEED_CURD": "
|
|
7
|
-
"EDIT": "
|
|
8
|
-
"EMPTY": "
|
|
9
|
-
"MULTIFY_DELETE_CONFIRM": "
|
|
10
|
-
"CONFIRM_MULTIFY_DELETE": "
|
|
11
|
-
"ADVANCED": "
|
|
12
|
-
"EXPAND": "
|
|
13
|
-
"SELECT_ICON": "
|
|
14
|
-
"MUSE_FUNCTION": "openDialog
|
|
15
|
-
"NEED_RENDER": "
|
|
16
|
-
"SEARCH": "
|
|
17
|
-
"RESET": "
|
|
18
|
-
"PLEASE_INPUT": "
|
|
19
|
-
"PLEASE_SELECT": "
|
|
20
|
-
"PLEASE_SET_ICON": "
|
|
21
|
-
"INPUT_FILTER": "
|
|
22
|
-
"EXIT_FULLSCREEN": "
|
|
23
|
-
"FULLSCREEN": "
|
|
24
|
-
"SAVE": "
|
|
25
|
-
"CLOSE": "
|
|
26
|
-
"ADD_SUCCESS": "
|
|
27
|
-
"UPDATE_SUCCESS": "
|
|
28
|
-
"MULTIFY": "
|
|
29
|
-
"DELETE_SUCCESS": "
|
|
30
|
-
"COLUMN_CONTROL": "
|
|
31
|
-
"COLUMN_SHOW": "
|
|
32
|
-
"INDEX": "
|
|
33
|
-
"CHECKBOX": "
|
|
34
|
-
"FIXED_TO_LEFT": "
|
|
35
|
-
"FIXED_TO_RIGHT": "
|
|
36
|
-
"EXPORT": "
|
|
37
|
-
"EXPORT_CURRENT_PAGE": "
|
|
38
|
-
"EXPORT_SELECT_COLUMN": "
|
|
39
|
-
"EXPORT_ALL": "
|
|
40
|
-
"SELECT_ALL": "
|
|
41
|
-
"SETTING_EXPORT_COLUMN": "
|
|
42
|
-
"NO_EXPORT_COLUMN": "
|
|
43
|
-
"NUMBER": "
|
|
44
|
-
"ACTIONS": "
|
|
45
|
-
"TOTAL_PAGE": "
|
|
46
|
-
"FILTER": "
|
|
47
|
-
"EXPAND_ALL": "
|
|
48
|
-
"COLLAPSE_ALL": "
|
|
49
|
-
"SELECT_ALL1": "
|
|
50
|
-
"CANCEL_SELECT_ALL": "
|
|
51
|
-
"LEVEL_CONNECTION": "
|
|
52
|
-
"LEVEL_SOLATE": "
|
|
53
|
-
"LOADING": "
|
|
54
|
-
"SUPPORT_FILES": "
|
|
55
|
-
"MAX_SIZE": "
|
|
56
|
-
"MAX_NUMBER": "
|
|
57
|
-
"SUPPORT_TYPES": "
|
|
58
|
-
"FILE_UPLOAD": "
|
|
59
|
-
"FILE_NAME": "
|
|
60
|
-
"FILE_STATUS": "
|
|
61
|
-
"PREVIEW": "
|
|
62
|
-
"DELETE": "
|
|
63
|
-
"HISTORY_UPLOAD": "
|
|
64
|
-
"MAX_MB": "
|
|
65
|
-
"PRE_UPLOAD": "
|
|
66
|
-
"COMPANY_NAME": "
|
|
67
|
-
"FILTER_MORE": "
|
|
68
|
-
"LARGE_SIZE": "
|
|
69
|
-
"MIDDLE_SIZE": "
|
|
70
|
-
"SMALL_SIZE": "
|
|
71
|
-
"MODIFY_PASSWORD": "
|
|
72
|
-
"LOGIN_OUT": "
|
|
73
|
-
"CLOSE_CURRENT_TAG": "
|
|
74
|
-
"CLOSE_LEFT_TAGS": "
|
|
75
|
-
"CLOSE_RIGHT_TAGS": "
|
|
76
|
-
"CLOSE_OTHER_TAGS": "
|
|
77
|
-
"CLOSE_ALL_TAGE": "
|
|
78
|
-
"SETTING_THEME": "
|
|
79
|
-
"PROJECT_SETTING": "
|
|
80
|
-
"NAV_MODE": "
|
|
81
|
-
"PAGE_SHOW": "
|
|
82
|
-
"COPY": "
|
|
83
|
-
"DRAWER_TIPS": "
|
|
84
|
-
"FULL": "
|
|
85
|
-
"FIXED": "
|
|
86
|
-
"BREAD_CURB": "
|
|
87
|
-
"MENU_FILTER": "
|
|
88
|
-
"NOTICE": "
|
|
89
|
-
"SHOW_FULLE": "
|
|
90
|
-
"LOCAL": "
|
|
91
|
-
"ROUTE_REUSE": "
|
|
92
|
-
"SHOW_FOOTER": "
|
|
93
|
-
"CONTENT_FIXED_WIDTH": "
|
|
94
|
-
"ON": "
|
|
95
|
-
"OFF": "
|
|
96
|
-
"
|
|
3
|
+
"ADD": "Add ",
|
|
4
|
+
"DELETE_CONFIRM": "Delete Confirm",
|
|
5
|
+
"CONFIRM_DELETE": "Confirm that you want to delete the selected data?",
|
|
6
|
+
"NEED_CURD": "Missing curd function configuration, pass the curd parameter returned by useSource to the useCurd configuration option!",
|
|
7
|
+
"EDIT": "Edit ",
|
|
8
|
+
"EMPTY": "No Selected Data Yet!",
|
|
9
|
+
"MULTIFY_DELETE_CONFIRM": "Batch Deletion Confirmation",
|
|
10
|
+
"CONFIRM_MULTIFY_DELETE": "Confirm that you want to delete the selected data in batches?",
|
|
11
|
+
"ADVANCED": "Retract",
|
|
12
|
+
"EXPAND": "Expand",
|
|
13
|
+
"SELECT_ICON": "Select Icon",
|
|
14
|
+
"MUSE_FUNCTION": "openDialog must be a fouction",
|
|
15
|
+
"NEED_RENDER": "Configure the render function",
|
|
16
|
+
"SEARCH": "Search",
|
|
17
|
+
"RESET": "Reset",
|
|
18
|
+
"PLEASE_INPUT": "Please Input",
|
|
19
|
+
"PLEASE_SELECT": "Please Select",
|
|
20
|
+
"PLEASE_SET_ICON": "Please Set The Icon",
|
|
21
|
+
"INPUT_FILTER": "Enter Filter Criteria",
|
|
22
|
+
"EXIT_FULLSCREEN": "Exit Full Screen",
|
|
23
|
+
"FULLSCREEN": "Full Screen",
|
|
24
|
+
"SAVE": "Save",
|
|
25
|
+
"CLOSE": "Close",
|
|
26
|
+
"ADD_SUCCESS": "Add Success!",
|
|
27
|
+
"UPDATE_SUCCESS": "Update data successfully!",
|
|
28
|
+
"MULTIFY": "Batch",
|
|
29
|
+
"DELETE_SUCCESS": "Successfully delete!",
|
|
30
|
+
"COLUMN_CONTROL": "Column Control",
|
|
31
|
+
"COLUMN_SHOW": "Column Show",
|
|
32
|
+
"INDEX": "Serial Number",
|
|
33
|
+
"CHECKBOX": "Checkbox",
|
|
34
|
+
"FIXED_TO_LEFT": "Fixed to the left",
|
|
35
|
+
"FIXED_TO_RIGHT": "Fixed to the right",
|
|
36
|
+
"EXPORT": "Export",
|
|
37
|
+
"EXPORT_CURRENT_PAGE": "Export the current page",
|
|
38
|
+
"EXPORT_SELECT_COLUMN": "Export Selected columns",
|
|
39
|
+
"EXPORT_ALL": "Export all columns",
|
|
40
|
+
"SELECT_ALL": "Select All",
|
|
41
|
+
"SETTING_EXPORT_COLUMN": "Setting the export column",
|
|
42
|
+
"NO_EXPORT_COLUMN": "There are no exported columns!",
|
|
43
|
+
"NUMBER": "Number",
|
|
44
|
+
"ACTIONS": "Actions",
|
|
45
|
+
"TOTAL_PAGE": "Total {total}",
|
|
46
|
+
"FILTER": "Filter",
|
|
47
|
+
"EXPAND_ALL": "Expand All",
|
|
48
|
+
"COLLAPSE_ALL": "Collapse All",
|
|
49
|
+
"SELECT_ALL1": "Select All",
|
|
50
|
+
"CANCEL_SELECT_ALL": "Cancel Select All",
|
|
51
|
+
"LEVEL_CONNECTION": "Level Connection",
|
|
52
|
+
"LEVEL_SOLATE": "Independent Hierarchy",
|
|
53
|
+
"LOADING": "Loading...",
|
|
54
|
+
"SUPPORT_FILES": "Support {message} format",
|
|
55
|
+
"MAX_SIZE": "Not exceeding {maxSize}M",
|
|
56
|
+
"MAX_NUMBER": "A maximum of {maxNumber} files can be selected",
|
|
57
|
+
"SUPPORT_TYPES": "Upload Types: pptx、doc、jpg、jpeg、png、bmp、gif、xls、xlsx、txt、rar、zip、7z、tar、gz",
|
|
58
|
+
"FILE_UPLOAD": "Files Upload",
|
|
59
|
+
"FILE_NAME": "File Name",
|
|
60
|
+
"FILE_STATUS": "Upload Status",
|
|
61
|
+
"PREVIEW": "Preview",
|
|
62
|
+
"DELETE": "Delete",
|
|
63
|
+
"HISTORY_UPLOAD": "History Upload",
|
|
64
|
+
"MAX_MB": "Only files up to {maxSize}MB can be uploaded!",
|
|
65
|
+
"PRE_UPLOAD": "To Upload",
|
|
66
|
+
"COMPANY_NAME": "Longi Co overseas tax system",
|
|
67
|
+
"FILTER_MORE": "Search...",
|
|
68
|
+
"LARGE_SIZE": "Large Size",
|
|
69
|
+
"MIDDLE_SIZE": "Middle Size",
|
|
70
|
+
"SMALL_SIZE": "Small Size",
|
|
71
|
+
"MODIFY_PASSWORD": "Modify Password",
|
|
72
|
+
"LOGIN_OUT": "Log out",
|
|
73
|
+
"CLOSE_CURRENT_TAG": "Close the current tab",
|
|
74
|
+
"CLOSE_LEFT_TAGS": "Close the left tab",
|
|
75
|
+
"CLOSE_RIGHT_TAGS": "Close the right tab",
|
|
76
|
+
"CLOSE_OTHER_TAGS": "Close other tabs",
|
|
77
|
+
"CLOSE_ALL_TAGE": "Close All",
|
|
78
|
+
"SETTING_THEME": "Style Settings",
|
|
79
|
+
"PROJECT_SETTING": "Project Configuration",
|
|
80
|
+
"NAV_MODE": "Navigation bar mode",
|
|
81
|
+
"PAGE_SHOW": "Interface Display",
|
|
82
|
+
"COPY": "Copy",
|
|
83
|
+
"DRAWER_TIPS": "The function mainly real-time preview layout effect, more complete configuration in the SRC/core/Settings/theme.ts. The layout preview function will be turned off in production.",
|
|
84
|
+
"FULL": "Flow-based",
|
|
85
|
+
"FIXED": "Fixed width",
|
|
86
|
+
"BREAD_CURB": "Bread crumbs",
|
|
87
|
+
"MENU_FILTER": "Menu search",
|
|
88
|
+
"NOTICE": "Notification",
|
|
89
|
+
"SHOW_FULLE": "Page full screen",
|
|
90
|
+
"LOCAL": "Internationalization",
|
|
91
|
+
"ROUTE_REUSE": "Routing reuse",
|
|
92
|
+
"SHOW_FOOTER": "Show Footer",
|
|
93
|
+
"CONTENT_FIXED_WIDTH": "Content area width",
|
|
94
|
+
"ON": "On",
|
|
95
|
+
"OFF": "Off",
|
|
96
|
+
"UNKNOWN_ROUTE": "Unknown route"
|
|
97
97
|
}
|
|
98
98
|
}
|
package/es/index.js
CHANGED
|
@@ -3095,7 +3095,6 @@ var _sfc_main$P = defineComponent({
|
|
|
3095
3095
|
let value = unref(getValues);
|
|
3096
3096
|
let _con = slot ? getSlot(slots, slot, value) : render2 ? render2(value) : renderFormItem();
|
|
3097
3097
|
return component === "InputGroup" || component === "Icon" ? createVNode(FormItem, {
|
|
3098
|
-
"rules": handleRules(),
|
|
3099
3098
|
"class": "M0"
|
|
3100
3099
|
}, _isSlot(_con) ? _con : {
|
|
3101
3100
|
default: () => [_con]
|
|
@@ -3204,7 +3203,6 @@ var _sfc_main$P = defineComponent({
|
|
|
3204
3203
|
});
|
|
3205
3204
|
const itemProps = {
|
|
3206
3205
|
allowClear: appConf.ui.form.allowClear,
|
|
3207
|
-
getPopupContainer: (trigger) => trigger.parentNode,
|
|
3208
3206
|
size: unref(getUiSize) === "middle" ? "default" : unref(getUiSize),
|
|
3209
3207
|
...unref(getComponentProps),
|
|
3210
3208
|
disabled: unref(getDisable)
|
|
@@ -3260,11 +3258,11 @@ var _sfc_main$P = defineComponent({
|
|
|
3260
3258
|
}
|
|
3261
3259
|
return Promise.resolve();
|
|
3262
3260
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
rules = [{
|
|
3261
|
+
if (!rules || !rules.length) {
|
|
3262
|
+
rules = getRequired ? [{
|
|
3265
3263
|
required: getRequired,
|
|
3266
3264
|
validator
|
|
3267
|
-
}];
|
|
3265
|
+
}] : [];
|
|
3268
3266
|
}
|
|
3269
3267
|
const requiredIndex = rules.findIndex((rule) => Reflect.has(rule, "required") && !Reflect.has(rule, "validator"));
|
|
3270
3268
|
if (requiredIndex !== -1) {
|
|
@@ -3558,7 +3556,7 @@ function useFormValues({
|
|
|
3558
3556
|
if (SINGLE_DATA_TYPE.includes(schema == null ? void 0 : schema.component)) {
|
|
3559
3557
|
value = dayjs(value).valueOf();
|
|
3560
3558
|
} else if (MULTIFY_DATA_TYPE.includes(schema == null ? void 0 : schema.component)) {
|
|
3561
|
-
value = value.map((item) => dayjs(item).valueOf());
|
|
3559
|
+
value = (value || []).map((item) => dayjs(item).valueOf());
|
|
3562
3560
|
}
|
|
3563
3561
|
if (isString(value)) {
|
|
3564
3562
|
value = value.trim();
|
|
@@ -5255,6 +5253,13 @@ var _sfc_main$I = defineComponent({
|
|
|
5255
5253
|
},
|
|
5256
5254
|
setup(props) {
|
|
5257
5255
|
let renderText = ref();
|
|
5256
|
+
watch(() => props.record, (v) => {
|
|
5257
|
+
if (v)
|
|
5258
|
+
renderCell();
|
|
5259
|
+
}, {
|
|
5260
|
+
immediate: true,
|
|
5261
|
+
deep: true
|
|
5262
|
+
});
|
|
5258
5263
|
function renderCell() {
|
|
5259
5264
|
var _a;
|
|
5260
5265
|
const {
|
|
@@ -5307,7 +5312,7 @@ var _sfc_main$I = defineComponent({
|
|
|
5307
5312
|
});
|
|
5308
5313
|
}
|
|
5309
5314
|
} else {
|
|
5310
|
-
renderText.value = text;
|
|
5315
|
+
renderText.value = unref(text);
|
|
5311
5316
|
}
|
|
5312
5317
|
if (isFunction(render2)) {
|
|
5313
5318
|
let afterRenderData = render2(record, index2, text);
|
|
@@ -5318,7 +5323,6 @@ var _sfc_main$I = defineComponent({
|
|
|
5318
5323
|
}
|
|
5319
5324
|
}
|
|
5320
5325
|
}
|
|
5321
|
-
renderCell();
|
|
5322
5326
|
return () => createVNode("span", null, [unref(renderText)]);
|
|
5323
5327
|
}
|
|
5324
5328
|
});
|
|
@@ -6381,7 +6385,10 @@ function useTableHeader(propsRef, slots, handlers) {
|
|
|
6381
6385
|
const getHeaderProps = computed(() => {
|
|
6382
6386
|
const { tableSetting, toolbar } = unref(propsRef);
|
|
6383
6387
|
const { getSlot } = useSlots();
|
|
6384
|
-
const hideTitle = !toolbar
|
|
6388
|
+
const hideTitle = (!toolbar || !toolbar.filter((it) => {
|
|
6389
|
+
var _a;
|
|
6390
|
+
return (_a = it.show) != null ? _a : true;
|
|
6391
|
+
}).length) && !slots.toolbar && !slots.headerTop && !tableSetting;
|
|
6385
6392
|
return {
|
|
6386
6393
|
title: hideTitle ? null : () => h(TableHeader, {
|
|
6387
6394
|
tableTools: tableSetting,
|
|
@@ -8352,6 +8359,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8352
8359
|
go(Pages.LOGIN);
|
|
8353
8360
|
}
|
|
8354
8361
|
}
|
|
8362
|
+
function modifyPassword() {
|
|
8363
|
+
}
|
|
8355
8364
|
return (_ctx, _cache) => {
|
|
8356
8365
|
const _directive_icon = resolveDirective("icon");
|
|
8357
8366
|
return openBlock(), createBlock(unref(Popover), {
|
|
@@ -8371,14 +8380,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8371
8380
|
createTextVNode(" " + toDisplayString(it.label), 1)
|
|
8372
8381
|
], 8, _hoisted_2$7);
|
|
8373
8382
|
}), 256)),
|
|
8374
|
-
createElementVNode("li",
|
|
8383
|
+
createElementVNode("li", {
|
|
8384
|
+
onClick: _cache[0] || (_cache[0] = ($event) => modifyPassword())
|
|
8385
|
+
}, [
|
|
8375
8386
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
8376
8387
|
[_directive_icon, "ic:baseline-key"]
|
|
8377
8388
|
]),
|
|
8378
8389
|
createTextVNode(toDisplayString(unref(t)("MODIFY_PASSWORD")), 1)
|
|
8379
8390
|
]),
|
|
8380
8391
|
createElementVNode("li", {
|
|
8381
|
-
onClick: _cache[
|
|
8392
|
+
onClick: _cache[1] || (_cache[1] = ($event) => signOut())
|
|
8382
8393
|
}, [
|
|
8383
8394
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
8384
8395
|
[_directive_icon, "ant-design:logout-outlined"]
|
|
@@ -10020,6 +10031,7 @@ function useTabsDrag(affixList) {
|
|
|
10020
10031
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
10021
10032
|
__name: "index",
|
|
10022
10033
|
setup(__props) {
|
|
10034
|
+
const { t } = useI18n("UI");
|
|
10023
10035
|
const menuLabelMap = menuList2Map();
|
|
10024
10036
|
const { getShowQuick, getShowRedo } = useMultipleTab();
|
|
10025
10037
|
const activeKeyRef = ref("");
|
|
@@ -10088,7 +10100,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
10088
10100
|
closable: !(item && item.meta && item.meta.affix)
|
|
10089
10101
|
}, {
|
|
10090
10102
|
tab: withCtx(() => [
|
|
10091
|
-
createElementVNode("span", null, toDisplayString(unref(menuLabelMap).get(item.path) || "
|
|
10103
|
+
createElementVNode("span", null, toDisplayString(unref(menuLabelMap).get(item.path) || unref(t)("UNKNOWN_ROUTE")), 1)
|
|
10092
10104
|
]),
|
|
10093
10105
|
_: 2
|
|
10094
10106
|
}, 1032, ["closable"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-frames/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ui",
|
|
6
6
|
"dt-ui"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"lodash-es": "^4.17.21",
|
|
25
25
|
"sortablejs": "^1.15.0",
|
|
26
26
|
"spark-md5": "^3.0.2",
|
|
27
|
+
"typescript": "4.8.4",
|
|
27
28
|
"vue": "^3.2.25",
|
|
28
29
|
"vue-router": "^4.0.12",
|
|
29
30
|
"xlsx": "^0.18.5"
|