@spacego/fe-components 0.2.2 → 0.3.0
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/fe-form/fe-form-select/index.js +26 -30
- package/lib/fe-layouts/auth-layout/index.js +4 -4
- package/lib/fe-layouts/basics-layout/index.js +5 -3
- package/lib/fe-layouts/layout.js +27 -25
- package/lib/fe-table/fe-edit-table-cell/index.js +4 -4
- package/lib/fe-table/fe-normal-table/index.js +3 -3
- package/lib/fe-table/fe-table-link/index.js +3 -3
- package/lib/fe-table/fe-table-toolbar/index.js +4 -4
- package/lib/fe-table/use-table/index.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.js +149 -149
- package/lib/node_modules/.pnpm/@rc-component_pagination@1.2.0_nnrd3gsncyragczmpvfhocinkq/node_modules/@rc-component/pagination/es/locale/zh_CN.js +18 -0
- package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/common.js +9 -0
- package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/zh_CN.js +78 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/calendar/locale/zh_CN.js +4 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/date-picker/locale/zh_CN.js +24 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/locale/zh_CN.js +146 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/time-picker/locale/zh_CN.js +7 -0
- package/lib/store/modules/layout-config.store.js +4 -4
- package/lib/store/modules/theme.store.js +4 -4
- package/lib/types/fe-auto-complete/auto-complete.d.ts +2 -0
- package/lib/types/fe-auto-complete/index.d.ts +3 -2
- package/lib/types/fe-button/button.d.ts +16 -0
- package/lib/types/fe-button/index.d.ts +3 -16
- package/lib/types/fe-cascader/cascader.d.ts +7 -0
- package/lib/types/fe-cascader/index.d.ts +3 -7
- package/lib/types/fe-checkbox/checkbox.d.ts +6 -0
- package/lib/types/fe-checkbox/index.d.ts +3 -6
- package/lib/types/fe-checkbox-group/checkbox-group.d.ts +5 -0
- package/lib/types/fe-checkbox-group/index.d.ts +3 -5
- package/lib/types/fe-date-picker/date-picker.d.ts +3 -0
- package/lib/types/fe-date-picker/index.d.ts +3 -3
- package/lib/types/fe-description-render/description-render.d.ts +31 -0
- package/lib/types/fe-description-render/index.d.ts +8 -31
- package/lib/types/fe-descriptions/descriptions.d.ts +2 -0
- package/lib/types/fe-descriptions/index.d.ts +3 -2
- package/lib/types/fe-empty/empty.d.ts +2 -0
- package/lib/types/fe-empty/index.d.ts +3 -2
- package/lib/types/fe-error-block/error-block.d.ts +6 -0
- package/lib/types/fe-error-block/index.d.ts +3 -6
- package/lib/types/fe-form/fe-form/form.d.ts +354 -0
- package/lib/types/fe-form/fe-form/index.d.ts +3 -354
- package/lib/types/fe-form/fe-form-auto-complete/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-btn-group/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-cascader/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-checkbox-group/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-date-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-date-range-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input-input/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input-number/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-item/form-item.d.ts +66 -0
- package/lib/types/fe-form/fe-form-item/index.d.ts +3 -68
- package/lib/types/fe-form/fe-form-label/form-label.d.ts +43 -0
- package/lib/types/fe-form/fe-form-label/index.d.ts +3 -43
- package/lib/types/fe-form/fe-form-radio/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-render/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-rich-text/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-select/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-switch/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-text/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-text-area/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-time-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-upload/index.d.ts +1 -1
- package/lib/types/fe-form/index.d.ts +4 -4
- package/lib/types/fe-form/utils/index.d.ts +1 -1
- package/lib/types/fe-input/index.d.ts +3 -12
- package/lib/types/fe-input/input.d.ts +12 -0
- package/lib/types/fe-input-number/index.d.ts +3 -2
- package/lib/types/fe-input-number/input-number.d.ts +2 -0
- package/lib/types/fe-link/index.d.ts +3 -6
- package/lib/types/fe-link/link.d.ts +6 -0
- package/lib/types/fe-loading/index.d.ts +1 -1
- package/lib/types/fe-map/index.d.ts +3 -73
- package/lib/types/fe-map/map.d.ts +73 -0
- package/lib/types/fe-modal/index.d.ts +3 -20
- package/lib/types/fe-modal/modal.d.ts +20 -0
- package/lib/types/fe-pagination/index.d.ts +3 -2
- package/lib/types/fe-pagination/pagination.d.ts +2 -0
- package/lib/types/fe-panel/index.d.ts +3 -61
- package/lib/types/fe-panel/panel-toolbar.d.ts +1 -1
- package/lib/types/fe-panel/panel.d.ts +61 -0
- package/lib/types/fe-permission/index.d.ts +3 -10
- package/lib/types/fe-permission/permission.d.ts +10 -0
- package/lib/types/fe-permission-provider/index.d.ts +3 -8
- package/lib/types/fe-permission-provider/permission-provider.d.ts +8 -0
- package/lib/types/fe-radio/index.d.ts +3 -2
- package/lib/types/fe-radio/radio.d.ts +2 -0
- package/lib/types/fe-radio-group/index.d.ts +3 -2
- package/lib/types/fe-radio-group/radio-group.d.ts +2 -0
- package/lib/types/fe-rich-text/index.d.ts +3 -167
- package/lib/types/fe-rich-text/rich-text.d.ts +167 -0
- package/lib/types/fe-select/index.d.ts +3 -8
- package/lib/types/fe-select/select.d.ts +8 -0
- package/lib/types/fe-switch/index.d.ts +3 -2
- package/lib/types/fe-switch/switch.d.ts +2 -0
- package/lib/types/fe-table/fe-table-link/index.d.ts +3 -10
- package/lib/types/fe-table/fe-table-link/table-link.d.ts +10 -0
- package/lib/types/fe-table/fe-table-render/index.d.ts +3 -11
- package/lib/types/fe-table/fe-table-render/table-render.d.ts +11 -0
- package/lib/types/fe-table/fe-table-toolbar/index.d.ts +3 -16
- package/lib/types/fe-table/fe-table-toolbar/table-toolbar.d.ts +16 -0
- package/lib/types/fe-table/index.d.ts +2 -2
- package/lib/types/fe-table/type/table.d.ts +0 -2
- package/lib/types/fe-table/use-table/index.d.ts +1 -1
- package/lib/types/fe-text-area/index.d.ts +3 -4
- package/lib/types/fe-text-area/text-area.d.ts +4 -0
- package/lib/types/fe-time-picker/index.d.ts +3 -3
- package/lib/types/fe-time-picker/time-picker.d.ts +3 -0
- package/lib/types/fe-upload/index.d.ts +3 -85
- package/lib/types/fe-upload/upload.d.ts +85 -0
- package/lib/types/fe-upload-atomic/index.d.ts +3 -2
- package/lib/types/fe-upload-atomic/upload-atomic.d.ts +2 -0
- package/lib/types/fe-upload-crop/index.d.ts +2 -2
- package/lib/types/hooks/index.d.ts +1 -0
- package/lib/types/hooks/{use-descriptions → use-descriptions.hook}/index.d.ts +1 -1
- package/lib/types/hooks/use-descriptions.hook/use-descriptions.d.ts +151 -0
- package/lib/types/hooks/use-form.hook/index.d.ts +3 -0
- package/lib/types/hooks/{use-form/index.d.ts → use-form.hook/use-form.d.ts} +1 -1
- package/lib/types/hooks/use-permission.hook/index.d.ts +10 -10
- package/lib/types/hooks/use-permission.hook/use-permission.d.ts +10 -0
- package/lib/types/index.d.ts +30 -0
- package/package.json +1 -1
- package/lib/fe-table/type/table.d.js +0 -4
- /package/lib/hooks/{use-form → use-form.hook}/index.js +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// Options
|
|
3
|
+
items_per_page: "条/页",
|
|
4
|
+
jump_to: "跳至",
|
|
5
|
+
jump_to_confirm: "确定",
|
|
6
|
+
page: "页",
|
|
7
|
+
// Pagination
|
|
8
|
+
prev_page: "上一页",
|
|
9
|
+
next_page: "下一页",
|
|
10
|
+
prev_5: "向前 5 页",
|
|
11
|
+
next_5: "向后 5 页",
|
|
12
|
+
prev_3: "向前 3 页",
|
|
13
|
+
next_3: "向后 3 页",
|
|
14
|
+
page_size: "页码"
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
e as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { commonLocale as a } from "./common.js";
|
|
2
|
+
function n(t) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
+
return typeof e;
|
|
6
|
+
} : function(e) {
|
|
7
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
+
}, n(t);
|
|
9
|
+
}
|
|
10
|
+
function i(t, e) {
|
|
11
|
+
var r = Object.keys(t);
|
|
12
|
+
if (Object.getOwnPropertySymbols) {
|
|
13
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
14
|
+
e && (o = o.filter(function(u) {
|
|
15
|
+
return Object.getOwnPropertyDescriptor(t, u).enumerable;
|
|
16
|
+
})), r.push.apply(r, o);
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}
|
|
20
|
+
function c(t) {
|
|
21
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
22
|
+
var r = arguments[e] != null ? arguments[e] : {};
|
|
23
|
+
e % 2 ? i(Object(r), !0).forEach(function(o) {
|
|
24
|
+
l(t, o, r[o]);
|
|
25
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : i(Object(r)).forEach(function(o) {
|
|
26
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(r, o));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
function l(t, e, r) {
|
|
32
|
+
return e = f(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
33
|
+
}
|
|
34
|
+
function f(t) {
|
|
35
|
+
var e = p(t, "string");
|
|
36
|
+
return n(e) == "symbol" ? e : String(e);
|
|
37
|
+
}
|
|
38
|
+
function p(t, e) {
|
|
39
|
+
if (n(t) != "object" || !t) return t;
|
|
40
|
+
var r = t[Symbol.toPrimitive];
|
|
41
|
+
if (r !== void 0) {
|
|
42
|
+
var o = r.call(t, e);
|
|
43
|
+
if (n(o) != "object") return o;
|
|
44
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
+
}
|
|
46
|
+
return (e === "string" ? String : Number)(t);
|
|
47
|
+
}
|
|
48
|
+
var m = c(c({}, a), {}, {
|
|
49
|
+
locale: "zh_CN",
|
|
50
|
+
today: "今天",
|
|
51
|
+
now: "此刻",
|
|
52
|
+
backToToday: "返回今天",
|
|
53
|
+
ok: "确定",
|
|
54
|
+
timeSelect: "选择时间",
|
|
55
|
+
dateSelect: "选择日期",
|
|
56
|
+
weekSelect: "选择周",
|
|
57
|
+
clear: "清除",
|
|
58
|
+
week: "周",
|
|
59
|
+
month: "月",
|
|
60
|
+
year: "年",
|
|
61
|
+
previousMonth: "上个月 (翻页上键)",
|
|
62
|
+
nextMonth: "下个月 (翻页下键)",
|
|
63
|
+
monthSelect: "选择月份",
|
|
64
|
+
yearSelect: "选择年份",
|
|
65
|
+
decadeSelect: "选择年代",
|
|
66
|
+
previousYear: "上一年 (Control键加左方向键)",
|
|
67
|
+
nextYear: "下一年 (Control键加右方向键)",
|
|
68
|
+
previousDecade: "上一年代",
|
|
69
|
+
nextDecade: "下一年代",
|
|
70
|
+
previousCentury: "上一世纪",
|
|
71
|
+
nextCentury: "下一世纪",
|
|
72
|
+
yearFormat: "YYYY年",
|
|
73
|
+
cellDateFormat: "D",
|
|
74
|
+
monthBeforeYear: !1
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
m as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "../../../../../../@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/zh_CN.js";
|
|
2
|
+
import l from "../../time-picker/locale/zh_CN.js";
|
|
3
|
+
const a = {
|
|
4
|
+
lang: {
|
|
5
|
+
placeholder: "请选择日期",
|
|
6
|
+
yearPlaceholder: "请选择年份",
|
|
7
|
+
quarterPlaceholder: "请选择季度",
|
|
8
|
+
monthPlaceholder: "请选择月份",
|
|
9
|
+
weekPlaceholder: "请选择周",
|
|
10
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
11
|
+
rangeYearPlaceholder: ["开始年份", "结束年份"],
|
|
12
|
+
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
13
|
+
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
14
|
+
rangeWeekPlaceholder: ["开始周", "结束周"],
|
|
15
|
+
...e
|
|
16
|
+
},
|
|
17
|
+
timePickerLocale: {
|
|
18
|
+
...l
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
a.lang.ok = "确定";
|
|
22
|
+
export {
|
|
23
|
+
a as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import a from "../../../../../@rc-component_pagination@1.2.0_nnrd3gsncyragczmpvfhocinkq/node_modules/@rc-component/pagination/es/locale/zh_CN.js";
|
|
2
|
+
import l from "../date-picker/locale/zh_CN.js";
|
|
3
|
+
import t from "../time-picker/locale/zh_CN.js";
|
|
4
|
+
const e = "${label}不是一个有效的${type}", i = {
|
|
5
|
+
locale: "zh-cn",
|
|
6
|
+
Pagination: a,
|
|
7
|
+
DatePicker: l,
|
|
8
|
+
TimePicker: t,
|
|
9
|
+
Calendar: l,
|
|
10
|
+
// locales for all components
|
|
11
|
+
global: {
|
|
12
|
+
placeholder: "请选择",
|
|
13
|
+
close: "关闭",
|
|
14
|
+
sortable: "可排序"
|
|
15
|
+
},
|
|
16
|
+
Table: {
|
|
17
|
+
filterTitle: "筛选",
|
|
18
|
+
filterConfirm: "确定",
|
|
19
|
+
filterReset: "重置",
|
|
20
|
+
filterEmptyText: "无筛选项",
|
|
21
|
+
filterCheckAll: "全选",
|
|
22
|
+
filterSearchPlaceholder: "在筛选项中搜索",
|
|
23
|
+
emptyText: "暂无数据",
|
|
24
|
+
selectAll: "全选当页",
|
|
25
|
+
selectInvert: "反选当页",
|
|
26
|
+
selectNone: "清空所有",
|
|
27
|
+
selectionAll: "全选所有",
|
|
28
|
+
sortTitle: "排序",
|
|
29
|
+
expand: "展开行",
|
|
30
|
+
collapse: "关闭行",
|
|
31
|
+
triggerDesc: "点击降序",
|
|
32
|
+
triggerAsc: "点击升序",
|
|
33
|
+
cancelSort: "取消排序"
|
|
34
|
+
},
|
|
35
|
+
Modal: {
|
|
36
|
+
okText: "确定",
|
|
37
|
+
cancelText: "取消",
|
|
38
|
+
justOkText: "知道了"
|
|
39
|
+
},
|
|
40
|
+
Tour: {
|
|
41
|
+
Next: "下一步",
|
|
42
|
+
Previous: "上一步",
|
|
43
|
+
Finish: "结束导览"
|
|
44
|
+
},
|
|
45
|
+
Popconfirm: {
|
|
46
|
+
cancelText: "取消",
|
|
47
|
+
okText: "确定"
|
|
48
|
+
},
|
|
49
|
+
Transfer: {
|
|
50
|
+
titles: ["", ""],
|
|
51
|
+
searchPlaceholder: "请输入搜索内容",
|
|
52
|
+
itemUnit: "项",
|
|
53
|
+
itemsUnit: "项",
|
|
54
|
+
remove: "删除",
|
|
55
|
+
selectCurrent: "全选当页",
|
|
56
|
+
removeCurrent: "删除当页",
|
|
57
|
+
selectAll: "全选所有",
|
|
58
|
+
deselectAll: "取消全选",
|
|
59
|
+
removeAll: "删除全部",
|
|
60
|
+
selectInvert: "反选当页"
|
|
61
|
+
},
|
|
62
|
+
Upload: {
|
|
63
|
+
uploading: "文件上传中",
|
|
64
|
+
removeFile: "删除文件",
|
|
65
|
+
uploadError: "上传错误",
|
|
66
|
+
previewFile: "预览文件",
|
|
67
|
+
downloadFile: "下载文件"
|
|
68
|
+
},
|
|
69
|
+
Empty: {
|
|
70
|
+
description: "暂无数据"
|
|
71
|
+
},
|
|
72
|
+
Icon: {
|
|
73
|
+
icon: "图标"
|
|
74
|
+
},
|
|
75
|
+
Text: {
|
|
76
|
+
edit: "编辑",
|
|
77
|
+
copy: "复制",
|
|
78
|
+
copied: "复制成功",
|
|
79
|
+
expand: "展开",
|
|
80
|
+
collapse: "收起"
|
|
81
|
+
},
|
|
82
|
+
Form: {
|
|
83
|
+
optional: "(可选)",
|
|
84
|
+
defaultValidateMessages: {
|
|
85
|
+
default: "字段验证错误${label}",
|
|
86
|
+
required: "请输入${label}",
|
|
87
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
88
|
+
whitespace: "${label}不能为空字符",
|
|
89
|
+
date: {
|
|
90
|
+
format: "${label}日期格式无效",
|
|
91
|
+
parse: "${label}不能转换为日期",
|
|
92
|
+
invalid: "${label}是一个无效日期"
|
|
93
|
+
},
|
|
94
|
+
types: {
|
|
95
|
+
string: e,
|
|
96
|
+
method: e,
|
|
97
|
+
array: e,
|
|
98
|
+
object: e,
|
|
99
|
+
number: e,
|
|
100
|
+
date: e,
|
|
101
|
+
boolean: e,
|
|
102
|
+
integer: e,
|
|
103
|
+
float: e,
|
|
104
|
+
regexp: e,
|
|
105
|
+
email: e,
|
|
106
|
+
url: e,
|
|
107
|
+
hex: e
|
|
108
|
+
},
|
|
109
|
+
string: {
|
|
110
|
+
len: "${label}须为${len}个字符",
|
|
111
|
+
min: "${label}最少${min}个字符",
|
|
112
|
+
max: "${label}最多${max}个字符",
|
|
113
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
114
|
+
},
|
|
115
|
+
number: {
|
|
116
|
+
len: "${label}必须等于${len}",
|
|
117
|
+
min: "${label}最小值为${min}",
|
|
118
|
+
max: "${label}最大值为${max}",
|
|
119
|
+
range: "${label}须在${min}-${max}之间"
|
|
120
|
+
},
|
|
121
|
+
array: {
|
|
122
|
+
len: "须为${len}个${label}",
|
|
123
|
+
min: "最少${min}个${label}",
|
|
124
|
+
max: "最多${max}个${label}",
|
|
125
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
126
|
+
},
|
|
127
|
+
pattern: {
|
|
128
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
QRCode: {
|
|
133
|
+
expired: "二维码过期",
|
|
134
|
+
refresh: "点击刷新",
|
|
135
|
+
scanned: "已扫描"
|
|
136
|
+
},
|
|
137
|
+
ColorPicker: {
|
|
138
|
+
presetEmpty: "暂无",
|
|
139
|
+
transparent: "无色",
|
|
140
|
+
singleColor: "单色",
|
|
141
|
+
gradientColor: "渐变色"
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
i as default
|
|
146
|
+
};
|
|
@@ -7,11 +7,11 @@ import { STORE_KEY as C } from "../../config/constants.js";
|
|
|
7
7
|
import "react-router-dom";
|
|
8
8
|
import "react";
|
|
9
9
|
import "../../fe-layouts/context/context.js";
|
|
10
|
-
import "nprogress";
|
|
11
|
-
import "../../hooks/use-permission.hook/index.js";
|
|
12
|
-
import "antd";
|
|
13
10
|
import "@spacego/turbo-utils";
|
|
11
|
+
import "antd";
|
|
12
|
+
import "../../hooks/use-permission.hook/index.js";
|
|
14
13
|
/* empty css */
|
|
14
|
+
import "nprogress";
|
|
15
15
|
import "lodash-es";
|
|
16
16
|
import "../../fe-form/fe-form-date-range-picker/index.js";
|
|
17
17
|
import "../../fe-rich-text/index.js";
|
|
@@ -26,7 +26,7 @@ import "react-icons/lu";
|
|
|
26
26
|
import "react-icons/md";
|
|
27
27
|
/* empty css */
|
|
28
28
|
import "../../fe-layouts/basics-layout/index.js";
|
|
29
|
-
|
|
29
|
+
import "../../fe-layouts/layout.js";
|
|
30
30
|
/* empty css */
|
|
31
31
|
/* empty css */
|
|
32
32
|
import "react-draggable";
|
|
@@ -8,11 +8,11 @@ import { STORE_KEY as e } from "../../config/constants.js";
|
|
|
8
8
|
import "react-router-dom";
|
|
9
9
|
import "react";
|
|
10
10
|
import "../../fe-layouts/context/context.js";
|
|
11
|
-
import "nprogress";
|
|
12
|
-
import "../../hooks/use-permission.hook/index.js";
|
|
13
|
-
import "antd";
|
|
14
11
|
import "@spacego/turbo-utils";
|
|
12
|
+
import "antd";
|
|
13
|
+
import "../../hooks/use-permission.hook/index.js";
|
|
15
14
|
/* empty css */
|
|
15
|
+
import "nprogress";
|
|
16
16
|
import "lodash-es";
|
|
17
17
|
import "../../fe-form/fe-form-date-range-picker/index.js";
|
|
18
18
|
import "../../fe-rich-text/index.js";
|
|
@@ -27,7 +27,7 @@ import "react-icons/lu";
|
|
|
27
27
|
import "react-icons/md";
|
|
28
28
|
/* empty css */
|
|
29
29
|
import "../../fe-layouts/basics-layout/index.js";
|
|
30
|
-
|
|
30
|
+
import "../../fe-layouts/layout.js";
|
|
31
31
|
/* empty css */
|
|
32
32
|
/* empty css */
|
|
33
33
|
import "react-draggable";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FeAutoCompleteProps } from './auto-complete.d';
|
|
2
|
+
declare const FeAutoComplete: (props: FeAutoCompleteProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeAutoComplete;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IBasicProps, IPermissionProps } from '../typings';
|
|
4
|
+
export interface FeButtonProps
|
|
5
|
+
extends ButtonProps, IPermissionProps, Pick<IBasicProps, 'children'> {
|
|
6
|
+
/**
|
|
7
|
+
* 设置按钮最小宽度,支持数字(px)或字符串
|
|
8
|
+
* @default 120px
|
|
9
|
+
*/
|
|
10
|
+
minWidth?: number | string;
|
|
11
|
+
/**
|
|
12
|
+
* 禁用状态时的提示内容
|
|
13
|
+
* @description 当按钮被禁用时,显示该提示内容
|
|
14
|
+
*/
|
|
15
|
+
disabledTooltip?: string | React.ReactNode;
|
|
16
|
+
}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface FeButtonProps
|
|
5
|
-
extends ButtonProps, IPermissionProps, Pick<IBasicProps, 'children'> {
|
|
6
|
-
/**
|
|
7
|
-
* 设置按钮最小宽度,支持数字(px)或字符串
|
|
8
|
-
* @default 120px
|
|
9
|
-
*/
|
|
10
|
-
minWidth?: number | string;
|
|
11
|
-
/**
|
|
12
|
-
* 禁用状态时的提示内容
|
|
13
|
-
* @description 当按钮被禁用时,显示该提示内容
|
|
14
|
-
*/
|
|
15
|
-
disabledTooltip?: string | React.ReactNode;
|
|
16
|
-
}
|
|
1
|
+
import { FeButtonProps } from './button.d';
|
|
2
|
+
declare const FeButton: (props: FeButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeButton;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @name 多选
|
|
5
|
-
*/
|
|
6
|
-
multiple?: false;
|
|
7
|
-
}
|
|
1
|
+
import { FeCascaderProps } from './cascader.d';
|
|
2
|
+
declare const FeCascader: (props: FeCascaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeCascader;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare const FeCheckbox: React.ForwardRefExoticComponent<FeCheckboxProps>;
|
|
1
|
+
import { FeCheckboxProps } from './checkbox.d';
|
|
2
|
+
declare const FeCheckbox: (props: FeCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeCheckbox;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface FeCheckboxGroupProps extends CheckboxGroupProps {
|
|
5
|
-
}
|
|
1
|
+
import { FeCheckboxGroupProps } from './checkbox-group.d';
|
|
2
|
+
declare const FeCheckboxGroup: (props: FeCheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeCheckboxGroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { FeDatePickerProps } from './date-picker.d';
|
|
2
|
+
declare const FeDatePicker: (props: FeDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeDatePicker;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IDescriptionsItem, TRenderType } from '../hooks/use-descriptions.hook/use-descriptions.d';
|
|
2
|
+
export interface FeDescriptionRenderProps<DataType extends Record<string, any>> {
|
|
3
|
+
/**
|
|
4
|
+
* 值
|
|
5
|
+
*/
|
|
6
|
+
value: any;
|
|
7
|
+
/**
|
|
8
|
+
* 原始值
|
|
9
|
+
*/
|
|
10
|
+
rawValue: any;
|
|
11
|
+
/**
|
|
12
|
+
* @name 渲染类型
|
|
13
|
+
*/
|
|
14
|
+
renderType: TRenderType;
|
|
15
|
+
/**
|
|
16
|
+
* 列宽
|
|
17
|
+
*/
|
|
18
|
+
colSpan: IDescriptionsItem<DataType>['colSpan'];
|
|
19
|
+
/**
|
|
20
|
+
* @name tag渲染器参数
|
|
21
|
+
*/
|
|
22
|
+
tagRenderParams: IDescriptionsItem<DataType>['tagRenderParams'];
|
|
23
|
+
/**
|
|
24
|
+
* @name link渲染器参数
|
|
25
|
+
*/
|
|
26
|
+
linkRenderParams: IDescriptionsItem<DataType>['linkRenderParams'];
|
|
27
|
+
/**
|
|
28
|
+
* @name image渲染器参数
|
|
29
|
+
*/
|
|
30
|
+
imageRenderParams: IDescriptionsItem<DataType>['imageRenderParams'];
|
|
31
|
+
}
|
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
rawValue: any;
|
|
11
|
-
/**
|
|
12
|
-
* @name 渲染类型
|
|
13
|
-
*/
|
|
14
|
-
renderType: TRenderType;
|
|
15
|
-
/**
|
|
16
|
-
* 列宽
|
|
17
|
-
*/
|
|
18
|
-
colSpan: IDescriptionsItem<DataType>['colSpan'];
|
|
19
|
-
/**
|
|
20
|
-
* @name tag渲染器参数
|
|
21
|
-
*/
|
|
22
|
-
tagRenderParams: IDescriptionsItem<DataType>['tagRenderParams'];
|
|
23
|
-
/**
|
|
24
|
-
* @name link渲染器参数
|
|
25
|
-
*/
|
|
26
|
-
linkRenderParams: IDescriptionsItem<DataType>['linkRenderParams'];
|
|
27
|
-
/**
|
|
28
|
-
* @name image渲染器参数
|
|
29
|
-
*/
|
|
30
|
-
imageRenderParams: IDescriptionsItem<DataType>['imageRenderParams'];
|
|
31
|
-
}
|
|
1
|
+
import { FeDescriptionRenderProps } from './description-render.d';
|
|
2
|
+
/**
|
|
3
|
+
* 描述列表渲染器
|
|
4
|
+
* @param props 渲染属性
|
|
5
|
+
* @returns 渲染结果
|
|
6
|
+
*/
|
|
7
|
+
declare function FeDescriptionRender<DataType extends Record<string, any>>({ value, renderType, rawValue, tagRenderParams, linkRenderParams, imageRenderParams }: FeDescriptionRenderProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default FeDescriptionRender;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FeDescriptionsProps } from './descriptions.d';
|
|
2
|
+
declare const FeDescriptions: (props: FeDescriptionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeDescriptions;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FeEmptyProps } from './empty.d';
|
|
2
|
+
declare const FeEmpty: (props: FeEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeEmpty;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** 错误信息 */
|
|
5
|
-
message?: string;
|
|
6
|
-
}
|
|
1
|
+
import { FeErrorBlockProps } from './error-block.d';
|
|
2
|
+
declare const FeErrorBlock: (props: FeErrorBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FeErrorBlock;
|