@pisell/materials 1.0.623 → 1.0.624
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +3 -3
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.js +13 -13
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/index.d.ts +1 -1
- package/es/components/pisellDropSort/PisellDropSort.js +3 -2
- package/es/components/pisellDropSort/types.d.ts +2 -0
- package/es/components/pisellEmpty/index.d.ts +2 -0
- package/es/components/pisellEmpty/index.js +6 -2
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +7 -2
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +1 -1
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +1 -1
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/index.d.ts +1 -1
- package/lib/components/pisellDropSort/PisellDropSort.js +3 -2
- package/lib/components/pisellDropSort/types.d.ts +2 -0
- package/lib/components/pisellEmpty/index.d.ts +2 -0
- package/lib/components/pisellEmpty/index.js +2 -1
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +10 -2
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +2 -1
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +2 -1
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +2 -1
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | React.
|
|
20
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | React.
|
|
29
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: React.JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
47
47
|
width: number;
|
|
48
48
|
align: "center" | "left" | "right";
|
|
49
49
|
fixed: false | "left" | "right";
|
|
50
|
-
type: "
|
|
50
|
+
type: "button" | "link";
|
|
51
51
|
items: OperationItem[];
|
|
52
52
|
} | undefined;
|
|
53
53
|
operationContent?: {
|
|
@@ -59,7 +59,7 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
63
63
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
64
|
} & {
|
|
65
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -35,7 +35,8 @@ var PisellDropSort = function PisellDropSort(_ref) {
|
|
|
35
35
|
rightContent = _ref.rightContent,
|
|
36
36
|
onAddRoot = _ref.onAddRoot,
|
|
37
37
|
__designMode = _ref.__designMode,
|
|
38
|
-
isCustomAction = _ref.isCustomAction
|
|
38
|
+
isCustomAction = _ref.isCustomAction,
|
|
39
|
+
emptyContent = _ref.emptyContent;
|
|
39
40
|
// 自定义渲染节点
|
|
40
41
|
var renderItem = useCallback(function (itemProps, ref) {
|
|
41
42
|
return /*#__PURE__*/React.createElement(SortableItem, {
|
|
@@ -78,7 +79,7 @@ var PisellDropSort = function PisellDropSort(_ref) {
|
|
|
78
79
|
style: {
|
|
79
80
|
gap: spacing !== null && spacing !== void 0 ? spacing : 8
|
|
80
81
|
}
|
|
81
|
-
}, /*#__PURE__*/React.createElement(SortableTree, {
|
|
82
|
+
}, value.length === 0 && emptyContent ? emptyContent : /*#__PURE__*/React.createElement(SortableTree, {
|
|
82
83
|
value: value,
|
|
83
84
|
collapsible: true,
|
|
84
85
|
indicator: false,
|
|
@@ -11,6 +11,8 @@ export interface PisellEmptyProps extends EmptyProps {
|
|
|
11
11
|
icon?: React.ReactNode;
|
|
12
12
|
/** 自定义底部额外操作区域 */
|
|
13
13
|
footer?: React.ReactNode;
|
|
14
|
+
/** 最大宽度 */
|
|
15
|
+
maxWidth?: number;
|
|
14
16
|
[key: string]: any;
|
|
15
17
|
}
|
|
16
18
|
declare const PisellEmpty: (props: PisellEmptyProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["description", "extraDescription", "icon", "footer", "className"];
|
|
1
|
+
var _excluded = ["description", "extraDescription", "icon", "footer", "className", "maxWidth"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -16,6 +16,7 @@ var PisellEmpty = function PisellEmpty(props) {
|
|
|
16
16
|
icon = props.icon,
|
|
17
17
|
footer = props.footer,
|
|
18
18
|
className = props.className,
|
|
19
|
+
maxWidth = props.maxWidth,
|
|
19
20
|
others = _objectWithoutProperties(props, _excluded);
|
|
20
21
|
return /*#__PURE__*/React.createElement(Empty, _extends({}, others, {
|
|
21
22
|
className: classNames('pisell-empty-wrap', className),
|
|
@@ -27,7 +28,10 @@ var PisellEmpty = function PisellEmpty(props) {
|
|
|
27
28
|
}
|
|
28
29
|
})),
|
|
29
30
|
description: /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: "pisell-empty-wrap-description-wrap"
|
|
31
|
+
className: "pisell-empty-wrap-description-wrap",
|
|
32
|
+
style: {
|
|
33
|
+
maxWidth: maxWidth || 300
|
|
34
|
+
}
|
|
31
35
|
}, /*#__PURE__*/React.createElement("div", {
|
|
32
36
|
className: "pisell-empty-wrap-description"
|
|
33
37
|
}, description), /*#__PURE__*/React.createElement("div", {
|
|
@@ -13,8 +13,9 @@ import PisellTags from "../pisellTags";
|
|
|
13
13
|
import Icon from "../icon";
|
|
14
14
|
import Button from "../button";
|
|
15
15
|
import { getText } from "../../locales";
|
|
16
|
-
import "./PisellNavigationMenu.less";
|
|
17
16
|
import { Dropdown } from 'antd';
|
|
17
|
+
import PisellEmpty from "../pisellEmpty";
|
|
18
|
+
import "./PisellNavigationMenu.less";
|
|
18
19
|
var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
|
|
19
20
|
var _ref$value = _ref.value,
|
|
20
21
|
value = _ref$value === void 0 ? [] : _ref$value,
|
|
@@ -189,7 +190,11 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
|
|
|
189
190
|
isCustomAction: true,
|
|
190
191
|
__designMode: __designMode,
|
|
191
192
|
leftContent: leftContent,
|
|
192
|
-
rightContent: rightContent
|
|
193
|
+
rightContent: rightContent,
|
|
194
|
+
emptyContent: /*#__PURE__*/React.createElement(PisellEmpty, {
|
|
195
|
+
maxWidth: 400,
|
|
196
|
+
description: getText('pisell-lowcode-navigation-menu-add-page-tip')
|
|
197
|
+
})
|
|
193
198
|
});
|
|
194
199
|
};
|
|
195
200
|
export default PisellNavigationMenu;
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -216,5 +216,6 @@ declare const _default: {
|
|
|
216
216
|
'pisell-lowcode-drop-sort-add': string;
|
|
217
217
|
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
218
218
|
'pisell-lowcode-navigation-menu-add-page': string;
|
|
219
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
219
220
|
};
|
|
220
221
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -264,4 +264,4 @@ export default (_tableFilterSearch$ = {
|
|
|
264
264
|
'pisell-icon-select-select': 'Select icon'
|
|
265
265
|
}, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", 'Subdomain must be at least 2 characters long'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", 'Subdomain cannot exceed 60 characters'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", 'Subdomain can only contain lowercase letters, numbers and hyphens'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", 'Subdomain cannot contain only numbers'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", 'Subdomain cannot start or end with a hyphen'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", 'Subdomain cannot contain consecutive hyphens'), _defineProperty(_tableFilterSearch$, "subdomain-error-required", 'Please enter subdomain'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', 'Live'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', 'Draft'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', 'Deprecated'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', 'New version'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', 'Promote to live'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
|
|
266
266
|
return "Promote version ".concat(version || "", "?");
|
|
267
|
-
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', 'Promoting this version will lock it further changes'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', 'Promote'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', 'Cancel'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', 'Version already exists'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', 'Add'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', 'Add submenu'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', 'Add page'), _tableFilterSearch$);
|
|
267
|
+
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', 'Promoting this version will lock it further changes'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', 'Promote'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', 'Cancel'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', 'Version already exists'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', 'Add'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', 'Add submenu'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', 'Add page'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page-tip', 'No navigation found. Please add a submenu or page.'), _tableFilterSearch$);
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -215,5 +215,6 @@ declare const _default: {
|
|
|
215
215
|
'pisell-lowcode-drop-sort-add': string;
|
|
216
216
|
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
217
217
|
'pisell-lowcode-navigation-menu-add-page': string;
|
|
218
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
218
219
|
};
|
|
219
220
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -261,4 +261,4 @@ export default (_tableFilterSearch$ = {
|
|
|
261
261
|
'pisell-icon-select-select': '选择图标'
|
|
262
262
|
}, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", '子域名长度不能小于2个字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", '子域名长度不能超过60个字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", '子域名只能包含小写字母、数字和连字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", '子域名不能全为数字'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", '子域名不能以连字符开头或结尾'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", '子域名不能包含连续的连字符'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', '正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', '草稿'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', '已废弃'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', '新版本'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', '发布正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
|
|
263
263
|
return "\u53D1\u5E03\u7248\u672C ".concat(version || "", "?");
|
|
264
|
-
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '发布版本后,该版本将无法再进行修改'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '发布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', '添加子菜单'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', '添加页面'), _tableFilterSearch$);
|
|
264
|
+
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '发布版本后,该版本将无法再进行修改'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '发布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', '添加子菜单'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', '添加页面'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page-tip', '没有找到导航,请添加子菜单或页面。'), _tableFilterSearch$);
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -215,5 +215,6 @@ declare const _default: {
|
|
|
215
215
|
'pisell-lowcode-drop-sort-add': string;
|
|
216
216
|
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
217
217
|
'pisell-lowcode-navigation-menu-add-page': string;
|
|
218
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
218
219
|
};
|
|
219
220
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -263,4 +263,4 @@ export default (_tableFilterSearch$ = {
|
|
|
263
263
|
'pisell-icon-select-select': '選擇圖標'
|
|
264
264
|
}, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", '子域名長度不能小於2個字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", '子域名長度不能超過60個字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", '子域名只能包含小寫字母、數字和連字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", '子域名不能全為數字'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", '子域名不能以連字符開頭或結尾'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", '子域名不能包含連續的連字符'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', '正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', '草稿'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', '已廢棄'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', '新版本'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', '發布正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
|
|
265
265
|
return "\u767C\u5E03\u7248\u672C ".concat(version || "", "?");
|
|
266
|
-
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '發布版本後,該版本將無法再進行修改'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '發布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', '添加子菜單'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', '添加頁面'), _tableFilterSearch$);
|
|
266
|
+
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '發布版本後,該版本將無法再進行修改'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '發布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', '添加子菜單'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', '添加頁面'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page-tip', '沒有找到導航, 請添加子菜單或頁面。'), _tableFilterSearch$);
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | React.
|
|
20
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | React.
|
|
29
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: React.JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
47
47
|
width: number;
|
|
48
48
|
align: "center" | "left" | "right";
|
|
49
49
|
fixed: false | "left" | "right";
|
|
50
|
-
type: "
|
|
50
|
+
type: "button" | "link";
|
|
51
51
|
items: OperationItem[];
|
|
52
52
|
} | undefined;
|
|
53
53
|
operationContent?: {
|
|
@@ -59,7 +59,7 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
63
63
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
64
|
} & {
|
|
65
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -60,7 +60,8 @@ var PisellDropSort = ({
|
|
|
60
60
|
rightContent,
|
|
61
61
|
onAddRoot,
|
|
62
62
|
__designMode,
|
|
63
|
-
isCustomAction
|
|
63
|
+
isCustomAction,
|
|
64
|
+
emptyContent
|
|
64
65
|
}) => {
|
|
65
66
|
const renderItem = (0, import_react.useCallback)(
|
|
66
67
|
(itemProps, ref) => {
|
|
@@ -123,7 +124,7 @@ var PisellDropSort = ({
|
|
|
123
124
|
className: "pisell-lowcode-drop-sort-container-content",
|
|
124
125
|
style: { gap: spacing ?? 8 }
|
|
125
126
|
},
|
|
126
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
127
|
+
value.length === 0 && emptyContent ? emptyContent : /* @__PURE__ */ import_react.default.createElement(
|
|
127
128
|
import_pisellDraggable.SortableTree,
|
|
128
129
|
{
|
|
129
130
|
value,
|
|
@@ -11,6 +11,8 @@ export interface PisellEmptyProps extends EmptyProps {
|
|
|
11
11
|
icon?: React.ReactNode;
|
|
12
12
|
/** 自定义底部额外操作区域 */
|
|
13
13
|
footer?: React.ReactNode;
|
|
14
|
+
/** 最大宽度 */
|
|
15
|
+
maxWidth?: number;
|
|
14
16
|
[key: string]: any;
|
|
15
17
|
}
|
|
16
18
|
declare const PisellEmpty: (props: PisellEmptyProps) => React.JSX.Element;
|
|
@@ -45,6 +45,7 @@ var PisellEmpty = (props) => {
|
|
|
45
45
|
icon,
|
|
46
46
|
footer,
|
|
47
47
|
className,
|
|
48
|
+
maxWidth,
|
|
48
49
|
...others
|
|
49
50
|
} = props;
|
|
50
51
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -53,7 +54,7 @@ var PisellEmpty = (props) => {
|
|
|
53
54
|
...others,
|
|
54
55
|
className: (0, import_classnames.default)("pisell-empty-wrap", className),
|
|
55
56
|
image: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-icon-wrap" }, icon || /* @__PURE__ */ import_react.default.createElement(import_Inbox01.default, { style: { color: "#667085" } })),
|
|
56
|
-
description: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-description-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-description" }, description), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-extra-description" }, extraDescription))
|
|
57
|
+
description: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-description-wrap", style: { maxWidth: maxWidth || 300 } }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-description" }, description), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-empty-wrap-extra-description" }, extraDescription))
|
|
57
58
|
},
|
|
58
59
|
footer
|
|
59
60
|
);
|
|
@@ -38,8 +38,9 @@ var import_pisellTags = __toESM(require("../pisellTags"));
|
|
|
38
38
|
var import_icon = __toESM(require("../icon"));
|
|
39
39
|
var import_button = __toESM(require("../button"));
|
|
40
40
|
var import_locales = require("../../locales");
|
|
41
|
-
var import_PisellNavigationMenu = require("./PisellNavigationMenu.less");
|
|
42
41
|
var import_antd = require("antd");
|
|
42
|
+
var import_pisellEmpty = __toESM(require("../pisellEmpty"));
|
|
43
|
+
var import_PisellNavigationMenu = require("./PisellNavigationMenu.less");
|
|
43
44
|
var PisellNavigationMenu = ({
|
|
44
45
|
value = [],
|
|
45
46
|
allowDrag = true,
|
|
@@ -200,7 +201,14 @@ var PisellNavigationMenu = ({
|
|
|
200
201
|
isCustomAction: true,
|
|
201
202
|
__designMode,
|
|
202
203
|
leftContent,
|
|
203
|
-
rightContent
|
|
204
|
+
rightContent,
|
|
205
|
+
emptyContent: /* @__PURE__ */ import_react.default.createElement(
|
|
206
|
+
import_pisellEmpty.default,
|
|
207
|
+
{
|
|
208
|
+
maxWidth: 400,
|
|
209
|
+
description: (0, import_locales.getText)("pisell-lowcode-navigation-menu-add-page-tip")
|
|
210
|
+
}
|
|
211
|
+
)
|
|
204
212
|
}
|
|
205
213
|
);
|
|
206
214
|
};
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -216,5 +216,6 @@ declare const _default: {
|
|
|
216
216
|
'pisell-lowcode-drop-sort-add': string;
|
|
217
217
|
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
218
218
|
'pisell-lowcode-navigation-menu-add-page': string;
|
|
219
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
219
220
|
};
|
|
220
221
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -270,5 +270,6 @@ var en_US_default = {
|
|
|
270
270
|
"pisell-lowcode-drop-sort-add": "Add",
|
|
271
271
|
// 导航菜单组件
|
|
272
272
|
"pisell-lowcode-navigation-menu-add-sub-menu": "Add submenu",
|
|
273
|
-
"pisell-lowcode-navigation-menu-add-page": "Add page"
|
|
273
|
+
"pisell-lowcode-navigation-menu-add-page": "Add page",
|
|
274
|
+
"pisell-lowcode-navigation-menu-add-page-tip": "No navigation found. Please add a submenu or page."
|
|
274
275
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -215,5 +215,6 @@ declare const _default: {
|
|
|
215
215
|
'pisell-lowcode-drop-sort-add': string;
|
|
216
216
|
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
217
217
|
'pisell-lowcode-navigation-menu-add-page': string;
|
|
218
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
218
219
|
};
|
|
219
220
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -266,5 +266,6 @@ var zh_CN_default = {
|
|
|
266
266
|
"pisell-lowcode-drop-sort-add": "添加",
|
|
267
267
|
// 导航菜单组件
|
|
268
268
|
"pisell-lowcode-navigation-menu-add-sub-menu": "添加子菜单",
|
|
269
|
-
"pisell-lowcode-navigation-menu-add-page": "添加页面"
|
|
269
|
+
"pisell-lowcode-navigation-menu-add-page": "添加页面",
|
|
270
|
+
"pisell-lowcode-navigation-menu-add-page-tip": "没有找到导航,请添加子菜单或页面。"
|
|
270
271
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -215,5 +215,6 @@ declare const _default: {
|
|
|
215
215
|
'pisell-lowcode-drop-sort-add': string;
|
|
216
216
|
'pisell-lowcode-navigation-menu-add-sub-menu': string;
|
|
217
217
|
'pisell-lowcode-navigation-menu-add-page': string;
|
|
218
|
+
'pisell-lowcode-navigation-menu-add-page-tip': string;
|
|
218
219
|
};
|
|
219
220
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -268,5 +268,6 @@ var zh_TW_default = {
|
|
|
268
268
|
"pisell-lowcode-drop-sort-add": "添加",
|
|
269
269
|
// 导航菜单组件
|
|
270
270
|
"pisell-lowcode-navigation-menu-add-sub-menu": "添加子菜單",
|
|
271
|
-
"pisell-lowcode-navigation-menu-add-page": "添加頁面"
|
|
271
|
+
"pisell-lowcode-navigation-menu-add-page": "添加頁面",
|
|
272
|
+
"pisell-lowcode-navigation-menu-add-page-tip": "沒有找到導航, 請添加子菜單或頁面。"
|
|
272
273
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.624",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"libphonenumber-js": "^1.11.17",
|
|
70
70
|
"swiper": "^8.4.7",
|
|
71
71
|
"react-barcode": "^1.5.3",
|
|
72
|
-
"@pisell/icon": "0.0.10",
|
|
73
72
|
"@pisell/date-picker": "1.0.115",
|
|
73
|
+
"@pisell/icon": "0.0.10",
|
|
74
74
|
"@pisell/utils": "1.0.43"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|