@dckj-npm/dc-material 0.1.10 → 0.1.11
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/README.md +17 -17
- package/build/index.css +2 -0
- package/build/index.html +1 -0
- package/build/index.js +60 -0
- package/build/lowcode/assets-daily.json +67 -0
- package/build/lowcode/assets-dev.json +67 -0
- package/build/lowcode/assets-prod.json +67 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +308 -0
- package/build/lowcode/render/default/view.css +1 -0
- package/build/lowcode/render/default/view.js +295 -0
- package/build/lowcode/view.css +1 -0
- package/build/lowcode/view.js +295 -0
- package/dist/BizComps.css +1 -0
- package/dist/BizComps.js +7 -0
- package/dist/BizComps.js.map +1 -0
- package/es/assets/icon/navigation/index-selected.png +0 -0
- package/es/assets/icon/navigation/index.png +0 -0
- package/es/assets/icon/navigation/message-selected.png +0 -0
- package/es/assets/icon/navigation/message.png +0 -0
- package/es/assets/icon/navigation/mine-selected.png +0 -0
- package/es/assets/icon/navigation/mine.png +0 -0
- package/es/assets/icon/position/arror.png +0 -0
- package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/es/components/bottom-navigation/bottom-navigation.js +39 -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 +19 -0
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/colorful-button.js +25 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-button/index.js +2 -0
- package/es/components/colorful-button/index.scss +5 -0
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/colorful-input.js +19 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/colorful-input/index.js +2 -0
- package/es/components/colorful-input/index.scss +5 -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/grid-nav/grid-nav.d.ts +13 -0
- package/es/components/grid-nav/grid-nav.js +91 -0
- package/es/components/grid-nav/index.d.ts +3 -0
- package/es/components/grid-nav/index.js +2 -0
- package/es/components/grid-nav/index.scss +36 -0
- package/es/components/menu-list/index.d.ts +6 -0
- package/es/components/menu-list/index.js +6 -0
- package/es/components/menu-list/index.scss +16 -0
- package/es/components/menu-list/menu-list-item.d.ts +5 -0
- package/es/components/menu-list/menu-list-item.js +32 -0
- package/es/components/menu-list/menu-list-item.scss +49 -0
- package/es/components/menu-list/menu-list.d.ts +5 -0
- package/es/components/menu-list/menu-list.js +25 -0
- package/es/components/menu-list/types.d.ts +23 -0
- package/es/components/menu-list/types.js +1 -0
- package/es/components/position/entity.d.ts +5 -0
- package/es/components/position/entity.js +1 -0
- package/es/components/position/index.d.ts +3 -0
- package/es/components/position/index.js +2 -0
- package/es/components/position/index.scss +21 -0
- package/es/components/position/position-left.d.ts +9 -0
- package/es/components/position/position-left.js +28 -0
- package/es/components/position/position-list.d.ts +12 -0
- package/es/components/position/position-list.js +30 -0
- package/es/components/position/position.d.ts +8 -0
- package/es/components/position/position.js +47 -0
- package/es/components/search-bar/index.d.ts +3 -0
- package/es/components/search-bar/index.js +2 -0
- package/es/components/search-bar/index.scss +3 -0
- package/es/components/search-bar/search-bar.d.ts +7 -0
- package/es/components/search-bar/search-bar.js +21 -0
- package/es/components/tag/index.d.ts +6 -0
- package/es/components/tag/index.js +5 -0
- package/es/components/tag/index.scss +17 -0
- package/es/components/tag/tag.d.ts +14 -0
- package/es/components/tag/tag.js +14 -0
- package/es/components/teletext-list/index.d.ts +6 -0
- package/es/components/teletext-list/index.js +6 -0
- package/es/components/teletext-list/index.scss +16 -0
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -0
- package/es/components/teletext-list/teletext-list-item.js +35 -0
- package/es/components/teletext-list/teletext-list-item.scss +74 -0
- package/es/components/teletext-list/teletext-list.d.ts +57 -0
- package/es/components/teletext-list/teletext-list.js +75 -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 +25 -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 +22 -0
- package/es/index.js +12 -0
- package/es/index.scss +5 -0
- package/es/style.js +4 -0
- package/es/utils/children-node-handle.d.ts +6 -0
- package/es/utils/children-node-handle.js +23 -0
- package/es/utils/component-wrapper.d.ts +9 -0
- package/es/utils/component-wrapper.js +38 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +3 -0
- package/lib/assets/icon/navigation/index-selected.png +0 -0
- package/lib/assets/icon/navigation/index.png +0 -0
- package/lib/assets/icon/navigation/message-selected.png +0 -0
- package/lib/assets/icon/navigation/message.png +0 -0
- package/lib/assets/icon/navigation/mine-selected.png +0 -0
- package/lib/assets/icon/navigation/mine.png +0 -0
- package/lib/assets/icon/position/arror.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/lib/components/bottom-navigation/bottom-navigation.js +46 -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 +19 -0
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/colorful-button.js +32 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-button/index.js +7 -0
- package/lib/components/colorful-button/index.scss +5 -0
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/colorful-input.js +26 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/colorful-input/index.js +7 -0
- package/lib/components/colorful-input/index.scss +5 -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/grid-nav/grid-nav.d.ts +13 -0
- package/lib/components/grid-nav/grid-nav.js +98 -0
- package/lib/components/grid-nav/index.d.ts +3 -0
- package/lib/components/grid-nav/index.js +7 -0
- package/lib/components/grid-nav/index.scss +36 -0
- package/lib/components/menu-list/index.d.ts +6 -0
- package/lib/components/menu-list/index.js +10 -0
- package/lib/components/menu-list/index.scss +16 -0
- package/lib/components/menu-list/menu-list-item.d.ts +5 -0
- package/lib/components/menu-list/menu-list-item.js +37 -0
- package/lib/components/menu-list/menu-list-item.scss +49 -0
- package/lib/components/menu-list/menu-list.d.ts +5 -0
- package/lib/components/menu-list/menu-list.js +30 -0
- package/lib/components/menu-list/types.d.ts +23 -0
- package/lib/components/menu-list/types.js +3 -0
- package/lib/components/position/entity.d.ts +5 -0
- package/lib/components/position/entity.js +3 -0
- package/lib/components/position/index.d.ts +3 -0
- package/lib/components/position/index.js +7 -0
- package/lib/components/position/index.scss +21 -0
- package/lib/components/position/position-left.d.ts +9 -0
- package/lib/components/position/position-left.js +35 -0
- package/lib/components/position/position-list.d.ts +12 -0
- package/lib/components/position/position-list.js +36 -0
- package/lib/components/position/position.d.ts +8 -0
- package/lib/components/position/position.js +54 -0
- package/lib/components/search-bar/index.d.ts +3 -0
- package/lib/components/search-bar/index.js +7 -0
- package/lib/components/search-bar/index.scss +3 -0
- package/lib/components/search-bar/search-bar.d.ts +7 -0
- package/lib/components/search-bar/search-bar.js +28 -0
- package/lib/components/tag/index.d.ts +6 -0
- package/lib/components/tag/index.js +10 -0
- package/lib/components/tag/index.scss +17 -0
- package/lib/components/tag/tag.d.ts +14 -0
- package/lib/components/tag/tag.js +21 -0
- package/lib/components/teletext-list/index.d.ts +6 -0
- package/lib/components/teletext-list/index.js +10 -0
- package/lib/components/teletext-list/index.scss +16 -0
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -0
- package/lib/components/teletext-list/teletext-list-item.js +39 -0
- package/lib/components/teletext-list/teletext-list-item.scss +74 -0
- package/lib/components/teletext-list/teletext-list.d.ts +57 -0
- package/lib/components/teletext-list/teletext-list.js +79 -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 +25 -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 +22 -0
- package/lib/index.js +25 -0
- package/lib/index.scss +5 -0
- package/lib/style.js +4 -0
- package/lib/utils/children-node-handle.d.ts +6 -0
- package/lib/utils/children-node-handle.js +28 -0
- package/lib/utils/component-wrapper.d.ts +9 -0
- package/lib/utils/component-wrapper.js +45 -0
- package/lib/variables.d.ts +2 -0
- package/lib/variables.js +5 -0
- package/lib/variables.scss +3 -0
- package/lowcode/d-c-slider/meta.ts +15 -1
- package/lowcode/position/meta.ts +211 -211
- package/lowcode/tag-c/meta.ts +75 -75
- package/lowcode_es/d-c-slider/meta.d.ts +152 -0
- package/lowcode_es/d-c-slider/meta.js +313 -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/grid-nav/meta.d.ts +22 -0
- package/lowcode_es/grid-nav/meta.js +152 -0
- package/lowcode_es/menu-list/meta.d.ts +22 -0
- package/lowcode_es/menu-list/meta.js +128 -0
- package/lowcode_es/meta.js +173 -0
- package/lowcode_es/navigation/meta.d.ts +22 -0
- package/lowcode_es/navigation/meta.js +136 -0
- package/lowcode_es/position/meta.d.ts +22 -0
- package/lowcode_es/position/meta.js +190 -0
- package/lowcode_es/search-bar/meta.d.ts +22 -0
- package/lowcode_es/search-bar/meta.js +46 -0
- package/lowcode_es/tag-c/meta.d.ts +22 -0
- package/lowcode_es/tag-c/meta.js +66 -0
- package/lowcode_es/teletext-list/meta.d.ts +22 -0
- package/lowcode_es/teletext-list/meta.js +294 -0
- package/lowcode_es/title1/meta.d.ts +22 -0
- package/lowcode_es/title1/meta.js +51 -0
- package/lowcode_es/title2/meta.d.ts +22 -0
- package/lowcode_es/title2/meta.js +83 -0
- package/lowcode_es/view.js +18 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +152 -0
- package/lowcode_lib/d-c-slider/meta.js +318 -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/grid-nav/meta.d.ts +22 -0
- package/lowcode_lib/grid-nav/meta.js +157 -0
- package/lowcode_lib/menu-list/meta.d.ts +22 -0
- package/lowcode_lib/menu-list/meta.js +133 -0
- package/lowcode_lib/meta.js +177 -0
- package/lowcode_lib/navigation/meta.d.ts +22 -0
- package/lowcode_lib/navigation/meta.js +141 -0
- package/lowcode_lib/position/meta.d.ts +22 -0
- package/lowcode_lib/position/meta.js +195 -0
- package/lowcode_lib/search-bar/meta.d.ts +22 -0
- package/lowcode_lib/search-bar/meta.js +51 -0
- package/lowcode_lib/tag-c/meta.d.ts +22 -0
- package/lowcode_lib/tag-c/meta.js +71 -0
- package/lowcode_lib/teletext-list/meta.d.ts +22 -0
- package/lowcode_lib/teletext-list/meta.js +299 -0
- package/lowcode_lib/title1/meta.d.ts +22 -0
- package/lowcode_lib/title1/meta.js +56 -0
- package/lowcode_lib/title2/meta.d.ts +22 -0
- package/lowcode_lib/title2/meta.js +88 -0
- package/lowcode_lib/view.js +29 -0
- package/package.json +110 -110
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
group: string;
|
|
3
|
+
componentName: string;
|
|
4
|
+
title: string;
|
|
5
|
+
docUrl: string;
|
|
6
|
+
screenshot: string;
|
|
7
|
+
npm: {
|
|
8
|
+
package: string;
|
|
9
|
+
version: string;
|
|
10
|
+
exportName: string;
|
|
11
|
+
main: string;
|
|
12
|
+
destructuring: boolean;
|
|
13
|
+
subName: string;
|
|
14
|
+
};
|
|
15
|
+
props: ({
|
|
16
|
+
name: string;
|
|
17
|
+
propType: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
description?: undefined;
|
|
20
|
+
title?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
name: string;
|
|
23
|
+
propType: string;
|
|
24
|
+
defaultValue: boolean;
|
|
25
|
+
description?: undefined;
|
|
26
|
+
title?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
name: string;
|
|
29
|
+
propType: string;
|
|
30
|
+
description: string;
|
|
31
|
+
defaultValue?: undefined;
|
|
32
|
+
title?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
name: string;
|
|
35
|
+
title: {
|
|
36
|
+
label: string;
|
|
37
|
+
tip: string;
|
|
38
|
+
};
|
|
39
|
+
propType: string;
|
|
40
|
+
description: string;
|
|
41
|
+
defaultValue: number;
|
|
42
|
+
} | {
|
|
43
|
+
name: string;
|
|
44
|
+
title: {
|
|
45
|
+
label: string;
|
|
46
|
+
tip: string;
|
|
47
|
+
};
|
|
48
|
+
propType: string;
|
|
49
|
+
description: string;
|
|
50
|
+
defaultValue?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
name: string;
|
|
53
|
+
title: {
|
|
54
|
+
label: string;
|
|
55
|
+
tip: string;
|
|
56
|
+
};
|
|
57
|
+
propType: string;
|
|
58
|
+
description: string;
|
|
59
|
+
defaultValue: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
name: string;
|
|
62
|
+
title: {
|
|
63
|
+
label: string;
|
|
64
|
+
tip: string;
|
|
65
|
+
};
|
|
66
|
+
propType: {
|
|
67
|
+
type: string;
|
|
68
|
+
value: string[];
|
|
69
|
+
};
|
|
70
|
+
description: string;
|
|
71
|
+
defaultValue: string;
|
|
72
|
+
} | {
|
|
73
|
+
name: string;
|
|
74
|
+
propType: string;
|
|
75
|
+
description: string;
|
|
76
|
+
defaultValue: any;
|
|
77
|
+
title?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
propType: string;
|
|
81
|
+
defaultValue?: undefined;
|
|
82
|
+
description?: undefined;
|
|
83
|
+
title?: undefined;
|
|
84
|
+
})[];
|
|
85
|
+
configure: {
|
|
86
|
+
component: {
|
|
87
|
+
isContainer: boolean;
|
|
88
|
+
};
|
|
89
|
+
props: {
|
|
90
|
+
isExtends: boolean;
|
|
91
|
+
override: ({
|
|
92
|
+
name: string;
|
|
93
|
+
condition: () => boolean;
|
|
94
|
+
setter?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
name: string;
|
|
97
|
+
setter: {
|
|
98
|
+
componentName: string;
|
|
99
|
+
props: {
|
|
100
|
+
attributes: {
|
|
101
|
+
label: string;
|
|
102
|
+
value: string;
|
|
103
|
+
children: {
|
|
104
|
+
label: string;
|
|
105
|
+
value: string;
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
condition?: undefined;
|
|
111
|
+
})[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
icon: string;
|
|
115
|
+
category: string;
|
|
116
|
+
snippets: {
|
|
117
|
+
title: string;
|
|
118
|
+
screenshot: string;
|
|
119
|
+
schema: {
|
|
120
|
+
componentName: string;
|
|
121
|
+
props: {
|
|
122
|
+
prefix: string;
|
|
123
|
+
animation: string;
|
|
124
|
+
arrows: boolean;
|
|
125
|
+
arrowSize: string;
|
|
126
|
+
arrowPosition: string;
|
|
127
|
+
arrowDirection: string;
|
|
128
|
+
autoplaySpeed: number;
|
|
129
|
+
dots: boolean;
|
|
130
|
+
dotsDirection: string;
|
|
131
|
+
draggable: boolean;
|
|
132
|
+
infinite: boolean;
|
|
133
|
+
slide: string;
|
|
134
|
+
slideDirection: string;
|
|
135
|
+
slidesToShow: number;
|
|
136
|
+
slidesToScroll: number;
|
|
137
|
+
speed: number;
|
|
138
|
+
triggerType: string;
|
|
139
|
+
centerPadding: string;
|
|
140
|
+
cssEase: string;
|
|
141
|
+
edgeFriction: number;
|
|
142
|
+
swipe: boolean;
|
|
143
|
+
touchMove: boolean;
|
|
144
|
+
touchThreshold: number;
|
|
145
|
+
useCSS: boolean;
|
|
146
|
+
waitForAnimate: boolean;
|
|
147
|
+
picUrls: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
export default _default;
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
export default {
|
|
3
|
+
group: '低代码组件',
|
|
4
|
+
componentName: 'DCSlider',
|
|
5
|
+
title: '图片轮播',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
"npm": {
|
|
9
|
+
"package": "@dckj-npm/dc-material",
|
|
10
|
+
"version": "0.1.8",
|
|
11
|
+
"exportName": "DCSlider",
|
|
12
|
+
"main": "src\\index.tsx",
|
|
13
|
+
"destructuring": true,
|
|
14
|
+
"subName": ""
|
|
15
|
+
},
|
|
16
|
+
props: [{
|
|
17
|
+
name: 'prefix',
|
|
18
|
+
propType: 'string',
|
|
19
|
+
defaultValue: 'next-'
|
|
20
|
+
}, {
|
|
21
|
+
name: 'rtl',
|
|
22
|
+
propType: 'bool',
|
|
23
|
+
defaultValue: false
|
|
24
|
+
}, {
|
|
25
|
+
name: 'className',
|
|
26
|
+
propType: 'any',
|
|
27
|
+
description: '自定义传入的样式'
|
|
28
|
+
}, {
|
|
29
|
+
name: 'slidesToShow',
|
|
30
|
+
title: {
|
|
31
|
+
label: '图片数量',
|
|
32
|
+
tip: 'slidesToShow|同时展示的图片数量'
|
|
33
|
+
},
|
|
34
|
+
propType: 'number',
|
|
35
|
+
description: '同时展示的图片数量',
|
|
36
|
+
defaultValue: 1
|
|
37
|
+
}, {
|
|
38
|
+
name: 'slidesToScroll',
|
|
39
|
+
title: {
|
|
40
|
+
label: '同时滑动的图片数量',
|
|
41
|
+
tip: 'slidesToScroll'
|
|
42
|
+
},
|
|
43
|
+
propType: 'number',
|
|
44
|
+
description: '同时滑动的图片数量',
|
|
45
|
+
defaultValue: 1
|
|
46
|
+
}, {
|
|
47
|
+
name: 'speed',
|
|
48
|
+
title: {
|
|
49
|
+
label: '轮播速度',
|
|
50
|
+
tip: 'speed'
|
|
51
|
+
},
|
|
52
|
+
propType: 'number',
|
|
53
|
+
description: '轮播速度',
|
|
54
|
+
defaultValue: 600
|
|
55
|
+
}, {
|
|
56
|
+
name: 'activeIndex',
|
|
57
|
+
title: {
|
|
58
|
+
label: '指定轮播图',
|
|
59
|
+
tip: 'activeIndex|跳转到指定的轮播图(受控)'
|
|
60
|
+
},
|
|
61
|
+
propType: 'number',
|
|
62
|
+
description: '跳转到指定的轮播图(受控)'
|
|
63
|
+
}, {
|
|
64
|
+
name: 'adaptiveHeight',
|
|
65
|
+
title: {
|
|
66
|
+
label: '自适应高度',
|
|
67
|
+
tip: 'adaptiveHeight'
|
|
68
|
+
},
|
|
69
|
+
propType: 'bool',
|
|
70
|
+
description: '是否使用自适应高度',
|
|
71
|
+
defaultValue: true
|
|
72
|
+
}, {
|
|
73
|
+
name: 'animation',
|
|
74
|
+
title: {
|
|
75
|
+
label: '动效类型',
|
|
76
|
+
tip: 'animation'
|
|
77
|
+
},
|
|
78
|
+
propType: {
|
|
79
|
+
type: 'oneOfType',
|
|
80
|
+
value: ['string', 'bool']
|
|
81
|
+
},
|
|
82
|
+
description: "动效类型,默认是'slide'",
|
|
83
|
+
defaultValue: 'slide'
|
|
84
|
+
}, {
|
|
85
|
+
name: 'arrows',
|
|
86
|
+
title: {
|
|
87
|
+
label: '箭头',
|
|
88
|
+
tip: 'arrows|是否显示箭头'
|
|
89
|
+
},
|
|
90
|
+
propType: 'bool',
|
|
91
|
+
description: '是否显示箭头',
|
|
92
|
+
defaultValue: true
|
|
93
|
+
}, {
|
|
94
|
+
name: 'arrowSize',
|
|
95
|
+
title: {
|
|
96
|
+
label: '箭头大小',
|
|
97
|
+
tip: "arrowSize|导航箭头大小 可选值: 'medium', 'large'"
|
|
98
|
+
},
|
|
99
|
+
propType: {
|
|
100
|
+
type: 'oneOf',
|
|
101
|
+
value: ['medium', 'large']
|
|
102
|
+
},
|
|
103
|
+
description: "导航箭头大小 可选值: 'medium', 'large'",
|
|
104
|
+
defaultValue: 'medium'
|
|
105
|
+
}, {
|
|
106
|
+
name: 'arrowPosition',
|
|
107
|
+
title: {
|
|
108
|
+
label: '箭头位置',
|
|
109
|
+
tip: "arrowPosition|导航箭头位置 可选值: 'inner', 'outer'"
|
|
110
|
+
},
|
|
111
|
+
propType: {
|
|
112
|
+
type: 'oneOf',
|
|
113
|
+
value: ['inner', 'outer']
|
|
114
|
+
},
|
|
115
|
+
description: "导航箭头位置 可选值: 'inner', 'outer'",
|
|
116
|
+
defaultValue: 'inner'
|
|
117
|
+
}, {
|
|
118
|
+
name: 'arrowDirection',
|
|
119
|
+
title: {
|
|
120
|
+
label: '箭头方向',
|
|
121
|
+
tip: "arrowDirection|导航箭头的方向 可选值: 'hoz', 'ver'"
|
|
122
|
+
},
|
|
123
|
+
propType: {
|
|
124
|
+
type: 'oneOf',
|
|
125
|
+
value: ['hoz', 'ver']
|
|
126
|
+
},
|
|
127
|
+
description: "导航箭头的方向 可选值: 'hoz', 'ver'",
|
|
128
|
+
defaultValue: 'hoz'
|
|
129
|
+
}, {
|
|
130
|
+
name: 'autoplay',
|
|
131
|
+
title: {
|
|
132
|
+
label: '自动播放',
|
|
133
|
+
tip: 'autoplay'
|
|
134
|
+
},
|
|
135
|
+
propType: 'bool',
|
|
136
|
+
description: '是否自动播放',
|
|
137
|
+
defaultValue: false
|
|
138
|
+
}, {
|
|
139
|
+
name: 'autoplaySpeed',
|
|
140
|
+
title: {
|
|
141
|
+
label: '自动播放的速度',
|
|
142
|
+
tip: 'autoplaySpeed, 默认 3000 毫秒'
|
|
143
|
+
},
|
|
144
|
+
propType: 'number',
|
|
145
|
+
description: '自动播放的速度',
|
|
146
|
+
defaultValue: 3000
|
|
147
|
+
}, {
|
|
148
|
+
name: 'nextArrow',
|
|
149
|
+
propType: 'node',
|
|
150
|
+
description: '向后箭头',
|
|
151
|
+
defaultValue: null
|
|
152
|
+
}, {
|
|
153
|
+
name: 'prevArrow',
|
|
154
|
+
propType: 'node',
|
|
155
|
+
description: '向前箭头',
|
|
156
|
+
defaultValue: null
|
|
157
|
+
}, {
|
|
158
|
+
name: 'centerMode',
|
|
159
|
+
title: {
|
|
160
|
+
label: '居中模式',
|
|
161
|
+
tip: 'centerMode'
|
|
162
|
+
},
|
|
163
|
+
propType: 'bool',
|
|
164
|
+
description: '是否启用居中模式',
|
|
165
|
+
defaultValue: false
|
|
166
|
+
}, {
|
|
167
|
+
name: 'dots',
|
|
168
|
+
title: {
|
|
169
|
+
label: '导航锚点',
|
|
170
|
+
tip: 'dots|是否显示导航锚点'
|
|
171
|
+
},
|
|
172
|
+
propType: 'bool',
|
|
173
|
+
description: '是否显示导航锚点',
|
|
174
|
+
defaultValue: true
|
|
175
|
+
}, {
|
|
176
|
+
name: 'dotsDirection',
|
|
177
|
+
title: {
|
|
178
|
+
label: '导航锚点位置',
|
|
179
|
+
tip: 'dotsDirection'
|
|
180
|
+
},
|
|
181
|
+
propType: {
|
|
182
|
+
type: 'oneOf',
|
|
183
|
+
value: ['hoz', 'ver']
|
|
184
|
+
},
|
|
185
|
+
description: '导航锚点位置',
|
|
186
|
+
defaultValue: 'hoz'
|
|
187
|
+
}, {
|
|
188
|
+
name: 'draggable',
|
|
189
|
+
title: {
|
|
190
|
+
label: '可拖拽',
|
|
191
|
+
tip: 'draggable'
|
|
192
|
+
},
|
|
193
|
+
propType: 'bool',
|
|
194
|
+
description: '是否可拖拽',
|
|
195
|
+
defaultValue: true
|
|
196
|
+
}, {
|
|
197
|
+
name: 'infinite',
|
|
198
|
+
title: {
|
|
199
|
+
label: '无穷循环',
|
|
200
|
+
tip: 'infinite'
|
|
201
|
+
},
|
|
202
|
+
propType: 'bool',
|
|
203
|
+
description: '是否使用无穷循环模式',
|
|
204
|
+
defaultValue: true
|
|
205
|
+
}, {
|
|
206
|
+
name: 'defaultActiveIndex',
|
|
207
|
+
title: {
|
|
208
|
+
label: '初始轮播图',
|
|
209
|
+
tip: 'defaultActiveIndex|初始被激活的轮播图'
|
|
210
|
+
},
|
|
211
|
+
propType: 'number',
|
|
212
|
+
description: '初始被激活的轮播图',
|
|
213
|
+
defaultValue: 0
|
|
214
|
+
}, {
|
|
215
|
+
name: 'lazyLoad',
|
|
216
|
+
title: {
|
|
217
|
+
label: '懒加载',
|
|
218
|
+
tip: 'lazyLoad|是否启用懒加载'
|
|
219
|
+
},
|
|
220
|
+
propType: 'bool',
|
|
221
|
+
description: '是否启用懒加载',
|
|
222
|
+
defaultValue: false
|
|
223
|
+
}, {
|
|
224
|
+
name: 'slideDirection',
|
|
225
|
+
title: {
|
|
226
|
+
label: '轮播方向',
|
|
227
|
+
tip: 'slideDirection'
|
|
228
|
+
},
|
|
229
|
+
propType: {
|
|
230
|
+
type: 'oneOf',
|
|
231
|
+
value: ['hoz', 'ver']
|
|
232
|
+
},
|
|
233
|
+
description: '轮播方向',
|
|
234
|
+
defaultValue: 'hoz'
|
|
235
|
+
}, {
|
|
236
|
+
name: 'triggerType',
|
|
237
|
+
title: {
|
|
238
|
+
label: '触发方式',
|
|
239
|
+
tip: 'triggerType|锚点导航触发方式'
|
|
240
|
+
},
|
|
241
|
+
propType: {
|
|
242
|
+
type: 'oneOf',
|
|
243
|
+
value: ['click', 'hover']
|
|
244
|
+
},
|
|
245
|
+
description: '锚点导航触发方式',
|
|
246
|
+
defaultValue: 'click'
|
|
247
|
+
}, {
|
|
248
|
+
name: 'onChange',
|
|
249
|
+
propType: 'func',
|
|
250
|
+
description: '轮播切换的回调函数\n@param {Number} index 幻灯片的索引'
|
|
251
|
+
}, {
|
|
252
|
+
name: 'onBeforeChange',
|
|
253
|
+
propType: 'func'
|
|
254
|
+
}, {
|
|
255
|
+
name: 'style',
|
|
256
|
+
propType: 'object',
|
|
257
|
+
description: '自定义传入的class',
|
|
258
|
+
defaultValue: null
|
|
259
|
+
}, {
|
|
260
|
+
name: 'picUrls',
|
|
261
|
+
propType: 'array',
|
|
262
|
+
description: '图片路径'
|
|
263
|
+
}, {
|
|
264
|
+
name: 'focusOnSelect',
|
|
265
|
+
title: {
|
|
266
|
+
label: '自动居中',
|
|
267
|
+
tip: 'focusOnSelect|多图轮播时,点击选中后自动居中'
|
|
268
|
+
},
|
|
269
|
+
propType: 'bool',
|
|
270
|
+
description: '多图轮播时,点击选中后自动居中',
|
|
271
|
+
defaultValue: false
|
|
272
|
+
}],
|
|
273
|
+
configure: {
|
|
274
|
+
component: {
|
|
275
|
+
isContainer: true
|
|
276
|
+
},
|
|
277
|
+
props: {
|
|
278
|
+
isExtends: true,
|
|
279
|
+
override: [{
|
|
280
|
+
name: 'rtl',
|
|
281
|
+
condition: function condition() {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
}, {
|
|
285
|
+
name: 'prefix',
|
|
286
|
+
condition: function condition() {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
name: 'picUrls',
|
|
291
|
+
setter: {
|
|
292
|
+
componentName: 'SetterFormVariable',
|
|
293
|
+
props: {
|
|
294
|
+
attributes: [{
|
|
295
|
+
label: '图标链接',
|
|
296
|
+
value: 'picUrls',
|
|
297
|
+
children: [{
|
|
298
|
+
label: '图片链接',
|
|
299
|
+
value: 'picUrls'
|
|
300
|
+
}, {
|
|
301
|
+
label: '图片链接2',
|
|
302
|
+
value: 'picUrls2'
|
|
303
|
+
}]
|
|
304
|
+
}]
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
icon: '',
|
|
311
|
+
category: '信息展示',
|
|
312
|
+
snippets: snippets
|
|
313
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
screenshot: string;
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: string;
|
|
6
|
+
props: {
|
|
7
|
+
prefix: string;
|
|
8
|
+
animation: string;
|
|
9
|
+
arrows: boolean;
|
|
10
|
+
arrowSize: string;
|
|
11
|
+
arrowPosition: string;
|
|
12
|
+
arrowDirection: string;
|
|
13
|
+
autoplaySpeed: number;
|
|
14
|
+
dots: boolean;
|
|
15
|
+
dotsDirection: string;
|
|
16
|
+
draggable: boolean;
|
|
17
|
+
infinite: boolean;
|
|
18
|
+
slide: string;
|
|
19
|
+
slideDirection: string;
|
|
20
|
+
slidesToShow: number;
|
|
21
|
+
slidesToScroll: number;
|
|
22
|
+
speed: number;
|
|
23
|
+
triggerType: string;
|
|
24
|
+
centerPadding: string;
|
|
25
|
+
cssEase: string;
|
|
26
|
+
edgeFriction: number;
|
|
27
|
+
swipe: boolean;
|
|
28
|
+
touchMove: boolean;
|
|
29
|
+
touchThreshold: number;
|
|
30
|
+
useCSS: boolean;
|
|
31
|
+
waitForAnimate: boolean;
|
|
32
|
+
picUrls: string[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default [{
|
|
2
|
+
title: '图片轮播',
|
|
3
|
+
screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'DCSlider',
|
|
6
|
+
props: {
|
|
7
|
+
prefix: 'next-',
|
|
8
|
+
animation: 'slide',
|
|
9
|
+
arrows: true,
|
|
10
|
+
arrowSize: 'medium',
|
|
11
|
+
arrowPosition: 'inner',
|
|
12
|
+
arrowDirection: 'hoz',
|
|
13
|
+
autoplaySpeed: 3000,
|
|
14
|
+
dots: true,
|
|
15
|
+
dotsDirection: 'hoz',
|
|
16
|
+
draggable: true,
|
|
17
|
+
infinite: true,
|
|
18
|
+
slide: 'div',
|
|
19
|
+
slideDirection: 'hoz',
|
|
20
|
+
slidesToShow: 1,
|
|
21
|
+
slidesToScroll: 1,
|
|
22
|
+
speed: 600,
|
|
23
|
+
triggerType: 'click',
|
|
24
|
+
centerPadding: '50px',
|
|
25
|
+
cssEase: 'ease',
|
|
26
|
+
edgeFriction: 0.35,
|
|
27
|
+
swipe: true,
|
|
28
|
+
touchMove: true,
|
|
29
|
+
touchThreshold: 5,
|
|
30
|
+
useCSS: true,
|
|
31
|
+
waitForAnimate: true,
|
|
32
|
+
// 轮播路径
|
|
33
|
+
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png', 'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg', 'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg', 'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
snippets: IPublicTypeSnippet[];
|
|
4
|
+
componentName: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
+
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
10
|
+
docUrl?: string;
|
|
11
|
+
screenshot?: string;
|
|
12
|
+
devMode?: "proCode" | "lowCode";
|
|
13
|
+
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
|
+
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
|
|
16
|
+
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
|
+
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
|
+
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
19
|
+
category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
20
|
+
priority?: number;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var GridNavMeta = {
|
|
3
|
+
group: '低代码组件',
|
|
4
|
+
"componentName": "GridNav",
|
|
5
|
+
"title": "宫格导航",
|
|
6
|
+
"docUrl": "",
|
|
7
|
+
"screenshot": "",
|
|
8
|
+
"devMode": "proCode",
|
|
9
|
+
"npm": {
|
|
10
|
+
"package": "@dckj-npm/dc-material",
|
|
11
|
+
"version": "0.1.0",
|
|
12
|
+
"exportName": "GridNav",
|
|
13
|
+
"main": "src\\index.tsx",
|
|
14
|
+
"destructuring": true,
|
|
15
|
+
"subName": ""
|
|
16
|
+
},
|
|
17
|
+
"configure": {
|
|
18
|
+
component: {
|
|
19
|
+
isContainer: true
|
|
20
|
+
},
|
|
21
|
+
"props": [{
|
|
22
|
+
name: 'dataSourceSetting',
|
|
23
|
+
title: '数据源配置',
|
|
24
|
+
setter: {
|
|
25
|
+
componentName: 'SetterFormVariable',
|
|
26
|
+
props: {
|
|
27
|
+
attributes: [
|
|
28
|
+
// { label: '导航项', value: 'items' }
|
|
29
|
+
{
|
|
30
|
+
label: '标题',
|
|
31
|
+
value: 'title'
|
|
32
|
+
}, {
|
|
33
|
+
label: '图标链接',
|
|
34
|
+
value: 'icon'
|
|
35
|
+
}, {
|
|
36
|
+
label: '跳转链接',
|
|
37
|
+
value: 'link'
|
|
38
|
+
}]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
"title": "每行列数",
|
|
43
|
+
"name": "columns",
|
|
44
|
+
"setter": {
|
|
45
|
+
"componentName": "NumberSetter",
|
|
46
|
+
"isRequired": true,
|
|
47
|
+
"initialValue": 4
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
"title": "icon尺寸",
|
|
51
|
+
"name": "iconSize",
|
|
52
|
+
"defaultValue": "medium",
|
|
53
|
+
"initialValue": "medium",
|
|
54
|
+
"setter": {
|
|
55
|
+
"componentName": "SelectSetter",
|
|
56
|
+
"initialValue": "medium",
|
|
57
|
+
"props": {
|
|
58
|
+
"defaultValue": "medium",
|
|
59
|
+
"options": [{
|
|
60
|
+
"title": "大",
|
|
61
|
+
"value": "large"
|
|
62
|
+
}, {
|
|
63
|
+
"title": "中",
|
|
64
|
+
"value": "medium"
|
|
65
|
+
}, {
|
|
66
|
+
"title": "小",
|
|
67
|
+
"value": "small"
|
|
68
|
+
}]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
"title": "字重",
|
|
73
|
+
"name": "fontWeight",
|
|
74
|
+
"defaultValue": "normal",
|
|
75
|
+
"initialValue": "normal",
|
|
76
|
+
"setter": {
|
|
77
|
+
"componentName": "SelectSetter",
|
|
78
|
+
"initialValue": "normal",
|
|
79
|
+
"props": {
|
|
80
|
+
"defaultValue": "normal",
|
|
81
|
+
"options": [{
|
|
82
|
+
"title": "细",
|
|
83
|
+
"value": "100"
|
|
84
|
+
}, {
|
|
85
|
+
"title": "正常",
|
|
86
|
+
"value": "normal"
|
|
87
|
+
}, {
|
|
88
|
+
"title": "粗",
|
|
89
|
+
"value": "bold"
|
|
90
|
+
}]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
name: 'fontSize',
|
|
95
|
+
title: '字号',
|
|
96
|
+
defaultValue: 14,
|
|
97
|
+
setter: 'NumberSetter'
|
|
98
|
+
}, {
|
|
99
|
+
name: 'fontColor',
|
|
100
|
+
title: '字体颜色',
|
|
101
|
+
propType: 'string',
|
|
102
|
+
setter: 'ColorSetter',
|
|
103
|
+
defaultValue: '#333',
|
|
104
|
+
initialValue: '#333'
|
|
105
|
+
}, {
|
|
106
|
+
name: 'lineHeight',
|
|
107
|
+
title: '行高',
|
|
108
|
+
defaultValue: 'auto',
|
|
109
|
+
setter: 'StringSetter'
|
|
110
|
+
}, {
|
|
111
|
+
name: 'lineNum',
|
|
112
|
+
title: '行数',
|
|
113
|
+
defaultValue: 1,
|
|
114
|
+
setter: 'NumberSetter'
|
|
115
|
+
}],
|
|
116
|
+
supports: {
|
|
117
|
+
style: true
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
var snippets = [{
|
|
122
|
+
"title": "宫格导航",
|
|
123
|
+
"screenshot": "",
|
|
124
|
+
"schema": {
|
|
125
|
+
"componentName": "GridNav",
|
|
126
|
+
"props": {
|
|
127
|
+
"columns": 4,
|
|
128
|
+
"dataSourceSetting": [{
|
|
129
|
+
"title": '导航项',
|
|
130
|
+
"icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
|
|
131
|
+
"link": '#'
|
|
132
|
+
}, {
|
|
133
|
+
"title": '导航项',
|
|
134
|
+
"icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
|
|
135
|
+
"link": '#'
|
|
136
|
+
}, {
|
|
137
|
+
"title": '导航项',
|
|
138
|
+
"icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
|
|
139
|
+
"link": '#'
|
|
140
|
+
}, {
|
|
141
|
+
"title": '导航项',
|
|
142
|
+
"icon": 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
|
|
143
|
+
"link": '#'
|
|
144
|
+
}],
|
|
145
|
+
"iconSize": "medium",
|
|
146
|
+
"fontWeight": "normal"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}];
|
|
150
|
+
export default _extends({}, GridNavMeta, {
|
|
151
|
+
snippets: snippets
|
|
152
|
+
});
|