@dckj-npm/dc-material 0.1.15 → 0.1.16
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/docs/colorful-button.html +48 -0
- package/build/docs/colorful-input.html +48 -0
- package/build/docs/index.html +48 -0
- package/build/docs/umi.172d0fea.js +1 -0
- package/build/docs/umi.2ce6bf4c.css +8 -0
- package/build/docs/~demos/colorful-button-demo.html +47 -0
- package/build/docs/~demos/colorful-input-demo.html +47 -0
- package/build/index.css +2 -0
- package/build/index.html +1 -0
- package/build/index.js +60 -0
- package/build/lowcode/assets-daily.json +15 -11
- package/build/lowcode/assets-dev.json +7 -3
- package/build/lowcode/assets-prod.json +15 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -0
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/dist/BizComps.css +1 -0
- package/dist/BizComps.js +16 -0
- package/dist/BizComps.js.map +1 -0
- package/es/assets/icon/integral-task/icon1.png +0 -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/notice-bar/notice.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 +20 -0
- package/es/components/button/button.d.ts +14 -0
- package/es/components/button/button.js +14 -0
- package/es/components/button/index.d.ts +6 -0
- package/es/components/button/index.js +5 -0
- package/es/components/button/index.scss +16 -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 +33 -0
- package/es/components/dc-slider/slider.js +10 -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/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 +53 -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 +17 -0
- package/es/components/message-list/message-list-item.d.ts +29 -0
- package/es/components/message-list/message-list-item.js +38 -0
- package/es/components/message-list/message-list-item.scss +49 -0
- package/es/components/message-list/message-list.d.ts +28 -0
- package/es/components/message-list/message-list.js +47 -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 +26 -0
- package/es/components/notice-bar/notice-bar-item.d.ts +31 -0
- package/es/components/notice-bar/notice-bar-item.js +31 -0
- package/es/components/notice-bar/notice-bar-item.scss +23 -0
- package/es/components/notice-bar/notice-bar.d.ts +46 -0
- package/es/components/notice-bar/notice-bar.js +48 -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 +48 -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 +6 -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/tab/index.d.ts +6 -0
- package/es/components/tab/index.js +5 -0
- package/es/components/tab/index.scss +21 -0
- package/es/components/tab/tab.d.ts +23 -0
- package/es/components/tab/tab.js +46 -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 +17 -0
- package/es/components/tab-container/tab-container.d.ts +9 -0
- package/es/components/tab-container/tab-container.js +14 -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 +9 -0
- package/es/components/tab-container-item/tab-container-item.js +14 -0
- package/es/components/tag/index.d.ts +6 -0
- package/es/components/tag/index.js +5 -0
- package/es/components/tag/index.scss +16 -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 +17 -0
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -0
- package/es/components/teletext-list/teletext-list-item.js +48 -0
- package/es/components/teletext-list/teletext-list-item.scss +74 -0
- package/es/components/teletext-list/teletext-list.d.ts +61 -0
- package/es/components/teletext-list/teletext-list.js +38 -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 +36 -0
- package/es/index.js +66 -0
- package/es/index.scss +6 -0
- package/es/style.js +5 -0
- package/es/utils/children-node-handle.d.ts +9 -0
- package/es/utils/children-node-handle.js +27 -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/integral-task/icon1.png +0 -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/notice-bar/notice.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 +20 -0
- package/lib/components/button/button.d.ts +14 -0
- package/lib/components/button/button.js +21 -0
- package/lib/components/button/index.d.ts +6 -0
- package/lib/components/button/index.js +10 -0
- package/lib/components/button/index.scss +16 -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 +33 -0
- package/lib/components/dc-slider/slider.js +17 -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/integral-task/index.d.ts +6 -0
- package/lib/components/integral-task/index.js +10 -0
- package/lib/components/integral-task/index.scss +35 -0
- package/lib/components/integral-task/integral-task.d.ts +40 -0
- package/lib/components/integral-task/integral-task.js +60 -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/message-list/index.d.ts +6 -0
- package/lib/components/message-list/index.js +10 -0
- package/lib/components/message-list/index.scss +17 -0
- package/lib/components/message-list/message-list-item.d.ts +29 -0
- package/lib/components/message-list/message-list-item.js +42 -0
- package/lib/components/message-list/message-list-item.scss +49 -0
- package/lib/components/message-list/message-list.d.ts +28 -0
- package/lib/components/message-list/message-list.js +52 -0
- package/lib/components/notice-bar/index.d.ts +3 -0
- package/lib/components/notice-bar/index.js +7 -0
- package/lib/components/notice-bar/index.scss +26 -0
- package/lib/components/notice-bar/notice-bar-item.d.ts +31 -0
- package/lib/components/notice-bar/notice-bar-item.js +36 -0
- package/lib/components/notice-bar/notice-bar-item.scss +23 -0
- package/lib/components/notice-bar/notice-bar.d.ts +46 -0
- package/lib/components/notice-bar/notice-bar.js +53 -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 +55 -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 +6 -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/tab/index.d.ts +6 -0
- package/lib/components/tab/index.js +10 -0
- package/lib/components/tab/index.scss +21 -0
- package/lib/components/tab/tab.d.ts +23 -0
- package/lib/components/tab/tab.js +53 -0
- package/lib/components/tab-container/index.d.ts +3 -0
- package/lib/components/tab-container/index.js +6 -0
- package/lib/components/tab-container/index.scss +17 -0
- package/lib/components/tab-container/tab-container.d.ts +9 -0
- package/lib/components/tab-container/tab-container.js +19 -0
- package/lib/components/tab-container-item/index.d.ts +3 -0
- package/lib/components/tab-container-item/index.js +6 -0
- package/lib/components/tab-container-item/index.scss +0 -0
- package/lib/components/tab-container-item/tab-container-item.d.ts +9 -0
- package/lib/components/tab-container-item/tab-container-item.js +19 -0
- package/lib/components/tag/index.d.ts +6 -0
- package/lib/components/tag/index.js +10 -0
- package/lib/components/tag/index.scss +16 -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 +6 -0
- package/lib/components/teletext-list/index.scss +17 -0
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -0
- package/lib/components/teletext-list/teletext-list-item.js +52 -0
- package/lib/components/teletext-list/teletext-list-item.scss +74 -0
- package/lib/components/teletext-list/teletext-list.d.ts +61 -0
- package/lib/components/teletext-list/teletext-list.js +42 -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 +36 -0
- package/lib/index.js +73 -0
- package/lib/index.scss +6 -0
- package/lib/style.js +5 -0
- package/lib/utils/children-node-handle.d.ts +9 -0
- package/lib/utils/children-node-handle.js +32 -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/button2/meta.ts +75 -0
- package/lowcode/d-c-slider/meta.design.ts +173 -0
- package/lowcode/d-c-slider/meta.ts +13 -2
- package/lowcode/d-c-slider/snippets.ts +26 -0
- package/lowcode/grid-nav/meta.ts +65 -13
- package/lowcode/integral-task/meta.ts +211 -0
- package/lowcode/message-list/meta.ts +187 -0
- package/lowcode/notice-bar/meta.ts +279 -0
- package/lowcode/position/meta.ts +161 -211
- package/lowcode/search-bar/meta.ts +0 -1
- package/lowcode/tab-container/meta.ts +70 -0
- package/lowcode/tab-container/props.ts +194 -0
- package/lowcode/tab-container-item/meta.ts +195 -0
- package/lowcode/tab-message/meta.ts +101 -0
- package/lowcode/teletext-list/meta.ts +57 -56
- package/lowcode_es/button2/meta.d.ts +22 -0
- package/lowcode_es/button2/meta.js +66 -0
- package/lowcode_es/d-c-slider/meta.d.ts +12 -4
- package/lowcode_es/d-c-slider/meta.design.d.ts +100 -0
- package/lowcode_es/d-c-slider/meta.design.js +149 -0
- package/lowcode_es/d-c-slider/meta.js +11 -2
- package/lowcode_es/d-c-slider/snippets.js +26 -0
- package/lowcode_es/grid-nav/meta.js +63 -19
- package/lowcode_es/integral-task/meta.d.ts +22 -0
- package/lowcode_es/integral-task/meta.js +181 -0
- package/lowcode_es/message-list/meta.d.ts +22 -0
- package/lowcode_es/message-list/meta.js +163 -0
- package/lowcode_es/meta.js +19 -12
- package/lowcode_es/notice-bar/meta.d.ts +22 -0
- package/lowcode_es/notice-bar/meta.js +251 -0
- package/lowcode_es/position/meta.js +18 -61
- package/lowcode_es/search-bar/meta.js +1 -2
- package/lowcode_es/tab-container/meta.d.ts +22 -0
- package/lowcode_es/tab-container/meta.js +59 -0
- package/lowcode_es/tab-container/props.d.ts +90 -0
- package/lowcode_es/tab-container/props.js +186 -0
- package/lowcode_es/tab-container-item/meta.d.ts +22 -0
- package/lowcode_es/tab-container-item/meta.js +181 -0
- package/lowcode_es/tab-message/meta.d.ts +22 -0
- package/lowcode_es/tab-message/meta.js +91 -0
- package/lowcode_es/teletext-list/meta.js +53 -47
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/button2/meta.d.ts +22 -0
- package/lowcode_lib/button2/meta.js +71 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +12 -4
- package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -0
- package/lowcode_lib/d-c-slider/meta.design.js +154 -0
- package/lowcode_lib/d-c-slider/meta.js +11 -2
- package/lowcode_lib/d-c-slider/snippets.js +26 -0
- package/lowcode_lib/grid-nav/meta.js +63 -19
- package/lowcode_lib/integral-task/meta.d.ts +22 -0
- package/lowcode_lib/integral-task/meta.js +186 -0
- package/lowcode_lib/message-list/meta.d.ts +22 -0
- package/lowcode_lib/message-list/meta.js +168 -0
- package/lowcode_lib/meta.js +19 -12
- package/lowcode_lib/notice-bar/meta.d.ts +22 -0
- package/lowcode_lib/notice-bar/meta.js +256 -0
- package/lowcode_lib/position/meta.js +18 -61
- package/lowcode_lib/search-bar/meta.js +1 -2
- package/lowcode_lib/tab-container/meta.d.ts +22 -0
- package/lowcode_lib/tab-container/meta.js +64 -0
- package/lowcode_lib/tab-container/props.d.ts +90 -0
- package/lowcode_lib/tab-container/props.js +190 -0
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -0
- package/lowcode_lib/tab-container-item/meta.js +186 -0
- package/lowcode_lib/tab-message/meta.d.ts +22 -0
- package/lowcode_lib/tab-message/meta.js +96 -0
- package/lowcode_lib/teletext-list/meta.js +53 -47
- package/lowcode_lib/view.js +2 -2
- package/package.json +6 -5
|
@@ -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?: {
|
|
23
|
+
/**
|
|
24
|
+
* 标签名称
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* 标签颜色
|
|
29
|
+
*/
|
|
30
|
+
color: string;
|
|
31
|
+
}[] | string;
|
|
32
|
+
/**
|
|
33
|
+
* 链接地址
|
|
34
|
+
*/
|
|
35
|
+
link?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface TeletextListProps {
|
|
38
|
+
/**
|
|
39
|
+
* 标题
|
|
40
|
+
*/
|
|
41
|
+
title?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 数据
|
|
44
|
+
*/
|
|
45
|
+
dataList?: DataProps[];
|
|
46
|
+
/**
|
|
47
|
+
* 点击事件
|
|
48
|
+
* @param e
|
|
49
|
+
*/
|
|
50
|
+
onClick?: (e: any) => void;
|
|
51
|
+
/**
|
|
52
|
+
* 子节点
|
|
53
|
+
*/
|
|
54
|
+
children: React.ReactChild;
|
|
55
|
+
/**
|
|
56
|
+
* 图片位置
|
|
57
|
+
*/
|
|
58
|
+
imagePlacement?: "left" | "right" | "none";
|
|
59
|
+
}
|
|
60
|
+
declare const TeletextList: React.FC<TeletextListProps>;
|
|
61
|
+
export default TeletextList;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["title", "dataList", "onClick", "children", "imagePlacement"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import "./index.scss";
|
|
6
|
+
import { default as TeletextListItem } from "./teletext-list-item";
|
|
7
|
+
import { convertChildren } from "../../utils/children-node-handle";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 数据
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
var TeletextList = function TeletextList(_ref) {
|
|
14
|
+
var _ref$title = _ref.title,
|
|
15
|
+
title = _ref$title === void 0 ? '标题名称' : _ref$title,
|
|
16
|
+
dataList = _ref.dataList,
|
|
17
|
+
_ref$onClick = _ref.onClick,
|
|
18
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
19
|
+
children = _ref.children,
|
|
20
|
+
_ref$imagePlacement = _ref.imagePlacement,
|
|
21
|
+
imagePlacement = _ref$imagePlacement === void 0 ? 'left' : _ref$imagePlacement,
|
|
22
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
|
+
var _otherProps = otherProps || {};
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
25
|
+
className: "teletext-list__panel"
|
|
26
|
+
}, _otherProps), convertChildren(children, 'box-title'), /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "teletext-list__panel__item-list"
|
|
28
|
+
}, dataList ? dataList.map(function (item, index) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(TeletextListItem, _extends({
|
|
30
|
+
key: index,
|
|
31
|
+
onClick: onClick,
|
|
32
|
+
children: children,
|
|
33
|
+
imagePlacement: imagePlacement
|
|
34
|
+
}, item));
|
|
35
|
+
}) : /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E")));
|
|
36
|
+
};
|
|
37
|
+
TeletextList.displayName = 'TeletextList';
|
|
38
|
+
export default TeletextList;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["title"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import "./title-1.scss";
|
|
6
|
+
var Title1 = function Title1(_ref) {
|
|
7
|
+
var _ref$title = _ref.title,
|
|
8
|
+
title = _ref$title === void 0 ? '标题标题' : _ref$title,
|
|
9
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
|
+
var _otherProps = otherProps || {};
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12
|
+
className: "custom-title-1"
|
|
13
|
+
}, _otherProps), /*#__PURE__*/React.createElement("span", null, title));
|
|
14
|
+
};
|
|
15
|
+
Title1.displayName = 'Title1';
|
|
16
|
+
export default Title1;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-1 {
|
|
4
|
+
font-size: 17px;
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
color: #000000;
|
|
7
|
+
z-index: 1;
|
|
8
|
+
& > span {
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
&::after {
|
|
12
|
+
content: '';
|
|
13
|
+
position: absolute;
|
|
14
|
+
bottom: -2px;
|
|
15
|
+
left: 0;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 5px;
|
|
18
|
+
background: linear-gradient(-30deg, #95CDFE, #61A0FE);
|
|
19
|
+
border-radius: 5px;
|
|
20
|
+
opacity: 0.6;
|
|
21
|
+
z-index: 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -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,31 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["title", "color", "tipColor"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import "./title-2.scss";
|
|
6
|
+
var Title2 = function Title2(_ref) {
|
|
7
|
+
var _ref$title = _ref.title,
|
|
8
|
+
title = _ref$title === void 0 ? '标题标题' : _ref$title,
|
|
9
|
+
_ref$color = _ref.color,
|
|
10
|
+
color = _ref$color === void 0 ? '#144477' : _ref$color,
|
|
11
|
+
_ref$tipColor = _ref.tipColor,
|
|
12
|
+
tipColor = _ref$tipColor === void 0 ? '#388AF7' : _ref$tipColor,
|
|
13
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
|
+
var _otherProps = otherProps || {};
|
|
15
|
+
var colorStyle = color ? {
|
|
16
|
+
color: color
|
|
17
|
+
} : {};
|
|
18
|
+
var tipColorStyle = tipColor ? {
|
|
19
|
+
'backgroundColor': tipColor
|
|
20
|
+
} : {};
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
22
|
+
className: "custom-title-2"
|
|
23
|
+
}, _otherProps), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: "tips",
|
|
25
|
+
style: tipColorStyle
|
|
26
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
27
|
+
style: colorStyle
|
|
28
|
+
}, title)));
|
|
29
|
+
};
|
|
30
|
+
Title2.displayName = 'Title2';
|
|
31
|
+
export default Title2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-2 {
|
|
4
|
+
|
|
5
|
+
& > div {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
color: #144477;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 3.5px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
& > div.tips {
|
|
14
|
+
content: '';
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: 3.5px;
|
|
17
|
+
height: 14.5px;
|
|
18
|
+
background-color: #388AF7;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type { ComponentProps } from './components/dc-slider';
|
|
2
|
+
export { default as DCSlider } from './components/dc-slider';
|
|
3
|
+
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
+
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
+
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
|
+
declare const bizCssPrefix = "bizpack";
|
|
36
|
+
export { bizCssPrefix };
|
package/es/index.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// 轮播图
|
|
2
|
+
|
|
3
|
+
export { default as DCSlider } from "./components/dc-slider";
|
|
4
|
+
|
|
5
|
+
// 底部导航
|
|
6
|
+
|
|
7
|
+
export { default as Navigation } from "./components/bottom-navigation";
|
|
8
|
+
|
|
9
|
+
// 列表菜单
|
|
10
|
+
|
|
11
|
+
export { default as MenuList } from "./components/menu-list";
|
|
12
|
+
|
|
13
|
+
// 图文列表
|
|
14
|
+
|
|
15
|
+
export { TeletextList } from "./components/teletext-list";
|
|
16
|
+
|
|
17
|
+
// 标题1
|
|
18
|
+
|
|
19
|
+
export { Title1 } from "./components/title";
|
|
20
|
+
|
|
21
|
+
// 标题2
|
|
22
|
+
|
|
23
|
+
export { Title2 } from "./components/title";
|
|
24
|
+
|
|
25
|
+
// 网格导航
|
|
26
|
+
|
|
27
|
+
export { default as GridNav } from "./components/grid-nav";
|
|
28
|
+
|
|
29
|
+
// 搜索框
|
|
30
|
+
|
|
31
|
+
export { default as SearchBar } from "./components/search-bar";
|
|
32
|
+
|
|
33
|
+
// 定位
|
|
34
|
+
|
|
35
|
+
export { default as Position } from "./components/position";
|
|
36
|
+
// 标签
|
|
37
|
+
|
|
38
|
+
export { default as TagC } from "./components/tag";
|
|
39
|
+
// 消息列表
|
|
40
|
+
|
|
41
|
+
export { default as MessageList } from "./components/message-list";
|
|
42
|
+
// 消息tab
|
|
43
|
+
|
|
44
|
+
export { default as TabMessage } from "./components/tab";
|
|
45
|
+
|
|
46
|
+
// 公告栏
|
|
47
|
+
|
|
48
|
+
export { default as NoticeBar } from "./components/notice-bar";
|
|
49
|
+
|
|
50
|
+
// 选项卡
|
|
51
|
+
|
|
52
|
+
export { default as TabContainer } from "./components/tab-container";
|
|
53
|
+
|
|
54
|
+
// 选项卡子项
|
|
55
|
+
|
|
56
|
+
export { default as TabContainerItem } from "./components/tab-container-item";
|
|
57
|
+
|
|
58
|
+
// 积分任务列表
|
|
59
|
+
|
|
60
|
+
export { default as IntegralTask } from "./components/integral-task";
|
|
61
|
+
|
|
62
|
+
// 按钮
|
|
63
|
+
|
|
64
|
+
export { default as Button2 } from "./components/button";
|
|
65
|
+
var bizCssPrefix = 'bizpack';
|
|
66
|
+
export { bizCssPrefix };
|
package/es/index.scss
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
@import './components/colorful-button/index.scss';
|
|
2
|
+
@import './components/colorful-input/index.scss';
|
|
3
|
+
@import './components/teletext-list/index.scss';
|
|
4
|
+
@import './components/grid-nav/index.scss';
|
|
5
|
+
@import './components/search-bar/index.scss';
|
|
6
|
+
@import './components/notice-bar/index.scss';
|
package/es/style.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* 从children数组中获取指定组件
|
|
5
|
+
* @author ZhuGangMin
|
|
6
|
+
* @date 2024-09-21 14:07:02
|
|
7
|
+
* @param children 父组件传递过来children
|
|
8
|
+
* @param key 组件的key
|
|
9
|
+
* @param props 要覆盖的属性
|
|
10
|
+
*/
|
|
11
|
+
export function convertChildren(children, key, props) {
|
|
12
|
+
var node;
|
|
13
|
+
if (Array.isArray(children)) {
|
|
14
|
+
for (var i = 0; i < children.length; i++) {
|
|
15
|
+
var child = children[i];
|
|
16
|
+
if (child.key === key) {
|
|
17
|
+
// 属性融合
|
|
18
|
+
var propsContact = props ? _extends({}, child.props, props) : child.props;
|
|
19
|
+
console.log('propsContact', propsContact);
|
|
20
|
+
node = /*#__PURE__*/React.cloneElement(child, propsContact);
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
console.log('node', node);
|
|
26
|
+
return node;
|
|
27
|
+
}
|
|
@@ -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,38 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["__designMode", "value", "defaultValue"],
|
|
4
|
+
_excluded2 = ["__designMode"];
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
var createElement = React.createElement;
|
|
7
|
+
export var ValueWrapper = function ValueWrapper(NextFormComponent, displayName) {
|
|
8
|
+
var WrappedComponent = function WrappedComponent(props) {
|
|
9
|
+
var __designMode = props.__designMode,
|
|
10
|
+
value = props.value,
|
|
11
|
+
defaultValue = props.defaultValue,
|
|
12
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
13
|
+
var finalValue = __designMode === 'design' ? defaultValue : value;
|
|
14
|
+
if (typeof finalValue !== 'undefined') {
|
|
15
|
+
otherProps.value = finalValue;
|
|
16
|
+
}
|
|
17
|
+
return createElement(NextFormComponent, _extends({}, otherProps));
|
|
18
|
+
};
|
|
19
|
+
WrappedComponent.displayName = displayName;
|
|
20
|
+
return WrappedComponent;
|
|
21
|
+
};
|
|
22
|
+
export var DynamicPropWrapper = function DynamicPropWrapper(prop, NextFormComponent, displayName) {
|
|
23
|
+
var WrappedComponent = function WrappedComponent(props) {
|
|
24
|
+
var dynamicProp = prop;
|
|
25
|
+
var defaultDynamicProp = "default" + prop.slice(0, 1).toUpperCase() + prop.slice(1);
|
|
26
|
+
var __designMode = props.__designMode,
|
|
27
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
28
|
+
var dynamicPropValueValue = props[dynamicProp];
|
|
29
|
+
var defaultDynamicPropValue = props[defaultDynamicProp];
|
|
30
|
+
var finalValue = __designMode === 'design' ? defaultDynamicPropValue : dynamicPropValueValue;
|
|
31
|
+
if (typeof finalValue !== 'undefined') {
|
|
32
|
+
otherProps[dynamicProp] = finalValue;
|
|
33
|
+
}
|
|
34
|
+
return createElement(NextFormComponent, _extends({}, otherProps));
|
|
35
|
+
};
|
|
36
|
+
WrappedComponent.displayName = displayName;
|
|
37
|
+
return WrappedComponent;
|
|
38
|
+
};
|
package/es/variables.js
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface Navigation {
|
|
4
|
+
text: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
selectedIcon: string;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationProps {
|
|
9
|
+
itemArray: Navigation[];
|
|
10
|
+
selectedColor: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Navigation: React.FC<NavigationProps>;
|
|
13
|
+
export default Navigation;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _lowcodeMaterials = require("@alilc/lowcode-materials");
|
|
10
|
+
require("./index.scss");
|
|
11
|
+
var _excluded = ["itemArray", "selectedColor"];
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
+
var Navigation = function bottomNavigation(_ref) {
|
|
15
|
+
var itemArray = _ref.itemArray,
|
|
16
|
+
selectedColor = _ref.selectedColor,
|
|
17
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
18
|
+
var _React$useState = React.useState(0),
|
|
19
|
+
activeNum = _React$useState[0],
|
|
20
|
+
setActiveNum = _React$useState[1];
|
|
21
|
+
var clickHandle = function clickHandle(index) {
|
|
22
|
+
// 更新激活tab
|
|
23
|
+
setActiveNum(index);
|
|
24
|
+
};
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
26
|
+
className: "navigation-panel"
|
|
27
|
+
}, otherProps), itemArray.map(function (item, index) {
|
|
28
|
+
var _item$selectedIcon;
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "navigation-panel-item",
|
|
31
|
+
onClick: function onClick() {
|
|
32
|
+
return clickHandle(index);
|
|
33
|
+
},
|
|
34
|
+
style: {
|
|
35
|
+
color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
|
|
38
|
+
src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
|
|
39
|
+
style: {
|
|
40
|
+
width: '24.5px',
|
|
41
|
+
height: '24.5px'
|
|
42
|
+
}
|
|
43
|
+
}), /*#__PURE__*/React.createElement("span", null, item.text));
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
var _default = exports["default"] = Navigation;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _bottomNavigation = _interopRequireDefault(require("./bottom-navigation"));
|
|
7
|
+
var _default = exports["default"] = _bottomNavigation["default"];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.navigation-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding: 9px 0px 6px 0px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
position: fixed;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
z-index: 10;
|
|
12
|
+
&-item {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
flex: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
require("./index.scss");
|
|
10
|
+
var _excluded = ["name", "color"];
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
var Button = function Button(_ref) {
|
|
14
|
+
var name = _ref.name,
|
|
15
|
+
color = _ref.color,
|
|
16
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
17
|
+
return /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({
|
|
18
|
+
className: "button__container " + (color ? color : '')
|
|
19
|
+
}, otherProps), name);
|
|
20
|
+
};
|
|
21
|
+
var _default = exports["default"] = Button;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _button = _interopRequireDefault(require("./button"));
|
|
7
|
+
/**
|
|
8
|
+
* 标签tag
|
|
9
|
+
*/
|
|
10
|
+
var _default = exports["default"] = _button["default"];
|