@dckj-npm/dc-material 0.1.42 → 0.1.44
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.js +8 -8
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/es/components/bottom-navigation/index.d.ts +3 -3
- package/es/components/bottom-navigation/index.scss +24 -24
- package/es/components/button/button.d.ts +14 -14
- package/es/components/button/index.d.ts +6 -6
- package/es/components/button/index.js +2 -2
- package/es/components/button/index.scss +16 -16
- package/es/components/carousel/carousel.d.ts +14 -14
- package/es/components/carousel/carousel.scss +32 -32
- package/es/components/colorful-button/colorful-button.d.ts +12 -12
- package/es/components/colorful-button/index.d.ts +3 -3
- package/es/components/colorful-button/index.scss +5 -5
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/goods-card-list/index.d.ts +3 -4
- package/es/components/goods-card-list/index.js +1 -2
- package/es/components/goods-card-list/types.d.ts +45 -45
- package/es/components/grid-nav/grid-nav.d.ts +13 -13
- package/es/components/grid-nav/index.d.ts +3 -3
- package/es/components/grid-nav/index.scss +37 -41
- package/es/components/integral-task/index.d.ts +6 -6
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/index.scss +35 -35
- package/es/components/integral-task/integral-task.d.ts +40 -40
- package/es/components/menu-list/index.d.ts +6 -6
- package/es/components/menu-list/index.js +2 -2
- package/es/components/menu-list/index.scss +16 -16
- package/es/components/menu-list/menu-list-item.d.ts +5 -5
- package/es/components/menu-list/menu-list-item.scss +49 -49
- package/es/components/menu-list/menu-list.d.ts +5 -5
- package/es/components/menu-list/types.d.ts +23 -23
- package/es/components/message-list/index.d.ts +6 -6
- package/es/components/message-list/index.js +2 -2
- package/es/components/message-list/index.scss +22 -22
- package/es/components/message-list/message-list-item.d.ts +29 -29
- package/es/components/message-list/message-list-item.js +2 -2
- package/es/components/message-list/message-list-item.scss +50 -50
- package/es/components/message-list/message-list.d.ts +32 -32
- package/es/components/notice-bar/index.d.ts +3 -3
- package/es/components/notice-bar/index.scss +29 -29
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +37 -37
- package/es/components/position/entity.d.ts +5 -5
- package/es/components/position/index.d.ts +3 -3
- package/es/components/position/index.scss +27 -27
- package/es/components/position/position-left.d.ts +9 -9
- package/es/components/position/position-list.d.ts +12 -12
- package/es/components/position/position.d.ts +8 -8
- package/es/components/radio-group/index.d.ts +8 -8
- package/es/components/radio-group/index.js +2 -2
- package/es/components/radio-group/index.scss +40 -40
- package/es/components/radio-group/radio-group-item.d.ts +48 -48
- package/es/components/radio-group/radio-group.d.ts +52 -52
- package/es/components/search-bar/index.d.ts +3 -3
- package/es/components/search-bar/index.scss +13 -13
- package/es/components/search-bar/search-bar.d.ts +7 -7
- package/es/components/swiper/index.d.ts +3 -3
- package/es/components/swiper/index.scss +12 -12
- package/es/components/swiper/swiper.d.ts +47 -47
- package/es/components/tab/index.d.ts +6 -6
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +23 -23
- package/es/components/tab/tab.d.ts +23 -23
- package/es/components/tab-container/index.d.ts +3 -3
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tab-container/tab-container.d.ts +10 -10
- package/es/components/tab-container-item/index.d.ts +3 -3
- package/es/components/tab-container-item/tab-container-item.d.ts +9 -11
- package/es/components/tab-container-item/tab-container-item.js +2 -7
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- package/es/components/tag/tag.d.ts +14 -14
- package/es/components/teletext-list/index.d.ts +6 -6
- package/es/components/teletext-list/index.js +2 -2
- package/es/components/teletext-list/index.scss +19 -19
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +4 -8
- package/es/components/teletext-list/teletext-list-item.scss +55 -55
- package/es/components/teletext-list/teletext-list.d.ts +61 -61
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.d.ts +8 -8
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.d.ts +10 -10
- package/es/components/title/title-1.scss +25 -25
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +40 -42
- package/es/index.js +1 -5
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -9
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/component-wrapper.d.ts +9 -9
- package/es/utils/debounce.d.ts +1 -1
- package/es/variables.d.ts +2 -2
- package/es/variables.scss +3 -3
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- package/lib/components/bottom-navigation/index.scss +24 -24
- package/lib/components/button/button.d.ts +14 -14
- package/lib/components/button/index.d.ts +6 -6
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.scss +16 -16
- package/lib/components/carousel/carousel.d.ts +14 -14
- package/lib/components/carousel/carousel.scss +32 -32
- package/lib/components/colorful-button/colorful-button.d.ts +12 -12
- package/lib/components/colorful-button/index.d.ts +3 -3
- package/lib/components/colorful-button/index.scss +5 -5
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/goods-card-list/index.d.ts +3 -4
- package/lib/components/goods-card-list/index.js +1 -3
- package/lib/components/goods-card-list/types.d.ts +45 -45
- package/lib/components/grid-nav/grid-nav.d.ts +13 -13
- package/lib/components/grid-nav/index.d.ts +3 -3
- package/lib/components/grid-nav/index.scss +37 -41
- package/lib/components/integral-task/index.d.ts +6 -6
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/index.scss +35 -35
- package/lib/components/integral-task/integral-task.d.ts +40 -40
- package/lib/components/menu-list/index.d.ts +6 -6
- package/lib/components/menu-list/index.js +2 -2
- package/lib/components/menu-list/index.scss +16 -16
- package/lib/components/menu-list/menu-list-item.d.ts +5 -5
- package/lib/components/menu-list/menu-list-item.scss +49 -49
- package/lib/components/menu-list/menu-list.d.ts +5 -5
- package/lib/components/menu-list/types.d.ts +23 -23
- package/lib/components/message-list/index.d.ts +6 -6
- package/lib/components/message-list/index.js +2 -2
- package/lib/components/message-list/index.scss +22 -22
- package/lib/components/message-list/message-list-item.d.ts +29 -29
- package/lib/components/message-list/message-list-item.js +2 -2
- package/lib/components/message-list/message-list-item.scss +50 -50
- package/lib/components/message-list/message-list.d.ts +32 -32
- package/lib/components/notice-bar/index.d.ts +3 -3
- package/lib/components/notice-bar/index.scss +29 -29
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +37 -37
- package/lib/components/position/entity.d.ts +5 -5
- package/lib/components/position/index.d.ts +3 -3
- package/lib/components/position/index.scss +27 -27
- package/lib/components/position/position-left.d.ts +9 -9
- package/lib/components/position/position-list.d.ts +12 -12
- package/lib/components/position/position.d.ts +8 -8
- package/lib/components/radio-group/index.d.ts +8 -8
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/radio-group/radio-group-item.d.ts +48 -48
- package/lib/components/radio-group/radio-group.d.ts +52 -52
- package/lib/components/search-bar/index.d.ts +3 -3
- package/lib/components/search-bar/index.scss +13 -13
- package/lib/components/search-bar/search-bar.d.ts +7 -7
- package/lib/components/swiper/index.d.ts +3 -3
- package/lib/components/swiper/index.scss +12 -12
- package/lib/components/swiper/swiper.d.ts +47 -47
- package/lib/components/tab/index.d.ts +6 -6
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +23 -23
- package/lib/components/tab/tab.d.ts +23 -23
- package/lib/components/tab-container/index.d.ts +3 -3
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tab-container/tab-container.d.ts +10 -10
- package/lib/components/tab-container-item/index.d.ts +3 -3
- package/lib/components/tab-container-item/tab-container-item.d.ts +9 -11
- package/lib/components/tab-container-item/tab-container-item.js +2 -7
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- package/lib/components/tag/tag.d.ts +14 -14
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +4 -8
- package/lib/components/teletext-list/teletext-list-item.scss +55 -55
- package/lib/components/teletext-list/teletext-list.d.ts +61 -61
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/index.d.ts +8 -8
- package/lib/components/title/title-1.d.ts +10 -10
- package/lib/components/title/title-1.scss +25 -25
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +40 -42
- package/lib/index.js +1 -6
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -9
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/component-wrapper.d.ts +9 -9
- package/lib/utils/debounce.d.ts +1 -1
- package/lib/variables.d.ts +2 -2
- package/lib/variables.scss +3 -3
- package/lowcode/button2/meta.ts +75 -75
- package/lowcode/custom-radio-group/meta.ts +310 -310
- package/lowcode/custom-radio-group-item/meta.ts +229 -229
- package/lowcode/d-c-slider/meta.design.ts +173 -173
- package/lowcode/d-c-slider/meta.ts +342 -342
- package/lowcode/d-c-slider/snippets.ts +68 -68
- package/lowcode/goods-card-list/meta.ts +268 -268
- package/lowcode/goods-card-list-common/meta.ts +268 -268
- package/lowcode/grid-nav/meta.ts +212 -212
- package/lowcode/integral-task/meta.ts +211 -211
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/message-list/meta.ts +202 -202
- package/lowcode/navigation/meta.ts +165 -165
- package/lowcode/notice-bar/meta.ts +229 -229
- package/lowcode/position/meta.ts +161 -161
- package/lowcode/search-bar/meta.ts +54 -54
- package/lowcode/swiper/meta.ts +237 -237
- package/lowcode/tab-container/meta.ts +70 -70
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tab-message/meta.ts +101 -101
- package/lowcode/tag-c/meta.ts +75 -75
- package/lowcode/teletext-list/meta.ts +329 -329
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/button2/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_es/d-c-slider/meta.d.ts +148 -148
- package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/goods-card-list/meta.d.ts +22 -22
- package/lowcode_es/goods-card-list-common/meta.d.ts +22 -22
- package/lowcode_es/grid-nav/meta.d.ts +22 -22
- package/lowcode_es/integral-task/meta.d.ts +22 -22
- package/lowcode_es/menu-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.d.ts +22 -22
- package/lowcode_es/meta.js +24 -24
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.d.ts +22 -22
- package/lowcode_es/position/meta.d.ts +22 -22
- package/lowcode_es/rich-text/meta.d.ts +22 -22
- package/lowcode_es/search-bar/meta.d.ts +22 -22
- package/lowcode_es/swiper/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.d.ts +22 -22
- package/lowcode_es/tab-container/props.d.ts +90 -90
- package/lowcode_es/tab-container-item/meta.d.ts +22 -22
- package/lowcode_es/tab-message/meta.d.ts +22 -22
- package/lowcode_es/tag-c/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/button2/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
- package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
- package/lowcode_lib/goods-card-list-common/meta.d.ts +22 -22
- package/lowcode_lib/grid-nav/meta.d.ts +22 -22
- package/lowcode_lib/integral-task/meta.d.ts +22 -22
- package/lowcode_lib/menu-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.d.ts +22 -22
- package/lowcode_lib/meta.js +24 -24
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.d.ts +22 -22
- package/lowcode_lib/position/meta.d.ts +22 -22
- package/lowcode_lib/rich-text/meta.d.ts +22 -22
- package/lowcode_lib/search-bar/meta.d.ts +22 -22
- package/lowcode_lib/swiper/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- package/lowcode_lib/tab-message/meta.d.ts +22 -22
- package/lowcode_lib/tag-c/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/view.js +2 -2
- package/package.json +3 -3
- package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/es/components/goods-card-list/goods-card-list-common.js +0 -52
- package/es/components/goods-card-list/goods-card-list-common.scss +0 -119
- package/es/components/rich-text/index.d.ts +0 -6
- package/es/components/rich-text/index.js +0 -6
- package/es/components/rich-text/index.scss +0 -15
- package/es/components/rich-text/rich-text.d.ts +0 -14
- package/es/components/rich-text/rich-text.js +0 -28
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/lib/components/goods-card-list/goods-card-list-common.js +0 -57
- package/lib/components/goods-card-list/goods-card-list-common.scss +0 -119
- package/lib/components/rich-text/index.d.ts +0 -6
- package/lib/components/rich-text/index.js +0 -6
- package/lib/components/rich-text/index.scss +0 -15
- package/lib/components/rich-text/rich-text.d.ts +0 -14
- package/lib/components/rich-text/rich-text.js +0 -33
|
@@ -1,342 +1,342 @@
|
|
|
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.8",
|
|
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
|
-
title: '数据源绑定',
|
|
324
|
-
setter: {
|
|
325
|
-
componentName: 'SetterFormVariable',
|
|
326
|
-
props: {
|
|
327
|
-
attributes: [
|
|
328
|
-
{
|
|
329
|
-
label: '图标链接',
|
|
330
|
-
value: 'picUrls'
|
|
331
|
-
}
|
|
332
|
-
]
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
],
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
icon: '',
|
|
340
|
-
category: '信息展示',
|
|
341
|
-
snippets,
|
|
342
|
-
};
|
|
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.8",
|
|
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
|
+
title: '数据源绑定',
|
|
324
|
+
setter: {
|
|
325
|
+
componentName: 'SetterFormVariable',
|
|
326
|
+
props: {
|
|
327
|
+
attributes: [
|
|
328
|
+
{
|
|
329
|
+
label: '图标链接',
|
|
330
|
+
value: 'picUrls'
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
icon: '',
|
|
340
|
+
category: '信息展示',
|
|
341
|
+
snippets,
|
|
342
|
+
};
|