@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.
@@ -1,98 +1,98 @@
1
1
  {
2
2
  "UI": {
3
- "ADD": "新增",
4
- "DELETE_CONFIRM": "删除确认",
5
- "CONFIRM_DELETE": "确认要删除选中的数据?",
6
- "NEED_CURD": "缺少curd函数配置, 请将useSource中返回的curd参数传入useCurd配置项中!",
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": "请配置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": "总共{total}",
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": "支持${message}格式",
55
- "MAX_SIZE": "不超过{maxSize}M",
56
- "MAX_NUMBER": "最多可选择{maxNumber}个文件",
57
- "SUPPORT_TYPES": "请上传pptx、doc、jpg、jpeg、png、bmp、gif、xls、xlsx、txt、rar、zip、7z、tar、gz格式文件",
58
- "FILE_UPLOAD": "文件上传",
59
- "FILE_NAME": "文件名称",
60
- "FILE_STATUS": "上传状态",
61
- "PREVIEW": "预览",
62
- "DELETE": "删除",
63
- "HISTORY_UPLOAD": "历史上传",
64
- "MAX_MB": "只能上传不超过{maxSize}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": "该功能主要实时预览各种布局效果,更多完整配置在 src/core/settings/theme.ts 中设置,在生产环境该布局预览功能将被关闭。",
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",
96
+ "UNKNOWN_ROUTE": "Unknown route"
97
97
  }
98
98
  }
@@ -94,6 +94,7 @@
94
94
  "CONTENT_FIXED_WIDTH": "内容区域宽度",
95
95
  "ON": "开",
96
96
  "OFF": "关",
97
- "DOWNLOAD": "下载"
97
+ "DOWNLOAD": "下载",
98
+ "UNKNOWN_ROUTE": "未知路由"
98
99
  }
99
100
  }
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 ((!rules || !rules.length) && getRequired) {
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 && !slots.toolbar && !slots.headerTop && !tableSetting;
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", null, [
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[0] || (_cache[0] = ($event) => signOut())
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) || "\u672A\u77E5\u8DEF\u7531"), 1)
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.33",
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"