@pisell/materials 1.0.37 → 1.0.39
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.js +8 -8
- package/build/lowcode/view.js +8 -8
- package/lowcode/div/meta.ts +6 -2
- package/lowcode/filter/meta.ts +137 -0
- package/package.json +2 -2
package/lowcode/div/meta.ts
CHANGED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from "@alilc/lowcode-types";
|
|
2
|
+
|
|
3
|
+
const PageMeta: ComponentMetadata = {
|
|
4
|
+
componentName: "Filter",
|
|
5
|
+
title: "Filter",
|
|
6
|
+
docUrl: "",
|
|
7
|
+
screenshot: "",
|
|
8
|
+
devMode: "proCode",
|
|
9
|
+
npm: {
|
|
10
|
+
package: "@pisell/materials",
|
|
11
|
+
version: "1.0.11",
|
|
12
|
+
exportName: "Filter",
|
|
13
|
+
main: "src/index.tsx",
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: "",
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
name: "filter.show",
|
|
20
|
+
title: { label: "开启筛选", tip: "开启筛选" },
|
|
21
|
+
propType: "object",
|
|
22
|
+
setter: "BoolSetter",
|
|
23
|
+
defaultValue: false,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "filter.list",
|
|
27
|
+
condition: {
|
|
28
|
+
type: "JSFunction",
|
|
29
|
+
value: 'target => !!target.getProps().getPropValue("filter.show")',
|
|
30
|
+
},
|
|
31
|
+
setter: {
|
|
32
|
+
componentName: "ArraySetter",
|
|
33
|
+
props: {
|
|
34
|
+
itemSetter: {
|
|
35
|
+
componentName: "ObjectSetter",
|
|
36
|
+
props: {
|
|
37
|
+
config: {
|
|
38
|
+
items: [
|
|
39
|
+
{
|
|
40
|
+
name: "label",
|
|
41
|
+
title: { label: "筛选项", tip: "筛选项" },
|
|
42
|
+
propType: "string",
|
|
43
|
+
setter: "StringSetter",
|
|
44
|
+
isRequired: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "name",
|
|
48
|
+
title: { label: "字段", tip: "所筛选的字段" },
|
|
49
|
+
propType: "string",
|
|
50
|
+
setter: "StringSetter",
|
|
51
|
+
isRequired: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "type",
|
|
55
|
+
title: { label: "字段类型", tip: "所筛选的字段类型" },
|
|
56
|
+
propType: "string",
|
|
57
|
+
setter: {
|
|
58
|
+
componentName: "SelectSetter",
|
|
59
|
+
mode: "single",
|
|
60
|
+
defaultValue: "single",
|
|
61
|
+
props: {
|
|
62
|
+
options: [
|
|
63
|
+
{
|
|
64
|
+
title: "输入框",
|
|
65
|
+
value: "text",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: "数字输入框",
|
|
69
|
+
value: "number",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title: "下拉选择框",
|
|
73
|
+
value: "select",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: "日期选择器",
|
|
77
|
+
value: "date",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: "日期范围选择器",
|
|
81
|
+
value: "rangePicker",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "other",
|
|
89
|
+
title: {
|
|
90
|
+
label: "其他拓展属性",
|
|
91
|
+
tip: "其他拓展属性",
|
|
92
|
+
},
|
|
93
|
+
propType: "object",
|
|
94
|
+
setter: "JsonSetter",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
initialValue: { label: "标题", name: "name", type: "text" },
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
configure: {
|
|
106
|
+
supports: {
|
|
107
|
+
style: true,
|
|
108
|
+
events: [
|
|
109
|
+
{
|
|
110
|
+
name: 'onValuesChange',
|
|
111
|
+
template:
|
|
112
|
+
"onValuesChange(changedValues, values){}",
|
|
113
|
+
},
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
const snippets: Snippet[] = [
|
|
119
|
+
{
|
|
120
|
+
title: "Filter",
|
|
121
|
+
screenshot: "",
|
|
122
|
+
schema: {
|
|
123
|
+
componentName: "Filter",
|
|
124
|
+
props: {
|
|
125
|
+
filter: {
|
|
126
|
+
show: true,
|
|
127
|
+
list: [{ label: "标题", name: "name", type: "text" }],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
|
|
134
|
+
export default {
|
|
135
|
+
...PageMeta,
|
|
136
|
+
snippets,
|
|
137
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@dnd-kit/sortable": "^7.0.2",
|
|
54
54
|
"@dnd-kit/utilities": "^3.2.1",
|
|
55
55
|
"ahooks": "^3.7.6",
|
|
56
|
+
"@pisell/icon": "0.0.7",
|
|
56
57
|
"@pisell/utils": "1.0.1",
|
|
57
|
-
"@pisell/icon": "0.0.6",
|
|
58
58
|
"@pisell/date-picker": "1.0.7"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|