@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.
@@ -1,98 +1,97 @@
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"
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 ((!rules || !rules.length) && getRequired) {
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", null, [
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[0] || (_cache[0] = ($event) => signOut())
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.33",
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"