@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,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export type RadioGroupItemType = 'button' | 'text';
|
|
4
|
-
export interface RadioGroupItemProps {
|
|
5
|
-
/**
|
|
6
|
-
* 选项
|
|
7
|
-
*/
|
|
8
|
-
label: string;
|
|
9
|
-
/**
|
|
10
|
-
* 值
|
|
11
|
-
*/
|
|
12
|
-
value: string;
|
|
13
|
-
/**
|
|
14
|
-
* 是否选中
|
|
15
|
-
*/
|
|
16
|
-
checked: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 选中颜色
|
|
19
|
-
*/
|
|
20
|
-
selectColor?: string;
|
|
21
|
-
/**
|
|
22
|
-
* 选中的文字颜色
|
|
23
|
-
*/
|
|
24
|
-
selectTextColor?: string;
|
|
25
|
-
/**
|
|
26
|
-
* 未选中颜色
|
|
27
|
-
*/
|
|
28
|
-
unSelectColor?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 未选中的文字颜色
|
|
31
|
-
*/
|
|
32
|
-
unSelectTextColor?: string;
|
|
33
|
-
/**
|
|
34
|
-
* 类型
|
|
35
|
-
*/
|
|
36
|
-
type?: RadioGroupItemType;
|
|
37
|
-
/**
|
|
38
|
-
* 名称
|
|
39
|
-
*/
|
|
40
|
-
name: string;
|
|
41
|
-
/**
|
|
42
|
-
* 改变事件
|
|
43
|
-
* @param value
|
|
44
|
-
*/
|
|
45
|
-
onChange: (value: string) => void;
|
|
46
|
-
}
|
|
47
|
-
declare const RadioGroupItem: React.FC<RadioGroupItemProps>;
|
|
48
|
-
export default RadioGroupItem;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["label", "value", "checked", "type", "name", "selectColor", "selectTextColor", "unSelectColor", "unSelectTextColor", "onChange"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
var styleFunction = function styleFunction(type, bgColors, textColors, checked) {
|
|
7
|
-
var bgColor = checked ? bgColors[1] : bgColors[0];
|
|
8
|
-
var textColor = checked ? textColors[1] : textColors[0];
|
|
9
|
-
if (type === 'button') {
|
|
10
|
-
return {
|
|
11
|
-
'backgroundColor': bgColor,
|
|
12
|
-
'color': textColor
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
if (type === 'text') {
|
|
16
|
-
return {
|
|
17
|
-
'color': textColor,
|
|
18
|
-
'position': checked ? 'relative' : 'static'
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return {};
|
|
22
|
-
};
|
|
23
|
-
var RadioGroupItem = function RadioGroupItem(_ref) {
|
|
24
|
-
var _ref$label = _ref.label,
|
|
25
|
-
label = _ref$label === void 0 ? '标签' : _ref$label,
|
|
26
|
-
_ref$value = _ref.value,
|
|
27
|
-
value = _ref$value === void 0 ? 'value' : _ref$value,
|
|
28
|
-
checked = _ref.checked,
|
|
29
|
-
_ref$type = _ref.type,
|
|
30
|
-
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
31
|
-
name = _ref.name,
|
|
32
|
-
_ref$selectColor = _ref.selectColor,
|
|
33
|
-
selectColor = _ref$selectColor === void 0 ? '#F5743F' : _ref$selectColor,
|
|
34
|
-
_ref$selectTextColor = _ref.selectTextColor,
|
|
35
|
-
selectTextColor = _ref$selectTextColor === void 0 ? 'white' : _ref$selectTextColor,
|
|
36
|
-
_ref$unSelectColor = _ref.unSelectColor,
|
|
37
|
-
unSelectColor = _ref$unSelectColor === void 0 ? '#F0F0F0' : _ref$unSelectColor,
|
|
38
|
-
_ref$unSelectTextColo = _ref.unSelectTextColor,
|
|
39
|
-
unSelectTextColor = _ref$unSelectTextColo === void 0 ? '#727272' : _ref$unSelectTextColo,
|
|
40
|
-
onChange = _ref.onChange,
|
|
41
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
42
|
-
var _otherProps = otherProps || {};
|
|
43
|
-
var handleChange = function handleChange(event) {
|
|
44
|
-
onChange(event.target.value);
|
|
45
|
-
};
|
|
46
|
-
// 获取特殊的样式
|
|
47
|
-
var customStyle = styleFunction(type, [unSelectColor, selectColor], [unSelectTextColor, selectTextColor], checked);
|
|
48
|
-
if (_otherProps.style) {
|
|
49
|
-
_otherProps.style = _extends({}, _otherProps.style, customStyle);
|
|
50
|
-
} else {
|
|
51
|
-
_otherProps.style = _extends({}, customStyle);
|
|
52
|
-
}
|
|
53
|
-
var className = type === 'button' ? 'radio-group-item__button' : 'radio-group-item__text';
|
|
54
|
-
return /*#__PURE__*/React.createElement("label", _extends({
|
|
55
|
-
key: value,
|
|
56
|
-
className: className
|
|
57
|
-
}, _otherProps), type === 'text' && checked && /*#__PURE__*/React.createElement("span", {
|
|
58
|
-
className: "radio-group-item__text__line",
|
|
59
|
-
style: {
|
|
60
|
-
'background-color': selectColor
|
|
61
|
-
}
|
|
62
|
-
}), /*#__PURE__*/React.createElement("input", {
|
|
63
|
-
type: "radio",
|
|
64
|
-
style: {
|
|
65
|
-
'display': 'none'
|
|
66
|
-
},
|
|
67
|
-
name: name,
|
|
68
|
-
value: value,
|
|
69
|
-
checked: checked,
|
|
70
|
-
onChange: handleChange
|
|
71
|
-
}), label);
|
|
72
|
-
};
|
|
73
|
-
RadioGroupItem.displayName = 'RadioGroupItem';
|
|
74
|
-
export default RadioGroupItem;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface RadioType {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export type RadioGroupItemType = 'button' | 'text';
|
|
8
|
-
export interface RadioGroupProps {
|
|
9
|
-
/**
|
|
10
|
-
* 选项
|
|
11
|
-
*/
|
|
12
|
-
options: Array<RadioType>;
|
|
13
|
-
/**
|
|
14
|
-
* 默认值
|
|
15
|
-
*/
|
|
16
|
-
defaultValue?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 是否换行
|
|
19
|
-
*/
|
|
20
|
-
isWrap?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* 选中颜色
|
|
23
|
-
*/
|
|
24
|
-
selectColor?: string;
|
|
25
|
-
/**
|
|
26
|
-
* 选中的文字颜色
|
|
27
|
-
*/
|
|
28
|
-
selectTextColor?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 未选中颜色
|
|
31
|
-
*/
|
|
32
|
-
unSelectColor?: string;
|
|
33
|
-
/**
|
|
34
|
-
* 未选中的文字颜色
|
|
35
|
-
*/
|
|
36
|
-
unSelectTextColor?: string;
|
|
37
|
-
/**
|
|
38
|
-
* 改变事件
|
|
39
|
-
* @param value
|
|
40
|
-
*/
|
|
41
|
-
onChange?: (value: string) => void;
|
|
42
|
-
/**
|
|
43
|
-
* 类型
|
|
44
|
-
*/
|
|
45
|
-
type?: RadioGroupItemType;
|
|
46
|
-
/**
|
|
47
|
-
* 名称
|
|
48
|
-
*/
|
|
49
|
-
name?: string;
|
|
50
|
-
}
|
|
51
|
-
declare const RadioGroup: React.FC<RadioGroupProps>;
|
|
52
|
-
export default RadioGroup;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["options", "name", "type", "defaultValue", "selectColor", "selectTextColor", "unSelectColor", "unSelectTextColor", "isWrap", "onChange", "children"];
|
|
4
|
-
import React, { useEffect, useState } from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
import RadioGroupItem from "./radio-group-item";
|
|
7
|
-
function uuid() {
|
|
8
|
-
return Math.random().toString(36).substring(2);
|
|
9
|
-
}
|
|
10
|
-
var RadioGroup = function RadioGroup(_ref) {
|
|
11
|
-
var _options$;
|
|
12
|
-
var options = _ref.options,
|
|
13
|
-
_ref$name = _ref.name,
|
|
14
|
-
name = _ref$name === void 0 ? uuid() : _ref$name,
|
|
15
|
-
_ref$type = _ref.type,
|
|
16
|
-
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
17
|
-
defaultValue = _ref.defaultValue,
|
|
18
|
-
_ref$selectColor = _ref.selectColor,
|
|
19
|
-
selectColor = _ref$selectColor === void 0 ? '#F5743F' : _ref$selectColor,
|
|
20
|
-
_ref$selectTextColor = _ref.selectTextColor,
|
|
21
|
-
selectTextColor = _ref$selectTextColor === void 0 ? 'white' : _ref$selectTextColor,
|
|
22
|
-
_ref$unSelectColor = _ref.unSelectColor,
|
|
23
|
-
unSelectColor = _ref$unSelectColor === void 0 ? '#F0F0F0' : _ref$unSelectColor,
|
|
24
|
-
_ref$unSelectTextColo = _ref.unSelectTextColor,
|
|
25
|
-
unSelectTextColor = _ref$unSelectTextColo === void 0 ? '#727272' : _ref$unSelectTextColo,
|
|
26
|
-
_ref$isWrap = _ref.isWrap,
|
|
27
|
-
isWrap = _ref$isWrap === void 0 ? false : _ref$isWrap,
|
|
28
|
-
_ref$onChange = _ref.onChange,
|
|
29
|
-
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
30
|
-
children = _ref.children,
|
|
31
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
32
|
-
var _otherProps = otherProps || {};
|
|
33
|
-
var defaultV = (options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value) || defaultValue || '';
|
|
34
|
-
var _useState = useState(defaultV),
|
|
35
|
-
selectedValue = _useState[0],
|
|
36
|
-
setSelectedValue = _useState[1];
|
|
37
|
-
useEffect(function () {
|
|
38
|
-
if (defaultV) {
|
|
39
|
-
handleChange(defaultV);
|
|
40
|
-
}
|
|
41
|
-
}, [defaultV]);
|
|
42
|
-
var handleChange = function handleChange(value) {
|
|
43
|
-
setSelectedValue(value);
|
|
44
|
-
onChange(value);
|
|
45
|
-
};
|
|
46
|
-
var wrapClass = isWrap ? 'flex-wrap: wrap;' : 'flex-wrap: nowrap;overflow-x: auto;';
|
|
47
|
-
_otherProps.style = wrapClass + ' ' + _otherProps.style ? _otherProps.style : '';
|
|
48
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
49
|
-
className: "radio-group__panel"
|
|
50
|
-
}, _otherProps), (options || []).map(function (option) {
|
|
51
|
-
return /*#__PURE__*/React.createElement(RadioGroupItem, {
|
|
52
|
-
label: option.label,
|
|
53
|
-
value: option.value,
|
|
54
|
-
key: option.value,
|
|
55
|
-
checked: selectedValue === option.value,
|
|
56
|
-
name: name,
|
|
57
|
-
type: type,
|
|
58
|
-
selectColor: selectColor,
|
|
59
|
-
selectTextColor: selectTextColor,
|
|
60
|
-
unSelectColor: unSelectColor,
|
|
61
|
-
unSelectTextColor: unSelectTextColor,
|
|
62
|
-
onChange: handleChange
|
|
63
|
-
});
|
|
64
|
-
// return convertChildren(children, 'custom-radio-group-item', {
|
|
65
|
-
// label: option.label,
|
|
66
|
-
// value: option.value,
|
|
67
|
-
// key: option.value,
|
|
68
|
-
// checked: selectedValue === option.value,
|
|
69
|
-
// name: name,
|
|
70
|
-
// type: type,
|
|
71
|
-
// selectColor: selectColor,
|
|
72
|
-
// selectTextColor: selectTextColor,
|
|
73
|
-
// unSelectColor: unSelectColor,
|
|
74
|
-
// unSelectTextColor: unSelectTextColor,
|
|
75
|
-
// onChange: handleChange
|
|
76
|
-
// })
|
|
77
|
-
}));
|
|
78
|
-
};
|
|
79
|
-
RadioGroup.displayName = 'RadioGroup';
|
|
80
|
-
export default RadioGroup;
|
|
@@ -1,19 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface DataProps {
|
|
4
|
-
content?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface RichTextProps {
|
|
7
|
-
content?: string;
|
|
8
|
-
dataList?: DataProps[];
|
|
9
|
-
}
|
|
10
|
-
declare const RichText: {
|
|
11
|
-
(props: RichTextProps): JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export default RichText;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["content", "dataList"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
// 富文本
|
|
7
|
-
|
|
8
|
-
// 用于处理富文本内容的函数
|
|
9
|
-
var processContent = function processContent(content) {
|
|
10
|
-
// 检查内容是否为字符串
|
|
11
|
-
if (typeof content !== 'string') {
|
|
12
|
-
return '';
|
|
13
|
-
}
|
|
14
|
-
// 替换转义符号(这里可以根据需要添加更多处理逻辑)
|
|
15
|
-
return content.replace(/\\/g, '');
|
|
16
|
-
};
|
|
17
|
-
var RichText = function RichText(props) {
|
|
18
|
-
var content = props.content,
|
|
19
|
-
dataList = props.dataList,
|
|
20
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
22
|
-
className: "rich-text"
|
|
23
|
-
}, otherProps), dataList && dataList.length > 0 ? dataList.map(function (item, index) {
|
|
24
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
key: index,
|
|
26
|
-
dangerouslySetInnerHTML: {
|
|
27
|
-
__html: processContent(item.content)
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
31
|
-
dangerouslySetInnerHTML: {
|
|
32
|
-
__html: processContent(content)
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
};
|
|
36
|
-
RichText.displayName = 'RichText';
|
|
37
|
-
export default RichText;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.search-bar-form {
|
|
2
|
-
height: 35px;
|
|
3
|
-
flex: 1;
|
|
4
|
-
box-shadow: 0 1px 6px 0 rgba(66, 36, 8, 0.08);
|
|
5
|
-
border-radius: 17px;
|
|
6
|
-
}
|
|
7
|
-
.search-bar {
|
|
8
|
-
//border: solid 1px #c4c6cf;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
height: 100%;
|
|
12
|
-
padding-right: 16px;
|
|
13
|
-
&-input {
|
|
14
|
-
outline: none;
|
|
15
|
-
border: none;
|
|
16
|
-
//width: calc(100% - 15px - 34px);
|
|
17
|
-
height: 100%;
|
|
18
|
-
flex: 1;
|
|
19
|
-
}
|
|
20
|
-
&-icon {
|
|
21
|
-
margin-left: 15px;
|
|
22
|
-
margin-right: 5px;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
&-img {
|
|
26
|
-
width: 15px;
|
|
27
|
-
height: 15px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&-delete-img {
|
|
31
|
-
width: 15px;
|
|
32
|
-
height: 15px;
|
|
33
|
-
}
|
|
34
|
-
&-enter {
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
color: #f77c32;
|
|
37
|
-
margin-left: 6px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface SearchBarProps {
|
|
3
|
-
onSearch?: () => void;
|
|
4
|
-
onConfirm?: (value: string) => void;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
searchText?: boolean;
|
|
7
|
-
autofocus?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const SearchBar: React.FC<SearchBarProps>;
|
|
10
|
-
export default SearchBar;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["onSearch", "searchText", "autofocus", "placeholder", "onConfirm"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { useRef, useState } from "react";
|
|
6
|
-
import searchIcon from "../../assets/icon/search/search.png";
|
|
7
|
-
import deleteIcon from "../../assets/icon/search/delete.png";
|
|
8
|
-
var SearchBar = function SearchBar(props) {
|
|
9
|
-
var onSearch = props.onSearch,
|
|
10
|
-
_props$searchText = props.searchText,
|
|
11
|
-
searchText = _props$searchText === void 0 ? true : _props$searchText,
|
|
12
|
-
_props$autofocus = props.autofocus,
|
|
13
|
-
autofocus = _props$autofocus === void 0 ? false : _props$autofocus,
|
|
14
|
-
_props$placeholder = props.placeholder,
|
|
15
|
-
placeholder = _props$placeholder === void 0 ? '请输入' : _props$placeholder,
|
|
16
|
-
onConfirm = props.onConfirm,
|
|
17
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
18
|
-
var _useState = useState(),
|
|
19
|
-
searchValue = _useState[0],
|
|
20
|
-
setSearchValue = _useState[1];
|
|
21
|
-
var searchInput = useRef(null);
|
|
22
|
-
var handleChange = function handleChange(e) {
|
|
23
|
-
setSearchValue(e.target.value); // 更新 state
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* 触发confirm事件
|
|
27
|
-
*/
|
|
28
|
-
var confirm = function confirm() {
|
|
29
|
-
var _searchInput$current;
|
|
30
|
-
if (onConfirm) {
|
|
31
|
-
onConfirm(searchValue);
|
|
32
|
-
}
|
|
33
|
-
searchInput === null || searchInput === void 0 ? void 0 : (_searchInput$current = searchInput.current) === null || _searchInput$current === void 0 ? void 0 : _searchInput$current.blur();
|
|
34
|
-
};
|
|
35
|
-
var handleKeyDown = function handleKeyDown(e) {
|
|
36
|
-
if (e.key === "Enter") {
|
|
37
|
-
confirm();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var clearValue = function clearValue() {
|
|
41
|
-
setSearchValue('');
|
|
42
|
-
};
|
|
43
|
-
return /*#__PURE__*/React.createElement("form", _extends({
|
|
44
|
-
action: "",
|
|
45
|
-
className: "search-bar-form"
|
|
46
|
-
}, otherProps, {
|
|
47
|
-
onSubmit: confirm
|
|
48
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: "search-bar",
|
|
50
|
-
onClick: onSearch
|
|
51
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
52
|
-
className: "search-bar-icon"
|
|
53
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
54
|
-
src: searchIcon,
|
|
55
|
-
className: "search-bar-icon-img"
|
|
56
|
-
})), /*#__PURE__*/React.createElement("input", {
|
|
57
|
-
className: "search-bar-input",
|
|
58
|
-
placeholder: placeholder,
|
|
59
|
-
value: searchValue,
|
|
60
|
-
autoFocus: autofocus,
|
|
61
|
-
onChange: handleChange,
|
|
62
|
-
onKeyDown: handleKeyDown,
|
|
63
|
-
ref: searchInput
|
|
64
|
-
}), searchValue ? /*#__PURE__*/React.createElement("img", {
|
|
65
|
-
className: "search-bar-delete-img",
|
|
66
|
-
src: deleteIcon,
|
|
67
|
-
onClick: clearValue
|
|
68
|
-
}) : '', searchText ? /*#__PURE__*/React.createElement("span", {
|
|
69
|
-
className: "search-bar-enter",
|
|
70
|
-
onClick: confirm
|
|
71
|
-
}, "\u641C\u7D22") : ''));
|
|
72
|
-
};
|
|
73
|
-
export default SearchBar;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.stream-list-container {
|
|
4
|
-
|
|
5
|
-
.refresh-indicator {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
height: 40px;
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
color: #333;
|
|
12
|
-
pointer-events: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// 加载更多提示的样式
|
|
16
|
-
.spin, .loading-text {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
height: 40px; // 提示高度
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
color: #666;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export interface PageHelperType<T = any> {
|
|
5
|
-
page: number;
|
|
6
|
-
rows: number;
|
|
7
|
-
isLastPage: boolean;
|
|
8
|
-
total: number;
|
|
9
|
-
list: T[];
|
|
10
|
-
}
|
|
11
|
-
export interface StreamListProps {
|
|
12
|
-
/**
|
|
13
|
-
* 子组件内容
|
|
14
|
-
*/
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* 请求下一页数据的函数
|
|
18
|
-
* @param page
|
|
19
|
-
* @param rows
|
|
20
|
-
*/
|
|
21
|
-
onNextPage?: (options: {
|
|
22
|
-
page: number;
|
|
23
|
-
rows?: number;
|
|
24
|
-
}) => Promise<PageHelperType>;
|
|
25
|
-
/**
|
|
26
|
-
* 请求刷新数据的函数
|
|
27
|
-
*/
|
|
28
|
-
onRefreshPage?: () => Promise<PageHelperType>;
|
|
29
|
-
/**
|
|
30
|
-
* 是否是最后一页
|
|
31
|
-
*/
|
|
32
|
-
isLastPage?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 当前页
|
|
35
|
-
*/
|
|
36
|
-
nowPage?: number;
|
|
37
|
-
/**
|
|
38
|
-
* 刷新中的文字提示
|
|
39
|
-
*/
|
|
40
|
-
refreshingText?: string;
|
|
41
|
-
/**
|
|
42
|
-
* 加载中的文字提示
|
|
43
|
-
*/
|
|
44
|
-
loadingText?: string;
|
|
45
|
-
/**
|
|
46
|
-
* 加载更多的文字提示
|
|
47
|
-
*/
|
|
48
|
-
loadMoreText?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* StreamList 组件
|
|
52
|
-
*/
|
|
53
|
-
declare const StreamList: React.FC<StreamListProps>;
|
|
54
|
-
export default StreamList;
|