@dckj-npm/dc-material 0.1.357 → 0.1.358
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/es/assets/icon/form/right.png +0 -0
- package/es/assets/icon/grid-nav/right.png +0 -0
- package/es/assets/icon/integral-task/icon1.png +0 -0
- package/es/assets/icon/mine/default.png +0 -0
- package/es/assets/icon/mine/right.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 +15 -0
- package/es/components/bottom-navigation/bottom-navigation.js +56 -0
- package/es/components/bottom-navigation/index.d.ts +3 -0
- package/es/components/bottom-navigation/index.js +2 -0
- package/es/components/bottom-navigation/index.scss +28 -0
- package/es/components/button/button.d.ts +14 -0
- package/es/components/button/button.js +14 -0
- package/es/components/button/index.d.ts +6 -0
- package/es/components/button/index.js +5 -0
- package/es/components/button/index.scss +16 -0
- package/es/components/carousel/carousel.d.ts +14 -0
- package/es/components/carousel/carousel.js +75 -0
- package/es/components/carousel/carousel.scss +32 -0
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/colorful-button.js +25 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-button/index.js +2 -0
- package/es/components/colorful-button/index.scss +5 -0
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/colorful-input.js +19 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/colorful-input/index.js +2 -0
- package/es/components/colorful-input/index.scss +5 -0
- package/es/components/dc-slider/index.d.ts +3 -0
- package/es/components/dc-slider/index.js +2 -0
- package/es/components/dc-slider/index.scss +6 -0
- package/es/components/dc-slider/slider-img.d.ts +32 -0
- package/es/components/dc-slider/slider-img.js +17 -0
- package/es/components/form/form-item.d.ts +42 -0
- package/es/components/form/form-item.js +79 -0
- package/es/components/form/form-item.scss +20 -0
- package/es/components/form/form.d.ts +20 -0
- package/es/components/form/form.js +1596 -0
- package/es/components/form/index.d.ts +6 -0
- package/es/components/form/index.js +6 -0
- package/es/components/form/index.scss +22 -0
- package/es/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list-common.js +60 -0
- package/es/components/goods-card-list/goods-card-list-common.scss +118 -0
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list.js +156 -0
- package/es/components/goods-card-list/goods-card-list.scss +112 -0
- package/es/components/goods-card-list/index.d.ts +4 -0
- package/es/components/goods-card-list/index.js +3 -0
- package/es/components/goods-card-list/types.d.ts +45 -0
- package/es/components/goods-card-list/types.js +1 -0
- package/es/components/grid-nav/grid-nav.d.ts +13 -0
- package/es/components/grid-nav/grid-nav.js +102 -0
- package/es/components/grid-nav/index.d.ts +3 -0
- package/es/components/grid-nav/index.js +2 -0
- package/es/components/grid-nav/index.scss +50 -0
- package/es/components/integral-task/index.d.ts +6 -0
- package/es/components/integral-task/index.js +5 -0
- package/es/components/integral-task/index.scss +35 -0
- package/es/components/integral-task/integral-task.d.ts +40 -0
- package/es/components/integral-task/integral-task.js +54 -0
- package/es/components/member-card/index.d.ts +6 -0
- package/es/components/member-card/index.js +6 -0
- package/es/components/member-card/index.scss +86 -0
- package/es/components/member-card/member-card.d.ts +5 -0
- package/es/components/member-card/member-card.js +68 -0
- package/es/components/member-card/type.d.ts +11 -0
- package/es/components/member-card/type.js +1 -0
- package/es/components/menu-list/index.d.ts +6 -0
- package/es/components/menu-list/index.js +6 -0
- package/es/components/menu-list/index.scss +16 -0
- package/es/components/menu-list/menu-list-item.d.ts +5 -0
- package/es/components/menu-list/menu-list-item.js +32 -0
- package/es/components/menu-list/menu-list-item.scss +49 -0
- package/es/components/menu-list/menu-list.d.ts +5 -0
- package/es/components/menu-list/menu-list.js +25 -0
- package/es/components/menu-list/types.d.ts +23 -0
- package/es/components/menu-list/types.js +1 -0
- package/es/components/message-list/index.d.ts +6 -0
- package/es/components/message-list/index.js +6 -0
- package/es/components/message-list/index.scss +22 -0
- package/es/components/message-list/message-list-item.d.ts +33 -0
- package/es/components/message-list/message-list-item.js +41 -0
- package/es/components/message-list/message-list-item.scss +62 -0
- package/es/components/message-list/message-list.d.ts +28 -0
- package/es/components/message-list/message-list.js +50 -0
- package/es/components/notice-bar/index.d.ts +3 -0
- package/es/components/notice-bar/index.js +2 -0
- package/es/components/notice-bar/index.scss +84 -0
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/es/components/notice-bar/notice-bar-item.js +30 -0
- package/es/components/notice-bar/notice-bar-item.scss +26 -0
- package/es/components/notice-bar/notice-bar.d.ts +46 -0
- package/es/components/notice-bar/notice-bar.js +57 -0
- package/es/components/position/entity.d.ts +5 -0
- package/es/components/position/entity.js +1 -0
- package/es/components/position/index.d.ts +3 -0
- package/es/components/position/index.js +2 -0
- package/es/components/position/index.scss +124 -0
- package/es/components/position/position-left.d.ts +9 -0
- package/es/components/position/position-left.js +28 -0
- package/es/components/position/position-list.d.ts +12 -0
- package/es/components/position/position-list.js +134 -0
- package/es/components/position/position.d.ts +8 -0
- package/es/components/position/position.js +47 -0
- package/es/components/radio-group/index.d.ts +8 -0
- package/es/components/radio-group/index.js +7 -0
- package/es/components/radio-group/index.scss +40 -0
- package/es/components/radio-group/radio-group-item.d.ts +48 -0
- package/es/components/radio-group/radio-group-item.js +74 -0
- package/es/components/radio-group/radio-group.d.ts +52 -0
- package/es/components/radio-group/radio-group.js +80 -0
- package/es/components/rich-text/index.d.ts +6 -0
- package/es/components/rich-text/index.js +6 -0
- package/es/components/rich-text/index.scss +19 -0
- package/es/components/rich-text/rich-text.d.ts +14 -0
- package/es/components/rich-text/rich-text.js +37 -0
- package/es/components/search-bar/index.d.ts +3 -0
- package/es/components/search-bar/index.js +2 -0
- package/es/components/search-bar/index.scss +39 -0
- package/es/components/search-bar/search-bar.d.ts +10 -0
- package/es/components/search-bar/search-bar.js +73 -0
- package/es/components/stream-list/index.d.ts +6 -0
- package/es/components/stream-list/index.js +6 -0
- package/es/components/stream-list/index.scss +26 -0
- package/es/components/stream-list/stream-list.d.ts +54 -0
- package/es/components/stream-list/stream-list.js +159 -0
- package/es/components/swiper/index.d.ts +3 -0
- package/es/components/swiper/index.js +2 -0
- package/es/components/swiper/index.scss +20 -0
- package/es/components/swiper/swiper.d.ts +30 -0
- package/es/components/swiper/swiper.js +79 -0
- package/es/components/tab/index.d.ts +6 -0
- package/es/components/tab/index.js +5 -0
- package/es/components/tab/index.scss +44 -0
- package/es/components/tab/tab.d.ts +27 -0
- package/es/components/tab/tab.js +52 -0
- package/es/components/tab-container/index.d.ts +3 -0
- package/es/components/tab-container/index.js +2 -0
- package/es/components/tab-container/index.scss +48 -0
- package/es/components/tab-container/tab-container.d.ts +10 -0
- package/es/components/tab-container/tab-container.js +26 -0
- package/es/components/tab-container-item/index.d.ts +3 -0
- package/es/components/tab-container-item/index.js +2 -0
- package/es/components/tab-container-item/index.scss +0 -0
- package/es/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/es/components/tab-container-item/tab-container-item.js +19 -0
- package/es/components/tag/index.d.ts +6 -0
- package/es/components/tag/index.js +5 -0
- package/es/components/tag/index.scss +24 -0
- package/es/components/tag/tag.d.ts +14 -0
- package/es/components/tag/tag.js +14 -0
- package/es/components/teletext-list/index.d.ts +6 -0
- package/es/components/teletext-list/index.js +6 -0
- package/es/components/teletext-list/index.scss +40 -0
- package/es/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/es/components/teletext-list/teletext-list-item.js +61 -0
- package/es/components/teletext-list/teletext-list-item.scss +57 -0
- package/es/components/teletext-list/teletext-list.d.ts +61 -0
- package/es/components/teletext-list/teletext-list.js +48 -0
- package/es/components/title/index.d.ts +8 -0
- package/es/components/title/index.js +7 -0
- package/es/components/title/title-1.d.ts +10 -0
- package/es/components/title/title-1.js +16 -0
- package/es/components/title/title-1.scss +25 -0
- package/es/components/title/title-2.d.ts +18 -0
- package/es/components/title/title-2.js +31 -0
- package/es/components/title/title-2.scss +22 -0
- package/es/components/user-card/index.d.ts +6 -0
- package/es/components/user-card/index.js +6 -0
- package/es/components/user-card/index.scss +68 -0
- package/es/components/user-card/type.d.ts +8 -0
- package/es/components/user-card/type.js +1 -0
- package/es/components/user-card/user-card.d.ts +5 -0
- package/es/components/user-card/user-card.js +61 -0
- package/es/entity/dynamic-column-data-type.d.ts +316 -0
- package/es/entity/dynamic-column-data-type.js +173 -0
- package/es/index.d.ts +52 -0
- package/es/index.js +98 -0
- package/es/index.scss +6 -0
- package/es/style.js +6 -0
- package/es/utils/children-node-handle.d.ts +9 -0
- package/es/utils/children-node-handle.js +25 -0
- package/es/utils/component-wrapper.d.ts +9 -0
- package/es/utils/component-wrapper.js +38 -0
- package/es/utils/debounce.d.ts +1 -0
- package/es/utils/debounce.js +14 -0
- package/es/utils/textUtil.d.ts +10 -0
- package/es/utils/textUtil.js +51 -0
- package/es/utils/time-util.d.ts +5 -0
- package/es/utils/time-util.js +18 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +3 -0
- package/lib/assets/icon/form/right.png +0 -0
- package/lib/assets/icon/grid-nav/right.png +0 -0
- package/lib/assets/icon/integral-task/icon1.png +0 -0
- package/lib/assets/icon/mine/default.png +0 -0
- package/lib/assets/icon/mine/right.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 +15 -0
- package/lib/components/bottom-navigation/bottom-navigation.js +63 -0
- package/lib/components/bottom-navigation/index.d.ts +3 -0
- package/lib/components/bottom-navigation/index.js +7 -0
- package/lib/components/bottom-navigation/index.scss +28 -0
- package/lib/components/button/button.d.ts +14 -0
- package/lib/components/button/button.js +21 -0
- package/lib/components/button/index.d.ts +6 -0
- package/lib/components/button/index.js +10 -0
- package/lib/components/button/index.scss +16 -0
- package/lib/components/carousel/carousel.d.ts +14 -0
- package/lib/components/carousel/carousel.js +81 -0
- package/lib/components/carousel/carousel.scss +32 -0
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/colorful-button.js +32 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-button/index.js +7 -0
- package/lib/components/colorful-button/index.scss +5 -0
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/colorful-input.js +26 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/colorful-input/index.js +7 -0
- package/lib/components/colorful-input/index.scss +5 -0
- package/lib/components/dc-slider/index.d.ts +3 -0
- package/lib/components/dc-slider/index.js +7 -0
- package/lib/components/dc-slider/index.scss +6 -0
- package/lib/components/dc-slider/slider-img.d.ts +32 -0
- package/lib/components/dc-slider/slider-img.js +24 -0
- package/lib/components/form/form-item.d.ts +42 -0
- package/lib/components/form/form-item.js +86 -0
- package/lib/components/form/form-item.scss +20 -0
- package/lib/components/form/form.d.ts +20 -0
- package/lib/components/form/form.js +1598 -0
- package/lib/components/form/index.d.ts +6 -0
- package/lib/components/form/index.js +6 -0
- package/lib/components/form/index.scss +22 -0
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list-common.js +65 -0
- package/lib/components/goods-card-list/goods-card-list-common.scss +118 -0
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list.js +163 -0
- package/lib/components/goods-card-list/goods-card-list.scss +112 -0
- package/lib/components/goods-card-list/index.d.ts +4 -0
- package/lib/components/goods-card-list/index.js +8 -0
- package/lib/components/goods-card-list/types.d.ts +45 -0
- package/lib/components/goods-card-list/types.js +3 -0
- package/lib/components/grid-nav/grid-nav.d.ts +13 -0
- package/lib/components/grid-nav/grid-nav.js +109 -0
- package/lib/components/grid-nav/index.d.ts +3 -0
- package/lib/components/grid-nav/index.js +7 -0
- package/lib/components/grid-nav/index.scss +50 -0
- package/lib/components/integral-task/index.d.ts +6 -0
- package/lib/components/integral-task/index.js +10 -0
- package/lib/components/integral-task/index.scss +35 -0
- package/lib/components/integral-task/integral-task.d.ts +40 -0
- package/lib/components/integral-task/integral-task.js +61 -0
- package/lib/components/member-card/index.d.ts +6 -0
- package/lib/components/member-card/index.js +6 -0
- package/lib/components/member-card/index.scss +86 -0
- package/lib/components/member-card/member-card.d.ts +5 -0
- package/lib/components/member-card/member-card.js +75 -0
- package/lib/components/member-card/type.d.ts +11 -0
- package/lib/components/member-card/type.js +3 -0
- package/lib/components/menu-list/index.d.ts +6 -0
- package/lib/components/menu-list/index.js +10 -0
- package/lib/components/menu-list/index.scss +16 -0
- package/lib/components/menu-list/menu-list-item.d.ts +5 -0
- package/lib/components/menu-list/menu-list-item.js +37 -0
- package/lib/components/menu-list/menu-list-item.scss +49 -0
- package/lib/components/menu-list/menu-list.d.ts +5 -0
- package/lib/components/menu-list/menu-list.js +30 -0
- package/lib/components/menu-list/types.d.ts +23 -0
- package/lib/components/menu-list/types.js +3 -0
- package/lib/components/message-list/index.d.ts +6 -0
- package/lib/components/message-list/index.js +10 -0
- package/lib/components/message-list/index.scss +22 -0
- package/lib/components/message-list/message-list-item.d.ts +33 -0
- package/lib/components/message-list/message-list-item.js +45 -0
- package/lib/components/message-list/message-list-item.scss +62 -0
- package/lib/components/message-list/message-list.d.ts +28 -0
- package/lib/components/message-list/message-list.js +57 -0
- package/lib/components/notice-bar/index.d.ts +3 -0
- package/lib/components/notice-bar/index.js +7 -0
- package/lib/components/notice-bar/index.scss +84 -0
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -0
- package/lib/components/notice-bar/notice-bar-item.js +35 -0
- package/lib/components/notice-bar/notice-bar-item.scss +26 -0
- package/lib/components/notice-bar/notice-bar.d.ts +46 -0
- package/lib/components/notice-bar/notice-bar.js +62 -0
- package/lib/components/position/entity.d.ts +5 -0
- package/lib/components/position/entity.js +3 -0
- package/lib/components/position/index.d.ts +3 -0
- package/lib/components/position/index.js +7 -0
- package/lib/components/position/index.scss +124 -0
- package/lib/components/position/position-left.d.ts +9 -0
- package/lib/components/position/position-left.js +35 -0
- package/lib/components/position/position-list.d.ts +12 -0
- package/lib/components/position/position-list.js +141 -0
- package/lib/components/position/position.d.ts +8 -0
- package/lib/components/position/position.js +54 -0
- package/lib/components/radio-group/index.d.ts +8 -0
- package/lib/components/radio-group/index.js +8 -0
- package/lib/components/radio-group/index.scss +40 -0
- package/lib/components/radio-group/radio-group-item.d.ts +48 -0
- package/lib/components/radio-group/radio-group-item.js +79 -0
- package/lib/components/radio-group/radio-group.d.ts +52 -0
- package/lib/components/radio-group/radio-group.js +87 -0
- package/lib/components/rich-text/index.d.ts +6 -0
- package/lib/components/rich-text/index.js +6 -0
- package/lib/components/rich-text/index.scss +19 -0
- package/lib/components/rich-text/rich-text.d.ts +14 -0
- package/lib/components/rich-text/rich-text.js +42 -0
- package/lib/components/search-bar/index.d.ts +3 -0
- package/lib/components/search-bar/index.js +7 -0
- package/lib/components/search-bar/index.scss +39 -0
- package/lib/components/search-bar/search-bar.d.ts +10 -0
- package/lib/components/search-bar/search-bar.js +80 -0
- package/lib/components/stream-list/index.d.ts +6 -0
- package/lib/components/stream-list/index.js +6 -0
- package/lib/components/stream-list/index.scss +26 -0
- package/lib/components/stream-list/stream-list.d.ts +54 -0
- package/lib/components/stream-list/stream-list.js +166 -0
- package/lib/components/swiper/index.d.ts +3 -0
- package/lib/components/swiper/index.js +7 -0
- package/lib/components/swiper/index.scss +20 -0
- package/lib/components/swiper/swiper.d.ts +30 -0
- package/lib/components/swiper/swiper.js +86 -0
- package/lib/components/tab/index.d.ts +6 -0
- package/lib/components/tab/index.js +10 -0
- package/lib/components/tab/index.scss +44 -0
- package/lib/components/tab/tab.d.ts +27 -0
- package/lib/components/tab/tab.js +59 -0
- package/lib/components/tab-container/index.d.ts +3 -0
- package/lib/components/tab-container/index.js +6 -0
- package/lib/components/tab-container/index.scss +48 -0
- package/lib/components/tab-container/tab-container.d.ts +10 -0
- package/lib/components/tab-container/tab-container.js +31 -0
- package/lib/components/tab-container-item/index.d.ts +3 -0
- package/lib/components/tab-container-item/index.js +6 -0
- package/lib/components/tab-container-item/index.scss +0 -0
- package/lib/components/tab-container-item/tab-container-item.d.ts +11 -0
- package/lib/components/tab-container-item/tab-container-item.js +24 -0
- package/lib/components/tag/index.d.ts +6 -0
- package/lib/components/tag/index.js +10 -0
- package/lib/components/tag/index.scss +24 -0
- package/lib/components/tag/tag.d.ts +14 -0
- package/lib/components/tag/tag.js +21 -0
- package/lib/components/teletext-list/index.d.ts +6 -0
- package/lib/components/teletext-list/index.js +6 -0
- package/lib/components/teletext-list/index.scss +40 -0
- package/lib/components/teletext-list/teletext-list-item.d.ts +33 -0
- package/lib/components/teletext-list/teletext-list-item.js +65 -0
- package/lib/components/teletext-list/teletext-list-item.scss +57 -0
- package/lib/components/teletext-list/teletext-list.d.ts +61 -0
- package/lib/components/teletext-list/teletext-list.js +52 -0
- package/lib/components/title/index.d.ts +8 -0
- package/lib/components/title/index.js +8 -0
- package/lib/components/title/title-1.d.ts +10 -0
- package/lib/components/title/title-1.js +21 -0
- package/lib/components/title/title-1.scss +25 -0
- package/lib/components/title/title-2.d.ts +18 -0
- package/lib/components/title/title-2.js +36 -0
- package/lib/components/title/title-2.scss +22 -0
- package/lib/components/user-card/index.d.ts +6 -0
- package/lib/components/user-card/index.js +6 -0
- package/lib/components/user-card/index.scss +68 -0
- package/lib/components/user-card/type.d.ts +8 -0
- package/lib/components/user-card/type.js +3 -0
- package/lib/components/user-card/user-card.d.ts +5 -0
- package/lib/components/user-card/user-card.js +66 -0
- package/lib/entity/dynamic-column-data-type.d.ts +316 -0
- package/lib/entity/dynamic-column-data-type.js +177 -0
- package/lib/index.d.ts +52 -0
- package/lib/index.js +107 -0
- package/lib/index.scss +6 -0
- package/lib/style.js +6 -0
- package/lib/utils/children-node-handle.d.ts +9 -0
- package/lib/utils/children-node-handle.js +30 -0
- package/lib/utils/component-wrapper.d.ts +9 -0
- package/lib/utils/component-wrapper.js +45 -0
- package/lib/utils/debounce.d.ts +1 -0
- package/lib/utils/debounce.js +18 -0
- package/lib/utils/textUtil.d.ts +10 -0
- package/lib/utils/textUtil.js +55 -0
- package/lib/utils/time-util.d.ts +5 -0
- package/lib/utils/time-util.js +22 -0
- package/lib/variables.d.ts +2 -0
- package/lib/variables.js +5 -0
- package/lib/variables.scss +3 -0
- package/lowcode/accordion-selector/meta.ts +124 -124
- package/lowcode/accordion-selector/props.ts +106 -106
- package/lowcode/bread-crumb/meta.ts +118 -118
- package/lowcode/button2/meta.ts +84 -84
- package/lowcode/collapse/meta.ts +138 -138
- package/lowcode/collapse-selector/meta.ts +67 -67
- package/lowcode/collapse-selector/props.ts +114 -114
- package/lowcode/collapse-selector-item/meta.ts +78 -78
- package/lowcode/custom-radio-group/meta.ts +312 -312
- package/lowcode/custom-radio-group-item/meta.ts +230 -230
- package/lowcode/d-c-slider/meta.design.ts +174 -174
- package/lowcode/d-c-slider/meta.ts +186 -186
- package/lowcode/d-c-slider/snippets.ts +69 -69
- package/lowcode/drawer/meta.ts +318 -318
- 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 +236 -236
- package/lowcode/image/meta.ts +61 -61
- package/lowcode/input/meta.ts +240 -240
- package/lowcode/integral-task/meta.ts +212 -212
- package/lowcode/member-card/meta.ts +187 -187
- package/lowcode/menu-list/meta.ts +154 -154
- package/lowcode/message-list/meta.ts +225 -225
- package/lowcode/navigation/meta.ts +177 -177
- package/lowcode/notice-bar/meta.ts +251 -251
- package/lowcode/position/meta.ts +162 -162
- package/lowcode/profile/meta.ts +125 -125
- package/lowcode/rating/meta.ts +102 -102
- package/lowcode/review-list/meta.ts +147 -147
- package/lowcode/rich-text/meta.ts +72 -72
- package/lowcode/search-bar/meta.ts +105 -105
- package/lowcode/search-history-list/meta.ts +103 -103
- package/lowcode/select/meta.ts +189 -189
- package/lowcode/shopping-cart/meta.ts +494 -494
- package/lowcode/stream-list/meta.ts +209 -209
- package/lowcode/swiper/meta.ts +237 -237
- package/lowcode/switch/meta.ts +69 -69
- 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 +845 -845
- package/lowcode/text-description-detail-list/meta.ts +112 -112
- package/lowcode/title1/meta.ts +60 -60
- package/lowcode/title2/meta.ts +94 -94
- package/lowcode/user-card/meta.ts +130 -130
- package/lowcode_es/accordion-selector/meta.d.ts +3 -3
- package/lowcode_es/accordion-selector/props.d.ts +51 -51
- package/lowcode_es/address-list/meta.d.ts +2 -22
- package/lowcode_es/bread-crumb/meta.d.ts +2 -22
- package/lowcode_es/button2/meta.d.ts +2 -22
- package/lowcode_es/collapse/meta.d.ts +2 -22
- package/lowcode_es/collapse-selector/meta.d.ts +2 -22
- package/lowcode_es/collapse-selector/props.d.ts +49 -49
- package/lowcode_es/collapse-selector-item/meta.d.ts +2 -22
- package/lowcode_es/custom-drawer/meta.d.ts +2 -22
- package/lowcode_es/custom-radio-group/meta.d.ts +2 -22
- package/lowcode_es/custom-radio-group-item/meta.d.ts +2 -23
- package/lowcode_es/d-c-slider/meta.d.ts +151 -151
- package/lowcode_es/d-c-slider/meta.design.d.ts +102 -102
- package/lowcode_es/d-c-slider/snippets.d.ts +37 -37
- package/lowcode_es/drawer/meta.d.ts +2 -22
- package/lowcode_es/form/meta.d.ts +2 -22
- package/lowcode_es/goods-card-list/meta.d.ts +2 -22
- package/lowcode_es/goods-card-list-common/meta.d.ts +2 -22
- package/lowcode_es/grid-nav/meta.d.ts +2 -22
- package/lowcode_es/image/meta.d.ts +2 -22
- package/lowcode_es/input/meta.d.ts +2 -22
- package/lowcode_es/integral-task/meta.d.ts +2 -22
- package/lowcode_es/item/meta.d.ts +2 -22
- package/lowcode_es/member-card/meta.d.ts +2 -22
- package/lowcode_es/menu-list/meta.d.ts +2 -22
- package/lowcode_es/message-list/meta.d.ts +2 -22
- package/lowcode_es/meta.js +47 -47
- package/lowcode_es/navigation/meta.d.ts +2 -22
- package/lowcode_es/notice-bar/meta.d.ts +2 -22
- package/lowcode_es/position/meta.d.ts +2 -22
- package/lowcode_es/profile/meta.d.ts +2 -22
- package/lowcode_es/rating/meta.d.ts +2 -22
- package/lowcode_es/review-list/meta.d.ts +2 -22
- package/lowcode_es/rich-text/meta.d.ts +2 -22
- package/lowcode_es/search-bar/meta.d.ts +2 -22
- package/lowcode_es/search-history-list/meta.d.ts +2 -22
- package/lowcode_es/select/meta.d.ts +2 -22
- package/lowcode_es/shopping-cart/meta.d.ts +2 -22
- package/lowcode_es/stream-list/meta.d.ts +2 -22
- package/lowcode_es/swiper/meta.d.ts +2 -22
- package/lowcode_es/switch/meta.d.ts +2 -22
- package/lowcode_es/tab-container/meta.d.ts +2 -22
- package/lowcode_es/tab-container/props.d.ts +90 -90
- package/lowcode_es/tab-container-item/meta.d.ts +2 -22
- package/lowcode_es/tab-message/meta.d.ts +2 -22
- package/lowcode_es/tag-c/meta.d.ts +2 -22
- package/lowcode_es/teletext-list/meta.d.ts +2 -22
- package/lowcode_es/text-description-detail-list/meta.d.ts +2 -22
- package/lowcode_es/title1/meta.d.ts +2 -22
- package/lowcode_es/title2/meta.d.ts +2 -22
- package/lowcode_es/user-card/meta.d.ts +2 -22
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/accordion-selector/meta.d.ts +3 -3
- package/lowcode_lib/accordion-selector/props.d.ts +51 -51
- package/lowcode_lib/address-list/meta.d.ts +2 -22
- package/lowcode_lib/bread-crumb/meta.d.ts +2 -22
- package/lowcode_lib/button2/meta.d.ts +2 -22
- package/lowcode_lib/collapse/meta.d.ts +2 -22
- package/lowcode_lib/collapse-selector/meta.d.ts +2 -22
- package/lowcode_lib/collapse-selector/props.d.ts +49 -49
- package/lowcode_lib/collapse-selector-item/meta.d.ts +2 -22
- package/lowcode_lib/custom-drawer/meta.d.ts +2 -22
- package/lowcode_lib/custom-radio-group/meta.d.ts +2 -22
- package/lowcode_lib/custom-radio-group-item/meta.d.ts +2 -23
- package/lowcode_lib/d-c-slider/meta.d.ts +151 -151
- package/lowcode_lib/d-c-slider/meta.design.d.ts +102 -102
- package/lowcode_lib/d-c-slider/snippets.d.ts +37 -37
- package/lowcode_lib/drawer/meta.d.ts +2 -22
- package/lowcode_lib/form/meta.d.ts +2 -22
- package/lowcode_lib/goods-card-list/meta.d.ts +2 -22
- package/lowcode_lib/goods-card-list-common/meta.d.ts +2 -22
- package/lowcode_lib/grid-nav/meta.d.ts +2 -22
- package/lowcode_lib/image/meta.d.ts +2 -22
- package/lowcode_lib/input/meta.d.ts +2 -22
- package/lowcode_lib/integral-task/meta.d.ts +2 -22
- package/lowcode_lib/item/meta.d.ts +2 -22
- package/lowcode_lib/member-card/meta.d.ts +2 -22
- package/lowcode_lib/menu-list/meta.d.ts +2 -22
- package/lowcode_lib/message-list/meta.d.ts +2 -22
- package/lowcode_lib/meta.js +48 -48
- package/lowcode_lib/navigation/meta.d.ts +2 -22
- package/lowcode_lib/notice-bar/meta.d.ts +2 -22
- package/lowcode_lib/position/meta.d.ts +2 -22
- package/lowcode_lib/profile/meta.d.ts +2 -22
- package/lowcode_lib/rating/meta.d.ts +2 -22
- package/lowcode_lib/review-list/meta.d.ts +2 -22
- package/lowcode_lib/rich-text/meta.d.ts +2 -22
- package/lowcode_lib/search-bar/meta.d.ts +2 -22
- package/lowcode_lib/search-history-list/meta.d.ts +2 -22
- package/lowcode_lib/select/meta.d.ts +2 -22
- package/lowcode_lib/shopping-cart/meta.d.ts +2 -22
- package/lowcode_lib/stream-list/meta.d.ts +2 -22
- package/lowcode_lib/swiper/meta.d.ts +2 -22
- package/lowcode_lib/switch/meta.d.ts +2 -22
- package/lowcode_lib/tab-container/meta.d.ts +2 -22
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container-item/meta.d.ts +2 -22
- package/lowcode_lib/tab-message/meta.d.ts +2 -22
- package/lowcode_lib/tag-c/meta.d.ts +2 -22
- package/lowcode_lib/teletext-list/meta.d.ts +2 -22
- package/lowcode_lib/text-description-detail-list/meta.d.ts +2 -22
- package/lowcode_lib/title1/meta.d.ts +2 -22
- package/lowcode_lib/title2/meta.d.ts +2 -22
- package/lowcode_lib/user-card/meta.d.ts +2 -22
- package/lowcode_lib/view.js +3 -4
- package/package.json +12 -12
- package/build/lowcode/assets-daily.json +0 -71
- package/build/lowcode/assets-dev.json +0 -71
- package/build/lowcode/assets-prod.json +0 -71
- package/build/lowcode/designer.html +0 -302
- package/build/lowcode/index.html +0 -304
- package/build/lowcode/index.js +0 -1
- package/build/lowcode/meta.design.js +0 -1
- package/build/lowcode/meta.js +0 -1
- package/build/lowcode/preview.css +0 -1
- package/build/lowcode/preview.html +0 -33
- package/build/lowcode/preview.js +0 -308
- package/build/lowcode/render/default/view.css +0 -1
- package/build/lowcode/render/default/view.js +0 -295
- package/build/lowcode/view.css +0 -1
- package/build/lowcode/view.js +0 -295
- package/dist/BizComps.css +0 -1
- package/dist/BizComps.js +0 -7
- package/dist/BizComps.js.map +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
import arrLeft from "../../assets/icon/position/img.png";
|
|
5
|
+
import location from "../../assets/icon/position/location.png";
|
|
6
|
+
import { default as SearchBar } from "../search-bar/search-bar";
|
|
7
|
+
import { groupCitiesByInitial } from "../../utils/textUtil";
|
|
8
|
+
var ContentList = function NavigationList(_ref) {
|
|
9
|
+
var open = _ref.open,
|
|
10
|
+
itemArray = _ref.itemArray,
|
|
11
|
+
setIsOpen = _ref.setIsOpen,
|
|
12
|
+
setCurrent = _ref.setCurrent,
|
|
13
|
+
currentLocation = _ref.currentLocation;
|
|
14
|
+
var indexKeys = [];
|
|
15
|
+
/**
|
|
16
|
+
* 处理城市列表
|
|
17
|
+
* @param itemArrays
|
|
18
|
+
* @param searchValue
|
|
19
|
+
*/
|
|
20
|
+
var handleItem = function handleItem(itemArrays, searchValue) {
|
|
21
|
+
if (!itemArrays) {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
var groupName = groupCitiesByInitial(itemArrays);
|
|
25
|
+
indexKeys = Object.keys(groupName);
|
|
26
|
+
if (searchValue) {
|
|
27
|
+
// 根据关键字过滤
|
|
28
|
+
indexKeys.forEach(function (item) {
|
|
29
|
+
var cityArray = groupName[item];
|
|
30
|
+
var filterCity = cityArray.filter(function (locationItem) {
|
|
31
|
+
return locationItem.address.indexOf(searchValue) != -1;
|
|
32
|
+
});
|
|
33
|
+
if (!filterCity || filterCity.length == 0) {
|
|
34
|
+
// 如果不存在关键字匹配,则删掉整个key
|
|
35
|
+
delete groupName[item];
|
|
36
|
+
} else {
|
|
37
|
+
groupName[item] = filterCity;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return groupName;
|
|
42
|
+
};
|
|
43
|
+
var _useState = useState(handleItem(itemArray)),
|
|
44
|
+
cityList = _useState[0],
|
|
45
|
+
setCityList = _useState[1];
|
|
46
|
+
console.log('cityList', cityList);
|
|
47
|
+
var changeHandle = function changeHandle(position) {
|
|
48
|
+
console.log('changeHandle', position);
|
|
49
|
+
// 设置当前选中位置
|
|
50
|
+
setCurrent(position);
|
|
51
|
+
// 关闭位置列表
|
|
52
|
+
setIsOpen();
|
|
53
|
+
};
|
|
54
|
+
var indexClickHandle = function indexClickHandle(index) {
|
|
55
|
+
var indexStr = 'index-' + index;
|
|
56
|
+
var dom = document.getElementById(indexStr);
|
|
57
|
+
if (dom) {
|
|
58
|
+
dom.scrollIntoView({
|
|
59
|
+
behavior: 'smooth',
|
|
60
|
+
block: 'start'
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var handleSearch = function handleSearch(name) {
|
|
65
|
+
var data = handleItem(itemArray, name);
|
|
66
|
+
setCityList(data);
|
|
67
|
+
};
|
|
68
|
+
var hotCityArray = itemArray ? itemArray.filter(function (item) {
|
|
69
|
+
return item.isHot;
|
|
70
|
+
}) : [];
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "location-list",
|
|
73
|
+
style: {
|
|
74
|
+
display: open ? 'block' : 'none'
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: "location-list-head"
|
|
78
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
79
|
+
src: arrLeft,
|
|
80
|
+
className: "location-list-head-img",
|
|
81
|
+
onClick: setIsOpen
|
|
82
|
+
}), /*#__PURE__*/React.createElement(SearchBar, {
|
|
83
|
+
onConfirm: function onConfirm(value) {
|
|
84
|
+
return handleSearch(value);
|
|
85
|
+
}
|
|
86
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "location-city-box location-list-location"
|
|
88
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
89
|
+
src: location,
|
|
90
|
+
className: "location-list-location-img"
|
|
91
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
92
|
+
className: "location-list-location-text",
|
|
93
|
+
onClick: setIsOpen
|
|
94
|
+
}, currentLocation.address)), hotCityArray && hotCityArray.length ? /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
className: "location-list-hot"
|
|
96
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
className: "location-list-hot-title"
|
|
98
|
+
}, "\u70ED\u95E8\u57CE\u5E02"), /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
className: "location-list-hot-content"
|
|
100
|
+
}, hotCityArray ? hotCityArray.map(function (item) {
|
|
101
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: "location-city-box location-list-hot-content-item",
|
|
103
|
+
onClick: function onClick() {
|
|
104
|
+
return changeHandle(item);
|
|
105
|
+
}
|
|
106
|
+
}, item.address);
|
|
107
|
+
}) : '')) : '', /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
className: "location-list-city"
|
|
109
|
+
}, cityList ? Object.keys(cityList).map(function (item) {
|
|
110
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
className: "location-list-city-box"
|
|
112
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
113
|
+
className: "location-list-city-box-type",
|
|
114
|
+
id: "index-" + item
|
|
115
|
+
}, item), cityList[item].map(function (cityInfo) {
|
|
116
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: "location-list-city-box-name",
|
|
118
|
+
onClick: function onClick() {
|
|
119
|
+
return changeHandle(cityInfo);
|
|
120
|
+
}
|
|
121
|
+
}, cityInfo.address);
|
|
122
|
+
}));
|
|
123
|
+
}) : ''), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: "location-list-index-bar"
|
|
125
|
+
}, cityList ? Object.keys(cityList).map(function (item) {
|
|
126
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
className: "location-list-index-bar-name",
|
|
128
|
+
onClick: function onClick() {
|
|
129
|
+
return indexClickHandle(item);
|
|
130
|
+
}
|
|
131
|
+
}, item);
|
|
132
|
+
}) : ''));
|
|
133
|
+
};
|
|
134
|
+
export default ContentList;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["itemArray", "defaultLocation", "__designMode"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { default as List } from "./position-list";
|
|
6
|
+
import { default as Position } from "./position-left";
|
|
7
|
+
var Navigation = function BottomNavigation(_ref) {
|
|
8
|
+
var itemArray = _ref.itemArray,
|
|
9
|
+
defaultLocation = _ref.defaultLocation,
|
|
10
|
+
__designMode = _ref.__designMode,
|
|
11
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
|
+
var _React$useState = React.useState(defaultLocation),
|
|
13
|
+
current = _React$useState[0],
|
|
14
|
+
_setCurrent = _React$useState[1];
|
|
15
|
+
var _React$useState2 = React.useState(false),
|
|
16
|
+
isOpen = _React$useState2[0],
|
|
17
|
+
setIsOpen = _React$useState2[1];
|
|
18
|
+
var openList = function openList() {
|
|
19
|
+
if (__designMode == 'design') {
|
|
20
|
+
// 设计态不打开列表
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
setIsOpen(!isOpen);
|
|
24
|
+
};
|
|
25
|
+
// React.useEffect(() => {
|
|
26
|
+
// console.log('defaultLocation', defaultLocation)
|
|
27
|
+
// if (defaultLocation) {
|
|
28
|
+
// setCurrent(defaultLocation)
|
|
29
|
+
// }
|
|
30
|
+
// })
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Position, _extends({
|
|
32
|
+
currentLocation: current
|
|
33
|
+
}, otherProps, {
|
|
34
|
+
clickHandle: function clickHandle() {
|
|
35
|
+
return openList();
|
|
36
|
+
}
|
|
37
|
+
})), /*#__PURE__*/React.createElement(List, {
|
|
38
|
+
open: isOpen,
|
|
39
|
+
currentLocation: current,
|
|
40
|
+
itemArray: itemArray,
|
|
41
|
+
setIsOpen: openList,
|
|
42
|
+
setCurrent: function setCurrent(value) {
|
|
43
|
+
return _setCurrent(value);
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
export default Navigation;
|
|
@@ -0,0 +1,8 @@
|
|
|
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, };
|
|
@@ -0,0 +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
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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;
|
|
@@ -0,0 +1,74 @@
|
|
|
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;
|
|
@@ -0,0 +1,52 @@
|
|
|
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;
|
|
@@ -0,0 +1,80 @@
|
|
|
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;
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,37 @@
|
|
|
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;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|