@dckj-npm/dc-material 0.1.127 → 0.1.129
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 +10 -10
- 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/index.scss +24 -24
- package/es/components/button/index.js +2 -2
- package/es/components/button/index.scss +16 -16
- package/es/components/carousel/carousel.scss +32 -32
- package/es/components/colorful-button/index.scss +5 -5
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list-common.scss +118 -118
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/grid-nav/index.scss +41 -41
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/index.scss +35 -35
- 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.scss +49 -49
- 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.js +2 -2
- package/es/components/message-list/message-list-item.scss +60 -60
- package/es/components/notice-bar/components/ScrollSwitcher.js +45 -0
- package/es/components/notice-bar/components/ScrollSwitcher.scss +17 -0
- package/es/components/notice-bar/index.scss +42 -59
- package/es/components/notice-bar/notice-bar-item.js +2 -5
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.js +51 -15
- package/es/components/position/index.scss +27 -27
- package/es/components/position/position-list.js +3 -2
- package/es/components/radio-group/index.js +2 -2
- package/es/components/radio-group/index.scss +40 -40
- package/es/components/rich-text/index.js +2 -2
- package/es/components/rich-text/index.scss +19 -19
- package/es/components/search-bar/index.scss +13 -14
- package/es/components/swiper/index.scss +12 -33
- package/es/components/swiper/swiper.js +16 -59
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +39 -39
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- 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.js +2 -2
- package/es/components/teletext-list/teletext-list-item.scss +55 -57
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.scss +25 -25
- package/es/components/title/title-2.scss +22 -22
- package/es/index.js +0 -4
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/time-util.js +3 -3
- package/es/variables.scss +3 -3
- package/lib/components/bottom-navigation/index.scss +24 -24
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.scss +16 -16
- package/lib/components/carousel/carousel.scss +32 -32
- package/lib/components/colorful-button/index.scss +5 -5
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list-common.scss +118 -118
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/grid-nav/index.scss +41 -41
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/index.scss +35 -35
- 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.scss +49 -49
- 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.js +2 -2
- package/lib/components/message-list/message-list-item.scss +60 -60
- package/lib/components/notice-bar/components/ScrollSwitcher.js +52 -0
- package/lib/components/notice-bar/components/ScrollSwitcher.scss +17 -0
- package/lib/components/notice-bar/index.scss +42 -59
- package/lib/components/notice-bar/notice-bar-item.js +2 -5
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.js +53 -15
- package/lib/components/position/index.scss +27 -27
- package/lib/components/position/position-list.js +3 -2
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/rich-text/index.scss +19 -19
- package/lib/components/search-bar/index.scss +13 -14
- package/lib/components/swiper/index.scss +12 -33
- package/lib/components/swiper/swiper.js +19 -60
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +39 -39
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.js +2 -2
- package/lib/components/teletext-list/teletext-list-item.scss +55 -57
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/title-1.scss +25 -25
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.js +1 -5
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/time-util.js +3 -3
- package/lib/variables.scss +3 -3
- package/lowcode/button2/meta.ts +76 -76
- package/lowcode/custom-radio-group/meta.ts +312 -312
- package/lowcode/custom-radio-group-item/meta.ts +230 -230
- package/lowcode/d-c-form/meta.ts +62 -0
- package/lowcode/d-c-slider/meta.design.ts +174 -174
- package/lowcode/d-c-slider/meta.ts +343 -343
- package/lowcode/d-c-slider/snippets.ts +68 -68
- package/lowcode/goods-card-list/meta.ts +270 -270
- package/lowcode/goods-card-list-common/meta.ts +270 -270
- package/lowcode/grid-nav/meta.ts +227 -227
- package/lowcode/integral-task/meta.ts +212 -212
- package/lowcode/menu-list/meta.ts +154 -154
- package/lowcode/message-list/meta.ts +209 -209
- package/lowcode/navigation/meta.ts +177 -177
- package/lowcode/notice-bar/meta.ts +230 -230
- package/lowcode/position/meta.ts +162 -162
- package/lowcode/rich-text/meta.ts +72 -72
- package/lowcode/search-bar/meta.ts +57 -57
- package/lowcode/stream-list/meta.ts +209 -156
- package/lowcode/swiper/meta.ts +236 -236
- package/lowcode/tab-container/meta.ts +71 -71
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tab-message/meta.ts +105 -105
- package/lowcode/tag-c/meta.ts +76 -76
- package/lowcode/teletext-list/meta.ts +332 -332
- package/lowcode/title1/meta.ts +60 -60
- package/lowcode/title2/meta.ts +94 -94
- 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-form/meta.d.ts +22 -0
- package/lowcode_es/d-c-form/meta.js +64 -0
- package/lowcode_es/d-c-slider/meta.d.ts +150 -150
- package/lowcode_es/d-c-slider/meta.design.d.ts +101 -101
- 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 +27 -26
- 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/stream-list/meta.d.ts +22 -22
- package/lowcode_es/stream-list/meta.js +54 -3
- 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-form/meta.d.ts +22 -0
- package/lowcode_lib/d-c-form/meta.js +69 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +150 -150
- package/lowcode_lib/d-c-slider/meta.design.d.ts +101 -101
- 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 +27 -26
- 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/stream-list/meta.d.ts +22 -22
- package/lowcode_lib/stream-list/meta.js +54 -3
- 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/bottom-navigation/bottom-navigation.d.ts +0 -15
- package/es/components/bottom-navigation/index.d.ts +0 -3
- package/es/components/button/button.d.ts +0 -14
- package/es/components/button/index.d.ts +0 -6
- package/es/components/carousel/carousel.d.ts +0 -14
- package/es/components/colorful-button/colorful-button.d.ts +0 -12
- package/es/components/colorful-button/index.d.ts +0 -3
- package/es/components/colorful-input/colorful-input.d.ts +0 -8
- package/es/components/colorful-input/index.d.ts +0 -3
- package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/es/components/goods-card-list/goods-card-list.d.ts +0 -5
- package/es/components/goods-card-list/index.d.ts +0 -4
- package/es/components/goods-card-list/types.d.ts +0 -45
- package/es/components/grid-nav/grid-nav.d.ts +0 -13
- package/es/components/grid-nav/index.d.ts +0 -3
- package/es/components/integral-task/index.d.ts +0 -6
- package/es/components/integral-task/integral-task.d.ts +0 -40
- package/es/components/menu-list/index.d.ts +0 -6
- package/es/components/menu-list/menu-list-item.d.ts +0 -5
- package/es/components/menu-list/menu-list.d.ts +0 -5
- package/es/components/menu-list/types.d.ts +0 -23
- package/es/components/message-list/index.d.ts +0 -6
- package/es/components/message-list/message-list-item.d.ts +0 -33
- package/es/components/message-list/message-list.d.ts +0 -28
- package/es/components/notice-bar/index.d.ts +0 -3
- package/es/components/notice-bar/notice-bar-item.d.ts +0 -18
- package/es/components/notice-bar/notice-bar.d.ts +0 -37
- package/es/components/position/entity.d.ts +0 -5
- package/es/components/position/index.d.ts +0 -3
- package/es/components/position/position-left.d.ts +0 -9
- package/es/components/position/position-list.d.ts +0 -11
- package/es/components/position/position.d.ts +0 -8
- package/es/components/radio-group/index.d.ts +0 -8
- package/es/components/radio-group/radio-group-item.d.ts +0 -48
- package/es/components/radio-group/radio-group.d.ts +0 -52
- package/es/components/rich-text/index.d.ts +0 -6
- package/es/components/rich-text/rich-text.d.ts +0 -14
- package/es/components/search-bar/index.d.ts +0 -3
- package/es/components/search-bar/search-bar.d.ts +0 -7
- package/es/components/stream-list/index.d.ts +0 -6
- package/es/components/stream-list/index.js +0 -6
- package/es/components/stream-list/index.scss +0 -26
- package/es/components/stream-list/stream-list.d.ts +0 -46
- package/es/components/stream-list/stream-list.js +0 -167
- package/es/components/swiper/index.d.ts +0 -3
- package/es/components/swiper/swiper.d.ts +0 -26
- package/es/components/tab/index.d.ts +0 -6
- package/es/components/tab/tab.d.ts +0 -27
- package/es/components/tab-container/index.d.ts +0 -3
- package/es/components/tab-container/tab-container.d.ts +0 -10
- package/es/components/tab-container-item/index.d.ts +0 -3
- package/es/components/tab-container-item/tab-container-item.d.ts +0 -11
- package/es/components/tag/index.d.ts +0 -6
- package/es/components/tag/tag.d.ts +0 -14
- package/es/components/teletext-list/index.d.ts +0 -6
- package/es/components/teletext-list/teletext-list-item.d.ts +0 -33
- package/es/components/teletext-list/teletext-list.d.ts +0 -52
- package/es/components/title/index.d.ts +0 -8
- package/es/components/title/title-1.d.ts +0 -10
- package/es/components/title/title-2.d.ts +0 -18
- package/es/index.d.ts +0 -44
- package/es/utils/children-node-handle.d.ts +0 -9
- package/es/utils/component-wrapper.d.ts +0 -9
- package/es/utils/debounce.d.ts +0 -1
- package/es/utils/time-util.d.ts +0 -5
- package/es/variables.d.ts +0 -2
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +0 -15
- package/lib/components/bottom-navigation/index.d.ts +0 -3
- package/lib/components/button/button.d.ts +0 -14
- package/lib/components/button/index.d.ts +0 -6
- package/lib/components/carousel/carousel.d.ts +0 -14
- package/lib/components/colorful-button/colorful-button.d.ts +0 -12
- package/lib/components/colorful-button/index.d.ts +0 -3
- package/lib/components/colorful-input/colorful-input.d.ts +0 -8
- package/lib/components/colorful-input/index.d.ts +0 -3
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/lib/components/goods-card-list/goods-card-list.d.ts +0 -5
- package/lib/components/goods-card-list/index.d.ts +0 -4
- package/lib/components/goods-card-list/types.d.ts +0 -45
- package/lib/components/grid-nav/grid-nav.d.ts +0 -13
- package/lib/components/grid-nav/index.d.ts +0 -3
- package/lib/components/integral-task/index.d.ts +0 -6
- package/lib/components/integral-task/integral-task.d.ts +0 -40
- package/lib/components/menu-list/index.d.ts +0 -6
- package/lib/components/menu-list/menu-list-item.d.ts +0 -5
- package/lib/components/menu-list/menu-list.d.ts +0 -5
- package/lib/components/menu-list/types.d.ts +0 -23
- package/lib/components/message-list/index.d.ts +0 -6
- package/lib/components/message-list/message-list-item.d.ts +0 -33
- package/lib/components/message-list/message-list.d.ts +0 -28
- package/lib/components/notice-bar/index.d.ts +0 -3
- package/lib/components/notice-bar/notice-bar-item.d.ts +0 -18
- package/lib/components/notice-bar/notice-bar.d.ts +0 -37
- package/lib/components/position/entity.d.ts +0 -5
- package/lib/components/position/index.d.ts +0 -3
- package/lib/components/position/position-left.d.ts +0 -9
- package/lib/components/position/position-list.d.ts +0 -11
- package/lib/components/position/position.d.ts +0 -8
- package/lib/components/radio-group/index.d.ts +0 -8
- package/lib/components/radio-group/radio-group-item.d.ts +0 -48
- package/lib/components/radio-group/radio-group.d.ts +0 -52
- package/lib/components/rich-text/index.d.ts +0 -6
- package/lib/components/rich-text/rich-text.d.ts +0 -14
- package/lib/components/search-bar/index.d.ts +0 -3
- package/lib/components/search-bar/search-bar.d.ts +0 -7
- package/lib/components/stream-list/index.d.ts +0 -6
- package/lib/components/stream-list/index.js +0 -6
- package/lib/components/stream-list/index.scss +0 -26
- package/lib/components/stream-list/stream-list.d.ts +0 -46
- package/lib/components/stream-list/stream-list.js +0 -174
- package/lib/components/swiper/index.d.ts +0 -3
- package/lib/components/swiper/swiper.d.ts +0 -26
- package/lib/components/tab/index.d.ts +0 -6
- package/lib/components/tab/tab.d.ts +0 -27
- package/lib/components/tab-container/index.d.ts +0 -3
- package/lib/components/tab-container/tab-container.d.ts +0 -10
- package/lib/components/tab-container-item/index.d.ts +0 -3
- package/lib/components/tab-container-item/tab-container-item.d.ts +0 -11
- package/lib/components/tag/index.d.ts +0 -6
- package/lib/components/tag/tag.d.ts +0 -14
- package/lib/components/teletext-list/index.d.ts +0 -6
- package/lib/components/teletext-list/teletext-list-item.d.ts +0 -33
- package/lib/components/teletext-list/teletext-list.d.ts +0 -52
- package/lib/components/title/index.d.ts +0 -8
- package/lib/components/title/title-1.d.ts +0 -10
- package/lib/components/title/title-2.d.ts +0 -18
- package/lib/index.d.ts +0 -44
- package/lib/utils/children-node-handle.d.ts +0 -9
- package/lib/utils/component-wrapper.d.ts +0 -9
- package/lib/utils/debounce.d.ts +0 -1
- package/lib/utils/time-util.d.ts +0 -5
- package/lib/variables.d.ts +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
.notice-bar__panel__item {
|
|
2
|
-
width: calc(100vw - 110px);
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
margin-bottom: 5px;
|
|
7
|
-
.notice-bar__panel__item-left {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
.notice-bar__panal__item__content{
|
|
11
|
-
color: #676767;
|
|
12
|
-
font-size: 12px;
|
|
13
|
-
width: 160px;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
text-overflow: ellipsis;
|
|
16
|
-
white-space: nowrap;
|
|
17
|
-
margin-left: 4px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.notice-bar__panel__item-releaseTime {
|
|
21
|
-
color: #676767;
|
|
22
|
-
font-size: 11px;
|
|
23
|
-
opacity: 0.5;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
1
|
+
.notice-bar__panel__item {
|
|
2
|
+
width: calc(100vw - 110px);
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: 5px;
|
|
7
|
+
.notice-bar__panel__item-left {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
.notice-bar__panal__item__content{
|
|
11
|
+
color: #676767;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
width: 160px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
text-overflow: ellipsis;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
margin-left: 4px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.notice-bar__panel__item-releaseTime {
|
|
21
|
+
color: #676767;
|
|
22
|
+
font-size: 11px;
|
|
23
|
+
opacity: 0.5;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
var _excluded = ["dataList", "onClick", "icon", "children"];
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
5
5
|
import "./index.scss";
|
|
6
6
|
import NoticeBarItem from "./notice-bar-item";
|
|
7
7
|
var NoticeBar = function NoticeBar(_ref) {
|
|
@@ -12,13 +12,45 @@ var NoticeBar = function NoticeBar(_ref) {
|
|
|
12
12
|
children = _ref.children,
|
|
13
13
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
14
|
var _otherProps = otherProps || {};
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
// const stickyItems = (dataList || []).filter((item) => item?.isTop === 1)
|
|
16
|
+
// const loopItems = (dataList || []).filter((item) => item?.isTop === 0)
|
|
17
|
+
|
|
18
|
+
var _useState = useState(true),
|
|
19
|
+
play = _useState[0],
|
|
20
|
+
setPlay = _useState[1];
|
|
21
|
+
var _useState2 = useState([]),
|
|
22
|
+
loopItems = _useState2[0],
|
|
23
|
+
setLoopItems = _useState2[1];
|
|
24
|
+
var intervalId = useRef(null);
|
|
25
|
+
useEffect(function () {
|
|
26
|
+
var stickyItems = dataList.filter(function (item) {
|
|
27
|
+
return item.isTop === 1;
|
|
28
|
+
});
|
|
29
|
+
setLoopItems(dataList.filter(function (item) {
|
|
30
|
+
return item.isTop === 1;
|
|
31
|
+
}));
|
|
32
|
+
var startPlay = function startPlay() {
|
|
33
|
+
if (play) {
|
|
34
|
+
setLoopItems(function (prev) {
|
|
35
|
+
var newItems = [].concat(prev);
|
|
36
|
+
newItems.push(newItems[0]);
|
|
37
|
+
newItems.shift();
|
|
38
|
+
return newItems;
|
|
39
|
+
});
|
|
40
|
+
setPlay(false);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
intervalId.current = setInterval(startPlay, 2000);
|
|
44
|
+
return function () {
|
|
45
|
+
clearInterval(intervalId.current);
|
|
46
|
+
};
|
|
47
|
+
}, [dataList, play]);
|
|
48
|
+
var isScroll = function isScroll(index) {
|
|
49
|
+
return index === 0;
|
|
50
|
+
};
|
|
51
|
+
var stickyItems = dataList.filter(function (item) {
|
|
52
|
+
return item.isTop === 1;
|
|
17
53
|
});
|
|
18
|
-
var loopItems = (dataList || []).filter(function (item) {
|
|
19
|
-
return (item === null || item === void 0 ? void 0 : item.isTop) === 0;
|
|
20
|
-
});
|
|
21
|
-
var loopItemsData = console.log('loopItemsData');
|
|
22
54
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
23
55
|
className: "notice-bar__panel"
|
|
24
56
|
}, _otherProps), /*#__PURE__*/React.createElement("img", {
|
|
@@ -33,15 +65,19 @@ var NoticeBar = function NoticeBar(_ref) {
|
|
|
33
65
|
onClick: onClick,
|
|
34
66
|
children: children
|
|
35
67
|
}, item));
|
|
36
|
-
}) : /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
className: "notice-
|
|
38
|
-
},
|
|
39
|
-
return /*#__PURE__*/React.createElement(NoticeBarItem,
|
|
68
|
+
}) : /*#__PURE__*/React.createElement("div", null), loopItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "notice-bar__panel-loop"
|
|
70
|
+
}, loopItems.map(function (item, index) {
|
|
71
|
+
return /*#__PURE__*/React.createElement(NoticeBarItem, {
|
|
40
72
|
key: index,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
73
|
+
className: "notice-bar__panel-loop__item " + (isScroll(index) && play ? 'toUp' : ''),
|
|
74
|
+
content: item.content,
|
|
75
|
+
releaseTime: item.releaseTime,
|
|
76
|
+
isTop: item.isTop,
|
|
77
|
+
tag: item.tag,
|
|
78
|
+
onClick: onClick
|
|
79
|
+
});
|
|
80
|
+
})) : /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E")));
|
|
45
81
|
};
|
|
46
82
|
NoticeBar.displayName = 'NoticeBar';
|
|
47
83
|
export default NoticeBar;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
.location {
|
|
2
|
-
display: flex;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
color: #414141;
|
|
5
|
-
font-size: 13.5px;
|
|
6
|
-
&-address {
|
|
7
|
-
margin-right: 7px;
|
|
8
|
-
}
|
|
9
|
-
&-icon {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.location-list {
|
|
15
|
-
position: fixed;
|
|
16
|
-
top: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
width: 100vw;
|
|
19
|
-
height: 100vh;
|
|
20
|
-
background-color: #fff;
|
|
21
|
-
padding: 10px 15px;
|
|
22
|
-
z-index: 999;
|
|
23
|
-
&-item {
|
|
24
|
-
padding: 10px 0;
|
|
25
|
-
border-bottom: solid 1px #eee;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
.location {
|
|
2
|
+
display: flex;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
color: #414141;
|
|
5
|
+
font-size: 13.5px;
|
|
6
|
+
&-address {
|
|
7
|
+
margin-right: 7px;
|
|
8
|
+
}
|
|
9
|
+
&-icon {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.location-list {
|
|
15
|
+
position: fixed;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
width: 100vw;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
padding: 10px 15px;
|
|
22
|
+
z-index: 999;
|
|
23
|
+
&-item {
|
|
24
|
+
padding: 10px 0;
|
|
25
|
+
border-bottom: solid 1px #eee;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -3,6 +3,7 @@ import "./index.scss";
|
|
|
3
3
|
var ContentList = function navigationList(_ref) {
|
|
4
4
|
var open = _ref.open,
|
|
5
5
|
itemArray = _ref.itemArray,
|
|
6
|
+
currentLocation = _ref.currentLocation,
|
|
6
7
|
setIsOpen = _ref.setIsOpen,
|
|
7
8
|
setCurrent = _ref.setCurrent;
|
|
8
9
|
var changeHandle = function changeHandle(position) {
|
|
@@ -17,13 +18,13 @@ var ContentList = function navigationList(_ref) {
|
|
|
17
18
|
style: {
|
|
18
19
|
display: open ? 'block' : 'none'
|
|
19
20
|
}
|
|
20
|
-
}, itemArray
|
|
21
|
+
}, itemArray.map(function (item) {
|
|
21
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
22
23
|
onClick: function onClick() {
|
|
23
24
|
return changeHandle(item);
|
|
24
25
|
},
|
|
25
26
|
className: "location-list-item"
|
|
26
27
|
}, item.address);
|
|
27
|
-
})
|
|
28
|
+
}));
|
|
28
29
|
};
|
|
29
30
|
export default ContentList;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.radio-group__panel {
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 12px;
|
|
6
|
-
width: 100%;
|
|
7
|
-
|
|
8
|
-
.radio-group-item__button {
|
|
9
|
-
flex: 0 0 auto;
|
|
10
|
-
transition-property: all;
|
|
11
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
12
|
-
transition-duration: 250ms;
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
padding: 5px 11px;
|
|
15
|
-
border-radius: 25rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.radio-group-item__text {
|
|
19
|
-
flex: 0 0 auto;
|
|
20
|
-
transition-property: all;
|
|
21
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
22
|
-
transition-duration: 250ms;
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
padding: 5px 0;
|
|
25
|
-
|
|
26
|
-
.radio-group-item__text__line {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 1px;
|
|
29
|
-
right: 0;
|
|
30
|
-
left: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
position: absolute;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.radio-group__panel {
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
.radio-group-item__button {
|
|
9
|
+
flex: 0 0 auto;
|
|
10
|
+
transition-property: all;
|
|
11
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
12
|
+
transition-duration: 250ms;
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
padding: 5px 11px;
|
|
15
|
+
border-radius: 25rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.radio-group-item__text {
|
|
19
|
+
flex: 0 0 auto;
|
|
20
|
+
transition-property: all;
|
|
21
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
22
|
+
transition-duration: 250ms;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
padding: 5px 0;
|
|
25
|
+
|
|
26
|
+
.radio-group-item__text__line {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 1px;
|
|
29
|
+
right: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
position: absolute;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.rich-text {
|
|
2
|
-
width: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
padding: 0; /* 添加内边距 */
|
|
6
|
-
margin: 0; /* 去除外边距 */
|
|
7
|
-
word-break: break-word; /* 处理长单词换行 */
|
|
8
|
-
overflow-wrap: break-word; /* 支持长单词换行 */
|
|
9
|
-
overflow: hidden; /* 隐藏超出部分 */
|
|
10
|
-
}
|
|
11
|
-
p {
|
|
12
|
-
padding: 0;
|
|
13
|
-
margin: 0 0 20px 0 !important;
|
|
14
|
-
}
|
|
15
|
-
img {
|
|
16
|
-
max-width: 100%;
|
|
17
|
-
height: auto; /* 保持纵横比 */
|
|
18
|
-
object-fit: contain; /* 确保图片保持在容器内 */
|
|
19
|
-
}
|
|
1
|
+
.rich-text {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding: 0; /* 添加内边距 */
|
|
6
|
+
margin: 0; /* 去除外边距 */
|
|
7
|
+
word-break: break-word; /* 处理长单词换行 */
|
|
8
|
+
overflow-wrap: break-word; /* 支持长单词换行 */
|
|
9
|
+
overflow: hidden; /* 隐藏超出部分 */
|
|
10
|
+
}
|
|
11
|
+
p {
|
|
12
|
+
padding: 0;
|
|
13
|
+
margin: 0 0 20px 0 !important;
|
|
14
|
+
}
|
|
15
|
+
img {
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
height: auto; /* 保持纵横比 */
|
|
18
|
+
object-fit: contain; /* 确保图片保持在容器内 */
|
|
19
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
.search-bar-box {
|
|
2
|
-
|
|
3
|
-
height: 35px;
|
|
4
|
-
margin: 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
.search-bar-box {
|
|
2
|
+
width: 260px;
|
|
3
|
+
height: 35px;
|
|
4
|
+
margin: 0;
|
|
5
|
+
.next-input {
|
|
6
|
+
width: 260px;
|
|
7
|
+
border-radius: 34px;
|
|
8
|
+
height: 35px;
|
|
9
|
+
& input {
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
.carousel__slide img {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: auto;
|
|
17
|
-
}
|
|
18
|
-
.carousel__button {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 50%;
|
|
21
|
-
transform: translateY(-50%);
|
|
22
|
-
background: rgba(0, 0, 0, 0.5);
|
|
23
|
-
color: white;
|
|
24
|
-
border: none;
|
|
25
|
-
padding: 10px;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
}
|
|
28
|
-
.carousel__button--prev {
|
|
29
|
-
left: 10px;
|
|
30
|
-
}
|
|
31
|
-
.carousel__button--next {
|
|
32
|
-
right: 10px;
|
|
33
|
-
}
|
|
1
|
+
/* write style here */
|
|
2
|
+
.swiper__container {
|
|
3
|
+
margin: 0;
|
|
4
|
+
&__sliede {
|
|
5
|
+
position: relative;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.img{
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
@@ -1,77 +1,34 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["speed", "autoplay", "loop", "picUrls", "height"];
|
|
4
2
|
import * as React from 'react';
|
|
5
|
-
import {
|
|
3
|
+
import { Image } from '@alilc/lowcode-materials';
|
|
4
|
+
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
5
|
+
import SwiperCore, { Autoplay } from 'swiper/core'; // 引入核心插件和自动播放组件
|
|
6
|
+
SwiperCore.use([Autoplay]); // 使用插件,插件名放入[]中,这一行是重点
|
|
6
7
|
import "./index.scss";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_ref$picUrls = _ref.picUrls,
|
|
13
|
-
picUrls = _ref$picUrls === void 0 ? [] : _ref$picUrls,
|
|
14
|
-
height = _ref.height,
|
|
15
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
|
-
var _useState = useState(0),
|
|
17
|
-
currentIndex = _useState[0],
|
|
18
|
-
setCurrentIndex = _useState[1];
|
|
19
|
-
var autoplayRef = useRef(null);
|
|
20
|
-
var nextSlide = function nextSlide() {
|
|
21
|
-
if (currentIndex < picUrls.length - 1) {
|
|
22
|
-
setCurrentIndex(currentIndex + 1);
|
|
23
|
-
} else if (loop) {
|
|
24
|
-
setCurrentIndex(0);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var startAutoplay = function startAutoplay() {
|
|
28
|
-
if (autoplay && !autoplayRef.current) {
|
|
29
|
-
autoplayRef.current = setInterval(nextSlide, speed);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var stopAutoplay = function stopAutoplay() {
|
|
33
|
-
if (autoplayRef.current) {
|
|
34
|
-
clearInterval(autoplayRef.current);
|
|
35
|
-
autoplayRef.current = null;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
useEffect(function () {
|
|
39
|
-
if (autoplay) {
|
|
40
|
-
startAutoplay();
|
|
41
|
-
}
|
|
42
|
-
return function () {
|
|
43
|
-
stopAutoplay();
|
|
44
|
-
};
|
|
45
|
-
}, [autoplay, speed, loop, picUrls]);
|
|
46
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
47
|
-
className: "carousel",
|
|
48
|
-
onMouseEnter: stopAutoplay,
|
|
49
|
-
onMouseLeave: startAutoplay,
|
|
8
|
+
import 'swiper/swiper.min.css';
|
|
9
|
+
var DCSlider = function DCSlider(props) {
|
|
10
|
+
var height = props.height;
|
|
11
|
+
return /*#__PURE__*/React.createElement(Swiper, _extends({}, props, {
|
|
12
|
+
className: "swiper__container",
|
|
50
13
|
style: {
|
|
51
14
|
height: height ? height + "px" : '100%'
|
|
52
15
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
transform: "translateX(-" + currentIndex * 100 + "%)",
|
|
57
|
-
transitionDuration: speed + "ms"
|
|
58
|
-
}
|
|
59
|
-
}, picUrls.map(function (url, index) {
|
|
60
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
key: index,
|
|
62
|
-
className: "carousel__slide",
|
|
16
|
+
}), props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(SwiperSlide, {
|
|
18
|
+
className: "swiper__container__sliede",
|
|
63
19
|
style: {
|
|
64
20
|
width: '100%',
|
|
65
21
|
height: height ? height + "px" : '100%'
|
|
66
22
|
}
|
|
67
|
-
}, /*#__PURE__*/React.createElement(
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
68
24
|
src: url,
|
|
69
|
-
alt: "Slide
|
|
25
|
+
alt: "Slide",
|
|
26
|
+
key: index,
|
|
70
27
|
style: {
|
|
71
28
|
width: '100%',
|
|
72
29
|
height: height ? height + "px" : '100%'
|
|
73
30
|
}
|
|
74
31
|
}));
|
|
75
|
-
})));
|
|
32
|
+
}) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A"));
|
|
76
33
|
};
|
|
77
34
|
export default DCSlider;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
.tabs__container {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
padding: 5px 17px;
|
|
4
|
-
border-radius: 19px;
|
|
5
|
-
background-color: #FFFFFF;
|
|
6
|
-
color: #666666;
|
|
7
|
-
font-size: 15px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
margin-right: 6px;
|
|
10
|
-
letter-spacing: 2px;
|
|
11
|
-
position: relative;
|
|
12
|
-
&--selected {
|
|
13
|
-
background-color: #ED794A;
|
|
14
|
-
color: #FFFFFF;
|
|
15
|
-
}
|
|
16
|
-
&--small {
|
|
17
|
-
padding: 5px 16px;
|
|
18
|
-
border-radius: 19px;
|
|
19
|
-
}
|
|
20
|
-
&--large {
|
|
21
|
-
padding: 14px 30px;
|
|
22
|
-
border-radius: 28px;
|
|
23
|
-
}
|
|
24
|
-
.badge {
|
|
25
|
-
display: flex;
|
|
26
|
-
padding: 2px 4px;
|
|
27
|
-
border-radius: 8px;
|
|
28
|
-
background-color: #F44341; // 红色背景
|
|
29
|
-
color: white; // 字体颜色
|
|
30
|
-
// text-align: center;
|
|
31
|
-
letter-spacing: 0;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
line-height: normal; // 垂直居中
|
|
34
|
-
font-size: 10px; // 根据需要调整字体大小
|
|
35
|
-
position: absolute; // 绝对定位
|
|
36
|
-
top: 0; // 根据需要调整位置
|
|
37
|
-
right: 3px; // 根据需要调整位置
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
.tabs__container {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
padding: 5px 17px;
|
|
4
|
+
border-radius: 19px;
|
|
5
|
+
background-color: #FFFFFF;
|
|
6
|
+
color: #666666;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
margin-right: 6px;
|
|
10
|
+
letter-spacing: 2px;
|
|
11
|
+
position: relative;
|
|
12
|
+
&--selected {
|
|
13
|
+
background-color: #ED794A;
|
|
14
|
+
color: #FFFFFF;
|
|
15
|
+
}
|
|
16
|
+
&--small {
|
|
17
|
+
padding: 5px 16px;
|
|
18
|
+
border-radius: 19px;
|
|
19
|
+
}
|
|
20
|
+
&--large {
|
|
21
|
+
padding: 14px 30px;
|
|
22
|
+
border-radius: 28px;
|
|
23
|
+
}
|
|
24
|
+
.badge {
|
|
25
|
+
display: flex;
|
|
26
|
+
padding: 2px 4px;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
background-color: #F44341; // 红色背景
|
|
29
|
+
color: white; // 字体颜色
|
|
30
|
+
// text-align: center;
|
|
31
|
+
letter-spacing: 0;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
line-height: normal; // 垂直居中
|
|
34
|
+
font-size: 10px; // 根据需要调整字体大小
|
|
35
|
+
position: absolute; // 绝对定位
|
|
36
|
+
top: 0; // 根据需要调整位置
|
|
37
|
+
right: 3px; // 根据需要调整位置
|
|
38
|
+
}
|
|
39
|
+
}
|