@dckj-npm/dc-material 0.1.0 → 0.1.1
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 +12 -12
- package/build/lowcode/assets-dev.json +3 -3
- package/build/lowcode/assets-prod.json +12 -12
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +144 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +295 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +295 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +6 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/es/components/bottom-navigation/bottom-navigation.js +37 -0
- package/es/components/bottom-navigation/index.d.ts +3 -0
- package/es/components/bottom-navigation/index.js +2 -0
- package/es/components/bottom-navigation/index.scss +16 -0
- package/es/components/dc-slider/index.d.ts +3 -0
- package/es/components/dc-slider/index.js +2 -0
- package/es/components/dc-slider/index.scss +8 -0
- package/es/components/dc-slider/slider.d.ts +32 -0
- package/es/components/dc-slider/slider.js +14 -0
- package/es/components/title/index.d.ts +8 -0
- package/es/components/title/index.js +7 -0
- package/es/components/title/title-1.d.ts +10 -0
- package/es/components/title/title-1.js +16 -0
- package/es/components/title/title-1.scss +26 -0
- package/es/components/title/title-2.d.ts +18 -0
- package/es/components/title/title-2.js +31 -0
- package/es/components/title/title-2.scss +22 -0
- package/es/index.d.ts +8 -4
- package/es/index.js +4 -2
- package/es/style.js +2 -2
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/lib/components/bottom-navigation/bottom-navigation.js +44 -0
- package/lib/components/bottom-navigation/index.d.ts +3 -0
- package/lib/components/bottom-navigation/index.js +7 -0
- package/lib/components/bottom-navigation/index.scss +16 -0
- package/lib/components/dc-slider/index.d.ts +3 -0
- package/lib/components/dc-slider/index.js +7 -0
- package/lib/components/dc-slider/index.scss +8 -0
- package/lib/components/dc-slider/slider.d.ts +32 -0
- package/lib/components/dc-slider/slider.js +21 -0
- package/lib/components/title/index.d.ts +8 -0
- package/lib/components/title/index.js +8 -0
- package/lib/components/title/title-1.d.ts +10 -0
- package/lib/components/title/title-1.js +21 -0
- package/lib/components/title/title-1.scss +26 -0
- package/lib/components/title/title-2.d.ts +18 -0
- package/lib/components/title/title-2.js +36 -0
- package/lib/components/title/title-2.scss +22 -0
- package/lib/index.d.ts +8 -4
- package/lib/index.js +8 -5
- package/lib/style.js +2 -2
- package/lowcode/d-c-slider/meta.ts +331 -0
- package/lowcode/d-c-slider/snippets.ts +42 -0
- package/lowcode/navigation/meta.ts +117 -0
- package/lowcode/teletext-list/meta.ts +2 -2
- package/lowcode/{colorful-input → title1}/meta.ts +14 -12
- package/lowcode/title2/meta.ts +92 -0
- package/lowcode_es/d-c-slider/meta.d.ts +140 -0
- package/lowcode_es/d-c-slider/meta.js +298 -0
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -0
- package/lowcode_es/d-c-slider/snippets.js +36 -0
- package/lowcode_es/meta.js +7 -5
- package/lowcode_es/navigation/meta.js +105 -0
- package/lowcode_es/teletext-list/meta.js +3 -3
- package/lowcode_es/{colorful-input → title1}/meta.js +15 -13
- package/lowcode_es/title2/meta.js +82 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +140 -0
- package/lowcode_lib/d-c-slider/meta.js +303 -0
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -0
- package/lowcode_lib/d-c-slider/snippets.js +40 -0
- package/lowcode_lib/meta.js +7 -5
- package/lowcode_lib/navigation/meta.js +110 -0
- package/lowcode_lib/teletext-list/meta.js +3 -3
- package/lowcode_lib/title1/meta.d.ts +22 -0
- package/lowcode_lib/{colorful-input → title1}/meta.js +15 -13
- package/lowcode_lib/title2/meta.d.ts +22 -0
- package/lowcode_lib/{colorful-button → title2}/meta.js +37 -40
- package/package.json +6 -5
- package/lowcode/colorful-button/meta.ts +0 -102
- package/lowcode_es/colorful-button/meta.js +0 -85
- /package/lowcode_es/{colorful-button → navigation}/meta.d.ts +0 -0
- /package/lowcode_es/{colorful-input → title1}/meta.d.ts +0 -0
- /package/{lowcode_lib/colorful-button → lowcode_es/title2}/meta.d.ts +0 -0
- /package/lowcode_lib/{colorful-input → navigation}/meta.d.ts +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-2 {
|
|
4
|
+
|
|
5
|
+
& > div {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
color: #144477;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 3.5px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
& > div.tips {
|
|
14
|
+
content: '';
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: 3.5px;
|
|
17
|
+
height: 14.5px;
|
|
18
|
+
background-color: #388AF7;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export { default as
|
|
3
|
-
export type {
|
|
4
|
-
export { default as
|
|
1
|
+
export type { ComponentProps } from './components/dc-slider';
|
|
2
|
+
export { default as DCSlider } from './components/dc-slider';
|
|
3
|
+
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
+
export { default as Navigation } from './components/bottom-navigation';
|
|
5
5
|
export type { TeletextListProps } from './components/teletext-list';
|
|
6
6
|
export { default as TeletextList } from './components/teletext-list';
|
|
7
|
+
export type { Title1Props } from './components/title';
|
|
8
|
+
export { Title1 } from './components/title';
|
|
9
|
+
export type { Title2Props } from './components/title';
|
|
10
|
+
export { Title2 } from './components/title';
|
|
7
11
|
declare const bizCssPrefix = "bizpack";
|
|
8
12
|
export { bizCssPrefix };
|
package/lib/index.js
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.bizCssPrefix = exports.TeletextList = exports.
|
|
6
|
-
var
|
|
7
|
-
exports.
|
|
8
|
-
var
|
|
9
|
-
exports.
|
|
5
|
+
exports.bizCssPrefix = exports.Title2 = exports.Title1 = exports.TeletextList = exports.Navigation = exports.DCSlider = void 0;
|
|
6
|
+
var _dcSlider = _interopRequireDefault(require("./components/dc-slider"));
|
|
7
|
+
exports.DCSlider = _dcSlider["default"];
|
|
8
|
+
var _bottomNavigation = _interopRequireDefault(require("./components/bottom-navigation"));
|
|
9
|
+
exports.Navigation = _bottomNavigation["default"];
|
|
10
10
|
var _teletextList = _interopRequireDefault(require("./components/teletext-list"));
|
|
11
11
|
exports.TeletextList = _teletextList["default"];
|
|
12
|
+
var _title = require("./components/title");
|
|
13
|
+
exports.Title1 = _title.Title1;
|
|
14
|
+
exports.Title2 = _title.Title2;
|
|
12
15
|
var bizCssPrefix = exports.bizCssPrefix = 'bizpack';
|
package/lib/style.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
require('@alifd/next/lib/
|
|
2
|
-
|
|
1
|
+
require('@alifd/next/lib/slider/style');
|
|
2
|
+
|
|
3
3
|
require('./index.scss');
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
group: '原子组件',
|
|
5
|
+
componentName: 'DCSlider',
|
|
6
|
+
title: '图片轮播',
|
|
7
|
+
docUrl: '',
|
|
8
|
+
screenshot: '',
|
|
9
|
+
"npm": {
|
|
10
|
+
"package": "@dckj-npm/dc-material",
|
|
11
|
+
"version": "0.1.2",
|
|
12
|
+
"exportName": "DCSlider",
|
|
13
|
+
"main": "src\\index.tsx",
|
|
14
|
+
"destructuring": true,
|
|
15
|
+
"subName": ""
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
name: 'prefix',
|
|
20
|
+
propType: 'string',
|
|
21
|
+
defaultValue: 'next-',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'rtl',
|
|
25
|
+
propType: 'bool',
|
|
26
|
+
defaultValue: false,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'className',
|
|
30
|
+
propType: 'any',
|
|
31
|
+
description: '自定义传入的样式',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'slidesToShow',
|
|
35
|
+
title: {
|
|
36
|
+
label: '图片数量',
|
|
37
|
+
tip: 'slidesToShow|同时展示的图片数量',
|
|
38
|
+
},
|
|
39
|
+
propType: 'number',
|
|
40
|
+
description: '同时展示的图片数量',
|
|
41
|
+
defaultValue: 1,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'slidesToScroll',
|
|
45
|
+
title: {
|
|
46
|
+
label: '同时滑动的图片数量',
|
|
47
|
+
tip: 'slidesToScroll',
|
|
48
|
+
},
|
|
49
|
+
propType: 'number',
|
|
50
|
+
description: '同时滑动的图片数量',
|
|
51
|
+
defaultValue: 1,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'speed',
|
|
55
|
+
title: {
|
|
56
|
+
label: '轮播速度',
|
|
57
|
+
tip: 'speed',
|
|
58
|
+
},
|
|
59
|
+
propType: 'number',
|
|
60
|
+
description: '轮播速度',
|
|
61
|
+
defaultValue: 600,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'activeIndex',
|
|
65
|
+
title: {
|
|
66
|
+
label: '指定轮播图',
|
|
67
|
+
tip: 'activeIndex|跳转到指定的轮播图(受控)',
|
|
68
|
+
},
|
|
69
|
+
propType: 'number',
|
|
70
|
+
description: '跳转到指定的轮播图(受控)',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'adaptiveHeight',
|
|
74
|
+
title: {
|
|
75
|
+
label: '自适应高度',
|
|
76
|
+
tip: 'adaptiveHeight',
|
|
77
|
+
},
|
|
78
|
+
propType: 'bool',
|
|
79
|
+
description: '是否使用自适应高度',
|
|
80
|
+
defaultValue: true,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'animation',
|
|
84
|
+
title: {
|
|
85
|
+
label: '动效类型',
|
|
86
|
+
tip: 'animation',
|
|
87
|
+
},
|
|
88
|
+
propType: {
|
|
89
|
+
type: 'oneOfType',
|
|
90
|
+
value: ['string', 'bool'],
|
|
91
|
+
},
|
|
92
|
+
description: "动效类型,默认是'slide'",
|
|
93
|
+
defaultValue: 'slide',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'arrows',
|
|
97
|
+
title: {
|
|
98
|
+
label: '箭头',
|
|
99
|
+
tip: 'arrows|是否显示箭头',
|
|
100
|
+
},
|
|
101
|
+
propType: 'bool',
|
|
102
|
+
description: '是否显示箭头',
|
|
103
|
+
defaultValue: true,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'arrowSize',
|
|
107
|
+
title: {
|
|
108
|
+
label: '箭头大小',
|
|
109
|
+
tip: "arrowSize|导航箭头大小 可选值: 'medium', 'large'",
|
|
110
|
+
},
|
|
111
|
+
propType: {
|
|
112
|
+
type: 'oneOf',
|
|
113
|
+
value: ['medium', 'large'],
|
|
114
|
+
},
|
|
115
|
+
description: "导航箭头大小 可选值: 'medium', 'large'",
|
|
116
|
+
defaultValue: 'medium',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'arrowPosition',
|
|
120
|
+
title: {
|
|
121
|
+
label: '箭头位置',
|
|
122
|
+
tip: "arrowPosition|导航箭头位置 可选值: 'inner', 'outer'",
|
|
123
|
+
},
|
|
124
|
+
propType: {
|
|
125
|
+
type: 'oneOf',
|
|
126
|
+
value: ['inner', 'outer'],
|
|
127
|
+
},
|
|
128
|
+
description: "导航箭头位置 可选值: 'inner', 'outer'",
|
|
129
|
+
defaultValue: 'inner',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'arrowDirection',
|
|
133
|
+
title: {
|
|
134
|
+
label: '箭头方向',
|
|
135
|
+
tip: "arrowDirection|导航箭头的方向 可选值: 'hoz', 'ver'",
|
|
136
|
+
},
|
|
137
|
+
propType: {
|
|
138
|
+
type: 'oneOf',
|
|
139
|
+
value: ['hoz', 'ver'],
|
|
140
|
+
},
|
|
141
|
+
description: "导航箭头的方向 可选值: 'hoz', 'ver'",
|
|
142
|
+
defaultValue: 'hoz',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'autoplay',
|
|
146
|
+
title: {
|
|
147
|
+
label: '自动播放',
|
|
148
|
+
tip: 'autoplay',
|
|
149
|
+
},
|
|
150
|
+
propType: 'bool',
|
|
151
|
+
description: '是否自动播放',
|
|
152
|
+
defaultValue: false,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'autoplaySpeed',
|
|
156
|
+
title: {
|
|
157
|
+
label: '自动播放的速度',
|
|
158
|
+
tip: 'autoplaySpeed, 默认 3000 毫秒',
|
|
159
|
+
},
|
|
160
|
+
propType: 'number',
|
|
161
|
+
description: '自动播放的速度',
|
|
162
|
+
defaultValue: 3000,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'nextArrow',
|
|
166
|
+
propType: 'node',
|
|
167
|
+
description: '向后箭头',
|
|
168
|
+
defaultValue: null,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'prevArrow',
|
|
172
|
+
propType: 'node',
|
|
173
|
+
description: '向前箭头',
|
|
174
|
+
defaultValue: null,
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'centerMode',
|
|
178
|
+
title: {
|
|
179
|
+
label: '居中模式',
|
|
180
|
+
tip: 'centerMode',
|
|
181
|
+
},
|
|
182
|
+
propType: 'bool',
|
|
183
|
+
description: '是否启用居中模式',
|
|
184
|
+
defaultValue: false,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'dots',
|
|
188
|
+
title: {
|
|
189
|
+
label: '导航锚点',
|
|
190
|
+
tip: 'dots|是否显示导航锚点',
|
|
191
|
+
},
|
|
192
|
+
propType: 'bool',
|
|
193
|
+
description: '是否显示导航锚点',
|
|
194
|
+
defaultValue: true,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'dotsDirection',
|
|
198
|
+
title: {
|
|
199
|
+
label: '导航锚点位置',
|
|
200
|
+
tip: 'dotsDirection',
|
|
201
|
+
},
|
|
202
|
+
propType: {
|
|
203
|
+
type: 'oneOf',
|
|
204
|
+
value: ['hoz', 'ver'],
|
|
205
|
+
},
|
|
206
|
+
description: '导航锚点位置',
|
|
207
|
+
defaultValue: 'hoz',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'draggable',
|
|
211
|
+
title: {
|
|
212
|
+
label: '可拖拽',
|
|
213
|
+
tip: 'draggable',
|
|
214
|
+
},
|
|
215
|
+
propType: 'bool',
|
|
216
|
+
description: '是否可拖拽',
|
|
217
|
+
defaultValue: true,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: 'infinite',
|
|
221
|
+
title: {
|
|
222
|
+
label: '无穷循环',
|
|
223
|
+
tip: 'infinite',
|
|
224
|
+
},
|
|
225
|
+
propType: 'bool',
|
|
226
|
+
description: '是否使用无穷循环模式',
|
|
227
|
+
defaultValue: true,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'defaultActiveIndex',
|
|
231
|
+
title: {
|
|
232
|
+
label: '初始轮播图',
|
|
233
|
+
tip: 'defaultActiveIndex|初始被激活的轮播图',
|
|
234
|
+
},
|
|
235
|
+
propType: 'number',
|
|
236
|
+
description: '初始被激活的轮播图',
|
|
237
|
+
defaultValue: 0,
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'lazyLoad',
|
|
241
|
+
title: {
|
|
242
|
+
label: '懒加载',
|
|
243
|
+
tip: 'lazyLoad|是否启用懒加载',
|
|
244
|
+
},
|
|
245
|
+
propType: 'bool',
|
|
246
|
+
description: '是否启用懒加载',
|
|
247
|
+
defaultValue: false,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'slideDirection',
|
|
251
|
+
title: {
|
|
252
|
+
label: '轮播方向',
|
|
253
|
+
tip: 'slideDirection',
|
|
254
|
+
},
|
|
255
|
+
propType: {
|
|
256
|
+
type: 'oneOf',
|
|
257
|
+
value: ['hoz', 'ver'],
|
|
258
|
+
},
|
|
259
|
+
description: '轮播方向',
|
|
260
|
+
defaultValue: 'hoz',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: 'triggerType',
|
|
264
|
+
title: {
|
|
265
|
+
label: '触发方式',
|
|
266
|
+
tip: 'triggerType|锚点导航触发方式',
|
|
267
|
+
},
|
|
268
|
+
propType: {
|
|
269
|
+
type: 'oneOf',
|
|
270
|
+
value: ['click', 'hover'],
|
|
271
|
+
},
|
|
272
|
+
description: '锚点导航触发方式',
|
|
273
|
+
defaultValue: 'click',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: 'onChange',
|
|
277
|
+
propType: 'func',
|
|
278
|
+
description: '轮播切换的回调函数\n@param {Number} index 幻灯片的索引',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: 'onBeforeChange',
|
|
282
|
+
propType: 'func',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'style',
|
|
286
|
+
propType: 'object',
|
|
287
|
+
description: '自定义传入的class',
|
|
288
|
+
defaultValue: null,
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: 'picUrls',
|
|
292
|
+
propType: 'array',
|
|
293
|
+
description: '图片路径',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'focusOnSelect',
|
|
297
|
+
title: {
|
|
298
|
+
label: '自动居中',
|
|
299
|
+
tip: 'focusOnSelect|多图轮播时,点击选中后自动居中',
|
|
300
|
+
},
|
|
301
|
+
propType: 'bool',
|
|
302
|
+
description: '多图轮播时,点击选中后自动居中',
|
|
303
|
+
defaultValue: false,
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
configure: {
|
|
307
|
+
component: {
|
|
308
|
+
isContainer: true,
|
|
309
|
+
},
|
|
310
|
+
props: {
|
|
311
|
+
isExtends: true,
|
|
312
|
+
override: [
|
|
313
|
+
{
|
|
314
|
+
name: 'rtl',
|
|
315
|
+
condition: () => false,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: 'prefix',
|
|
319
|
+
condition: () => false,
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
name: 'picUrls',
|
|
323
|
+
setter: 'SetterFormVariable'
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
icon: '',
|
|
329
|
+
category: '信息展示',
|
|
330
|
+
snippets,
|
|
331
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '图片轮播',
|
|
4
|
+
screenshot:
|
|
5
|
+
'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
6
|
+
schema: {
|
|
7
|
+
componentName: 'DCSlider',
|
|
8
|
+
props: {
|
|
9
|
+
prefix: 'next-',
|
|
10
|
+
animation: 'slide',
|
|
11
|
+
arrows: true,
|
|
12
|
+
arrowSize: 'medium',
|
|
13
|
+
arrowPosition: 'inner',
|
|
14
|
+
arrowDirection: 'hoz',
|
|
15
|
+
autoplaySpeed: 3000,
|
|
16
|
+
dots: true,
|
|
17
|
+
dotsDirection: 'hoz',
|
|
18
|
+
draggable: true,
|
|
19
|
+
infinite: true,
|
|
20
|
+
slide: 'div',
|
|
21
|
+
slideDirection: 'hoz',
|
|
22
|
+
slidesToShow: 1,
|
|
23
|
+
slidesToScroll: 1,
|
|
24
|
+
speed: 600,
|
|
25
|
+
triggerType: 'click',
|
|
26
|
+
centerPadding: '50px',
|
|
27
|
+
cssEase: 'ease',
|
|
28
|
+
edgeFriction: 0.35,
|
|
29
|
+
swipe: true,
|
|
30
|
+
touchMove: true,
|
|
31
|
+
touchThreshold: 5,
|
|
32
|
+
useCSS: true,
|
|
33
|
+
waitForAnimate: true,
|
|
34
|
+
// 轮播路径
|
|
35
|
+
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png',
|
|
36
|
+
'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg',
|
|
37
|
+
'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg',
|
|
38
|
+
'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
];
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const NavigationMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "Navigation",
|
|
6
|
+
"title": "Navigation",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "dc-material",
|
|
12
|
+
"version": "0.1.1",
|
|
13
|
+
"exportName": "Navigation",
|
|
14
|
+
"main": "src\\index.tsx",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "itemArray",
|
|
25
|
+
"zh-CN": "itemArray"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "itemArray",
|
|
29
|
+
"setter": {
|
|
30
|
+
"componentName": "ArraySetter",
|
|
31
|
+
"props": {
|
|
32
|
+
"itemSetter": {
|
|
33
|
+
"componentName": "ObjectSetter",
|
|
34
|
+
"props": {
|
|
35
|
+
"config": {
|
|
36
|
+
"items": [
|
|
37
|
+
{
|
|
38
|
+
"title": {
|
|
39
|
+
"label": {
|
|
40
|
+
"type": "i18n",
|
|
41
|
+
"en-US": "text",
|
|
42
|
+
"zh-CN": "text"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"name": "text",
|
|
46
|
+
"setter": {
|
|
47
|
+
"componentName": "StringSetter",
|
|
48
|
+
"isRequired": true,
|
|
49
|
+
"initialValue": ""
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"title": {
|
|
54
|
+
"label": {
|
|
55
|
+
"type": "i18n",
|
|
56
|
+
"en-US": "icon",
|
|
57
|
+
"zh-CN": "icon"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"name": "icon",
|
|
61
|
+
"setter": {
|
|
62
|
+
"componentName": "StringSetter",
|
|
63
|
+
"isRequired": true,
|
|
64
|
+
"initialValue": ""
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": {
|
|
69
|
+
"label": {
|
|
70
|
+
"type": "i18n",
|
|
71
|
+
"en-US": "selectedIcon",
|
|
72
|
+
"zh-CN": "selectedIcon"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"name": "selectedIcon",
|
|
76
|
+
"setter": {
|
|
77
|
+
"componentName": "StringSetter",
|
|
78
|
+
"isRequired": true,
|
|
79
|
+
"initialValue": ""
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"extraSetter": {
|
|
84
|
+
"componentName": "MixedSetter",
|
|
85
|
+
"isRequired": false,
|
|
86
|
+
"props": {}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"isRequired": true,
|
|
93
|
+
"initialValue": []
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"supports": {
|
|
98
|
+
"style": true
|
|
99
|
+
},
|
|
100
|
+
"component": {}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
104
|
+
{
|
|
105
|
+
"title": "Navigation",
|
|
106
|
+
"screenshot": "",
|
|
107
|
+
"schema": {
|
|
108
|
+
"componentName": "Navigation",
|
|
109
|
+
"props": {}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
];
|
|
113
|
+
|
|
114
|
+
export default {
|
|
115
|
+
...NavigationMeta,
|
|
116
|
+
snippets
|
|
117
|
+
};
|
|
@@ -2,7 +2,7 @@ import {IPublicTypeComponentMetadata, IPublicTypeSnippet} from '@alilc/lowcode-t
|
|
|
2
2
|
|
|
3
3
|
const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
4
4
|
"componentName": "TeletextList",
|
|
5
|
-
"title": "
|
|
5
|
+
"title": "图文列表",
|
|
6
6
|
"docUrl": "",
|
|
7
7
|
"screenshot": "",
|
|
8
8
|
"devMode": "proCode",
|
|
@@ -277,7 +277,7 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
277
277
|
};
|
|
278
278
|
const snippets: IPublicTypeSnippet[] = [
|
|
279
279
|
{
|
|
280
|
-
"title": "
|
|
280
|
+
"title": "图文列表",
|
|
281
281
|
"screenshot": "",
|
|
282
282
|
"schema": {
|
|
283
283
|
"componentName": "TeletextList",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
"componentName": "
|
|
6
|
-
"title": "
|
|
4
|
+
const Title1Meta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "Title1",
|
|
6
|
+
"title": "个性化标题1",
|
|
7
7
|
"docUrl": "",
|
|
8
8
|
"screenshot": "",
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@dckj-npm/dc-material",
|
|
12
12
|
"version": "0.1.0",
|
|
13
|
-
"exportName": "
|
|
13
|
+
"exportName": "Title1",
|
|
14
14
|
"main": "src/index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
16
16
|
"subName": ""
|
|
@@ -21,15 +21,17 @@ const ColorfulInputMeta: IPublicTypeComponentMetadata = {
|
|
|
21
21
|
"title": {
|
|
22
22
|
"label": {
|
|
23
23
|
"type": "i18n",
|
|
24
|
-
"en-US": "
|
|
25
|
-
"zh-CN": "
|
|
26
|
-
}
|
|
24
|
+
"en-US": "title",
|
|
25
|
+
"zh-CN": "标题"
|
|
26
|
+
},
|
|
27
|
+
"tip": "title | 标题"
|
|
27
28
|
},
|
|
28
|
-
"name": "
|
|
29
|
+
"name": "title",
|
|
30
|
+
"description": "标题",
|
|
29
31
|
"setter": {
|
|
30
32
|
"componentName": "StringSetter",
|
|
31
33
|
"isRequired": false,
|
|
32
|
-
"initialValue": ""
|
|
34
|
+
"initialValue": "标题名称"
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
],
|
|
@@ -41,16 +43,16 @@ const ColorfulInputMeta: IPublicTypeComponentMetadata = {
|
|
|
41
43
|
};
|
|
42
44
|
const snippets: IPublicTypeSnippet[] = [
|
|
43
45
|
{
|
|
44
|
-
"title": "
|
|
46
|
+
"title": "个性化标题1",
|
|
45
47
|
"screenshot": "",
|
|
46
48
|
"schema": {
|
|
47
|
-
"componentName": "
|
|
49
|
+
"componentName": "Title1",
|
|
48
50
|
"props": {}
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
];
|
|
52
54
|
|
|
53
55
|
export default {
|
|
54
|
-
...
|
|
56
|
+
...Title1Meta,
|
|
55
57
|
snippets
|
|
56
58
|
};
|