@pisell/materials 1.0.380 → 1.0.382
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- 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/pisellDatePicker/datePickerCpt.js +6 -0
- package/es/components/pisellTags/index.d.ts +13 -0
- package/es/components/pisellTags/index.js +84 -0
- package/es/components/pisellTags/index.less +17 -0
- package/es/components/pisellTags/utils.d.ts +1 -0
- package/es/components/pisellTags/utils.js +89 -0
- package/es/index.d.ts +3 -2
- package/es/index.js +2 -1
- package/lib/components/pisellDatePicker/datePickerCpt.js +4 -1
- package/lib/components/pisellTags/index.d.ts +13 -0
- package/lib/components/pisellTags/index.js +114 -0
- package/lib/components/pisellTags/index.less +17 -0
- package/lib/components/pisellTags/utils.d.ts +1 -0
- package/lib/components/pisellTags/utils.js +86 -0
- package/lib/index.d.ts +3 -2
- package/lib/index.js +3 -0
- package/lowcode/pisell-tags/__screenshots__/tag-1.png +0 -0
- package/lowcode/pisell-tags/meta.ts +123 -0
- package/lowcode/pisell-tags/snippets.ts +14 -0
- package/package.json +3 -3
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "PisellTags",
|
|
6
|
+
title: "标签",
|
|
7
|
+
category: "数据展示",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "PisellTags",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: "children",
|
|
22
|
+
title: { label: "内容" },
|
|
23
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
24
|
+
setter: ['PisellI18nSetter', 'SlotSetter']
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'type',
|
|
28
|
+
title: { label: '展示类型' },
|
|
29
|
+
setter: {
|
|
30
|
+
componentName: 'RadioGroupSetter',
|
|
31
|
+
props: {
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
title: '填充',
|
|
35
|
+
value: 'pill_color',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: '边框',
|
|
39
|
+
value: 'pill_outline',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
propType: { type: 'oneOf', value: ['pill_color', 'pill_outline'] },
|
|
45
|
+
defaultValue: 'pill_color',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "icon",
|
|
49
|
+
title: {
|
|
50
|
+
label: {
|
|
51
|
+
type: "i18n",
|
|
52
|
+
"en-US": "icon",
|
|
53
|
+
"zh-CN": "图标",
|
|
54
|
+
},
|
|
55
|
+
tip: "icon | Set the icon component of the button",
|
|
56
|
+
},
|
|
57
|
+
propType: { type: "oneOfType", value: ["node"] },
|
|
58
|
+
setter: [{
|
|
59
|
+
componentName: "SlotSetter",
|
|
60
|
+
initialValue: {
|
|
61
|
+
type: "JSSlot",
|
|
62
|
+
value: [
|
|
63
|
+
{
|
|
64
|
+
componentName: "Icon",
|
|
65
|
+
props: {
|
|
66
|
+
type: "SmileOutlined",
|
|
67
|
+
size: 20,
|
|
68
|
+
rotate: 0,
|
|
69
|
+
spin: false,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
defaultValue: null
|
|
75
|
+
}],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'color',
|
|
79
|
+
title: { label: '颜色' },
|
|
80
|
+
setter: [
|
|
81
|
+
{
|
|
82
|
+
componentName: 'RadioGroupSetter',
|
|
83
|
+
props: {
|
|
84
|
+
options: [
|
|
85
|
+
{
|
|
86
|
+
title: 'Success',
|
|
87
|
+
value: 'success',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: 'Warning',
|
|
91
|
+
value: 'warning',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: 'Error',
|
|
95
|
+
value: 'error',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
title: 'Gray',
|
|
99
|
+
value: 'gray',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
'ColorSetter', "StringSetter"
|
|
105
|
+
],
|
|
106
|
+
propType: { type: 'oneOf', value: ['success', 'warning', 'error', 'gray'] },
|
|
107
|
+
defaultValue: 'success',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
configure: {
|
|
111
|
+
component: { isContainer: true },
|
|
112
|
+
supports: {
|
|
113
|
+
style: true,
|
|
114
|
+
events: [
|
|
115
|
+
{
|
|
116
|
+
name: "onClick",
|
|
117
|
+
template:
|
|
118
|
+
"onClick(event,${extParams}){\n// 点击时的回调\nconsole.log('onClick', event);}",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '标签',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/tag-1.png',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellTags',
|
|
7
|
+
props: {
|
|
8
|
+
children: '标签',
|
|
9
|
+
type: "pill_color",
|
|
10
|
+
color: 'success'
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.382",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
64
64
|
"crypto-js": "^4.2.0",
|
|
65
65
|
"@zxing/library": "0.21.2",
|
|
66
|
-
"@pisell/
|
|
66
|
+
"@pisell/utils": "1.0.33",
|
|
67
67
|
"@pisell/icon": "0.0.10",
|
|
68
|
-
"@pisell/
|
|
68
|
+
"@pisell/date-picker": "1.0.96"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": "^18.0.0",
|