@next-bricks/presentational 0.1.3 → 0.1.4

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.
@@ -0,0 +1,295 @@
1
+ 通用描述列表构件。
2
+
3
+ ```yaml preview
4
+ - brick: presentational.general-descriptions
5
+ properties:
6
+ list:
7
+ - label: 姓名
8
+ text: Tom
9
+ - label: 年龄
10
+ text: 18
11
+ - label: 身高
12
+ text: 180cm
13
+ - label: 爱好
14
+ text: 篮球
15
+ ```
16
+
17
+ ## Examples
18
+
19
+ ### Column
20
+
21
+ ```yaml preview
22
+ - brick: presentational.general-descriptions
23
+ properties:
24
+ column: 2
25
+ list:
26
+ - label: 姓名
27
+ text: Tom
28
+ - label: 年龄
29
+ text: 18
30
+ - label: 身高
31
+ text: 180cm
32
+ - label: 爱好
33
+ text: 篮球
34
+ - label: 标签
35
+ useBrick:
36
+ - brick: basic.general-tag-list
37
+ properties:
38
+ list:
39
+ - text: 阳光
40
+ key: 0
41
+ color: blue
42
+ - text: 开朗
43
+ key: 1
44
+ color: red
45
+ - text: 大男孩
46
+ key: 2
47
+ color: green
48
+
49
+ - brick: div
50
+ properties:
51
+ style:
52
+ margin: 10px 0px
53
+ - brick: presentational.general-descriptions
54
+ properties:
55
+ column: 4
56
+ list:
57
+ - label: 姓名
58
+ text: Tom
59
+ - label: 年龄
60
+ text: 18
61
+ - label: 身高
62
+ text: 180cm
63
+ - label: 爱好
64
+ text: 篮球
65
+ - label: 标签
66
+ useBrick:
67
+ - brick: basic.general-tag-list
68
+ properties:
69
+ list:
70
+ - text: 阳光
71
+ key: 0
72
+ color: blue
73
+ - text: 开朗
74
+ key: 1
75
+ color: red
76
+ - text: 大男孩
77
+ key: 2
78
+ color: green
79
+ ```
80
+
81
+ ### Layout
82
+
83
+ ```yaml preview
84
+ - brick: presentational.general-descriptions
85
+ properties:
86
+ layout: horizontal
87
+ list:
88
+ - label: 姓名
89
+ text: Tom
90
+ - label: 年龄
91
+ text: 18
92
+ - label: 身高
93
+ text: 180cm
94
+ - label: 爱好
95
+ text: 篮球
96
+ - label: 标签
97
+ useBrick:
98
+ - brick: basic.general-tag-list
99
+ properties:
100
+ list:
101
+ - text: 阳光
102
+ key: 0
103
+ color: blue
104
+ - text: 开朗
105
+ key: 1
106
+ color: red
107
+ - text: 大男孩
108
+ key: 2
109
+ color: green
110
+ - brick: presentational.general-descriptions
111
+ properties:
112
+ layout: vertical
113
+ list:
114
+ - label: 姓名
115
+ text: Tom
116
+ - label: 年龄
117
+ text: 18
118
+ - label: 身高
119
+ text: 180cm
120
+ - label: 爱好
121
+ text: 篮球
122
+ - label: 标签
123
+ useBrick:
124
+ - brick: basic.general-tag-list
125
+ properties:
126
+ list:
127
+ - text: 阳光
128
+ key: 0
129
+ color: blue
130
+ - text: 开朗
131
+ key: 1
132
+ color: red
133
+ - text: 大男孩
134
+ key: 2
135
+ color: green
136
+ - brick: div
137
+ properties:
138
+ style:
139
+ margin: 10px 0px
140
+ ```
141
+
142
+ ### Bordered
143
+
144
+ ```yaml preview
145
+ - brick: presentational.general-descriptions
146
+ properties:
147
+ bordered: true
148
+ layout: vertical
149
+ list:
150
+ - label: 姓名
151
+ text: Tom
152
+ - label: 年龄
153
+ text: 18
154
+ - label: 身高
155
+ text: 180cm
156
+ - label: 爱好
157
+ text: 篮球
158
+ - label: 标签
159
+ useBrick:
160
+ - brick: basic.general-tag-list
161
+ properties:
162
+ list:
163
+ - text: 阳光
164
+ key: 0
165
+ color: blue
166
+ - text: 开朗
167
+ key: 1
168
+ color: red
169
+ - text: 大男孩
170
+ key: 2
171
+ color: green
172
+ - brick: div
173
+ properties:
174
+ style:
175
+ margin: 10px 0px
176
+ - brick: presentational.general-descriptions
177
+ properties:
178
+ bordered: true
179
+ layout: horizontal
180
+ list:
181
+ - label: 姓名
182
+ text: Tom
183
+ - label: 年龄
184
+ text: 18
185
+ - label: 身高
186
+ text: 180cm
187
+ - label: 爱好
188
+ text: 篮球
189
+ - label: 标签
190
+ useBrick:
191
+ - brick: basic.general-tag-list
192
+ properties:
193
+ list:
194
+ - text: 阳光
195
+ key: 0
196
+ color: blue
197
+ - text: 开朗
198
+ key: 1
199
+ color: red
200
+ - text: 大男孩
201
+ key: 2
202
+ color: green
203
+ ```
204
+
205
+ ### Hide Groups
206
+
207
+ ```yaml preview
208
+ - brick: presentational.general-descriptions
209
+ properties:
210
+ hideGroups: other
211
+ list:
212
+ - label: 姓名
213
+ text: Tom
214
+ - label: 年龄
215
+ text: 18
216
+ - label: 身高
217
+ text: 180cm
218
+ - label: 爱好
219
+ text: 篮球
220
+ group: "other"
221
+ - label: 标签
222
+ group: "other"
223
+ useBrick:
224
+ - brick: basic.general-tag-list
225
+ properties:
226
+ list:
227
+ - text: 阳光
228
+ key: 0
229
+ color: blue
230
+ - text: 开朗
231
+ key: 1
232
+ color: red
233
+ - text: 大男孩
234
+ key: 2
235
+ color: green
236
+
237
+ - brick: div
238
+ properties:
239
+ style:
240
+ margin: 10px 0px
241
+ - brick: presentational.general-descriptions
242
+ properties:
243
+ hideGroups:
244
+ - name
245
+ - other
246
+ list:
247
+ - label: 姓名
248
+ text: Tom
249
+ group: name
250
+ - label: 年龄
251
+ text: 18
252
+ group: age
253
+ - label: 身高
254
+ text: 180cm
255
+ - label: 爱好
256
+ text: 篮球
257
+ group: other
258
+ - label: 标签
259
+ useBrick:
260
+ - brick: basic.general-tag-list
261
+ properties:
262
+ list:
263
+ - text: 阳光
264
+ key: 0
265
+ color: blue
266
+ - text: 开朗
267
+ key: 1
268
+ color: red
269
+ - text: 大男孩
270
+ key: 2
271
+ color: green
272
+ ```
273
+
274
+ ### DataSource
275
+
276
+ ```yaml preview
277
+ - brick: presentational.general-descriptions
278
+ properties:
279
+ dataSource:
280
+ text: Hello world
281
+ list:
282
+ - label: 姓名
283
+ text: Tom
284
+ - label: 年龄
285
+ text: 18
286
+ - label: 身高
287
+ text: 180cm
288
+ - label: 爱好
289
+ text: 篮球
290
+ - label: Form dataSource
291
+ useBrick:
292
+ brick: div
293
+ properties:
294
+ textContent: "<% DATA.text %>"
295
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,11 +11,13 @@
11
11
  "sideEffects": true,
12
12
  "files": [
13
13
  "dist",
14
- "dist-types"
14
+ "dist-types",
15
+ "docs"
15
16
  ],
16
17
  "exports": {
17
18
  "./package.json": "./package.json",
18
19
  "./dist/bricks.json": "./dist/bricks.json",
20
+ "./dist/manifest.json": "./dist/manifest.json",
19
21
  "./*": {
20
22
  "types": "./dist-types/*/index.d.ts"
21
23
  }
@@ -25,14 +27,15 @@
25
27
  "build": "npm run build:main && npm run build:types",
26
28
  "build:main": "cross-env NODE_ENV=production build-next-bricks",
27
29
  "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json",
30
+ "build:manifest": "cross-env NODE_ENV=production build-next-bricks --manifest-only",
28
31
  "test": "cross-env NODE_ENV='test' test-next",
29
32
  "test:ci": "cross-env NODE_ENV='test' CI=true test-next",
30
33
  "prepublishOnly": "cp package.json package.json.bak && npm pkg delete dependencies",
31
34
  "postpublish": "mv package.json.bak package.json"
32
35
  },
33
36
  "devDependencies": {
34
- "@next-core/build-next-bricks": "^1.5.3",
37
+ "@next-core/build-next-bricks": "^1.7.2",
35
38
  "@next-core/test-next": "^1.0.6"
36
39
  },
37
- "gitHead": "49a0208d46261323e82f5800c7f8c46a03a2ca15"
40
+ "gitHead": "66f40f3eff556846c449ad72ba0607890668f8d0"
38
41
  }