@pisell/materials 1.0.507 → 1.0.508
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 +3 -3
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +21 -21
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/TimeResourceSelector/index.js +115 -0
- package/es/components/TimeResourceSelector/index.less +59 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +10 -16
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +6 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +22 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +6 -0
- package/es/components/page/index.js +4 -2
- package/es/components/pisellAnchor/index.d.ts +1 -0
- package/es/components/pisellAnchor/index.js +10 -4
- package/es/components/pisellHeaderProgressBar/index.d.ts +27 -0
- package/es/components/pisellHeaderProgressBar/index.js +75 -0
- package/es/components/pisellHeaderProgressBar/index.less +19 -0
- package/es/components/pisellList01/index.d.ts +13 -0
- package/es/components/pisellList01/index.js +94 -0
- package/es/components/pisellList01/index.less +45 -0
- package/es/components/pisellSectionHeaders/index.js +3 -7
- package/es/components/pisellSectionHeaders/index.less +8 -10
- package/es/components/pisellViewGrid/index.js +5 -1
- package/es/components/select/index.js +3 -2
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/TimeResourceSelector/index.js +109 -0
- package/lib/components/TimeResourceSelector/index.less +59 -0
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +4 -5
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +6 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +23 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +6 -0
- package/lib/components/page/index.js +2 -2
- package/lib/components/pisellAnchor/index.d.ts +1 -0
- package/lib/components/pisellAnchor/index.js +9 -7
- package/lib/components/pisellHeaderProgressBar/index.d.ts +27 -0
- package/lib/components/pisellHeaderProgressBar/index.js +86 -0
- package/lib/components/pisellHeaderProgressBar/index.less +19 -0
- package/lib/components/pisellList01/index.d.ts +13 -0
- package/lib/components/pisellList01/index.js +97 -0
- package/lib/components/pisellList01/index.less +45 -0
- package/lib/components/pisellSectionHeaders/index.js +2 -8
- package/lib/components/pisellSectionHeaders/index.less +8 -10
- package/lib/components/pisellViewGrid/index.js +5 -1
- package/lib/components/select/index.js +2 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lowcode/data-source-table/meta.ts +281 -0
- package/lowcode/pisell-custom-checkbox-group/meta.ts +156 -154
- package/lowcode/pisell-header-progress-bar/meta.ts +116 -0
- package/lowcode/pisell-header-progress-bar/snippets.ts +24 -0
- package/lowcode/pisell-list01/meta.ts +74 -0
- package/lowcode/pisell-list01/snippets.ts +35 -0
- package/package.json +3 -3
- package/es/components/pisellProgressBar/index.d.ts +0 -14
- package/es/components/pisellProgressBar/index.js +0 -44
- package/es/components/pisellProgressBar/index.less +0 -48
- package/lib/components/pisellProgressBar/index.d.ts +0 -14
- package/lib/components/pisellProgressBar/index.js +0 -62
- package/lib/components/pisellProgressBar/index.less +0 -48
- package/lowcode/pisell-progress-bar/meta.ts +0 -115
- package/lowcode/pisell-progress-bar/snippets.ts +0 -15
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellHeaderProgressBar',
|
|
6
|
+
title: '顶部进度栏',
|
|
7
|
+
category: '导航',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellHeaderProgressBar',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '基础',
|
|
22
|
+
display: 'block',
|
|
23
|
+
type: 'group',
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
name: 'showClose',
|
|
27
|
+
title: { label: '显示关闭', tip: 'showClose | 显示关闭' },
|
|
28
|
+
propType: 'bool',
|
|
29
|
+
setter: 'BoolSetter',
|
|
30
|
+
defaultValue: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'title',
|
|
34
|
+
title: { label: '标题', tip: 'title | 标题' },
|
|
35
|
+
propType: 'node',
|
|
36
|
+
setter: {
|
|
37
|
+
componentName: 'SlotSetter',
|
|
38
|
+
initialValue: {
|
|
39
|
+
type: 'JSSlot',
|
|
40
|
+
value: [],
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'stepText',
|
|
46
|
+
title: { label: '步骤文案', tip: 'stepText | 步骤文案' },
|
|
47
|
+
propType: 'node',
|
|
48
|
+
setter: {
|
|
49
|
+
componentName: 'SlotSetter',
|
|
50
|
+
initialValue: {
|
|
51
|
+
type: 'JSSlot',
|
|
52
|
+
value: [],
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: '外观',
|
|
60
|
+
display: 'block',
|
|
61
|
+
type: 'group',
|
|
62
|
+
items: [
|
|
63
|
+
{
|
|
64
|
+
name: 'enableShadow',
|
|
65
|
+
title: { label: '启用投影', tip: 'enableShadow | 启用投影' },
|
|
66
|
+
propType: 'bool',
|
|
67
|
+
setter: 'BoolSetter',
|
|
68
|
+
defaultValue: true,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'enableBorder',
|
|
72
|
+
title: { label: '启用描边', tip: 'enableBorder | 启用描边' },
|
|
73
|
+
propType: 'bool',
|
|
74
|
+
setter: 'BoolSetter',
|
|
75
|
+
defaultValue: true,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'borderWidth',
|
|
79
|
+
title: { label: '描边粗细', tip: 'borderWidth | 描边粗细' },
|
|
80
|
+
setter: 'NumberSetter',
|
|
81
|
+
defaultValue: 1,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'borderColor',
|
|
85
|
+
title: '描边颜色',
|
|
86
|
+
setter: 'ColorSetter',
|
|
87
|
+
defaultValue: '#E5E5E5',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'backgroundColor',
|
|
91
|
+
title: '头部背景颜色',
|
|
92
|
+
setter: 'ColorSetter',
|
|
93
|
+
defaultValue: '#FFFFFF',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
|
|
99
|
+
configure: {
|
|
100
|
+
supports: {
|
|
101
|
+
style: true,
|
|
102
|
+
events: [
|
|
103
|
+
{
|
|
104
|
+
name: 'onBack',
|
|
105
|
+
template:
|
|
106
|
+
'onBack(${extParams}){\n// 点击返回时的回调\n}',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'onClose',
|
|
110
|
+
template:
|
|
111
|
+
'onClose(${extParams}){\n// 点击关闭时的回调\n}',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '顶部进度栏',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'PisellHeaderProgressBar',
|
|
6
|
+
props: {
|
|
7
|
+
showClose: true,
|
|
8
|
+
enableShadow: true,
|
|
9
|
+
enableBorder: true,
|
|
10
|
+
borderWidth: 1,
|
|
11
|
+
borderColor: '#E5E5E5',
|
|
12
|
+
backgroundColor: '#FFFFFF',
|
|
13
|
+
title: {
|
|
14
|
+
type: "JSSlot",
|
|
15
|
+
value: [],
|
|
16
|
+
},
|
|
17
|
+
stepText: {
|
|
18
|
+
type: "JSSlot",
|
|
19
|
+
value: [],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "PisellList01",
|
|
6
|
+
title: "列表1号",
|
|
7
|
+
category: "Layout",
|
|
8
|
+
devMode: "proCode",
|
|
9
|
+
npm: {
|
|
10
|
+
package: "@pisell/materials",
|
|
11
|
+
version: "1.0.1",
|
|
12
|
+
exportName: "PisellList01",
|
|
13
|
+
main: "src/index.tsx",
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: "",
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
title: '数据源',
|
|
20
|
+
display: 'block',
|
|
21
|
+
type: 'group',
|
|
22
|
+
items: [
|
|
23
|
+
{
|
|
24
|
+
name: 'dataSource',
|
|
25
|
+
title: { label: '列表数据源', tip: 'dataSource | 列表数据源' },
|
|
26
|
+
propType: { type: 'arrayOf', value: 'any' },
|
|
27
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'rowKey',
|
|
31
|
+
title: {
|
|
32
|
+
label: '行Key',
|
|
33
|
+
tip: 'rowKey | 当 renderItem 自定义渲染列表项有效时,自定义每一行的 key 的获取方式',
|
|
34
|
+
},
|
|
35
|
+
propType: {
|
|
36
|
+
type: 'oneOfType',
|
|
37
|
+
value: ['string', 'function'],
|
|
38
|
+
},
|
|
39
|
+
defaultValue: 'id',
|
|
40
|
+
setter: [
|
|
41
|
+
'StringSetter',
|
|
42
|
+
{
|
|
43
|
+
componentName: 'FunctionSetter',
|
|
44
|
+
props: {
|
|
45
|
+
template:
|
|
46
|
+
'rowKey(item,${extParams}){\n// 自定义每一行的 key\nreturn `key-${item.id}`;\n}',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
'VariableSetter',
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'showSearch',
|
|
56
|
+
title: { label: '显示搜索', tip: 'showSearch | 显示搜索' },
|
|
57
|
+
propType: 'bool',
|
|
58
|
+
setter: 'BoolSetter',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'showCategory',
|
|
62
|
+
title: { label: '显示分类', tip: 'showCategory | 显示分类' },
|
|
63
|
+
propType: 'bool',
|
|
64
|
+
setter: 'BoolSetter',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
configure: {
|
|
68
|
+
supports: {
|
|
69
|
+
style: true,
|
|
70
|
+
events: [
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '列表1号',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/avatar-1.jpg',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellList01',
|
|
7
|
+
props: {
|
|
8
|
+
showSearch: true,
|
|
9
|
+
showCategory: true,
|
|
10
|
+
dataSource: [
|
|
11
|
+
{
|
|
12
|
+
key: '1',
|
|
13
|
+
title: '分类1',
|
|
14
|
+
href: '#1',
|
|
15
|
+
children: [{
|
|
16
|
+
id: 1,
|
|
17
|
+
name: '产品1',
|
|
18
|
+
price: 100,
|
|
19
|
+
}]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: '2',
|
|
23
|
+
title: '分类2',
|
|
24
|
+
href: '#2',
|
|
25
|
+
children: [{
|
|
26
|
+
id: 2,
|
|
27
|
+
name: '产品2',
|
|
28
|
+
price: 100,
|
|
29
|
+
}]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.508",
|
|
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
|
"@pisell/date-picker": "1.0.114",
|
|
72
|
-
"@pisell/
|
|
73
|
-
"@pisell/
|
|
72
|
+
"@pisell/utils": "1.0.43",
|
|
73
|
+
"@pisell/icon": "0.0.10"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^18.0.0",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellStepHeaderProps {
|
|
4
|
-
step?: number;
|
|
5
|
-
title?: string;
|
|
6
|
-
showBack?: boolean;
|
|
7
|
-
showClose?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onBack?: () => void;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const PisellStepHeader: React.FC<PisellStepHeaderProps>;
|
|
14
|
-
export default PisellStepHeader;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CloseOutlined, LeftOutlined } from '@ant-design/icons';
|
|
3
|
-
import PisellSectionHeaders from "../pisellSectionHeaders";
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import "./index.less";
|
|
6
|
-
var PisellStepHeader = function PisellStepHeader(_ref) {
|
|
7
|
-
var _ref$step = _ref.step,
|
|
8
|
-
step = _ref$step === void 0 ? 1 : _ref$step,
|
|
9
|
-
title = _ref.title,
|
|
10
|
-
_ref$showBack = _ref.showBack,
|
|
11
|
-
showBack = _ref$showBack === void 0 ? true : _ref$showBack,
|
|
12
|
-
_ref$showClose = _ref.showClose,
|
|
13
|
-
showClose = _ref$showClose === void 0 ? true : _ref$showClose,
|
|
14
|
-
className = _ref.className,
|
|
15
|
-
style = _ref.style,
|
|
16
|
-
onBack = _ref.onBack,
|
|
17
|
-
onClose = _ref.onClose;
|
|
18
|
-
// 构建左侧内容
|
|
19
|
-
var leftContent = /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: "pisell-step-header-left"
|
|
21
|
-
}, showBack && /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: "pisell-step-header-back",
|
|
23
|
-
onClick: onBack
|
|
24
|
-
}, /*#__PURE__*/React.createElement(LeftOutlined, null)), /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
className: "pisell-step-header-content"
|
|
26
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
27
|
-
className: "pisell-step-header-step"
|
|
28
|
-
}, "Step ", step), /*#__PURE__*/React.createElement("span", {
|
|
29
|
-
className: "pisell-step-header-title"
|
|
30
|
-
}, title)));
|
|
31
|
-
|
|
32
|
-
// 构建右侧内容
|
|
33
|
-
var rightContent = showClose ? /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "pisell-step-header-close",
|
|
35
|
-
onClick: onClose
|
|
36
|
-
}, /*#__PURE__*/React.createElement(CloseOutlined, null)) : null;
|
|
37
|
-
return /*#__PURE__*/React.createElement(PisellSectionHeaders, {
|
|
38
|
-
className: classNames('pisell-step-header', className),
|
|
39
|
-
style: style,
|
|
40
|
-
backNode: leftContent,
|
|
41
|
-
actionNode: rightContent
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
export default PisellStepHeader;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.pisell-step-header {
|
|
2
|
-
&-left {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 16px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-back {
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
color: #666;
|
|
11
|
-
font-size: 16px;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
|
|
15
|
-
&:hover {
|
|
16
|
-
color: #1890ff;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-content {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
gap: 8px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-step {
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
color: #666;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-title {
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
color: #333;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-close {
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
color: #666;
|
|
40
|
-
font-size: 16px;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
color: #1890ff;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellStepHeaderProps {
|
|
4
|
-
step?: number;
|
|
5
|
-
title?: string;
|
|
6
|
-
showBack?: boolean;
|
|
7
|
-
showClose?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onBack?: () => void;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const PisellStepHeader: React.FC<PisellStepHeaderProps>;
|
|
14
|
-
export default PisellStepHeader;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/pisellProgressBar/index.tsx
|
|
30
|
-
var pisellProgressBar_exports = {};
|
|
31
|
-
__export(pisellProgressBar_exports, {
|
|
32
|
-
default: () => pisellProgressBar_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(pisellProgressBar_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_icons = require("@ant-design/icons");
|
|
37
|
-
var import_pisellSectionHeaders = __toESM(require("../pisellSectionHeaders"));
|
|
38
|
-
var import_classnames = __toESM(require("classnames"));
|
|
39
|
-
var import_index = require("./index.less");
|
|
40
|
-
var PisellStepHeader = ({
|
|
41
|
-
step = 1,
|
|
42
|
-
title,
|
|
43
|
-
showBack = true,
|
|
44
|
-
showClose = true,
|
|
45
|
-
className,
|
|
46
|
-
style,
|
|
47
|
-
onBack,
|
|
48
|
-
onClose
|
|
49
|
-
}) => {
|
|
50
|
-
const leftContent = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-step-header-left" }, showBack && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-step-header-back", onClick: onBack }, /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-step-header-content" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-step-header-step" }, "Step ", step), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-step-header-title" }, title)));
|
|
51
|
-
const rightContent = showClose ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-step-header-close", onClick: onClose }, /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null)) : null;
|
|
52
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
import_pisellSectionHeaders.default,
|
|
54
|
-
{
|
|
55
|
-
className: (0, import_classnames.default)("pisell-step-header", className),
|
|
56
|
-
style,
|
|
57
|
-
backNode: leftContent,
|
|
58
|
-
actionNode: rightContent
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
var pisellProgressBar_default = PisellStepHeader;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.pisell-step-header {
|
|
2
|
-
&-left {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 16px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-back {
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
color: #666;
|
|
11
|
-
font-size: 16px;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
|
|
15
|
-
&:hover {
|
|
16
|
-
color: #1890ff;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-content {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
gap: 8px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-step {
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
color: #666;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-title {
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
color: #333;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-close {
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
color: #666;
|
|
40
|
-
font-size: 16px;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
color: #1890ff;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import snippets from './snippets';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
snippets,
|
|
5
|
-
componentName: 'PisellProgressBar',
|
|
6
|
-
title: '顶部进度栏',
|
|
7
|
-
category: '导航',
|
|
8
|
-
docUrl: '',
|
|
9
|
-
screenshot: '',
|
|
10
|
-
devMode: 'proCode',
|
|
11
|
-
npm: {
|
|
12
|
-
package: '@pisell/materials',
|
|
13
|
-
version: '1.0.1',
|
|
14
|
-
exportName: 'PisellProgressBar',
|
|
15
|
-
main: 'src/index.tsx',
|
|
16
|
-
destructuring: true,
|
|
17
|
-
subName: '',
|
|
18
|
-
},
|
|
19
|
-
props: [{
|
|
20
|
-
name: 'showClose',
|
|
21
|
-
title: {
|
|
22
|
-
label: '显示关闭',
|
|
23
|
-
tip: 'showClose | 显示关闭',
|
|
24
|
-
},
|
|
25
|
-
propType: 'bool',
|
|
26
|
-
setter: 'BoolSetter',
|
|
27
|
-
defaultValue: true,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'isConfirmClose',
|
|
31
|
-
title: {
|
|
32
|
-
label: '关闭时二次确认',
|
|
33
|
-
tip: 'isConfirmClose | 关闭时二次确认',
|
|
34
|
-
},
|
|
35
|
-
propType: 'bool',
|
|
36
|
-
setter: 'BoolSetter',
|
|
37
|
-
defaultValue: true,
|
|
38
|
-
condition(target) {
|
|
39
|
-
return target.getProps().getPropValue("showClose");
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'showStep',
|
|
44
|
-
title: {
|
|
45
|
-
label: '显示步骤',
|
|
46
|
-
tip: 'showStep | 显示步骤',
|
|
47
|
-
},
|
|
48
|
-
propType: 'bool',
|
|
49
|
-
setter: 'BoolSetter',
|
|
50
|
-
defaultValue: true,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'step',
|
|
54
|
-
title: {
|
|
55
|
-
label: '当前步骤值',
|
|
56
|
-
tip: 'step | 当前选择的第几步',
|
|
57
|
-
},
|
|
58
|
-
setter: {
|
|
59
|
-
componentName: 'NumberSetter',
|
|
60
|
-
props: {
|
|
61
|
-
min: 1,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
condition(target) {
|
|
65
|
-
return target.getProps().getPropValue("showStep");
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: 'group',
|
|
70
|
-
title: '外观',
|
|
71
|
-
display: 'block',
|
|
72
|
-
items: [
|
|
73
|
-
{
|
|
74
|
-
name: 'border',
|
|
75
|
-
title: {
|
|
76
|
-
label: '描边',
|
|
77
|
-
tip: 'border | 描边',
|
|
78
|
-
},
|
|
79
|
-
propType: 'bool',
|
|
80
|
-
setter: 'BoolSetter',
|
|
81
|
-
defaultValue: true,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: 'backgroundColor',
|
|
85
|
-
title: {
|
|
86
|
-
label: '头部背景颜色',
|
|
87
|
-
tip: 'backgroundColor | 头部背景颜色',
|
|
88
|
-
},
|
|
89
|
-
setter: 'ColorSetter',
|
|
90
|
-
defaultValue: '#ffffff',
|
|
91
|
-
},
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
configure: {
|
|
96
|
-
component: {
|
|
97
|
-
isContainer: true,
|
|
98
|
-
},
|
|
99
|
-
supports: {
|
|
100
|
-
style: true,
|
|
101
|
-
events: [
|
|
102
|
-
{
|
|
103
|
-
name: 'onBack',
|
|
104
|
-
template:
|
|
105
|
-
"onBack(value,${extParams}){\n// 返回事件的回调\nconsole.log('onBack',value);}",
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: 'onAction',
|
|
109
|
-
template:
|
|
110
|
-
"onAction(value,${extParams}){\n// 右侧操作事件的回调\nconsole.log('onAction',value);}",
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
};
|