@pisell/materials 2.2.5 → 2.2.7
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 +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +13 -13
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +16 -0
- package/es/components/drag-sort-tree/TreeItem/index.js +196 -0
- package/es/components/drag-sort-tree/TreeItem/index.less +41 -0
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/drag-sort-tree/index.js +88 -0
- package/es/components/drag-sort-tree/types.d.ts +20 -0
- package/es/components/drag-sort-tree/types.js +1 -0
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/index.js +23 -17
- package/es/components/drawer/index.less +25 -1
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.less +2 -1
- package/es/components/table/BasicTable/index.js +5 -2
- package/es/components/table/Table/index.less +10 -0
- package/es/components/table/Table/tableConfig/body/index.d.ts +4 -4
- package/es/components/table/Table/tableConfig/body/index.js +14 -20
- package/es/components/table/Table/tableConfig/body/index.less +13 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/tabs/index.d.ts +4 -4
- package/es/components/tabs/index.js +10 -9
- package/es/index.d.ts +81 -80
- package/es/index.js +40 -39
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +16 -0
- package/lib/components/drag-sort-tree/TreeItem/index.js +183 -0
- package/lib/components/drag-sort-tree/TreeItem/index.less +41 -0
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/drag-sort-tree/index.js +114 -0
- package/lib/components/drag-sort-tree/types.d.ts +20 -0
- package/lib/components/drag-sort-tree/types.js +17 -0
- package/lib/components/drawer/index.d.ts +1 -1
- package/lib/components/drawer/index.js +4 -1
- package/lib/components/drawer/index.less +25 -1
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.less +2 -1
- package/lib/components/table/BasicTable/index.js +2 -2
- package/lib/components/table/Table/index.less +10 -0
- package/lib/components/table/Table/tableConfig/body/index.d.ts +4 -4
- package/lib/components/table/Table/tableConfig/body/index.js +2 -2
- package/lib/components/table/Table/tableConfig/body/index.less +13 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/tabs/index.d.ts +4 -4
- package/lib/components/tabs/index.js +3 -1
- package/lib/index.d.ts +81 -80
- package/lib/index.js +3 -0
- package/lowcode/drag-sort-tree/__screenshots__/drag-sort-tree.png +0 -0
- package/lowcode/drag-sort-tree/meta.ts +108 -0
- package/lowcode/drag-sort-tree/snippets.ts +57 -0
- package/lowcode/tabs/meta.ts +9 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
export { Affix } from
|
|
2
|
-
export { Anchor } from
|
|
3
|
-
export { Alert } from
|
|
4
|
-
export { Avatar } from
|
|
5
|
-
export { Badge } from
|
|
6
|
-
export { Breadcrumb } from
|
|
7
|
-
export { Card } from
|
|
8
|
-
export { Collapse } from
|
|
9
|
-
export { Carousel } from
|
|
10
|
-
export { Col } from
|
|
11
|
-
export { Descriptions } from
|
|
12
|
-
export { Divider } from
|
|
13
|
-
export { Empty } from
|
|
14
|
-
export { Grid } from
|
|
15
|
-
export { Image } from
|
|
16
|
-
export { InputNumber } from
|
|
17
|
-
export { message } from
|
|
18
|
-
export { Menu } from
|
|
19
|
-
export { Mentions } from
|
|
20
|
-
export { Statistic } from
|
|
21
|
-
export { notification } from
|
|
22
|
-
export { Pagination } from
|
|
23
|
-
export { Popconfirm } from
|
|
24
|
-
export { Popover } from
|
|
25
|
-
export { Progress } from
|
|
26
|
-
export { Rate } from
|
|
27
|
-
export { Result } from
|
|
28
|
-
export { Row } from
|
|
29
|
-
export { Space } from
|
|
30
|
-
export { Spin } from
|
|
31
|
-
export { Steps } from
|
|
32
|
-
export { Switch } from
|
|
33
|
-
export { Transfer } from
|
|
34
|
-
export { Tree } from
|
|
35
|
-
export { Tag } from
|
|
36
|
-
export { Timeline } from
|
|
37
|
-
export { Tooltip } from
|
|
38
|
-
export { version } from
|
|
39
|
-
export { default as Typography } from
|
|
40
|
-
export { default as Skeleton } from
|
|
41
|
-
export { default as Checkbox } from
|
|
42
|
-
export { default as Button } from
|
|
43
|
-
export { default as Radio } from
|
|
44
|
-
export { default as Upload } from
|
|
45
|
-
export { default as Icon } from
|
|
46
|
-
export { default as Form } from
|
|
47
|
-
export { default as Dropdown } from
|
|
48
|
-
export { default as Calendar } from
|
|
49
|
-
export { default as ConfigProvider } from
|
|
50
|
-
export { default as DatePicker } from
|
|
51
|
-
export { default as Tabs } from
|
|
52
|
-
export { default as TimePicker } from
|
|
53
|
-
export { default as Slider } from
|
|
54
|
-
export { default as Table } from
|
|
55
|
-
export { default as Modal } from
|
|
56
|
-
export { default as Drawer } from
|
|
57
|
-
export { default as TreeSelect } from
|
|
58
|
-
export { default as Input } from
|
|
59
|
-
export { default as Select } from
|
|
60
|
-
export { default as Cascader } from
|
|
61
|
-
export { default as AutoComplete } from
|
|
62
|
-
export { default as Div } from
|
|
63
|
-
export { default as Page } from
|
|
64
|
-
export { default as Component } from
|
|
65
|
-
export { default as Filter } from
|
|
66
|
-
export { default as Translation } from
|
|
67
|
-
export { default as SortableList } from
|
|
68
|
-
export { default as RecordView } from
|
|
69
|
-
export { default as QRCode } from
|
|
70
|
-
export { default as ClassicLayout } from
|
|
71
|
-
export { default as List } from
|
|
72
|
-
export { default as Sort } from
|
|
73
|
-
export { default as InputNumberRange } from
|
|
74
|
-
export { default as LowCodePage } from
|
|
75
|
-
export { default as Segmented } from
|
|
76
|
-
export { default as VirtualKeyboard } from
|
|
77
|
-
export { default as VirtualKeyboardTime } from
|
|
78
|
-
export { default as SelectTime } from
|
|
79
|
-
export { default as AutoCompleteNumber } from
|
|
80
|
-
export { default as BatchEditor } from
|
|
1
|
+
export { Affix } from 'antd';
|
|
2
|
+
export { Anchor } from 'antd';
|
|
3
|
+
export { Alert } from 'antd';
|
|
4
|
+
export { Avatar } from 'antd';
|
|
5
|
+
export { Badge } from 'antd';
|
|
6
|
+
export { Breadcrumb } from 'antd';
|
|
7
|
+
export { Card } from 'antd';
|
|
8
|
+
export { Collapse } from 'antd';
|
|
9
|
+
export { Carousel } from 'antd';
|
|
10
|
+
export { Col } from 'antd';
|
|
11
|
+
export { Descriptions } from 'antd';
|
|
12
|
+
export { Divider } from 'antd';
|
|
13
|
+
export { Empty } from 'antd';
|
|
14
|
+
export { Grid } from 'antd';
|
|
15
|
+
export { Image } from 'antd';
|
|
16
|
+
export { InputNumber } from 'antd';
|
|
17
|
+
export { message } from 'antd';
|
|
18
|
+
export { Menu } from 'antd';
|
|
19
|
+
export { Mentions } from 'antd';
|
|
20
|
+
export { Statistic } from 'antd';
|
|
21
|
+
export { notification } from 'antd';
|
|
22
|
+
export { Pagination } from 'antd';
|
|
23
|
+
export { Popconfirm } from 'antd';
|
|
24
|
+
export { Popover } from 'antd';
|
|
25
|
+
export { Progress } from 'antd';
|
|
26
|
+
export { Rate } from 'antd';
|
|
27
|
+
export { Result } from 'antd';
|
|
28
|
+
export { Row } from 'antd';
|
|
29
|
+
export { Space } from 'antd';
|
|
30
|
+
export { Spin } from 'antd';
|
|
31
|
+
export { Steps } from 'antd';
|
|
32
|
+
export { Switch } from 'antd';
|
|
33
|
+
export { Transfer } from 'antd';
|
|
34
|
+
export { Tree } from 'antd';
|
|
35
|
+
export { Tag } from 'antd';
|
|
36
|
+
export { Timeline } from 'antd';
|
|
37
|
+
export { Tooltip } from 'antd';
|
|
38
|
+
export { version } from 'antd';
|
|
39
|
+
export { default as Typography } from './components/typography';
|
|
40
|
+
export { default as Skeleton } from './components/skeleton';
|
|
41
|
+
export { default as Checkbox } from './components/checkbox';
|
|
42
|
+
export { default as Button } from './components/button';
|
|
43
|
+
export { default as Radio } from './components/radio';
|
|
44
|
+
export { default as Upload } from './components/upload';
|
|
45
|
+
export { default as Icon } from './components/icon';
|
|
46
|
+
export { default as Form } from './components/form';
|
|
47
|
+
export { default as Dropdown } from './components/dropdown';
|
|
48
|
+
export { default as Calendar } from './components/calendar';
|
|
49
|
+
export { default as ConfigProvider } from './components/config-provider';
|
|
50
|
+
export { default as DatePicker } from './components/date-picker';
|
|
51
|
+
export { default as Tabs } from './components/tabs';
|
|
52
|
+
export { default as TimePicker } from './components/time-picker';
|
|
53
|
+
export { default as Slider } from './components/slider';
|
|
54
|
+
export { default as Table } from './components/table';
|
|
55
|
+
export { default as Modal } from './components/modal';
|
|
56
|
+
export { default as Drawer } from './components/drawer';
|
|
57
|
+
export { default as TreeSelect } from './components/tree-select';
|
|
58
|
+
export { default as Input } from './components/input';
|
|
59
|
+
export { default as Select } from './components/select';
|
|
60
|
+
export { default as Cascader } from './components/cascader';
|
|
61
|
+
export { default as AutoComplete } from './components/auto-complete';
|
|
62
|
+
export { default as Div } from './components/div';
|
|
63
|
+
export { default as Page } from './components/page';
|
|
64
|
+
export { default as Component } from './components/component';
|
|
65
|
+
export { default as Filter } from './components/filter';
|
|
66
|
+
export { default as Translation } from './components/translation';
|
|
67
|
+
export { default as SortableList } from './components/sortableList';
|
|
68
|
+
export { default as RecordView } from './components/record-view';
|
|
69
|
+
export { default as QRCode } from './components/qrcode';
|
|
70
|
+
export { default as ClassicLayout } from './components/classicLayout';
|
|
71
|
+
export { default as List } from './components/list';
|
|
72
|
+
export { default as Sort } from './components/sort';
|
|
73
|
+
export { default as InputNumberRange } from './components/input-number-range';
|
|
74
|
+
export { default as LowCodePage } from './components/lowCodePage';
|
|
75
|
+
export { default as Segmented } from './components/segmented';
|
|
76
|
+
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
77
|
+
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
78
|
+
export { default as SelectTime } from './components/select-time';
|
|
79
|
+
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
80
|
+
export { default as BatchEditor } from './components/batch-editor';
|
|
81
|
+
export { default as DragSortTree } from './components/drag-sort-tree';
|
package/lib/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(src_exports, {
|
|
|
53
53
|
Descriptions: () => import_antd11.Descriptions,
|
|
54
54
|
Div: () => import_div.default,
|
|
55
55
|
Divider: () => import_antd12.Divider,
|
|
56
|
+
DragSortTree: () => import_drag_sort_tree.default,
|
|
56
57
|
Drawer: () => import_drawer.default,
|
|
57
58
|
Dropdown: () => import_dropdown.default,
|
|
58
59
|
Empty: () => import_antd13.Empty,
|
|
@@ -191,6 +192,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
191
192
|
var import_select_time = __toESM(require("./components/select-time"));
|
|
192
193
|
var import_auto_complete_number = __toESM(require("./components/auto-complete-number"));
|
|
193
194
|
var import_batch_editor = __toESM(require("./components/batch-editor"));
|
|
195
|
+
var import_drag_sort_tree = __toESM(require("./components/drag-sort-tree"));
|
|
194
196
|
// Annotate the CommonJS export names for ESM import in node:
|
|
195
197
|
0 && (module.exports = {
|
|
196
198
|
Affix,
|
|
@@ -217,6 +219,7 @@ var import_batch_editor = __toESM(require("./components/batch-editor"));
|
|
|
217
219
|
Descriptions,
|
|
218
220
|
Div,
|
|
219
221
|
Divider,
|
|
222
|
+
DragSortTree,
|
|
220
223
|
Drawer,
|
|
221
224
|
Dropdown,
|
|
222
225
|
Empty,
|
|
Binary file
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "DragSortTree",
|
|
6
|
+
title: "拖拽排序",
|
|
7
|
+
category: "数据展示",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "DragSortTree",
|
|
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: 'value',
|
|
27
|
+
title: '列表数据源',
|
|
28
|
+
propType: { type: 'arrayOf', value: 'any' },
|
|
29
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'rowKey',
|
|
33
|
+
title: {
|
|
34
|
+
label: '行Key',
|
|
35
|
+
tip: 'rowKey | 当 renderItem 自定义渲染列表项有效时,自定义每一行的 key 的获取方式',
|
|
36
|
+
},
|
|
37
|
+
propType: {
|
|
38
|
+
type: 'oneOfType',
|
|
39
|
+
value: ['string', 'function'],
|
|
40
|
+
},
|
|
41
|
+
defaultValue: 'id',
|
|
42
|
+
setter: [
|
|
43
|
+
'StringSetter',
|
|
44
|
+
{
|
|
45
|
+
componentName: 'FunctionSetter',
|
|
46
|
+
props: {
|
|
47
|
+
template:
|
|
48
|
+
'rowKey(item,${extParams}){\n// 自定义每一行的 key\nreturn `${item.id}`;\n}',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
'VariableSetter',
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'className',
|
|
56
|
+
title: {
|
|
57
|
+
label: '样式类名',
|
|
58
|
+
tip: 'className | 样式类名',
|
|
59
|
+
},
|
|
60
|
+
propType: 'string',
|
|
61
|
+
setter: 'StringSetter',
|
|
62
|
+
},
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "tabKey",
|
|
67
|
+
title: { label: 'tabKey', tip: 'tabKey | 标识当前选中的tab' },
|
|
68
|
+
propType: 'string',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "titleRender",
|
|
72
|
+
title: { label: '标题', tip: '是否自定义标题内容 | node/func' },
|
|
73
|
+
propType: { type: 'oneOfType', value: ['node', 'func'] },
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "hiddenDraggableIcon",
|
|
77
|
+
title: { label: "隐藏拖拽图标", tip: "是否隐藏拖拽图标" },
|
|
78
|
+
propType: "bool",
|
|
79
|
+
defaultValue: false,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "hiddenRightIcon",
|
|
83
|
+
title: { label: "右侧图标", tip: "是否隐藏右侧图标" },
|
|
84
|
+
propType: "bool",
|
|
85
|
+
defaultValue: false,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "hiddenWarningIcon",
|
|
89
|
+
title: { label: "警告图标", tip: "子元素是否隐藏警告图标" },
|
|
90
|
+
propType: "bool",
|
|
91
|
+
defaultValue: false,
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
configure: {
|
|
95
|
+
component: {
|
|
96
|
+
isContainer: true,
|
|
97
|
+
},
|
|
98
|
+
supports: {
|
|
99
|
+
style: true,
|
|
100
|
+
events: [
|
|
101
|
+
{
|
|
102
|
+
name: 'onChange',
|
|
103
|
+
template: 'onChange(value,${extParams}){\n// 排序 改变的回调\n}',
|
|
104
|
+
},
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '拖拽排序',
|
|
4
|
+
// screenshot: require('./__screenshots__/drag-sort-tree.png'),
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'DragSortTree',
|
|
7
|
+
props: {
|
|
8
|
+
value: [{
|
|
9
|
+
"id": 1,
|
|
10
|
+
"title": "资源1",
|
|
11
|
+
"show": true,
|
|
12
|
+
"children": [{
|
|
13
|
+
"id": 11,
|
|
14
|
+
"title": "资源1-1",
|
|
15
|
+
"is_available": 1,
|
|
16
|
+
"type_id": 1
|
|
17
|
+
}, {
|
|
18
|
+
"id": 12,
|
|
19
|
+
"title": "资源1-2",
|
|
20
|
+
"is_available": 1,
|
|
21
|
+
"type_id": 1
|
|
22
|
+
}]
|
|
23
|
+
}, {
|
|
24
|
+
"id": 2,
|
|
25
|
+
"title": "资源2",
|
|
26
|
+
"show": false,
|
|
27
|
+
"children": [{
|
|
28
|
+
"id": 21,
|
|
29
|
+
"title": "资源2-1",
|
|
30
|
+
"is_available": 0,
|
|
31
|
+
"type_id": 2
|
|
32
|
+
}, {
|
|
33
|
+
"id": 22,
|
|
34
|
+
"title": "资源2-2",
|
|
35
|
+
"is_available": 1,
|
|
36
|
+
"type_id": 2
|
|
37
|
+
}]
|
|
38
|
+
}, {
|
|
39
|
+
"id": 3,
|
|
40
|
+
"title": "资源3",
|
|
41
|
+
"show": true,
|
|
42
|
+
"children": [{
|
|
43
|
+
"id": 31,
|
|
44
|
+
"title": "资源3-1",
|
|
45
|
+
"is_available": 1,
|
|
46
|
+
"type_id": 3
|
|
47
|
+
}, {
|
|
48
|
+
"id": 32,
|
|
49
|
+
"title": "资源3-2",
|
|
50
|
+
"is_available": 0,
|
|
51
|
+
"type_id": 3
|
|
52
|
+
}]
|
|
53
|
+
}]
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
];
|
package/lowcode/tabs/meta.ts
CHANGED
|
@@ -380,6 +380,15 @@ export default {
|
|
|
380
380
|
setter: "NumberSetter",
|
|
381
381
|
supportVariable: true,
|
|
382
382
|
},
|
|
383
|
+
{
|
|
384
|
+
name: 'className',
|
|
385
|
+
title: {
|
|
386
|
+
label: '样式类名',
|
|
387
|
+
tip: 'className | 样式类名',
|
|
388
|
+
},
|
|
389
|
+
propType: 'string',
|
|
390
|
+
setter: 'StringSetter',
|
|
391
|
+
},
|
|
383
392
|
{
|
|
384
393
|
name: "tabBarStyle",
|
|
385
394
|
title: { label: "tab bar的样式对象", tip: "tab bar的样式对象" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
63
63
|
"crypto-js": "^4.2.0",
|
|
64
64
|
"@pisell/utils": "1.0.25",
|
|
65
|
-
"@pisell/icon": "0.0.
|
|
65
|
+
"@pisell/icon": "0.0.11",
|
|
66
66
|
"@pisell/date-picker": "1.0.74"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|