@dt-frames/ui 1.0.33 → 1.0.34
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 +93 -94
- package/es/index.js +19 -10
- package/package.json +2 -1
|
@@ -1,98 +1,97 @@
|
|
|
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
|
-
"DOWNLOAD": "Download"
|
|
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"
|
|
97
96
|
}
|
|
98
97
|
}
|
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]
|
|
@@ -3260,11 +3259,11 @@ var _sfc_main$P = defineComponent({
|
|
|
3260
3259
|
}
|
|
3261
3260
|
return Promise.resolve();
|
|
3262
3261
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
rules = [{
|
|
3262
|
+
if (!rules || !rules.length) {
|
|
3263
|
+
rules = getRequired ? [{
|
|
3265
3264
|
required: getRequired,
|
|
3266
3265
|
validator
|
|
3267
|
-
}];
|
|
3266
|
+
}] : [];
|
|
3268
3267
|
}
|
|
3269
3268
|
const requiredIndex = rules.findIndex((rule) => Reflect.has(rule, "required") && !Reflect.has(rule, "validator"));
|
|
3270
3269
|
if (requiredIndex !== -1) {
|
|
@@ -3558,7 +3557,7 @@ function useFormValues({
|
|
|
3558
3557
|
if (SINGLE_DATA_TYPE.includes(schema == null ? void 0 : schema.component)) {
|
|
3559
3558
|
value = dayjs(value).valueOf();
|
|
3560
3559
|
} else if (MULTIFY_DATA_TYPE.includes(schema == null ? void 0 : schema.component)) {
|
|
3561
|
-
value = value.map((item) => dayjs(item).valueOf());
|
|
3560
|
+
value = (value || []).map((item) => dayjs(item).valueOf());
|
|
3562
3561
|
}
|
|
3563
3562
|
if (isString(value)) {
|
|
3564
3563
|
value = value.trim();
|
|
@@ -5255,6 +5254,13 @@ var _sfc_main$I = defineComponent({
|
|
|
5255
5254
|
},
|
|
5256
5255
|
setup(props) {
|
|
5257
5256
|
let renderText = ref();
|
|
5257
|
+
watch(() => props.record, (v) => {
|
|
5258
|
+
if (v)
|
|
5259
|
+
renderCell();
|
|
5260
|
+
}, {
|
|
5261
|
+
immediate: true,
|
|
5262
|
+
deep: true
|
|
5263
|
+
});
|
|
5258
5264
|
function renderCell() {
|
|
5259
5265
|
var _a;
|
|
5260
5266
|
const {
|
|
@@ -5307,7 +5313,7 @@ var _sfc_main$I = defineComponent({
|
|
|
5307
5313
|
});
|
|
5308
5314
|
}
|
|
5309
5315
|
} else {
|
|
5310
|
-
renderText.value = text;
|
|
5316
|
+
renderText.value = unref(text);
|
|
5311
5317
|
}
|
|
5312
5318
|
if (isFunction(render2)) {
|
|
5313
5319
|
let afterRenderData = render2(record, index2, text);
|
|
@@ -5318,7 +5324,6 @@ var _sfc_main$I = defineComponent({
|
|
|
5318
5324
|
}
|
|
5319
5325
|
}
|
|
5320
5326
|
}
|
|
5321
|
-
renderCell();
|
|
5322
5327
|
return () => createVNode("span", null, [unref(renderText)]);
|
|
5323
5328
|
}
|
|
5324
5329
|
});
|
|
@@ -6381,7 +6386,7 @@ function useTableHeader(propsRef, slots, handlers) {
|
|
|
6381
6386
|
const getHeaderProps = computed(() => {
|
|
6382
6387
|
const { tableSetting, toolbar } = unref(propsRef);
|
|
6383
6388
|
const { getSlot } = useSlots();
|
|
6384
|
-
const hideTitle = !toolbar && !slots.toolbar && !slots.headerTop && !tableSetting;
|
|
6389
|
+
const hideTitle = (!toolbar || !toolbar.filter((it) => it.show).length) && !slots.toolbar && !slots.headerTop && !tableSetting;
|
|
6385
6390
|
return {
|
|
6386
6391
|
title: hideTitle ? null : () => h(TableHeader, {
|
|
6387
6392
|
tableTools: tableSetting,
|
|
@@ -8352,6 +8357,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8352
8357
|
go(Pages.LOGIN);
|
|
8353
8358
|
}
|
|
8354
8359
|
}
|
|
8360
|
+
function modifyPassword() {
|
|
8361
|
+
}
|
|
8355
8362
|
return (_ctx, _cache) => {
|
|
8356
8363
|
const _directive_icon = resolveDirective("icon");
|
|
8357
8364
|
return openBlock(), createBlock(unref(Popover), {
|
|
@@ -8371,14 +8378,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8371
8378
|
createTextVNode(" " + toDisplayString(it.label), 1)
|
|
8372
8379
|
], 8, _hoisted_2$7);
|
|
8373
8380
|
}), 256)),
|
|
8374
|
-
createElementVNode("li",
|
|
8381
|
+
createElementVNode("li", {
|
|
8382
|
+
onClick: _cache[0] || (_cache[0] = ($event) => modifyPassword())
|
|
8383
|
+
}, [
|
|
8375
8384
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
8376
8385
|
[_directive_icon, "ic:baseline-key"]
|
|
8377
8386
|
]),
|
|
8378
8387
|
createTextVNode(toDisplayString(unref(t)("MODIFY_PASSWORD")), 1)
|
|
8379
8388
|
]),
|
|
8380
8389
|
createElementVNode("li", {
|
|
8381
|
-
onClick: _cache[
|
|
8390
|
+
onClick: _cache[1] || (_cache[1] = ($event) => signOut())
|
|
8382
8391
|
}, [
|
|
8383
8392
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
8384
8393
|
[_directive_icon, "ant-design:logout-outlined"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-frames/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
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"
|