@dckj-npm/dc-material 0.1.328 → 0.1.331
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.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +2 -2
- package/build/index.css +0 -2
- package/build/index.html +0 -1
- package/build/index.js +0 -53
- package/es/assets/icon/grid-nav/right.png +0 -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/navigation/present-selected.png +0 -0
- package/es/assets/icon/navigation/present.png +0 -0
- package/es/assets/icon/notice-bar/notice.png +0 -0
- package/es/assets/icon/position/arror.png +0 -0
- package/es/assets/icon/position/img.png +0 -0
- package/es/assets/icon/position/location.png +0 -0
- package/es/assets/icon/search/delete.png +0 -0
- package/es/assets/icon/search/search.png +0 -0
- package/es/assets/icon/teletext-list/arr.png +0 -0
- package/es/components/bottom-navigation/bottom-navigation.d.ts +0 -15
- package/es/components/bottom-navigation/bottom-navigation.js +0 -53
- package/es/components/bottom-navigation/index.d.ts +0 -3
- package/es/components/bottom-navigation/index.js +0 -2
- package/es/components/bottom-navigation/index.scss +0 -24
- package/es/components/button/button.d.ts +0 -14
- package/es/components/button/button.js +0 -14
- package/es/components/button/index.d.ts +0 -6
- package/es/components/button/index.js +0 -5
- package/es/components/button/index.scss +0 -16
- package/es/components/carousel/carousel.d.ts +0 -14
- package/es/components/carousel/carousel.js +0 -75
- package/es/components/carousel/carousel.scss +0 -32
- package/es/components/colorful-button/colorful-button.d.ts +0 -12
- package/es/components/colorful-button/colorful-button.js +0 -25
- package/es/components/colorful-button/index.d.ts +0 -3
- package/es/components/colorful-button/index.js +0 -2
- package/es/components/colorful-button/index.scss +0 -5
- package/es/components/colorful-input/colorful-input.d.ts +0 -8
- package/es/components/colorful-input/colorful-input.js +0 -19
- package/es/components/colorful-input/index.d.ts +0 -3
- package/es/components/colorful-input/index.js +0 -2
- package/es/components/colorful-input/index.scss +0 -5
- package/es/components/form/form-item.d.ts +0 -42
- package/es/components/form/form-item.js +0 -79
- package/es/components/form/form-item.scss +0 -20
- package/es/components/form/form.d.ts +0 -57
- package/es/components/form/form.js +0 -46
- package/es/components/form/index.d.ts +0 -6
- package/es/components/form/index.js +0 -6
- package/es/components/form/index.scss +0 -22
- package/es/components/form/next-wrapper.d.ts +0 -54
- package/es/components/form/next-wrapper.js +0 -43
- package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/es/components/goods-card-list/goods-card-list-common.js +0 -60
- package/es/components/goods-card-list/goods-card-list-common.scss +0 -118
- package/es/components/goods-card-list/goods-card-list.d.ts +0 -5
- package/es/components/goods-card-list/goods-card-list.js +0 -156
- package/es/components/goods-card-list/goods-card-list.scss +0 -112
- package/es/components/goods-card-list/index.d.ts +0 -4
- package/es/components/goods-card-list/index.js +0 -3
- package/es/components/goods-card-list/types.d.ts +0 -45
- package/es/components/goods-card-list/types.js +0 -1
- package/es/components/grid-nav/grid-nav.d.ts +0 -13
- package/es/components/grid-nav/grid-nav.js +0 -102
- package/es/components/grid-nav/index.d.ts +0 -3
- package/es/components/grid-nav/index.js +0 -2
- package/es/components/grid-nav/index.scss +0 -50
- package/es/components/integral-task/index.d.ts +0 -6
- package/es/components/integral-task/index.js +0 -5
- package/es/components/integral-task/index.scss +0 -35
- package/es/components/integral-task/integral-task.d.ts +0 -40
- package/es/components/integral-task/integral-task.js +0 -54
- package/es/components/menu-list/index.d.ts +0 -6
- package/es/components/menu-list/index.js +0 -6
- package/es/components/menu-list/index.scss +0 -16
- package/es/components/menu-list/menu-list-item.d.ts +0 -5
- package/es/components/menu-list/menu-list-item.js +0 -32
- package/es/components/menu-list/menu-list-item.scss +0 -49
- package/es/components/menu-list/menu-list.d.ts +0 -5
- package/es/components/menu-list/menu-list.js +0 -25
- package/es/components/menu-list/types.d.ts +0 -23
- package/es/components/menu-list/types.js +0 -1
- package/es/components/message-list/index.d.ts +0 -6
- package/es/components/message-list/index.js +0 -6
- package/es/components/message-list/index.scss +0 -22
- package/es/components/message-list/message-list-item.d.ts +0 -33
- package/es/components/message-list/message-list-item.js +0 -41
- package/es/components/message-list/message-list-item.scss +0 -60
- package/es/components/message-list/message-list.d.ts +0 -28
- package/es/components/message-list/message-list.js +0 -53
- package/es/components/notice-bar/index.d.ts +0 -3
- package/es/components/notice-bar/index.js +0 -2
- package/es/components/notice-bar/index.scss +0 -84
- package/es/components/notice-bar/notice-bar-item.d.ts +0 -18
- package/es/components/notice-bar/notice-bar-item.js +0 -30
- package/es/components/notice-bar/notice-bar-item.scss +0 -26
- package/es/components/notice-bar/notice-bar.d.ts +0 -46
- package/es/components/notice-bar/notice-bar.js +0 -57
- package/es/components/position/entity.d.ts +0 -5
- package/es/components/position/entity.js +0 -1
- package/es/components/position/index.d.ts +0 -3
- package/es/components/position/index.js +0 -2
- package/es/components/position/index.scss +0 -27
- package/es/components/position/position-left.d.ts +0 -9
- package/es/components/position/position-left.js +0 -28
- package/es/components/position/position-list.d.ts +0 -11
- package/es/components/position/position-list.js +0 -29
- package/es/components/position/position.d.ts +0 -8
- package/es/components/position/position.js +0 -48
- package/es/components/radio-group/index.d.ts +0 -8
- package/es/components/radio-group/index.js +0 -7
- package/es/components/radio-group/index.scss +0 -40
- package/es/components/radio-group/radio-group-item.d.ts +0 -48
- package/es/components/radio-group/radio-group-item.js +0 -74
- package/es/components/radio-group/radio-group.d.ts +0 -52
- package/es/components/radio-group/radio-group.js +0 -80
- package/es/components/rich-text/index.d.ts +0 -6
- package/es/components/rich-text/index.js +0 -6
- package/es/components/rich-text/index.scss +0 -19
- package/es/components/rich-text/rich-text.d.ts +0 -14
- package/es/components/rich-text/rich-text.js +0 -37
- package/es/components/search-bar/index.d.ts +0 -3
- package/es/components/search-bar/index.js +0 -2
- package/es/components/search-bar/index.scss +0 -39
- package/es/components/search-bar/search-bar.d.ts +0 -10
- package/es/components/search-bar/search-bar.js +0 -73
- 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 -54
- package/es/components/stream-list/stream-list.js +0 -159
- package/es/components/swiper/index.d.ts +0 -3
- package/es/components/swiper/index.js +0 -2
- package/es/components/swiper/index.scss +0 -33
- package/es/components/swiper/swiper.d.ts +0 -26
- package/es/components/swiper/swiper.js +0 -77
- package/es/components/tab/index.d.ts +0 -6
- package/es/components/tab/index.js +0 -5
- package/es/components/tab/index.scss +0 -39
- package/es/components/tab/tab.d.ts +0 -27
- package/es/components/tab/tab.js +0 -50
- package/es/components/tab-container/index.d.ts +0 -3
- package/es/components/tab-container/index.js +0 -2
- package/es/components/tab-container/index.scss +0 -48
- package/es/components/tab-container/tab-container.d.ts +0 -10
- package/es/components/tab-container/tab-container.js +0 -26
- package/es/components/tab-container-item/index.d.ts +0 -3
- package/es/components/tab-container-item/index.js +0 -2
- package/es/components/tab-container-item/index.scss +0 -0
- package/es/components/tab-container-item/tab-container-item.d.ts +0 -11
- package/es/components/tab-container-item/tab-container-item.js +0 -19
- package/es/components/tag/index.d.ts +0 -6
- package/es/components/tag/index.js +0 -5
- package/es/components/tag/index.scss +0 -24
- package/es/components/tag/tag.d.ts +0 -14
- package/es/components/tag/tag.js +0 -14
- package/es/components/teletext-list/index.d.ts +0 -6
- package/es/components/teletext-list/index.js +0 -6
- package/es/components/teletext-list/index.scss +0 -40
- package/es/components/teletext-list/teletext-list-item.d.ts +0 -33
- package/es/components/teletext-list/teletext-list-item.js +0 -61
- package/es/components/teletext-list/teletext-list-item.scss +0 -57
- package/es/components/teletext-list/teletext-list.d.ts +0 -61
- package/es/components/teletext-list/teletext-list.js +0 -48
- package/es/components/title/index.d.ts +0 -8
- package/es/components/title/index.js +0 -7
- package/es/components/title/title-1.d.ts +0 -10
- package/es/components/title/title-1.js +0 -16
- package/es/components/title/title-1.scss +0 -25
- package/es/components/title/title-2.d.ts +0 -18
- package/es/components/title/title-2.js +0 -31
- package/es/components/title/title-2.scss +0 -22
- package/es/entity/dynamic-column-data-type.d.ts +0 -47
- package/es/entity/dynamic-column-data-type.js +0 -165
- package/es/index.d.ts +0 -46
- package/es/index.js +0 -86
- package/es/index.scss +0 -6
- package/es/style.js +0 -4
- package/es/utils/children-node-handle.d.ts +0 -9
- package/es/utils/children-node-handle.js +0 -25
- package/es/utils/component-wrapper.d.ts +0 -9
- package/es/utils/component-wrapper.js +0 -38
- package/es/utils/debounce.d.ts +0 -1
- package/es/utils/debounce.js +0 -14
- package/es/utils/textUtil.d.ts +0 -10
- package/es/utils/textUtil.js +0 -51
- package/es/utils/time-util.d.ts +0 -5
- package/es/utils/time-util.js +0 -18
- package/es/variables.d.ts +0 -2
- package/es/variables.js +0 -2
- package/es/variables.scss +0 -3
- package/lib/assets/icon/grid-nav/right.png +0 -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/navigation/present-selected.png +0 -0
- package/lib/assets/icon/navigation/present.png +0 -0
- package/lib/assets/icon/notice-bar/notice.png +0 -0
- package/lib/assets/icon/position/arror.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 +0 -15
- package/lib/components/bottom-navigation/bottom-navigation.js +0 -60
- package/lib/components/bottom-navigation/index.d.ts +0 -3
- package/lib/components/bottom-navigation/index.js +0 -7
- package/lib/components/bottom-navigation/index.scss +0 -24
- package/lib/components/button/button.d.ts +0 -14
- package/lib/components/button/button.js +0 -21
- package/lib/components/button/index.d.ts +0 -6
- package/lib/components/button/index.js +0 -10
- package/lib/components/button/index.scss +0 -16
- package/lib/components/carousel/carousel.d.ts +0 -14
- package/lib/components/carousel/carousel.js +0 -81
- package/lib/components/carousel/carousel.scss +0 -32
- package/lib/components/colorful-button/colorful-button.d.ts +0 -12
- package/lib/components/colorful-button/colorful-button.js +0 -32
- package/lib/components/colorful-button/index.d.ts +0 -3
- package/lib/components/colorful-button/index.js +0 -7
- package/lib/components/colorful-button/index.scss +0 -5
- package/lib/components/colorful-input/colorful-input.d.ts +0 -8
- package/lib/components/colorful-input/colorful-input.js +0 -26
- package/lib/components/colorful-input/index.d.ts +0 -3
- package/lib/components/colorful-input/index.js +0 -7
- package/lib/components/colorful-input/index.scss +0 -5
- package/lib/components/form/form-item.d.ts +0 -42
- package/lib/components/form/form-item.js +0 -86
- package/lib/components/form/form-item.scss +0 -20
- package/lib/components/form/form.d.ts +0 -57
- package/lib/components/form/form.js +0 -49
- package/lib/components/form/index.d.ts +0 -6
- package/lib/components/form/index.js +0 -6
- package/lib/components/form/index.scss +0 -22
- package/lib/components/form/next-wrapper.d.ts +0 -54
- package/lib/components/form/next-wrapper.js +0 -49
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/lib/components/goods-card-list/goods-card-list-common.js +0 -65
- package/lib/components/goods-card-list/goods-card-list-common.scss +0 -118
- package/lib/components/goods-card-list/goods-card-list.d.ts +0 -5
- package/lib/components/goods-card-list/goods-card-list.js +0 -163
- package/lib/components/goods-card-list/goods-card-list.scss +0 -112
- package/lib/components/goods-card-list/index.d.ts +0 -4
- package/lib/components/goods-card-list/index.js +0 -8
- package/lib/components/goods-card-list/types.d.ts +0 -45
- package/lib/components/goods-card-list/types.js +0 -3
- package/lib/components/grid-nav/grid-nav.d.ts +0 -13
- package/lib/components/grid-nav/grid-nav.js +0 -109
- package/lib/components/grid-nav/index.d.ts +0 -3
- package/lib/components/grid-nav/index.js +0 -7
- package/lib/components/grid-nav/index.scss +0 -50
- package/lib/components/integral-task/index.d.ts +0 -6
- package/lib/components/integral-task/index.js +0 -10
- package/lib/components/integral-task/index.scss +0 -35
- package/lib/components/integral-task/integral-task.d.ts +0 -40
- package/lib/components/integral-task/integral-task.js +0 -61
- package/lib/components/menu-list/index.d.ts +0 -6
- package/lib/components/menu-list/index.js +0 -10
- package/lib/components/menu-list/index.scss +0 -16
- package/lib/components/menu-list/menu-list-item.d.ts +0 -5
- package/lib/components/menu-list/menu-list-item.js +0 -37
- package/lib/components/menu-list/menu-list-item.scss +0 -49
- package/lib/components/menu-list/menu-list.d.ts +0 -5
- package/lib/components/menu-list/menu-list.js +0 -30
- package/lib/components/menu-list/types.d.ts +0 -23
- package/lib/components/menu-list/types.js +0 -3
- package/lib/components/message-list/index.d.ts +0 -6
- package/lib/components/message-list/index.js +0 -10
- package/lib/components/message-list/index.scss +0 -22
- package/lib/components/message-list/message-list-item.d.ts +0 -33
- package/lib/components/message-list/message-list-item.js +0 -45
- package/lib/components/message-list/message-list-item.scss +0 -60
- package/lib/components/message-list/message-list.d.ts +0 -28
- package/lib/components/message-list/message-list.js +0 -60
- package/lib/components/notice-bar/index.d.ts +0 -3
- package/lib/components/notice-bar/index.js +0 -7
- package/lib/components/notice-bar/index.scss +0 -84
- package/lib/components/notice-bar/notice-bar-item.d.ts +0 -18
- package/lib/components/notice-bar/notice-bar-item.js +0 -35
- package/lib/components/notice-bar/notice-bar-item.scss +0 -26
- package/lib/components/notice-bar/notice-bar.d.ts +0 -46
- package/lib/components/notice-bar/notice-bar.js +0 -62
- package/lib/components/position/entity.d.ts +0 -5
- package/lib/components/position/entity.js +0 -3
- package/lib/components/position/index.d.ts +0 -3
- package/lib/components/position/index.js +0 -7
- package/lib/components/position/index.scss +0 -27
- package/lib/components/position/position-left.d.ts +0 -9
- package/lib/components/position/position-left.js +0 -35
- package/lib/components/position/position-list.d.ts +0 -11
- package/lib/components/position/position-list.js +0 -35
- package/lib/components/position/position.d.ts +0 -8
- package/lib/components/position/position.js +0 -55
- package/lib/components/radio-group/index.d.ts +0 -8
- package/lib/components/radio-group/index.js +0 -8
- package/lib/components/radio-group/index.scss +0 -40
- package/lib/components/radio-group/radio-group-item.d.ts +0 -48
- package/lib/components/radio-group/radio-group-item.js +0 -79
- package/lib/components/radio-group/radio-group.d.ts +0 -52
- package/lib/components/radio-group/radio-group.js +0 -87
- package/lib/components/rich-text/index.d.ts +0 -6
- package/lib/components/rich-text/index.js +0 -6
- package/lib/components/rich-text/index.scss +0 -19
- package/lib/components/rich-text/rich-text.d.ts +0 -14
- package/lib/components/rich-text/rich-text.js +0 -42
- package/lib/components/search-bar/index.d.ts +0 -3
- package/lib/components/search-bar/index.js +0 -7
- package/lib/components/search-bar/index.scss +0 -39
- package/lib/components/search-bar/search-bar.d.ts +0 -10
- package/lib/components/search-bar/search-bar.js +0 -80
- 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 -54
- package/lib/components/stream-list/stream-list.js +0 -166
- package/lib/components/swiper/index.d.ts +0 -3
- package/lib/components/swiper/index.js +0 -7
- package/lib/components/swiper/index.scss +0 -33
- package/lib/components/swiper/swiper.d.ts +0 -26
- package/lib/components/swiper/swiper.js +0 -84
- package/lib/components/tab/index.d.ts +0 -6
- package/lib/components/tab/index.js +0 -10
- package/lib/components/tab/index.scss +0 -39
- package/lib/components/tab/tab.d.ts +0 -27
- package/lib/components/tab/tab.js +0 -57
- package/lib/components/tab-container/index.d.ts +0 -3
- package/lib/components/tab-container/index.js +0 -6
- package/lib/components/tab-container/index.scss +0 -48
- package/lib/components/tab-container/tab-container.d.ts +0 -10
- package/lib/components/tab-container/tab-container.js +0 -31
- package/lib/components/tab-container-item/index.d.ts +0 -3
- package/lib/components/tab-container-item/index.js +0 -6
- package/lib/components/tab-container-item/index.scss +0 -0
- package/lib/components/tab-container-item/tab-container-item.d.ts +0 -11
- package/lib/components/tab-container-item/tab-container-item.js +0 -24
- package/lib/components/tag/index.d.ts +0 -6
- package/lib/components/tag/index.js +0 -10
- package/lib/components/tag/index.scss +0 -24
- package/lib/components/tag/tag.d.ts +0 -14
- package/lib/components/tag/tag.js +0 -21
- package/lib/components/teletext-list/index.d.ts +0 -6
- package/lib/components/teletext-list/index.js +0 -6
- package/lib/components/teletext-list/index.scss +0 -40
- package/lib/components/teletext-list/teletext-list-item.d.ts +0 -33
- package/lib/components/teletext-list/teletext-list-item.js +0 -65
- package/lib/components/teletext-list/teletext-list-item.scss +0 -57
- package/lib/components/teletext-list/teletext-list.d.ts +0 -61
- package/lib/components/teletext-list/teletext-list.js +0 -52
- package/lib/components/title/index.d.ts +0 -8
- package/lib/components/title/index.js +0 -8
- package/lib/components/title/title-1.d.ts +0 -10
- package/lib/components/title/title-1.js +0 -21
- package/lib/components/title/title-1.scss +0 -25
- package/lib/components/title/title-2.d.ts +0 -18
- package/lib/components/title/title-2.js +0 -36
- package/lib/components/title/title-2.scss +0 -22
- package/lib/entity/dynamic-column-data-type.d.ts +0 -47
- package/lib/entity/dynamic-column-data-type.js +0 -169
- package/lib/index.d.ts +0 -46
- package/lib/index.js +0 -95
- package/lib/index.scss +0 -6
- package/lib/style.js +0 -4
- package/lib/utils/children-node-handle.d.ts +0 -9
- package/lib/utils/children-node-handle.js +0 -30
- package/lib/utils/component-wrapper.d.ts +0 -9
- package/lib/utils/component-wrapper.js +0 -45
- package/lib/utils/debounce.d.ts +0 -1
- package/lib/utils/debounce.js +0 -18
- package/lib/utils/textUtil.d.ts +0 -10
- package/lib/utils/textUtil.js +0 -55
- package/lib/utils/time-util.d.ts +0 -5
- package/lib/utils/time-util.js +0 -22
- package/lib/variables.d.ts +0 -2
- package/lib/variables.js +0 -5
- package/lib/variables.scss +0 -3
|
@@ -1,60 +0,0 @@
|
|
|
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 _messageListItem = _interopRequireDefault(require("./message-list-item"));
|
|
11
|
-
var _childrenNodeHandle = require("../../utils/children-node-handle");
|
|
12
|
-
var _excluded = ["dataList", "handleDataList", "onClick", "children", "images"];
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
15
|
-
var MessageList = function MessageList(_ref) {
|
|
16
|
-
var dataList = _ref.dataList,
|
|
17
|
-
handleDataList = _ref.handleDataList,
|
|
18
|
-
_ref$onClick = _ref.onClick,
|
|
19
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
20
|
-
children = _ref.children,
|
|
21
|
-
images = _ref.images,
|
|
22
|
-
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
23
|
-
var _otherProps = otherProps || {};
|
|
24
|
-
var _React$useState = _react["default"].useState(dataList || []),
|
|
25
|
-
currentDataList = _React$useState[0],
|
|
26
|
-
setCurrentDataList = _React$useState[1];
|
|
27
|
-
var _React$useState2 = _react["default"].useState('all'),
|
|
28
|
-
currentKey = _React$useState2[0],
|
|
29
|
-
setCurrentKey = _React$useState2[1];
|
|
30
|
-
|
|
31
|
-
// 切换数据源
|
|
32
|
-
var handleClick = function handleClick(key) {
|
|
33
|
-
var newDataList = handleDataList(key);
|
|
34
|
-
setCurrentDataList(newDataList);
|
|
35
|
-
setCurrentKey(key);
|
|
36
|
-
};
|
|
37
|
-
images = images || [];
|
|
38
|
-
(0, _react.useEffect)(function () {
|
|
39
|
-
setCurrentDataList(dataList || []);
|
|
40
|
-
}, [dataList]);
|
|
41
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
42
|
-
className: "message-list__panel"
|
|
43
|
-
}, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
|
-
className: "message-list__panel__tab"
|
|
45
|
-
}, (0, _childrenNodeHandle.convertChildren)(children, 'tabMessage', {
|
|
46
|
-
onClickHandle: handleClick
|
|
47
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
-
className: "message-list__panel__item-list"
|
|
49
|
-
}, currentDataList ? currentDataList.map(function (item, index) {
|
|
50
|
-
return /*#__PURE__*/_react["default"].createElement(_messageListItem["default"], (0, _extends2["default"])({
|
|
51
|
-
key: index,
|
|
52
|
-
onClick: onClick,
|
|
53
|
-
children: children
|
|
54
|
-
}, item, {
|
|
55
|
-
image: images[index % images.length]
|
|
56
|
-
}));
|
|
57
|
-
}) : /*#__PURE__*/_react["default"].createElement("div", null, "\u6682\u65E0\u6570\u636E")));
|
|
58
|
-
};
|
|
59
|
-
MessageList.displayName = 'MessageList';
|
|
60
|
-
var _default = exports["default"] = MessageList;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports["default"] = void 0;
|
|
6
|
-
var _noticeBar = _interopRequireDefault(require("./notice-bar"));
|
|
7
|
-
var _default = exports["default"] = _noticeBar["default"];
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
.notice-bar__panel {
|
|
2
|
-
width: 100%;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
height: 70px;
|
|
7
|
-
box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.07);
|
|
8
|
-
margin: 0;
|
|
9
|
-
padding: 10px;
|
|
10
|
-
border-radius: 12px;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
.notice-bar__panel__item-img {
|
|
13
|
-
width: 46px;
|
|
14
|
-
margin-right: 7px;
|
|
15
|
-
}
|
|
16
|
-
.notice-bar__panel__item-more {
|
|
17
|
-
width: 60px;
|
|
18
|
-
height: 100%;
|
|
19
|
-
//background: pink;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
|
|
22
|
-
&-more {
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: end;
|
|
27
|
-
align-items: center;
|
|
28
|
-
|
|
29
|
-
&-text {
|
|
30
|
-
font-weight: 500;
|
|
31
|
-
font-size: 11px;
|
|
32
|
-
color: #666666;
|
|
33
|
-
margin-right: 2px;
|
|
34
|
-
}
|
|
35
|
-
&-img {
|
|
36
|
-
width: 5px;
|
|
37
|
-
height: 10px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.notice-bar__panel__item-list {
|
|
42
|
-
width: calc(100% - 53px - 60px);
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
align-items: start;
|
|
46
|
-
justify-content: start;
|
|
47
|
-
border-left: 1px solid #f1f1f1;
|
|
48
|
-
padding-left: 10px;
|
|
49
|
-
position: relative;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
|
|
52
|
-
.notice-bar__panel__item-loop {
|
|
53
|
-
width: 100%;
|
|
54
|
-
position: relative;
|
|
55
|
-
overflow: hidden; // 确保超出部分不显示
|
|
56
|
-
height: 20px; // 设置合适的高度
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.notice-bar__panel__item-loop > div {
|
|
60
|
-
position: absolute; // 绝对定位
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 20px;
|
|
63
|
-
animation: scrollUp 4s linear infinite; // 动画持续时间和类型
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@keyframes scrollUp {
|
|
67
|
-
0% {
|
|
68
|
-
transform: translateY(100%); // 从底部开始
|
|
69
|
-
}
|
|
70
|
-
100% {
|
|
71
|
-
transform: translateY(-200%); // 滚动到顶部
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
//动画
|
|
81
|
-
.anim {
|
|
82
|
-
transition: all 0.5s;
|
|
83
|
-
margin-top: -24px;
|
|
84
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './notice-bar-item.scss';
|
|
3
|
-
interface NoticeBarItemProps {
|
|
4
|
-
/**
|
|
5
|
-
* 内容
|
|
6
|
-
*/
|
|
7
|
-
content?: string;
|
|
8
|
-
/**
|
|
9
|
-
* 发布时间
|
|
10
|
-
*/
|
|
11
|
-
releaseTime?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 是否置顶
|
|
14
|
-
*/
|
|
15
|
-
isTop?: number;
|
|
16
|
-
}
|
|
17
|
-
declare const NoticeBarItem: React.FC<NoticeBarItemProps>;
|
|
18
|
-
export default NoticeBarItem;
|
|
@@ -1,35 +0,0 @@
|
|
|
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 = _interopRequireDefault(require("react"));
|
|
9
|
-
require("./notice-bar-item.scss");
|
|
10
|
-
var _childrenNodeHandle = require("../../utils/children-node-handle");
|
|
11
|
-
var _timeUtil = require("../../utils/time-util");
|
|
12
|
-
var _excluded = ["content", "releaseTime", "isTop", "children"];
|
|
13
|
-
var NoticeBarItem = function NoticeBarItem(_ref) {
|
|
14
|
-
var content = _ref.content,
|
|
15
|
-
releaseTime = _ref.releaseTime,
|
|
16
|
-
isTop = _ref.isTop,
|
|
17
|
-
children = _ref.children,
|
|
18
|
-
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
19
|
-
var _otherProps = otherProps || {};
|
|
20
|
-
releaseTime = (0, _timeUtil.formatTime)(releaseTime);
|
|
21
|
-
console.log((0, _childrenNodeHandle.convertChildren)(children, isTop === 1 ? 'teletext-tagc-1' : 'teletext-tagc-2', {
|
|
22
|
-
name: isTop === 1 ? '置顶' : '最新'
|
|
23
|
-
}));
|
|
24
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
25
|
-
className: "notice-bar__panel__item"
|
|
26
|
-
}, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
27
|
-
className: "notice-bar__panel__item-left"
|
|
28
|
-
}, (0, _childrenNodeHandle.convertChildren)(children, isTop === 1 ? 'teletext-tagc-1' : 'teletext-tagc-2', {
|
|
29
|
-
name: isTop === 1 ? '置顶' : '最新'
|
|
30
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
-
className: "notice-bar__panal__item__content"
|
|
32
|
-
}, content)));
|
|
33
|
-
};
|
|
34
|
-
NoticeBarItem.displayName = 'NoticeBarItem';
|
|
35
|
-
var _default = exports["default"] = NoticeBarItem;
|
|
@@ -1,26 +0,0 @@
|
|
|
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: 180px;
|
|
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,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface DataProps {
|
|
4
|
-
/**
|
|
5
|
-
* 内容
|
|
6
|
-
*/
|
|
7
|
-
content?: string;
|
|
8
|
-
/**
|
|
9
|
-
* 发布时间
|
|
10
|
-
*/
|
|
11
|
-
releaseTime?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 是否置顶
|
|
14
|
-
*/
|
|
15
|
-
isTop?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface NoticeBarProps {
|
|
18
|
-
/**
|
|
19
|
-
* 数据
|
|
20
|
-
*/
|
|
21
|
-
dataList?: DataProps[];
|
|
22
|
-
/**
|
|
23
|
-
* 点击事件
|
|
24
|
-
* @param e
|
|
25
|
-
*/
|
|
26
|
-
onClick?: (e: any) => void;
|
|
27
|
-
/**
|
|
28
|
-
* 子节点
|
|
29
|
-
*/
|
|
30
|
-
children: React.ReactChild;
|
|
31
|
-
/**
|
|
32
|
-
* 左侧图标
|
|
33
|
-
*/
|
|
34
|
-
icon: string;
|
|
35
|
-
/**
|
|
36
|
-
* 点击事件
|
|
37
|
-
* @param e
|
|
38
|
-
*/
|
|
39
|
-
handleMoreClick?: (e: any) => void;
|
|
40
|
-
/**
|
|
41
|
-
* 更多
|
|
42
|
-
*/
|
|
43
|
-
moreText: string;
|
|
44
|
-
}
|
|
45
|
-
declare const NoticeBar: React.FC<NoticeBarProps>;
|
|
46
|
-
export default NoticeBar;
|
|
@@ -1,62 +0,0 @@
|
|
|
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 = _interopRequireDefault(require("react"));
|
|
9
|
-
require("./index.scss");
|
|
10
|
-
var _noticeBarItem = _interopRequireDefault(require("./notice-bar-item"));
|
|
11
|
-
var _arr = _interopRequireDefault(require("../../assets/icon/teletext-list/arr.png"));
|
|
12
|
-
var _excluded = ["dataList", "onClick", "icon", "children", "handleMoreClick", "moreText"];
|
|
13
|
-
var NoticeBar = function NoticeBar(_ref) {
|
|
14
|
-
var dataList = _ref.dataList,
|
|
15
|
-
_ref$onClick = _ref.onClick,
|
|
16
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
17
|
-
icon = _ref.icon,
|
|
18
|
-
children = _ref.children,
|
|
19
|
-
handleMoreClick = _ref.handleMoreClick,
|
|
20
|
-
moreText = _ref.moreText,
|
|
21
|
-
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
22
|
-
var _otherProps = otherProps || {};
|
|
23
|
-
var stickyItems = (dataList || []).filter(function (item) {
|
|
24
|
-
return (item === null || item === void 0 ? void 0 : item.isTop) === 1;
|
|
25
|
-
});
|
|
26
|
-
var loopItems = (dataList || []).filter(function (item) {
|
|
27
|
-
return (item === null || item === void 0 ? void 0 : item.isTop) === 0;
|
|
28
|
-
});
|
|
29
|
-
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
30
|
-
className: "notice-bar__panel"
|
|
31
|
-
}, _otherProps), /*#__PURE__*/_react["default"].createElement("img", {
|
|
32
|
-
className: "notice-bar__panel__item-img",
|
|
33
|
-
src: icon,
|
|
34
|
-
alt: ""
|
|
35
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
36
|
-
className: "notice-bar__panel__item-list"
|
|
37
|
-
}, stickyItems ? stickyItems.map(function (item, index) {
|
|
38
|
-
return /*#__PURE__*/_react["default"].createElement(_noticeBarItem["default"], (0, _extends2["default"])({
|
|
39
|
-
key: index,
|
|
40
|
-
onClick: onClick
|
|
41
|
-
}, item), children);
|
|
42
|
-
}) : /*#__PURE__*/_react["default"].createElement("div", null), /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
|
-
className: "notice-bar__panel__item-loop"
|
|
44
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, loopItems.length > 0 ? loopItems.map(function (item, index) {
|
|
45
|
-
return /*#__PURE__*/_react["default"].createElement(_noticeBarItem["default"], (0, _extends2["default"])({
|
|
46
|
-
key: index,
|
|
47
|
-
onClick: onClick
|
|
48
|
-
}, item), children);
|
|
49
|
-
}) : /*#__PURE__*/_react["default"].createElement("div", null, "No items to display")))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
-
className: "notice-bar__panel__item-more"
|
|
51
|
-
}, moreText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
-
className: "notice-bar__panel__item-more-more"
|
|
53
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
54
|
-
className: "notice-bar__panel__item-more-more-text",
|
|
55
|
-
onClick: handleMoreClick
|
|
56
|
-
}, moreText), /*#__PURE__*/_react["default"].createElement("img", {
|
|
57
|
-
src: _arr["default"],
|
|
58
|
-
className: "notice-bar__panel__item-more-more-img"
|
|
59
|
-
})) : ''));
|
|
60
|
-
};
|
|
61
|
-
NoticeBar.displayName = 'NoticeBar';
|
|
62
|
-
var _default = exports["default"] = NoticeBar;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports["default"] = void 0;
|
|
6
|
-
var _position = _interopRequireDefault(require("./position"));
|
|
7
|
-
var _default = exports["default"] = _position["default"];
|
|
@@ -1,27 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
import { Location } from "./entity";
|
|
4
|
-
export interface LocationProps {
|
|
5
|
-
currentLocation: Location;
|
|
6
|
-
clickHandle: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const NavigationLeft: React.FC<LocationProps>;
|
|
9
|
-
export default NavigationLeft;
|
|
@@ -1,35 +0,0 @@
|
|
|
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 _arror = _interopRequireDefault(require("../../assets/icon/position/arror.png"));
|
|
11
|
-
var _excluded = ["currentLocation", "clickHandle"];
|
|
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 NavigationLeft = function navigationLeft(_ref) {
|
|
15
|
-
var currentLocation = _ref.currentLocation,
|
|
16
|
-
clickHandle = _ref.clickHandle,
|
|
17
|
-
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
19
|
-
className: "location"
|
|
20
|
-
}, otherProps, {
|
|
21
|
-
onClick: function onClick() {
|
|
22
|
-
return clickHandle();
|
|
23
|
-
}
|
|
24
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
className: "location-address"
|
|
26
|
-
}, currentLocation.address), /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
className: "location-icon"
|
|
28
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
29
|
-
src: _arror["default"],
|
|
30
|
-
width: "10",
|
|
31
|
-
height: "5",
|
|
32
|
-
alt: "icon"
|
|
33
|
-
}))));
|
|
34
|
-
};
|
|
35
|
-
var _default = exports["default"] = NavigationLeft;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
import { Location } from "./position";
|
|
4
|
-
interface LocationProps {
|
|
5
|
-
itemArray: Location[];
|
|
6
|
-
open: boolean;
|
|
7
|
-
setIsOpen: () => void;
|
|
8
|
-
setCurrent: (data: Location) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const ContentList: React.FC<LocationProps>;
|
|
11
|
-
export default ContentList;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
var React = _interopRequireWildcard(require("react"));
|
|
6
|
-
require("./index.scss");
|
|
7
|
-
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); }
|
|
8
|
-
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; }
|
|
9
|
-
var ContentList = function navigationList(_ref) {
|
|
10
|
-
var open = _ref.open,
|
|
11
|
-
itemArray = _ref.itemArray,
|
|
12
|
-
setIsOpen = _ref.setIsOpen,
|
|
13
|
-
setCurrent = _ref.setCurrent;
|
|
14
|
-
var changeHandle = function changeHandle(position) {
|
|
15
|
-
console.log('changeHandle', position);
|
|
16
|
-
// 设置当前选中位置
|
|
17
|
-
setCurrent(position);
|
|
18
|
-
// 关闭位置列表
|
|
19
|
-
setIsOpen();
|
|
20
|
-
};
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: "location-list",
|
|
23
|
-
style: {
|
|
24
|
-
display: open ? 'block' : 'none'
|
|
25
|
-
}
|
|
26
|
-
}, itemArray ? itemArray.map(function (item) {
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
onClick: function onClick() {
|
|
29
|
-
return changeHandle(item);
|
|
30
|
-
},
|
|
31
|
-
className: "location-list-item"
|
|
32
|
-
}, item.address);
|
|
33
|
-
}) : /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E"));
|
|
34
|
-
};
|
|
35
|
-
var _default = exports["default"] = ContentList;
|
|
@@ -1,55 +0,0 @@
|
|
|
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 _positionList = _interopRequireDefault(require("./position-list"));
|
|
10
|
-
var _positionLeft = _interopRequireDefault(require("./position-left"));
|
|
11
|
-
var _excluded = ["itemArray", "defaultLocation", "__designMode"];
|
|
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
|
-
defaultLocation = _ref.defaultLocation,
|
|
17
|
-
__designMode = _ref.__designMode,
|
|
18
|
-
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
19
|
-
var _React$useState = React.useState(defaultLocation),
|
|
20
|
-
current = _React$useState[0],
|
|
21
|
-
_setCurrent = _React$useState[1];
|
|
22
|
-
var _React$useState2 = React.useState(false),
|
|
23
|
-
isOpen = _React$useState2[0],
|
|
24
|
-
setIsOpen = _React$useState2[1];
|
|
25
|
-
var openList = function openList() {
|
|
26
|
-
if (__designMode == 'design') {
|
|
27
|
-
// 设计态不打开列表
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
setIsOpen(!isOpen);
|
|
31
|
-
console.log('isopen', isOpen);
|
|
32
|
-
};
|
|
33
|
-
// React.useEffect(() => {
|
|
34
|
-
// console.log('defaultLocation', defaultLocation)
|
|
35
|
-
// if (defaultLocation) {
|
|
36
|
-
// setCurrent(defaultLocation)
|
|
37
|
-
// }
|
|
38
|
-
// })
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_positionLeft["default"], (0, _extends2["default"])({
|
|
40
|
-
currentLocation: current
|
|
41
|
-
}, otherProps, {
|
|
42
|
-
clickHandle: function clickHandle() {
|
|
43
|
-
return openList();
|
|
44
|
-
}
|
|
45
|
-
})), /*#__PURE__*/React.createElement(_positionList["default"], {
|
|
46
|
-
open: isOpen,
|
|
47
|
-
currentLocation: current,
|
|
48
|
-
itemArray: itemArray,
|
|
49
|
-
setIsOpen: openList,
|
|
50
|
-
setCurrent: function setCurrent(value) {
|
|
51
|
-
return _setCurrent(value);
|
|
52
|
-
}
|
|
53
|
-
}));
|
|
54
|
-
};
|
|
55
|
-
var _default = exports["default"] = Navigation;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 单选按钮组
|
|
3
|
-
*/
|
|
4
|
-
import RadioGroup from './radio-group';
|
|
5
|
-
import RadioGroupItem from './radio-group-item';
|
|
6
|
-
export type { RadioGroupProps } from './radio-group';
|
|
7
|
-
export type { RadioGroupItemProps } from './radio-group-item';
|
|
8
|
-
export { RadioGroup as CustomRadioGroup, RadioGroupItem as CustomRadioGroupItem, };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
var _radioGroup = _interopRequireDefault(require("./radio-group"));
|
|
6
|
-
exports.CustomRadioGroup = _radioGroup["default"];
|
|
7
|
-
var _radioGroupItem = _interopRequireDefault(require("./radio-group-item"));
|
|
8
|
-
exports.CustomRadioGroupItem = _radioGroupItem["default"];
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
|