@dckj-npm/dc-material 0.1.147 → 0.1.149
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 +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -0
- package/es/components/bottom-navigation/index.d.ts +3 -0
- package/es/components/button/button.d.ts +14 -0
- package/es/components/button/index.d.ts +6 -0
- package/es/components/carousel/carousel.d.ts +14 -0
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/form/form-item.d.ts +42 -0
- package/es/components/form/form.d.ts +57 -0
- package/es/components/form/form.js +46 -0
- package/es/components/form/index.d.ts +6 -0
- package/es/components/form/index.js +6 -0
- package/es/components/form/index.scss +22 -0
- package/es/components/form/next-wrapper.d.ts +54 -0
- package/es/components/form/next-wrapper.js +43 -0
- package/es/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list-common.js +60 -0
- package/es/components/goods-card-list/goods-card-list-common.scss +118 -0
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list.js +156 -0
- package/es/components/goods-card-list/goods-card-list.scss +112 -0
- package/es/components/goods-card-list/index.d.ts +4 -0
- package/es/components/goods-card-list/index.js +3 -0
- package/es/components/goods-card-list/types.d.ts +45 -0
- package/es/components/goods-card-list/types.js +1 -0
- package/es/components/grid-nav/grid-nav.d.ts +13 -0
- package/es/components/grid-nav/grid-nav.js +102 -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 +50 -0
- package/es/components/integral-task/index.d.ts +6 -0
- package/es/components/integral-task/index.js +5 -0
- package/es/components/integral-task/index.scss +35 -0
- package/es/components/integral-task/integral-task.d.ts +40 -0
- package/es/components/integral-task/integral-task.js +54 -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/message-list/index.d.ts +6 -0
- package/es/components/message-list/index.js +6 -0
- package/es/components/message-list/index.scss +22 -0
- package/es/components/message-list/message-list-item.d.ts +33 -0
- package/es/components/message-list/message-list-item.js +41 -0
- package/es/components/message-list/message-list-item.scss +60 -0
- package/es/components/message-list/message-list.d.ts +28 -0
- package/es/components/message-list/message-list.js +53 -0
- package/es/components/notice-bar/index.d.ts +3 -0
- package/es/components/notice-bar/index.js +2 -0
- package/es/components/notice-bar/index.scss +84 -0
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/es/components/notice-bar/notice-bar-item.js +30 -0
- package/es/components/notice-bar/notice-bar-item.scss +26 -0
- package/es/components/notice-bar/notice-bar.d.ts +46 -0
- package/es/components/notice-bar/notice-bar.js +57 -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 +27 -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 +11 -0
- package/es/components/position/position-list.js +29 -0
- package/es/components/position/position.d.ts +8 -0
- package/es/components/position/position.js +48 -0
- package/es/components/radio-group/index.d.ts +8 -0
- package/es/components/radio-group/index.js +7 -0
- package/es/components/radio-group/index.scss +40 -0
- package/es/components/radio-group/radio-group-item.d.ts +48 -0
- package/es/components/radio-group/radio-group-item.js +74 -0
- package/es/components/radio-group/radio-group.d.ts +52 -0
- package/es/components/radio-group/radio-group.js +80 -0
- package/es/components/rich-text/index.d.ts +6 -0
- package/es/components/rich-text/index.js +6 -0
- package/es/components/rich-text/index.scss +19 -0
- package/es/components/rich-text/rich-text.d.ts +14 -0
- package/es/components/rich-text/rich-text.js +37 -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 +39 -0
- package/es/components/search-bar/search-bar.d.ts +10 -0
- package/es/components/search-bar/search-bar.js +73 -0
- package/es/components/stream-list/index.d.ts +6 -0
- package/es/components/stream-list/index.js +6 -0
- package/es/components/stream-list/index.scss +26 -0
- package/es/components/stream-list/stream-list.d.ts +54 -0
- package/es/components/stream-list/stream-list.js +159 -0
- package/es/components/swiper/index.d.ts +3 -0
- package/es/components/swiper/index.js +2 -0
- package/es/components/swiper/index.scss +33 -0
- package/es/components/swiper/swiper.d.ts +26 -0
- package/es/components/swiper/swiper.js +77 -0
- package/es/components/tab/index.d.ts +6 -0
- package/es/components/tab/index.js +5 -0
- package/es/components/tab/index.scss +39 -0
- package/es/components/tab/tab.d.ts +27 -0
- package/es/components/tab/tab.js +50 -0
- package/es/components/tab-container/index.d.ts +3 -0
- package/es/components/tab-container/index.js +2 -0
- package/es/components/tab-container/index.scss +48 -0
- package/es/components/tab-container/tab-container.d.ts +10 -0
- package/es/components/tab-container/tab-container.js +26 -0
- package/es/components/tab-container-item/index.d.ts +3 -0
- package/es/components/tab-container-item/index.js +2 -0
- package/es/components/tab-container-item/index.scss +0 -0
- package/es/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/es/components/tab-container-item/tab-container-item.js +19 -0
- package/es/components/tag/index.d.ts +6 -0
- package/es/components/tag/index.js +5 -0
- package/es/components/tag/index.scss +24 -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 +40 -0
- package/es/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/es/components/teletext-list/teletext-list-item.js +61 -0
- package/es/components/teletext-list/teletext-list-item.scss +57 -0
- package/es/components/teletext-list/teletext-list.d.ts +61 -0
- package/es/components/teletext-list/teletext-list.js +48 -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/entity/dynamic-column-data-type.d.ts +47 -0
- package/es/entity/dynamic-column-data-type.js +165 -0
- package/es/index.d.ts +46 -0
- package/es/index.js +86 -0
- package/es/index.scss +6 -0
- package/es/style.js +4 -0
- package/es/utils/children-node-handle.d.ts +9 -0
- package/es/utils/children-node-handle.js +25 -0
- package/es/utils/component-wrapper.d.ts +9 -0
- package/es/utils/component-wrapper.js +38 -0
- package/es/utils/debounce.d.ts +1 -0
- package/es/utils/debounce.js +14 -0
- package/es/utils/textUtil.d.ts +10 -0
- package/es/utils/textUtil.js +51 -0
- package/es/utils/time-util.d.ts +5 -0
- package/es/utils/time-util.js +18 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +3 -0
- package/lib/assets/icon/grid-nav/right.png +0 -0
- package/lib/assets/icon/position/img.png +0 -0
- package/lib/assets/icon/position/location.png +0 -0
- package/lib/assets/icon/search/delete.png +0 -0
- package/lib/assets/icon/search/search.png +0 -0
- package/lib/assets/icon/teletext-list/arr.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -0
- package/lib/components/bottom-navigation/index.d.ts +3 -0
- package/lib/components/button/button.d.ts +14 -0
- package/lib/components/button/index.d.ts +6 -0
- package/lib/components/carousel/carousel.d.ts +14 -0
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/form/form-item.d.ts +42 -0
- package/lib/components/form/form-item.js +86 -0
- package/lib/components/form/form-item.scss +20 -0
- package/lib/components/form/form.d.ts +57 -0
- package/lib/components/form/form.js +49 -0
- package/lib/components/form/index.d.ts +6 -0
- package/lib/components/form/index.js +6 -0
- package/lib/components/form/index.scss +22 -0
- package/lib/components/form/next-wrapper.d.ts +54 -0
- package/lib/components/form/next-wrapper.js +49 -0
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/lib/components/goods-card-list/index.d.ts +4 -0
- package/lib/components/goods-card-list/types.d.ts +45 -0
- package/lib/components/grid-nav/grid-nav.d.ts +13 -0
- package/lib/components/grid-nav/grid-nav.js +15 -4
- package/lib/components/grid-nav/index.d.ts +3 -0
- package/lib/components/grid-nav/index.scss +27 -18
- package/lib/components/integral-task/index.d.ts +6 -0
- package/lib/components/integral-task/integral-task.d.ts +40 -0
- package/lib/components/menu-list/index.d.ts +6 -0
- package/lib/components/menu-list/menu-list-item.d.ts +5 -0
- package/lib/components/menu-list/menu-list.d.ts +5 -0
- package/lib/components/menu-list/types.d.ts +23 -0
- package/lib/components/message-list/index.d.ts +6 -0
- package/lib/components/message-list/message-list-item.d.ts +33 -0
- package/lib/components/message-list/message-list-item.scss +1 -1
- package/lib/components/message-list/message-list.d.ts +28 -0
- package/lib/components/notice-bar/index.d.ts +3 -0
- package/lib/components/notice-bar/index.scss +56 -14
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/lib/components/notice-bar/notice-bar-item.js +6 -5
- package/lib/components/notice-bar/notice-bar-item.scss +1 -1
- package/lib/components/notice-bar/notice-bar.d.ts +46 -0
- package/lib/components/notice-bar/notice-bar.js +28 -56
- package/lib/components/position/entity.d.ts +5 -0
- package/lib/components/position/index.d.ts +3 -0
- package/lib/components/position/position-left.d.ts +9 -0
- package/lib/components/position/position-list.d.ts +11 -0
- package/lib/components/position/position-list.js +2 -3
- package/lib/components/position/position.d.ts +8 -0
- package/lib/components/radio-group/index.d.ts +8 -0
- package/lib/components/radio-group/radio-group-item.d.ts +48 -0
- package/lib/components/radio-group/radio-group.d.ts +52 -0
- package/lib/components/rich-text/index.d.ts +6 -0
- package/lib/components/rich-text/rich-text.d.ts +14 -0
- package/lib/components/search-bar/index.d.ts +3 -0
- package/lib/components/search-bar/index.scss +36 -10
- package/lib/components/search-bar/search-bar.d.ts +10 -0
- package/lib/components/search-bar/search-bar.js +67 -27
- package/lib/components/stream-list/index.d.ts +6 -0
- package/lib/components/stream-list/index.js +6 -0
- package/lib/components/stream-list/index.scss +26 -0
- package/lib/components/stream-list/stream-list.d.ts +54 -0
- package/lib/components/stream-list/stream-list.js +166 -0
- package/lib/components/swiper/index.d.ts +3 -0
- package/lib/components/swiper/index.scss +29 -8
- package/lib/components/swiper/swiper.d.ts +26 -0
- package/lib/components/swiper/swiper.js +60 -19
- package/lib/components/tab/index.d.ts +6 -0
- package/lib/components/tab/tab.d.ts +27 -0
- package/lib/components/tab-container/index.d.ts +3 -0
- package/lib/components/tab-container/tab-container.d.ts +10 -0
- package/lib/components/tab-container-item/index.d.ts +3 -0
- package/lib/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/lib/components/tag/index.d.ts +6 -0
- package/lib/components/tag/tag.d.ts +14 -0
- package/lib/components/teletext-list/index.d.ts +6 -0
- package/lib/components/teletext-list/index.scss +21 -0
- package/lib/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/lib/components/teletext-list/teletext-list-item.scss +4 -2
- package/lib/components/teletext-list/teletext-list.d.ts +61 -0
- package/lib/components/teletext-list/teletext-list.js +17 -7
- package/lib/components/title/index.d.ts +8 -0
- package/lib/components/title/title-1.d.ts +10 -0
- package/lib/components/title/title-2.d.ts +18 -0
- package/lib/entity/dynamic-column-data-type.d.ts +47 -0
- package/lib/entity/dynamic-column-data-type.js +169 -0
- package/lib/index.d.ts +46 -0
- package/lib/index.js +9 -1
- package/lib/style.js +1 -2
- package/lib/utils/children-node-handle.d.ts +9 -0
- package/lib/utils/component-wrapper.d.ts +9 -0
- package/lib/utils/debounce.d.ts +1 -0
- package/lib/utils/textUtil.d.ts +10 -0
- package/lib/utils/textUtil.js +55 -0
- package/lib/utils/time-util.d.ts +5 -0
- package/lib/variables.d.ts +2 -0
- package/lowcode/{d-c-form → form}/meta.ts +6 -6
- package/lowcode_es/{d-c-form → form}/meta.js +6 -6
- package/lowcode_es/meta.js +3 -3
- package/lowcode_lib/{d-c-form → form}/meta.js +6 -6
- package/lowcode_lib/meta.js +3 -3
- package/package.json +3 -3
- package/lib/components/notice-bar/components/ScrollSwitcher.js +0 -52
- package/lib/components/notice-bar/components/ScrollSwitcher.scss +0 -17
- /package/lowcode_es/{d-c-form → form}/meta.d.ts +0 -0
- /package/lowcode_lib/{d-c-form → form}/meta.d.ts +0 -0
|
@@ -14,6 +14,27 @@
|
|
|
14
14
|
gap: 10px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
&-head {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
width: 100%;
|
|
21
|
+
//align-items: ;
|
|
22
|
+
&-more {
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
&-text {
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
color: #666666;
|
|
29
|
+
margin-right: 2px;
|
|
30
|
+
}
|
|
31
|
+
&-img {
|
|
32
|
+
width: 5px;
|
|
33
|
+
height: 10px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
17
38
|
}
|
|
18
39
|
|
|
19
40
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './teletext-list-item.scss';
|
|
3
|
+
/**
|
|
4
|
+
* 数据
|
|
5
|
+
*/
|
|
6
|
+
export interface TeletextListItemProps {
|
|
7
|
+
/**
|
|
8
|
+
* 点击事件
|
|
9
|
+
*/
|
|
10
|
+
onClick?: (e: any) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 标题
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 图片地址
|
|
17
|
+
*/
|
|
18
|
+
image?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* 图片位置
|
|
21
|
+
*/
|
|
22
|
+
imagePlacement?: 'left' | 'right' | 'none';
|
|
23
|
+
/**
|
|
24
|
+
* 说明
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 标签列表
|
|
29
|
+
*/
|
|
30
|
+
tags?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const TeletextListItem: React.FC<TeletextListItemProps>;
|
|
33
|
+
export default TeletextListItem;
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
padding-bottom: 10px;
|
|
8
8
|
justify-content: flex-start;
|
|
9
9
|
|
|
10
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
11
|
-
|
|
12
10
|
.teletext-list__panel__item_image {
|
|
13
11
|
width: 90px;
|
|
14
12
|
height: 71px;
|
|
@@ -53,3 +51,7 @@
|
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
}
|
|
54
|
+
|
|
55
|
+
.teletext-list__panel__item:not(:last-child) {
|
|
56
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
57
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
/**
|
|
4
|
+
* 数据
|
|
5
|
+
*/
|
|
6
|
+
interface DataProps {
|
|
7
|
+
/**
|
|
8
|
+
* 标题
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 图片地址
|
|
13
|
+
*/
|
|
14
|
+
image?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* 说明
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 标签列表
|
|
21
|
+
*/
|
|
22
|
+
tags?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 链接地址
|
|
25
|
+
*/
|
|
26
|
+
link?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface TeletextListProps {
|
|
29
|
+
/**
|
|
30
|
+
* 标题
|
|
31
|
+
*/
|
|
32
|
+
title?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 数据
|
|
35
|
+
*/
|
|
36
|
+
dataList?: DataProps[];
|
|
37
|
+
/**
|
|
38
|
+
* 点击事件
|
|
39
|
+
* @param e
|
|
40
|
+
*/
|
|
41
|
+
onClick?: (e: any) => void;
|
|
42
|
+
/**
|
|
43
|
+
* 子节点
|
|
44
|
+
*/
|
|
45
|
+
children: React.ReactChild;
|
|
46
|
+
/**
|
|
47
|
+
* 图片位置
|
|
48
|
+
*/
|
|
49
|
+
imagePlacement?: 'left' | 'right' | 'none';
|
|
50
|
+
/**
|
|
51
|
+
* 点击事件
|
|
52
|
+
* @param e
|
|
53
|
+
*/
|
|
54
|
+
handleMoreClick?: (e: any) => void;
|
|
55
|
+
/**
|
|
56
|
+
* 更多
|
|
57
|
+
*/
|
|
58
|
+
moreText: string;
|
|
59
|
+
}
|
|
60
|
+
declare const TeletextList: React.FC<TeletextListProps>;
|
|
61
|
+
export default TeletextList;
|
|
@@ -9,33 +9,43 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
require("./index.scss");
|
|
10
10
|
var _teletextListItem = _interopRequireDefault(require("./teletext-list-item"));
|
|
11
11
|
var _childrenNodeHandle = require("../../utils/children-node-handle");
|
|
12
|
-
var
|
|
12
|
+
var _arr = _interopRequireDefault(require("../../assets/icon/teletext-list/arr.png"));
|
|
13
|
+
var _excluded = ["dataList", "onClick", "children", "imagePlacement", "handleMoreClick", "moreText"];
|
|
13
14
|
/**
|
|
14
15
|
* 数据
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
var TeletextList = function TeletextList(_ref) {
|
|
18
|
-
var
|
|
19
|
-
title = _ref$title === void 0 ? '标题名称' : _ref$title,
|
|
20
|
-
dataList = _ref.dataList,
|
|
19
|
+
var dataList = _ref.dataList,
|
|
21
20
|
_ref$onClick = _ref.onClick,
|
|
22
21
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
23
22
|
children = _ref.children,
|
|
24
23
|
_ref$imagePlacement = _ref.imagePlacement,
|
|
25
24
|
imagePlacement = _ref$imagePlacement === void 0 ? 'left' : _ref$imagePlacement,
|
|
25
|
+
handleMoreClick = _ref.handleMoreClick,
|
|
26
|
+
moreText = _ref.moreText,
|
|
26
27
|
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
27
28
|
var _otherProps = otherProps || {};
|
|
28
29
|
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
29
30
|
className: "teletext-list__panel"
|
|
30
|
-
}, _otherProps),
|
|
31
|
+
}, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
|
+
className: "teletext-list__panel-head"
|
|
33
|
+
}, (0, _childrenNodeHandle.convertChildren)(children, 'box-title'), moreText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
34
|
+
className: "teletext-list__panel-head-more",
|
|
35
|
+
onClick: handleMoreClick
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
37
|
+
className: "teletext-list__panel-head-more-text"
|
|
38
|
+
}, moreText), /*#__PURE__*/_react["default"].createElement("img", {
|
|
39
|
+
src: _arr["default"],
|
|
40
|
+
className: "teletext-list__panel-head-more-img"
|
|
41
|
+
})) : ''), /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
42
|
className: "teletext-list__panel__item-list"
|
|
32
43
|
}, dataList ? dataList.map(function (item, index) {
|
|
33
44
|
return /*#__PURE__*/_react["default"].createElement(_teletextListItem["default"], (0, _extends2["default"])({
|
|
34
45
|
key: index,
|
|
35
46
|
onClick: onClick,
|
|
36
|
-
children: children,
|
|
37
47
|
imagePlacement: imagePlacement
|
|
38
|
-
}, item));
|
|
48
|
+
}, item), children);
|
|
39
49
|
}) : /*#__PURE__*/_react["default"].createElement("div", null, "\u6682\u65E0\u6570\u636E")));
|
|
40
50
|
};
|
|
41
51
|
TeletextList.displayName = 'TeletextList';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './title-2.scss';
|
|
3
|
+
export interface Title2Props {
|
|
4
|
+
/**
|
|
5
|
+
* 标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 颜色
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* tip颜色
|
|
14
|
+
*/
|
|
15
|
+
tipColor?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Title2: React.FC<Title2Props>;
|
|
18
|
+
export default Title2;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface DynamicColumnDataType {
|
|
2
|
+
/**
|
|
3
|
+
* 编码
|
|
4
|
+
*/
|
|
5
|
+
code: number;
|
|
6
|
+
/**
|
|
7
|
+
* 名称
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* 数据库类型
|
|
12
|
+
*/
|
|
13
|
+
dbTypeName: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_TEXT: DynamicColumnDataType;
|
|
16
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_TEXTAREA: DynamicColumnDataType;
|
|
17
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_INT: DynamicColumnDataType;
|
|
18
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_MONEY: DynamicColumnDataType;
|
|
19
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_NUMBER: DynamicColumnDataType;
|
|
20
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_ID_CARD: DynamicColumnDataType;
|
|
21
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_MOBILE: DynamicColumnDataType;
|
|
22
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_EMAIL: DynamicColumnDataType;
|
|
23
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_DATE: DynamicColumnDataType;
|
|
24
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_DATETIME: DynamicColumnDataType;
|
|
25
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_LABEL: DynamicColumnDataType;
|
|
26
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_SWITCH: DynamicColumnDataType;
|
|
27
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_RADIO: DynamicColumnDataType;
|
|
28
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_CHECKBOX: DynamicColumnDataType;
|
|
29
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_USER: DynamicColumnDataType;
|
|
30
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_DEPT: DynamicColumnDataType;
|
|
31
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_ORGAN: DynamicColumnDataType;
|
|
32
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_SELECT: DynamicColumnDataType;
|
|
33
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_CASCADE: DynamicColumnDataType;
|
|
34
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_PICTURE: DynamicColumnDataType;
|
|
35
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_VIDEO: DynamicColumnDataType;
|
|
36
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_AUDIO: DynamicColumnDataType;
|
|
37
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_DOC: DynamicColumnDataType;
|
|
38
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_ATTACHMENTS: DynamicColumnDataType;
|
|
39
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_AUTO: DynamicColumnDataType;
|
|
40
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_EDITOR: DynamicColumnDataType;
|
|
41
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_POSITIONING: DynamicColumnDataType;
|
|
42
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_SIGNATURE: DynamicColumnDataType;
|
|
43
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_GRADE: DynamicColumnDataType;
|
|
44
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_BUTTON: DynamicColumnDataType;
|
|
45
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_CHILDREN_TABLE: DynamicColumnDataType;
|
|
46
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_QUOTE: DynamicColumnDataType;
|
|
47
|
+
export declare const DYNAMIC_COLUMN_DATA_TYPE_LINKAGE: DynamicColumnDataType;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.DYNAMIC_COLUMN_DATA_TYPE_VIDEO = exports.DYNAMIC_COLUMN_DATA_TYPE_USER = exports.DYNAMIC_COLUMN_DATA_TYPE_TEXTAREA = exports.DYNAMIC_COLUMN_DATA_TYPE_TEXT = exports.DYNAMIC_COLUMN_DATA_TYPE_SWITCH = exports.DYNAMIC_COLUMN_DATA_TYPE_SIGNATURE = exports.DYNAMIC_COLUMN_DATA_TYPE_SELECT = exports.DYNAMIC_COLUMN_DATA_TYPE_RADIO = exports.DYNAMIC_COLUMN_DATA_TYPE_QUOTE = exports.DYNAMIC_COLUMN_DATA_TYPE_POSITIONING = exports.DYNAMIC_COLUMN_DATA_TYPE_PICTURE = exports.DYNAMIC_COLUMN_DATA_TYPE_ORGAN = exports.DYNAMIC_COLUMN_DATA_TYPE_NUMBER = exports.DYNAMIC_COLUMN_DATA_TYPE_MONEY = exports.DYNAMIC_COLUMN_DATA_TYPE_MOBILE = exports.DYNAMIC_COLUMN_DATA_TYPE_LINKAGE = exports.DYNAMIC_COLUMN_DATA_TYPE_LABEL = exports.DYNAMIC_COLUMN_DATA_TYPE_INT = exports.DYNAMIC_COLUMN_DATA_TYPE_ID_CARD = exports.DYNAMIC_COLUMN_DATA_TYPE_GRADE = exports.DYNAMIC_COLUMN_DATA_TYPE_EMAIL = exports.DYNAMIC_COLUMN_DATA_TYPE_EDITOR = exports.DYNAMIC_COLUMN_DATA_TYPE_DOC = exports.DYNAMIC_COLUMN_DATA_TYPE_DEPT = exports.DYNAMIC_COLUMN_DATA_TYPE_DATETIME = exports.DYNAMIC_COLUMN_DATA_TYPE_DATE = exports.DYNAMIC_COLUMN_DATA_TYPE_CHILDREN_TABLE = exports.DYNAMIC_COLUMN_DATA_TYPE_CHECKBOX = exports.DYNAMIC_COLUMN_DATA_TYPE_CASCADE = exports.DYNAMIC_COLUMN_DATA_TYPE_BUTTON = exports.DYNAMIC_COLUMN_DATA_TYPE_AUTO = exports.DYNAMIC_COLUMN_DATA_TYPE_AUDIO = exports.DYNAMIC_COLUMN_DATA_TYPE_ATTACHMENTS = void 0;
|
|
5
|
+
var DYNAMIC_COLUMN_DATA_TYPE_TEXT = exports.DYNAMIC_COLUMN_DATA_TYPE_TEXT = {
|
|
6
|
+
code: 1,
|
|
7
|
+
name: '单行文本',
|
|
8
|
+
dbTypeName: 'varchar'
|
|
9
|
+
};
|
|
10
|
+
var DYNAMIC_COLUMN_DATA_TYPE_TEXTAREA = exports.DYNAMIC_COLUMN_DATA_TYPE_TEXTAREA = {
|
|
11
|
+
code: 2,
|
|
12
|
+
name: '多行文本',
|
|
13
|
+
dbTypeName: 'text'
|
|
14
|
+
};
|
|
15
|
+
var DYNAMIC_COLUMN_DATA_TYPE_INT = exports.DYNAMIC_COLUMN_DATA_TYPE_INT = {
|
|
16
|
+
code: 3,
|
|
17
|
+
name: '整数',
|
|
18
|
+
dbTypeName: 'int'
|
|
19
|
+
};
|
|
20
|
+
var DYNAMIC_COLUMN_DATA_TYPE_MONEY = exports.DYNAMIC_COLUMN_DATA_TYPE_MONEY = {
|
|
21
|
+
code: 15,
|
|
22
|
+
name: '金额',
|
|
23
|
+
dbTypeName: 'numeric'
|
|
24
|
+
};
|
|
25
|
+
var DYNAMIC_COLUMN_DATA_TYPE_NUMBER = exports.DYNAMIC_COLUMN_DATA_TYPE_NUMBER = {
|
|
26
|
+
code: 35,
|
|
27
|
+
name: '数值',
|
|
28
|
+
dbTypeName: 'numeric'
|
|
29
|
+
};
|
|
30
|
+
var DYNAMIC_COLUMN_DATA_TYPE_ID_CARD = exports.DYNAMIC_COLUMN_DATA_TYPE_ID_CARD = {
|
|
31
|
+
code: 11,
|
|
32
|
+
name: '身份证',
|
|
33
|
+
dbTypeName: 'varchar'
|
|
34
|
+
};
|
|
35
|
+
var DYNAMIC_COLUMN_DATA_TYPE_MOBILE = exports.DYNAMIC_COLUMN_DATA_TYPE_MOBILE = {
|
|
36
|
+
code: 12,
|
|
37
|
+
name: '手机',
|
|
38
|
+
dbTypeName: 'varchar'
|
|
39
|
+
};
|
|
40
|
+
var DYNAMIC_COLUMN_DATA_TYPE_EMAIL = exports.DYNAMIC_COLUMN_DATA_TYPE_EMAIL = {
|
|
41
|
+
code: 36,
|
|
42
|
+
name: '邮箱',
|
|
43
|
+
dbTypeName: 'varchar'
|
|
44
|
+
};
|
|
45
|
+
var DYNAMIC_COLUMN_DATA_TYPE_DATE = exports.DYNAMIC_COLUMN_DATA_TYPE_DATE = {
|
|
46
|
+
code: 6,
|
|
47
|
+
name: '日期',
|
|
48
|
+
dbTypeName: 'date'
|
|
49
|
+
};
|
|
50
|
+
var DYNAMIC_COLUMN_DATA_TYPE_DATETIME = exports.DYNAMIC_COLUMN_DATA_TYPE_DATETIME = {
|
|
51
|
+
code: 7,
|
|
52
|
+
name: '日期时间',
|
|
53
|
+
dbTypeName: 'datetime'
|
|
54
|
+
};
|
|
55
|
+
var DYNAMIC_COLUMN_DATA_TYPE_LABEL = exports.DYNAMIC_COLUMN_DATA_TYPE_LABEL = {
|
|
56
|
+
code: 10,
|
|
57
|
+
name: '文本说明',
|
|
58
|
+
dbTypeName: 'varchar'
|
|
59
|
+
};
|
|
60
|
+
var DYNAMIC_COLUMN_DATA_TYPE_SWITCH = exports.DYNAMIC_COLUMN_DATA_TYPE_SWITCH = {
|
|
61
|
+
code: 29,
|
|
62
|
+
name: '开关',
|
|
63
|
+
dbTypeName: 'tinyint'
|
|
64
|
+
};
|
|
65
|
+
var DYNAMIC_COLUMN_DATA_TYPE_RADIO = exports.DYNAMIC_COLUMN_DATA_TYPE_RADIO = {
|
|
66
|
+
code: 4,
|
|
67
|
+
name: '单选框',
|
|
68
|
+
dbTypeName: 'varchar'
|
|
69
|
+
};
|
|
70
|
+
var DYNAMIC_COLUMN_DATA_TYPE_CHECKBOX = exports.DYNAMIC_COLUMN_DATA_TYPE_CHECKBOX = {
|
|
71
|
+
code: 5,
|
|
72
|
+
name: '复选框',
|
|
73
|
+
dbTypeName: 'varchar'
|
|
74
|
+
};
|
|
75
|
+
var DYNAMIC_COLUMN_DATA_TYPE_USER = exports.DYNAMIC_COLUMN_DATA_TYPE_USER = {
|
|
76
|
+
code: 18,
|
|
77
|
+
name: '联系人',
|
|
78
|
+
dbTypeName: 'varchar'
|
|
79
|
+
};
|
|
80
|
+
var DYNAMIC_COLUMN_DATA_TYPE_DEPT = exports.DYNAMIC_COLUMN_DATA_TYPE_DEPT = {
|
|
81
|
+
code: 17,
|
|
82
|
+
name: '组织架构部门',
|
|
83
|
+
dbTypeName: 'varchar'
|
|
84
|
+
};
|
|
85
|
+
var DYNAMIC_COLUMN_DATA_TYPE_ORGAN = exports.DYNAMIC_COLUMN_DATA_TYPE_ORGAN = {
|
|
86
|
+
code: 25,
|
|
87
|
+
name: '组织架构单位',
|
|
88
|
+
dbTypeName: 'varchar'
|
|
89
|
+
};
|
|
90
|
+
var DYNAMIC_COLUMN_DATA_TYPE_SELECT = exports.DYNAMIC_COLUMN_DATA_TYPE_SELECT = {
|
|
91
|
+
code: 19,
|
|
92
|
+
name: '下拉框',
|
|
93
|
+
dbTypeName: 'varchar'
|
|
94
|
+
};
|
|
95
|
+
var DYNAMIC_COLUMN_DATA_TYPE_CASCADE = exports.DYNAMIC_COLUMN_DATA_TYPE_CASCADE = {
|
|
96
|
+
code: 13,
|
|
97
|
+
name: '级联/分类',
|
|
98
|
+
dbTypeName: 'varchar'
|
|
99
|
+
};
|
|
100
|
+
var DYNAMIC_COLUMN_DATA_TYPE_PICTURE = exports.DYNAMIC_COLUMN_DATA_TYPE_PICTURE = {
|
|
101
|
+
code: 14,
|
|
102
|
+
name: '图片',
|
|
103
|
+
dbTypeName: 'varchar'
|
|
104
|
+
};
|
|
105
|
+
var DYNAMIC_COLUMN_DATA_TYPE_VIDEO = exports.DYNAMIC_COLUMN_DATA_TYPE_VIDEO = {
|
|
106
|
+
code: 30,
|
|
107
|
+
name: '视频',
|
|
108
|
+
dbTypeName: 'varchar'
|
|
109
|
+
};
|
|
110
|
+
var DYNAMIC_COLUMN_DATA_TYPE_AUDIO = exports.DYNAMIC_COLUMN_DATA_TYPE_AUDIO = {
|
|
111
|
+
code: 37,
|
|
112
|
+
name: '音频',
|
|
113
|
+
dbTypeName: 'varchar'
|
|
114
|
+
};
|
|
115
|
+
var DYNAMIC_COLUMN_DATA_TYPE_DOC = exports.DYNAMIC_COLUMN_DATA_TYPE_DOC = {
|
|
116
|
+
code: 34,
|
|
117
|
+
name: '文档',
|
|
118
|
+
dbTypeName: 'varchar'
|
|
119
|
+
};
|
|
120
|
+
var DYNAMIC_COLUMN_DATA_TYPE_ATTACHMENTS = exports.DYNAMIC_COLUMN_DATA_TYPE_ATTACHMENTS = {
|
|
121
|
+
code: 16,
|
|
122
|
+
name: '附件',
|
|
123
|
+
dbTypeName: 'varchar'
|
|
124
|
+
};
|
|
125
|
+
var DYNAMIC_COLUMN_DATA_TYPE_AUTO = exports.DYNAMIC_COLUMN_DATA_TYPE_AUTO = {
|
|
126
|
+
code: 26,
|
|
127
|
+
name: '自动生成',
|
|
128
|
+
dbTypeName: 'varchar'
|
|
129
|
+
};
|
|
130
|
+
var DYNAMIC_COLUMN_DATA_TYPE_EDITOR = exports.DYNAMIC_COLUMN_DATA_TYPE_EDITOR = {
|
|
131
|
+
code: 31,
|
|
132
|
+
name: '富文本',
|
|
133
|
+
dbTypeName: 'longtext'
|
|
134
|
+
};
|
|
135
|
+
var DYNAMIC_COLUMN_DATA_TYPE_POSITIONING = exports.DYNAMIC_COLUMN_DATA_TYPE_POSITIONING = {
|
|
136
|
+
code: 39,
|
|
137
|
+
name: '定位',
|
|
138
|
+
dbTypeName: 'varchar'
|
|
139
|
+
};
|
|
140
|
+
var DYNAMIC_COLUMN_DATA_TYPE_SIGNATURE = exports.DYNAMIC_COLUMN_DATA_TYPE_SIGNATURE = {
|
|
141
|
+
code: 40,
|
|
142
|
+
name: '签名',
|
|
143
|
+
dbTypeName: 'varchar'
|
|
144
|
+
};
|
|
145
|
+
var DYNAMIC_COLUMN_DATA_TYPE_GRADE = exports.DYNAMIC_COLUMN_DATA_TYPE_GRADE = {
|
|
146
|
+
code: 41,
|
|
147
|
+
name: '等级',
|
|
148
|
+
dbTypeName: 'numeric'
|
|
149
|
+
};
|
|
150
|
+
var DYNAMIC_COLUMN_DATA_TYPE_BUTTON = exports.DYNAMIC_COLUMN_DATA_TYPE_BUTTON = {
|
|
151
|
+
code: 46,
|
|
152
|
+
name: '按钮',
|
|
153
|
+
dbTypeName: 'varchar'
|
|
154
|
+
};
|
|
155
|
+
var DYNAMIC_COLUMN_DATA_TYPE_CHILDREN_TABLE = exports.DYNAMIC_COLUMN_DATA_TYPE_CHILDREN_TABLE = {
|
|
156
|
+
code: 47,
|
|
157
|
+
name: '子表单',
|
|
158
|
+
dbTypeName: 'varchar'
|
|
159
|
+
};
|
|
160
|
+
var DYNAMIC_COLUMN_DATA_TYPE_QUOTE = exports.DYNAMIC_COLUMN_DATA_TYPE_QUOTE = {
|
|
161
|
+
code: 48,
|
|
162
|
+
name: '引用字段',
|
|
163
|
+
dbTypeName: 'varchar'
|
|
164
|
+
};
|
|
165
|
+
var DYNAMIC_COLUMN_DATA_TYPE_LINKAGE = exports.DYNAMIC_COLUMN_DATA_TYPE_LINKAGE = {
|
|
166
|
+
code: 49,
|
|
167
|
+
name: '联动字段',
|
|
168
|
+
dbTypeName: 'varchar'
|
|
169
|
+
};
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type { ComponentProps } from './components/swiper';
|
|
2
|
+
export { default as Swiper } from './components/swiper';
|
|
3
|
+
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
+
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
+
export type { MenuListDataProps, MenuListProps } from './components/menu-list';
|
|
6
|
+
export { default as MenuList } from './components/menu-list';
|
|
7
|
+
export type { TeletextListProps } from './components/teletext-list';
|
|
8
|
+
export { TeletextList } from './components/teletext-list';
|
|
9
|
+
export type { Title1Props } from './components/title';
|
|
10
|
+
export { Title1 } from './components/title';
|
|
11
|
+
export type { Title2Props } from './components/title';
|
|
12
|
+
export { Title2 } from './components/title';
|
|
13
|
+
export type { GridNavProps } from './components/grid-nav';
|
|
14
|
+
export { default as GridNav } from './components/grid-nav';
|
|
15
|
+
export type { SearchBarProps } from './components/search-bar';
|
|
16
|
+
export { default as SearchBar } from './components/search-bar';
|
|
17
|
+
export type { LocationProps } from './components/position';
|
|
18
|
+
export { default as Position } from './components/position';
|
|
19
|
+
export type { TagProps } from './components/tag';
|
|
20
|
+
export { default as TagC } from './components/tag';
|
|
21
|
+
export type { MessageListProps } from './components/message-list';
|
|
22
|
+
export { default as MessageList } from './components/message-list';
|
|
23
|
+
export type { TabProps } from './components/tab';
|
|
24
|
+
export { default as TabMessage } from './components/tab';
|
|
25
|
+
export type { NoticeBarProps } from './components/notice-bar';
|
|
26
|
+
export { default as NoticeBar } from './components/notice-bar';
|
|
27
|
+
export type { TabContainerProps } from './components/tab-container';
|
|
28
|
+
export { default as TabContainer } from './components/tab-container';
|
|
29
|
+
export type { TabContainerItemProps } from './components/tab-container-item';
|
|
30
|
+
export { default as TabContainerItem } from './components/tab-container-item';
|
|
31
|
+
export type { IntegralTaskProps } from './components/integral-task';
|
|
32
|
+
export { default as IntegralTask } from './components/integral-task';
|
|
33
|
+
export type { ButtonProps } from './components/button';
|
|
34
|
+
export { default as Button2 } from './components/button';
|
|
35
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './components/radio-group';
|
|
36
|
+
export { CustomRadioGroup, CustomRadioGroupItem } from './components/radio-group';
|
|
37
|
+
export type { GoodsCardListProps } from './components/goods-card-list';
|
|
38
|
+
export { GoodsCardList, GoodsCardListCommon } from './components/goods-card-list';
|
|
39
|
+
export type { RichTextProps } from './components/rich-text';
|
|
40
|
+
export { RichText } from './components/rich-text';
|
|
41
|
+
export type { StreamListProps } from './components/stream-list';
|
|
42
|
+
export { StreamList } from './components/stream-list';
|
|
43
|
+
export type { FormProps } from './components/form';
|
|
44
|
+
export { DCForm } from './components/form';
|
|
45
|
+
declare const bizCssPrefix = "bizpack";
|
|
46
|
+
export { bizCssPrefix };
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.bizCssPrefix = exports.Title2 = exports.Title1 = exports.TeletextList = exports.TagC = exports.TabMessage = exports.TabContainerItem = exports.TabContainer = exports.Swiper = exports.SearchBar = exports.RichText = exports.Position = exports.NoticeBar = exports.Navigation = exports.MessageList = exports.MenuList = exports.IntegralTask = exports.GridNav = exports.GoodsCardListCommon = exports.GoodsCardList = exports.CustomRadioGroupItem = exports.CustomRadioGroup = exports.Button2 = void 0;
|
|
5
|
+
exports.bizCssPrefix = exports.Title2 = exports.Title1 = exports.TeletextList = exports.TagC = exports.TabMessage = exports.TabContainerItem = exports.TabContainer = exports.Swiper = exports.StreamList = exports.SearchBar = exports.RichText = exports.Position = exports.NoticeBar = exports.Navigation = exports.MessageList = exports.MenuList = exports.IntegralTask = exports.GridNav = exports.GoodsCardListCommon = exports.GoodsCardList = exports.DCForm = exports.CustomRadioGroupItem = exports.CustomRadioGroup = exports.Button2 = void 0;
|
|
6
6
|
var _swiper = _interopRequireDefault(require("./components/swiper"));
|
|
7
7
|
exports.Swiper = _swiper["default"];
|
|
8
8
|
var _bottomNavigation = _interopRequireDefault(require("./components/bottom-navigation"));
|
|
@@ -44,6 +44,10 @@ exports.GoodsCardList = _goodsCardList.GoodsCardList;
|
|
|
44
44
|
exports.GoodsCardListCommon = _goodsCardList.GoodsCardListCommon;
|
|
45
45
|
var _richText = require("./components/rich-text");
|
|
46
46
|
exports.RichText = _richText.RichText;
|
|
47
|
+
var _streamList = require("./components/stream-list");
|
|
48
|
+
exports.StreamList = _streamList.StreamList;
|
|
49
|
+
var _form = require("./components/form");
|
|
50
|
+
exports.DCForm = _form.DCForm;
|
|
47
51
|
// 轮播图
|
|
48
52
|
|
|
49
53
|
// 底部导航
|
|
@@ -84,4 +88,8 @@ exports.RichText = _richText.RichText;
|
|
|
84
88
|
|
|
85
89
|
// 富文本
|
|
86
90
|
|
|
91
|
+
// 富文本
|
|
92
|
+
|
|
93
|
+
// 表单
|
|
94
|
+
|
|
87
95
|
var bizCssPrefix = exports.bizCssPrefix = 'bizpack';
|
package/lib/style.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 从children数组中获取指定组件
|
|
3
|
+
* @author ZhuGangMin
|
|
4
|
+
* @date 2024-09-21 14:07:02
|
|
5
|
+
* @param children 父组件传递过来children
|
|
6
|
+
* @param key 组件的key
|
|
7
|
+
* @param props 要覆盖的属性
|
|
8
|
+
*/
|
|
9
|
+
export declare function convertChildren(children: any, key: string, props?: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ValueWrapper: (NextFormComponent: React.ElementType, displayName: string) => {
|
|
3
|
+
(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DynamicPropWrapper: (prop: string, NextFormComponent: React.ElementType, displayName: string) => {
|
|
7
|
+
(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (this: any, ...args: Parameters<T>) => void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.groupCitiesByInitial = groupCitiesByInitial;
|
|
5
|
+
exports.lineToUppercase = lineToUppercase;
|
|
6
|
+
var _pinyinPro = require("pinyin-pro");
|
|
7
|
+
/**
|
|
8
|
+
* @description 短横线字符串转驼峰
|
|
9
|
+
* @param str
|
|
10
|
+
*/
|
|
11
|
+
function lineToUppercase(str) {
|
|
12
|
+
function upper(all, letter) {
|
|
13
|
+
return letter.toUpperCase();
|
|
14
|
+
}
|
|
15
|
+
return str.replace(/-(\w)/g, upper);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 将城市分组
|
|
20
|
+
* @param cities
|
|
21
|
+
*/
|
|
22
|
+
function groupCitiesByInitial(cities) {
|
|
23
|
+
var cityGroups = {};
|
|
24
|
+
cities.forEach(function (city) {
|
|
25
|
+
// 获取城市名称的拼音首字母
|
|
26
|
+
var initial = getFirstWord(city.address);
|
|
27
|
+
|
|
28
|
+
// 按首字母分组
|
|
29
|
+
if (!cityGroups[initial]) {
|
|
30
|
+
cityGroups[initial] = [];
|
|
31
|
+
}
|
|
32
|
+
// 将整个地址信息保存
|
|
33
|
+
cityGroups[initial].push(city);
|
|
34
|
+
});
|
|
35
|
+
// 按字母顺序排序分组
|
|
36
|
+
return Object.keys(cityGroups).sort() // 对首字母进行字母排序
|
|
37
|
+
.reduce(function (sortedGroups, initial) {
|
|
38
|
+
sortedGroups[initial] = cityGroups[initial];
|
|
39
|
+
return sortedGroups;
|
|
40
|
+
}, {});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 获取拼音首字母
|
|
45
|
+
* @param str
|
|
46
|
+
*/
|
|
47
|
+
function getFirstWord(str) {
|
|
48
|
+
if (!str) {
|
|
49
|
+
return '';
|
|
50
|
+
}
|
|
51
|
+
return (0, _pinyinPro.pinyin)(str, {
|
|
52
|
+
pattern: "first",
|
|
53
|
+
toneType: "none"
|
|
54
|
+
})[0].toUpperCase();
|
|
55
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const FormMeta: IPublicTypeComponentMetadata = {
|
|
4
4
|
group: '低代码组件',
|
|
5
|
-
componentName: '
|
|
5
|
+
componentName: 'Form',
|
|
6
6
|
title: '表单',
|
|
7
7
|
docUrl: '',
|
|
8
8
|
screenshot: '',
|
|
9
9
|
devMode: 'proCode',
|
|
10
10
|
npm: {
|
|
11
11
|
package: '@dckj-npm/dc-material',
|
|
12
|
-
version: '0.1.
|
|
13
|
-
exportName: '
|
|
12
|
+
version: '0.1.148',
|
|
13
|
+
exportName: 'Form',
|
|
14
14
|
main: 'src\\index.tsx',
|
|
15
15
|
destructuring: true,
|
|
16
16
|
subName: '',
|
|
@@ -56,13 +56,13 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
56
56
|
title: '表单',
|
|
57
57
|
screenshot: '',
|
|
58
58
|
schema: {
|
|
59
|
-
componentName: '
|
|
59
|
+
componentName: 'Form',
|
|
60
60
|
props: {},
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
]
|
|
64
64
|
|
|
65
65
|
export default {
|
|
66
|
-
...
|
|
66
|
+
...FormMeta,
|
|
67
67
|
snippets,
|
|
68
68
|
}
|