@pisell/materials 1.0.69 → 1.0.72
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/meta.js +2 -2
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/lowcode/affix/meta.ts +29 -29
- package/lowcode/alert/meta.ts +3 -0
- package/lowcode/anchor.link/meta.ts +1 -0
- package/lowcode/auto-complete/meta.ts +133 -133
- package/lowcode/avatar/meta.ts +51 -50
- package/lowcode/badge/meta.ts +67 -66
- package/lowcode/breadcrumb/meta.ts +2 -3
- package/lowcode/button/meta.ts +1 -1
- package/lowcode/calendar/meta.ts +92 -92
- package/lowcode/card/meta.ts +67 -65
- package/lowcode/carousel/meta.ts +110 -110
- package/lowcode/cascader/meta.ts +135 -135
- package/lowcode/checkbox/meta.ts +1 -1
- package/lowcode/checkbox.group/meta.ts +1 -0
- package/lowcode/collapse/meta.ts +172 -172
- package/lowcode/collapse.pane/meta.ts +1 -0
- package/lowcode/date-picker/meta.ts +1 -1
- package/lowcode/date-picker.range-picker/meta.ts +1 -1
- package/lowcode/descriptions/meta.ts +197 -193
- package/lowcode/descriptions.item/meta.ts +1 -0
- package/lowcode/divider/meta.ts +44 -44
- package/lowcode/drawer/meta.ts +1 -1
- package/lowcode/dropdown/meta.ts +104 -104
- package/lowcode/empty/meta.ts +1 -0
- package/lowcode/filter/meta.ts +5 -4
- package/lowcode/form.item/meta.ts +8 -5
- package/lowcode/image/meta.ts +1 -0
- package/lowcode/input/meta.ts +5 -1
- package/lowcode/input-number/meta.ts +104 -98
- package/lowcode/input.password/meta.ts +4 -1
- package/lowcode/input.search/meta.ts +99 -92
- package/lowcode/input.text-area/meta.ts +1 -1
- package/lowcode/menu/meta.ts +1 -1
- package/lowcode/menu/snippets.ts +1 -1
- package/lowcode/modal/meta.ts +137 -131
- package/lowcode/popconfirm/meta.ts +3 -4
- package/lowcode/popover/meta.ts +2 -2
- package/lowcode/radio/meta.ts +1 -1
- package/lowcode/rate/meta.ts +1 -0
- package/lowcode/select/meta.ts +3 -3
- package/lowcode/spin/meta.ts +1 -0
- package/lowcode/steps/meta.ts +3 -3
- package/lowcode/switch/meta.ts +2 -2
- package/lowcode/table/meta.ts +4 -4
- package/lowcode/tabs/meta.ts +1 -1
- package/lowcode/tag/meta.ts +1 -0
- package/lowcode/time-picker/meta.ts +1 -0
- package/lowcode/timeline/meta.ts +1 -1
- package/lowcode/tooltip/meta.ts +1 -1
- package/lowcode/transfer/meta.ts +3 -2
- package/lowcode/tree-select/meta.ts +1 -1
- package/lowcode/typography.link/meta.ts +3 -1
- package/lowcode/typography.paragraph/meta.ts +3 -1
- package/lowcode/typography.text/meta.ts +3 -1
- package/lowcode/typography.title/meta.ts +3 -1
- package/package.json +2 -2
package/lowcode/affix/meta.ts
CHANGED
|
@@ -16,38 +16,38 @@ const AffixMeta: ComponentMetadata = {
|
|
|
16
16
|
destructuring: true,
|
|
17
17
|
subName: "",
|
|
18
18
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
tip: "距离窗口底部达到指定偏移量后触发",
|
|
26
|
-
},
|
|
27
|
-
propType: "number",
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: "offsetBottom",
|
|
22
|
+
title: {
|
|
23
|
+
label: "底部触发距离",
|
|
24
|
+
tip: "距离窗口底部达到指定偏移量后触发",
|
|
28
25
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: "target",
|
|
39
|
-
title: {
|
|
40
|
-
label: "获取触发元素",
|
|
41
|
-
tip: "设置 `Affix` 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数",
|
|
42
|
-
},
|
|
43
|
-
propType: "func",
|
|
26
|
+
propType: "number",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "offsetTop",
|
|
30
|
+
title: {
|
|
31
|
+
label: "顶部触发距离",
|
|
32
|
+
tip: "距离窗口顶部达到指定偏移量后触发",
|
|
44
33
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
propType: "number",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "target",
|
|
38
|
+
title: {
|
|
39
|
+
label: "获取触发元素",
|
|
40
|
+
tip: "设置 `Affix` 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数",
|
|
49
41
|
},
|
|
50
|
-
|
|
42
|
+
propType: "func",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "onChange",
|
|
46
|
+
title: { label: "监听状态改变", tip: "固定状态改变时触发的回调函数" },
|
|
47
|
+
propType: "func",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
configure: {
|
|
51
51
|
supports: {
|
|
52
52
|
style: true,
|
|
53
53
|
events: [
|
package/lowcode/alert/meta.ts
CHANGED
|
@@ -40,6 +40,7 @@ const AlertMeta: ComponentMetadata = {
|
|
|
40
40
|
name: "closeText",
|
|
41
41
|
title: { label: "自定义关闭按钮", tip: "自定义关闭按钮" },
|
|
42
42
|
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
43
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
name: "description",
|
|
@@ -48,6 +49,7 @@ const AlertMeta: ComponentMetadata = {
|
|
|
48
49
|
tip: "警告提示的辅助性文字介绍",
|
|
49
50
|
},
|
|
50
51
|
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
52
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
55
|
name: "icon",
|
|
@@ -61,6 +63,7 @@ const AlertMeta: ComponentMetadata = {
|
|
|
61
63
|
name: "message",
|
|
62
64
|
title: { label: "警告提示内容", tip: "警告提示内容" },
|
|
63
65
|
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
66
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
64
67
|
},
|
|
65
68
|
{
|
|
66
69
|
name: "showIcon",
|
|
@@ -18,147 +18,147 @@ export default {
|
|
|
18
18
|
destructuring: true,
|
|
19
19
|
subName: "",
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
initialValue: () => {
|
|
64
|
-
return {
|
|
65
|
-
label: "选项名",
|
|
66
|
-
value: uuid(),
|
|
67
|
-
};
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
name: "defaultValue",
|
|
24
|
+
title: { label: "默认值", tip: "默认选中值" },
|
|
25
|
+
setter: "PisellI18nSetter",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "value",
|
|
29
|
+
title: { label: "当前值", tip: "当前选中值" },
|
|
30
|
+
setter: "PisellI18nSetter",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "allowClear",
|
|
34
|
+
title: { label: "支持清除", tip: "是否允许清除" },
|
|
35
|
+
propType: "bool",
|
|
36
|
+
defaultValue: false,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "options",
|
|
40
|
+
title: { label: "选项内容", tip: "选项列表" },
|
|
41
|
+
setter: {
|
|
42
|
+
componentName: "ArraySetter",
|
|
43
|
+
props: {
|
|
44
|
+
itemSetter: {
|
|
45
|
+
componentName: "ObjectSetter",
|
|
46
|
+
props: {
|
|
47
|
+
config: {
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
name: "label",
|
|
51
|
+
title: "选项名",
|
|
52
|
+
setter: "PisellI18nSetter",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "value",
|
|
56
|
+
title: "选项值",
|
|
57
|
+
setter: "StringSetter",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
68
60
|
},
|
|
69
61
|
},
|
|
62
|
+
initialValue: () => {
|
|
63
|
+
return {
|
|
64
|
+
label: "选项名",
|
|
65
|
+
value: uuid(),
|
|
66
|
+
};
|
|
67
|
+
},
|
|
70
68
|
},
|
|
71
69
|
},
|
|
72
70
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
propType: "bool",
|
|
86
|
-
defaultValue: false,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: "defaultActiveFirstOption",
|
|
90
|
-
title: { label: "默认高亮首个选项", tip: "是否默认高亮第一个选项" },
|
|
91
|
-
propType: "bool",
|
|
92
|
-
defaultValue: true,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "disabled",
|
|
96
|
-
title: { label: "是否禁用", tip: "是否为禁用状态" },
|
|
97
|
-
propType: "bool",
|
|
98
|
-
defaultValue: false,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "filterOption",
|
|
102
|
-
title: { label: "可选项筛选", tip: "是否根据输入项进行筛选" },
|
|
103
|
-
propType: "bool",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "placeholder",
|
|
107
|
-
title: { label: "输入框提示", tip: "输入框提示" },
|
|
108
|
-
propType: "string",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: "onBlur",
|
|
112
|
-
title: { label: "失去焦点时的回调", tip: "失去焦点时的回调" },
|
|
113
|
-
propType: "func",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "onChange",
|
|
117
|
-
title: {
|
|
118
|
-
label: "value变化时的回调",
|
|
119
|
-
tip: "选中 option,或 input 的 value 变化时,调用此函数",
|
|
120
|
-
},
|
|
121
|
-
propType: "func",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: "onFocus",
|
|
125
|
-
title: { label: "获得焦点时的回调", tip: "获得焦点时的回调" },
|
|
126
|
-
propType: "func",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: "onSearch",
|
|
130
|
-
title: { label: "搜索补全项的时候调用", tip: "搜索补全项的时候调用" },
|
|
131
|
-
propType: "func",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: "onSelect",
|
|
135
|
-
title: {
|
|
136
|
-
label: "被选中时的回调",
|
|
137
|
-
tip: "被选中时调用,参数为选中项的 value 值",
|
|
138
|
-
},
|
|
139
|
-
propType: "func",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: "defaultOpen",
|
|
143
|
-
title: { label: "默认展开菜单", tip: "是否默认展开下拉菜单" },
|
|
144
|
-
propType: "bool",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "autoFocus",
|
|
74
|
+
title: { label: "自动聚焦", tip: "自动获取焦点" },
|
|
75
|
+
propType: "bool",
|
|
76
|
+
defaultValue: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "backfill",
|
|
80
|
+
title: {
|
|
81
|
+
label: "键盘选中回填",
|
|
82
|
+
tip: "使用键盘选择选项的时候把选中项回填到输入框中",
|
|
145
83
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
84
|
+
propType: "bool",
|
|
85
|
+
defaultValue: false,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "defaultActiveFirstOption",
|
|
89
|
+
title: { label: "默认高亮首个选项", tip: "是否默认高亮第一个选项" },
|
|
90
|
+
propType: "bool",
|
|
91
|
+
defaultValue: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "disabled",
|
|
95
|
+
title: { label: "是否禁用", tip: "是否为禁用状态" },
|
|
96
|
+
propType: "bool",
|
|
97
|
+
defaultValue: false,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "filterOption",
|
|
101
|
+
title: { label: "可选项筛选", tip: "是否根据输入项进行筛选" },
|
|
102
|
+
propType: "bool",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "placeholder",
|
|
106
|
+
title: { label: "输入框提示", tip: "输入框提示" },
|
|
107
|
+
setter: "PisellI18nSetter",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "onBlur",
|
|
111
|
+
title: { label: "失去焦点时的回调", tip: "失去焦点时的回调" },
|
|
112
|
+
propType: "func",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "onChange",
|
|
116
|
+
title: {
|
|
117
|
+
label: "value变化时的回调",
|
|
118
|
+
tip: "选中 option,或 input 的 value 变化时,调用此函数",
|
|
155
119
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
120
|
+
propType: "func",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "onFocus",
|
|
124
|
+
title: { label: "获得焦点时的回调", tip: "获得焦点时的回调" },
|
|
125
|
+
propType: "func",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "onSearch",
|
|
129
|
+
title: { label: "搜索补全项的时候调用", tip: "搜索补全项的时候调用" },
|
|
130
|
+
propType: "func",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "onSelect",
|
|
134
|
+
title: {
|
|
135
|
+
label: "被选中时的回调",
|
|
136
|
+
tip: "被选中时调用,参数为选中项的 value 值",
|
|
160
137
|
},
|
|
161
|
-
|
|
138
|
+
propType: "func",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "defaultOpen",
|
|
142
|
+
title: { label: "默认展开菜单", tip: "是否默认展开下拉菜单" },
|
|
143
|
+
propType: "bool",
|
|
144
|
+
},
|
|
145
|
+
// {
|
|
146
|
+
// name: 'open',
|
|
147
|
+
// title: { label: '展开下拉菜单', tip: '是否展开下拉菜单' },
|
|
148
|
+
// propType: 'bool',
|
|
149
|
+
// },
|
|
150
|
+
{
|
|
151
|
+
name: "onDropdownVisibleChange",
|
|
152
|
+
title: { label: "展开下拉菜单的回调", tip: "展开下拉菜单的回调" },
|
|
153
|
+
propType: "func",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "notFoundContent",
|
|
157
|
+
title: { label: "无数据展示", tip: "当下拉列表为空时显示的内容" },
|
|
158
|
+
setter: "PisellI18nSetter",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
configure: {
|
|
162
162
|
/*props: [
|
|
163
163
|
{
|
|
164
164
|
name: 'defaultValue',
|
package/lowcode/avatar/meta.ts
CHANGED
|
@@ -14,60 +14,61 @@ export default {
|
|
|
14
14
|
destructuring: true,
|
|
15
15
|
subName: "",
|
|
16
16
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
defaultValue: "default",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "src",
|
|
43
|
-
title: { label: "图片地址", tip: "图片类头像的资源地址" },
|
|
44
|
-
propType: "string",
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
name: "icon",
|
|
20
|
+
title: { label: "头像图标", tip: "设置头像的自定义图标" },
|
|
21
|
+
propType: "node",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "shape",
|
|
25
|
+
title: { label: "头像形状", tip: "指定头像的形状" },
|
|
26
|
+
propType: { type: "oneOf", value: ["circle", "square"] },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "size",
|
|
30
|
+
title: { label: "尺寸", tip: "设置头像的大小" },
|
|
31
|
+
propType: {
|
|
32
|
+
type: "oneOfType",
|
|
33
|
+
value: [
|
|
34
|
+
"number",
|
|
35
|
+
{ type: "oneOf", value: ["large", "small", "default"] },
|
|
36
|
+
],
|
|
45
37
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
defaultValue: "default",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "src",
|
|
42
|
+
title: { label: "图片地址", tip: "图片类头像的资源地址" },
|
|
43
|
+
propType: "string",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "alt",
|
|
47
|
+
title: {
|
|
48
|
+
label: "替代文本",
|
|
49
|
+
tip: "图像无法显示时的替代文本",
|
|
53
50
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
propType: "string",
|
|
52
|
+
setter: "PisellI18nSetter",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "onError",
|
|
56
|
+
title: {
|
|
57
|
+
label: "图片加载失败的事件",
|
|
58
|
+
tip: "图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为",
|
|
61
59
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
propType: "func",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "gap",
|
|
64
|
+
title: {
|
|
65
|
+
label: "文字边距",
|
|
66
|
+
tip: "字符类型距离左右两侧边界单位像素",
|
|
69
67
|
},
|
|
70
|
-
|
|
68
|
+
propType: "number",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
configure: {
|
|
71
72
|
supports: {
|
|
72
73
|
style: true,
|
|
73
74
|
events: [
|
package/lowcode/badge/meta.ts
CHANGED
|
@@ -16,79 +16,80 @@ export default {
|
|
|
16
16
|
destructuring: true,
|
|
17
17
|
subName: "",
|
|
18
18
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
tip: '展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏',
|
|
31
|
-
},
|
|
32
|
-
propType: 'node',
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'color',
|
|
22
|
+
title: { label: '圆点颜色', tip: '自定义小圆点的颜色' },
|
|
23
|
+
propType: 'string',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'count',
|
|
27
|
+
title: {
|
|
28
|
+
label: '展示数字',
|
|
29
|
+
tip: '展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏',
|
|
33
30
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
defaultValue: false,
|
|
31
|
+
propType: 'node',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'dot',
|
|
35
|
+
title: {
|
|
36
|
+
label: '展示圆点',
|
|
37
|
+
tip: '不展示数字,只有一个小红点',
|
|
42
38
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
propType: 'bool',
|
|
40
|
+
defaultValue: false,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'offset',
|
|
44
|
+
title: {
|
|
45
|
+
label: '圆点偏移',
|
|
46
|
+
tip: '设置状态点的位置偏移 [number, number]',
|
|
50
47
|
},
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
propType: { type: 'arrayOf', value: 'number' },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'overflowCount',
|
|
52
|
+
title: { label: '封顶值', tip: '展示封顶的数字值' },
|
|
53
|
+
propType: 'number',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'showZero',
|
|
57
|
+
title: {
|
|
58
|
+
label: '展示零值',
|
|
59
|
+
tip: '当数值为 0 时,是否展示 Badge',
|
|
55
60
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
propType: 'bool',
|
|
62
|
+
defaultValue: false,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'status',
|
|
66
|
+
title: { label: '状态', tip: '设置 Badge 为状态点' },
|
|
67
|
+
propType: {
|
|
68
|
+
type: 'oneOf',
|
|
69
|
+
value: ['success', 'processing', 'default', 'error', 'warning'],
|
|
64
70
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'text',
|
|
74
|
+
title: {
|
|
75
|
+
label: '状态文本',
|
|
76
|
+
tip: '在设置了 `status` 的前提下有效,设置状态点的文本',
|
|
72
77
|
},
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
title: {
|
|
76
|
-
label: '状态文本',
|
|
77
|
-
tip: '在设置了 `status` 的前提下有效,设置状态点的文本',
|
|
78
|
-
},
|
|
79
|
-
condition(target) {
|
|
80
|
-
return !!target.getProps().getPropValue('status');
|
|
81
|
-
},
|
|
82
|
-
propType: 'string',
|
|
78
|
+
condition(target) {
|
|
79
|
+
return !!target.getProps().getPropValue('status');
|
|
83
80
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
propType: 'string',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'title',
|
|
85
|
+
title: {
|
|
86
|
+
label: '悬浮提示',
|
|
87
|
+
tip: '设置鼠标放在状态点上时显示的文字',
|
|
91
88
|
},
|
|
92
|
-
|
|
89
|
+
propType: 'string',
|
|
90
|
+
setter: 'PisellI18nSetter',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
configure: {
|
|
93
94
|
supports: { style: true } },
|
|
94
95
|
};
|
|
@@ -57,8 +57,7 @@ export default {
|
|
|
57
57
|
label: "路由名称",
|
|
58
58
|
tip: "breadcrumbName | 路由名称",
|
|
59
59
|
},
|
|
60
|
-
|
|
61
|
-
setter: "StringSetter",
|
|
60
|
+
setter: "PisellI18nSetter",
|
|
62
61
|
isRequired: true,
|
|
63
62
|
},
|
|
64
63
|
],
|
|
@@ -83,7 +82,7 @@ export default {
|
|
|
83
82
|
title: { label: "分隔符自定义", tip: "分隔符自定义" },
|
|
84
83
|
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
85
84
|
setter: [
|
|
86
|
-
"
|
|
85
|
+
"PisellI18nSetter",
|
|
87
86
|
{
|
|
88
87
|
componentName: "SlotSetter",
|
|
89
88
|
initialValue: {
|
package/lowcode/button/meta.ts
CHANGED