@dckj-npm/dc-material 0.1.28 → 0.1.30
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/docs/404.html +47 -0
- package/build/docs/_demos/:uuid +47 -0
- package/build/docs/colorful-button.html +4 -4
- package/build/docs/colorful-input.html +4 -4
- package/build/docs/index.html +4 -4
- package/build/docs/umi.19a78b0f.js +1 -0
- package/build/docs/{umi.1db9e2cc.css → umi.5357b0f6.css} +1 -1
- package/build/docs/~demos/:uuid.html +47 -0
- package/build/docs/~demos/colorful-button-demo.html +4 -4
- package/build/docs/~demos/colorful-input-demo.html +4 -4
- package/build/index.js +12 -19
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +10 -10
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +4 -4
- package/dist/BizComps.js.map +1 -1
- package/es/assets/icon/position/arror.png +0 -0
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/es/components/bottom-navigation/index.d.ts +3 -3
- package/es/components/bottom-navigation/index.scss +23 -23
- package/es/components/button/button.d.ts +14 -14
- package/es/components/button/index.d.ts +6 -6
- package/es/components/button/index.js +2 -2
- 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 -12
- package/es/components/colorful-button/index.d.ts +3 -3
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list.js +139 -0
- package/es/components/goods-card-list/goods-card-list.scss +93 -0
- package/es/components/goods-card-list/index.d.ts +3 -0
- package/es/components/goods-card-list/index.js +2 -0
- package/es/components/goods-card-list/types.d.ts +41 -0
- package/es/components/goods-card-list/types.js +1 -0
- package/es/components/grid-nav/grid-nav.d.ts +13 -13
- package/es/components/grid-nav/index.d.ts +3 -3
- package/es/components/grid-nav/index.scss +37 -37
- package/es/components/integral-task/index.d.ts +6 -6
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/integral-task.d.ts +40 -40
- package/es/components/menu-list/index.d.ts +6 -6
- package/es/components/menu-list/index.js +2 -2
- package/es/components/menu-list/index.scss +16 -16
- package/es/components/menu-list/menu-list-item.d.ts +5 -5
- package/es/components/menu-list/menu-list-item.scss +49 -49
- package/es/components/menu-list/menu-list.d.ts +5 -5
- package/es/components/menu-list/types.d.ts +23 -23
- package/es/components/message-list/index.d.ts +6 -6
- package/es/components/message-list/index.js +2 -2
- package/es/components/message-list/index.scss +22 -22
- package/es/components/message-list/message-list-item.d.ts +29 -29
- package/es/components/message-list/message-list-item.js +2 -2
- package/es/components/message-list/message-list-item.scss +49 -49
- package/es/components/message-list/message-list.d.ts +32 -32
- package/es/components/notice-bar/index.d.ts +3 -3
- package/es/components/notice-bar/index.scss +26 -26
- package/es/components/notice-bar/notice-bar-item.d.ts +31 -31
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +50 -50
- package/es/components/position/entity.d.ts +5 -5
- package/es/components/position/index.d.ts +3 -3
- package/es/components/position/index.scss +27 -23
- package/es/components/position/position-left.d.ts +9 -9
- package/es/components/position/position-list.d.ts +12 -12
- package/es/components/position/position.d.ts +8 -8
- package/es/components/radio-group/index.d.ts +8 -8
- package/es/components/radio-group/index.js +2 -2
- package/es/components/radio-group/index.scss +40 -40
- package/es/components/radio-group/radio-group-item.d.ts +48 -48
- package/es/components/radio-group/radio-group.d.ts +52 -52
- package/es/components/search-bar/index.d.ts +3 -3
- package/es/components/search-bar/index.scss +13 -13
- package/es/components/search-bar/search-bar.d.ts +7 -7
- package/es/components/swiper/index.d.ts +3 -3
- package/es/components/swiper/swiper.d.ts +47 -47
- package/es/components/tab/index.d.ts +6 -6
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +22 -22
- package/es/components/tab/tab.d.ts +23 -23
- package/es/components/tab-container/index.d.ts +3 -3
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tab-container/tab-container.d.ts +10 -10
- package/es/components/tab-container-item/index.d.ts +3 -3
- package/es/components/tab-container-item/tab-container-item.d.ts +9 -9
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/tag.d.ts +14 -14
- package/es/components/teletext-list/index.d.ts +6 -6
- package/es/components/teletext-list/index.js +2 -2
- package/es/components/teletext-list/index.scss +19 -19
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +10 -7
- package/es/components/teletext-list/teletext-list-item.scss +55 -55
- package/es/components/teletext-list/teletext-list.d.ts +61 -61
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.d.ts +8 -8
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.d.ts +10 -10
- package/es/components/title/title-1.scss +25 -25
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +40 -38
- package/es/index.js +4 -0
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -9
- package/es/utils/children-node-handle.js +0 -2
- package/es/utils/component-wrapper.d.ts +9 -9
- package/es/utils/debounce.d.ts +1 -0
- package/es/utils/debounce.js +14 -0
- package/es/variables.d.ts +2 -2
- package/lib/assets/icon/position/arror.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- package/lib/components/bottom-navigation/index.scss +23 -23
- package/lib/components/button/button.d.ts +14 -14
- package/lib/components/button/index.d.ts +6 -6
- package/lib/components/button/index.js +2 -2
- 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 -12
- package/lib/components/colorful-button/index.d.ts +3 -3
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list.js +146 -0
- package/lib/components/goods-card-list/goods-card-list.scss +93 -0
- package/lib/components/goods-card-list/index.d.ts +3 -0
- package/lib/components/goods-card-list/index.js +6 -0
- package/lib/components/goods-card-list/types.d.ts +41 -0
- package/lib/components/goods-card-list/types.js +3 -0
- package/lib/components/grid-nav/grid-nav.d.ts +13 -13
- package/lib/components/grid-nav/index.d.ts +3 -3
- package/lib/components/grid-nav/index.scss +37 -37
- package/lib/components/integral-task/index.d.ts +6 -6
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/integral-task.d.ts +40 -40
- package/lib/components/menu-list/index.d.ts +6 -6
- package/lib/components/menu-list/index.js +2 -2
- package/lib/components/menu-list/index.scss +16 -16
- package/lib/components/menu-list/menu-list-item.d.ts +5 -5
- package/lib/components/menu-list/menu-list-item.scss +49 -49
- package/lib/components/menu-list/menu-list.d.ts +5 -5
- package/lib/components/menu-list/types.d.ts +23 -23
- package/lib/components/message-list/index.d.ts +6 -6
- package/lib/components/message-list/index.js +2 -2
- package/lib/components/message-list/index.scss +22 -22
- package/lib/components/message-list/message-list-item.d.ts +29 -29
- package/lib/components/message-list/message-list-item.js +2 -2
- package/lib/components/message-list/message-list-item.scss +49 -49
- package/lib/components/message-list/message-list.d.ts +32 -32
- package/lib/components/notice-bar/index.d.ts +3 -3
- package/lib/components/notice-bar/index.scss +26 -26
- package/lib/components/notice-bar/notice-bar-item.d.ts +31 -31
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +50 -50
- package/lib/components/position/entity.d.ts +5 -5
- package/lib/components/position/index.d.ts +3 -3
- package/lib/components/position/index.scss +27 -23
- package/lib/components/position/position-left.d.ts +9 -9
- package/lib/components/position/position-list.d.ts +12 -12
- package/lib/components/position/position.d.ts +8 -8
- package/lib/components/radio-group/index.d.ts +8 -8
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/radio-group/radio-group-item.d.ts +48 -48
- package/lib/components/radio-group/radio-group.d.ts +52 -52
- package/lib/components/search-bar/index.d.ts +3 -3
- package/lib/components/search-bar/index.scss +13 -13
- package/lib/components/search-bar/search-bar.d.ts +7 -7
- package/lib/components/swiper/index.d.ts +3 -3
- package/lib/components/swiper/swiper.d.ts +47 -47
- package/lib/components/tab/index.d.ts +6 -6
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +22 -22
- package/lib/components/tab/tab.d.ts +23 -23
- package/lib/components/tab-container/index.d.ts +3 -3
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tab-container/tab-container.d.ts +10 -10
- package/lib/components/tab-container-item/index.d.ts +3 -3
- package/lib/components/tab-container-item/tab-container-item.d.ts +9 -9
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/tag.d.ts +14 -14
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +10 -7
- package/lib/components/teletext-list/teletext-list-item.scss +55 -55
- package/lib/components/teletext-list/teletext-list.d.ts +61 -61
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/index.d.ts +8 -8
- package/lib/components/title/title-1.d.ts +10 -10
- package/lib/components/title/title-1.scss +25 -25
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +40 -38
- package/lib/index.js +5 -1
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -9
- package/lib/utils/children-node-handle.js +0 -2
- package/lib/utils/component-wrapper.d.ts +9 -9
- package/lib/utils/debounce.d.ts +1 -0
- package/lib/utils/debounce.js +18 -0
- package/lib/variables.d.ts +2 -2
- package/lowcode/custom-radio-group/meta.ts +293 -293
- package/lowcode/custom-radio-group-item/meta.ts +229 -229
- package/lowcode/d-c-slider/meta.design.ts +173 -173
- package/lowcode/d-c-slider/meta.ts +342 -342
- package/lowcode/d-c-slider/snippets.ts +68 -68
- package/lowcode/goods-card-list/meta.ts +262 -0
- package/lowcode/grid-nav/meta.ts +212 -212
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/message-list/meta.ts +205 -205
- package/lowcode/navigation/meta.ts +173 -173
- package/lowcode/notice-bar/meta.ts +291 -291
- package/lowcode/search-bar/meta.ts +54 -54
- package/lowcode/tab-container/meta.ts +69 -69
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tag-c/meta.ts +75 -75
- package/lowcode/teletext-list/meta.ts +329 -329
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/button2/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_es/d-c-slider/meta.d.ts +148 -148
- package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/goods-card-list/meta.d.ts +22 -0
- package/lowcode_es/goods-card-list/meta.js +245 -0
- package/lowcode_es/grid-nav/meta.d.ts +22 -22
- package/lowcode_es/integral-task/meta.d.ts +22 -22
- package/lowcode_es/menu-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.d.ts +22 -22
- package/lowcode_es/meta.js +23 -22
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.d.ts +22 -22
- package/lowcode_es/position/meta.d.ts +22 -22
- package/lowcode_es/search-bar/meta.d.ts +22 -22
- package/lowcode_es/swiper/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.d.ts +22 -22
- package/lowcode_es/tab-container/props.d.ts +90 -90
- package/lowcode_es/tab-container-item/meta.d.ts +22 -22
- package/lowcode_es/tab-message/meta.d.ts +22 -22
- package/lowcode_es/tag-c/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/button2/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
- package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/goods-card-list/meta.d.ts +22 -0
- package/lowcode_lib/goods-card-list/meta.js +250 -0
- package/lowcode_lib/grid-nav/meta.d.ts +22 -22
- package/lowcode_lib/integral-task/meta.d.ts +22 -22
- package/lowcode_lib/menu-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.d.ts +22 -22
- package/lowcode_lib/meta.js +23 -22
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.d.ts +22 -22
- package/lowcode_lib/position/meta.d.ts +22 -22
- package/lowcode_lib/search-bar/meta.d.ts +22 -22
- package/lowcode_lib/swiper/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- package/lowcode_lib/tab-message/meta.d.ts +22 -22
- package/lowcode_lib/tag-c/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/view.js +2 -2
- package/package.json +3 -3
- package/build/docs/umi.c18d41ab.js +0 -1
package/es/index.d.ts
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
export type { ComponentProps } from './components/swiper';
|
|
2
|
-
export { default as Swiper } from './components/swiper';
|
|
3
|
-
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
-
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
-
export type { MenuListDataProps, MenuListProps } from './components/menu-list';
|
|
6
|
-
export { default as MenuList } from './components/menu-list';
|
|
7
|
-
export type { TeletextListProps } from './components/teletext-list';
|
|
8
|
-
export { TeletextList } from './components/teletext-list';
|
|
9
|
-
export type { Title1Props } from './components/title';
|
|
10
|
-
export { Title1 } from './components/title';
|
|
11
|
-
export type { Title2Props } from './components/title';
|
|
12
|
-
export { Title2 } from './components/title';
|
|
13
|
-
export type { GridNavProps } from './components/grid-nav';
|
|
14
|
-
export { default as GridNav } from './components/grid-nav';
|
|
15
|
-
export type { SearchBarProps } from './components/search-bar';
|
|
16
|
-
export { default as SearchBar } from './components/search-bar';
|
|
17
|
-
export type { LocationProps } from './components/position';
|
|
18
|
-
export { default as Position } from './components/position';
|
|
19
|
-
export type { TagProps } from './components/tag';
|
|
20
|
-
export { default as TagC } from './components/tag';
|
|
21
|
-
export type { MessageListProps } from './components/message-list';
|
|
22
|
-
export { default as MessageList } from './components/message-list';
|
|
23
|
-
export type { TabProps } from './components/tab';
|
|
24
|
-
export { default as TabMessage } from './components/tab';
|
|
25
|
-
export type { NoticeBarProps } from './components/notice-bar';
|
|
26
|
-
export { default as NoticeBar } from './components/notice-bar';
|
|
27
|
-
export type { TabContainerProps } from './components/tab-container';
|
|
28
|
-
export { default as TabContainer } from './components/tab-container';
|
|
29
|
-
export type { TabContainerItemProps } from './components/tab-container-item';
|
|
30
|
-
export { default as TabContainerItem } from './components/tab-container-item';
|
|
31
|
-
export type { IntegralTaskProps } from './components/integral-task';
|
|
32
|
-
export { default as IntegralTask } from './components/integral-task';
|
|
33
|
-
export type { ButtonProps } from './components/button';
|
|
34
|
-
export { default as Button2 } from './components/button';
|
|
35
|
-
export type { RadioGroupProps, RadioGroupItemProps } from './components/radio-group';
|
|
36
|
-
export { CustomRadioGroup, CustomRadioGroupItem } from './components/radio-group';
|
|
37
|
-
|
|
38
|
-
export {
|
|
1
|
+
export type { ComponentProps } from './components/swiper';
|
|
2
|
+
export { default as Swiper } from './components/swiper';
|
|
3
|
+
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
+
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
+
export type { MenuListDataProps, MenuListProps } from './components/menu-list';
|
|
6
|
+
export { default as MenuList } from './components/menu-list';
|
|
7
|
+
export type { TeletextListProps } from './components/teletext-list';
|
|
8
|
+
export { TeletextList } from './components/teletext-list';
|
|
9
|
+
export type { Title1Props } from './components/title';
|
|
10
|
+
export { Title1 } from './components/title';
|
|
11
|
+
export type { Title2Props } from './components/title';
|
|
12
|
+
export { Title2 } from './components/title';
|
|
13
|
+
export type { GridNavProps } from './components/grid-nav';
|
|
14
|
+
export { default as GridNav } from './components/grid-nav';
|
|
15
|
+
export type { SearchBarProps } from './components/search-bar';
|
|
16
|
+
export { default as SearchBar } from './components/search-bar';
|
|
17
|
+
export type { LocationProps } from './components/position';
|
|
18
|
+
export { default as Position } from './components/position';
|
|
19
|
+
export type { TagProps } from './components/tag';
|
|
20
|
+
export { default as TagC } from './components/tag';
|
|
21
|
+
export type { MessageListProps } from './components/message-list';
|
|
22
|
+
export { default as MessageList } from './components/message-list';
|
|
23
|
+
export type { TabProps } from './components/tab';
|
|
24
|
+
export { default as TabMessage } from './components/tab';
|
|
25
|
+
export type { NoticeBarProps } from './components/notice-bar';
|
|
26
|
+
export { default as NoticeBar } from './components/notice-bar';
|
|
27
|
+
export type { TabContainerProps } from './components/tab-container';
|
|
28
|
+
export { default as TabContainer } from './components/tab-container';
|
|
29
|
+
export type { TabContainerItemProps } from './components/tab-container-item';
|
|
30
|
+
export { default as TabContainerItem } from './components/tab-container-item';
|
|
31
|
+
export type { IntegralTaskProps } from './components/integral-task';
|
|
32
|
+
export { default as IntegralTask } from './components/integral-task';
|
|
33
|
+
export type { ButtonProps } from './components/button';
|
|
34
|
+
export { default as Button2 } from './components/button';
|
|
35
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './components/radio-group';
|
|
36
|
+
export { CustomRadioGroup, CustomRadioGroupItem } from './components/radio-group';
|
|
37
|
+
export type { GoodsCardListProps } from './components/goods-card-list';
|
|
38
|
+
export { GoodsCardList } from './components/goods-card-list';
|
|
39
|
+
declare const bizCssPrefix = "bizpack";
|
|
40
|
+
export { bizCssPrefix };
|
package/es/index.js
CHANGED
|
@@ -66,5 +66,9 @@ export { default as Button2 } from "./components/button";
|
|
|
66
66
|
// 单选组
|
|
67
67
|
|
|
68
68
|
export { CustomRadioGroup, CustomRadioGroupItem } from "./components/radio-group";
|
|
69
|
+
|
|
70
|
+
// 商品卡片列表
|
|
71
|
+
|
|
72
|
+
export { GoodsCardList } from "./components/goods-card-list";
|
|
69
73
|
var bizCssPrefix = 'bizpack';
|
|
70
74
|
export { bizCssPrefix };
|
package/es/index.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import './components/colorful-button/index.scss';
|
|
2
|
-
@import './components/colorful-input/index.scss';
|
|
3
|
-
@import './components/teletext-list/index.scss';
|
|
4
|
-
@import './components/grid-nav/index.scss';
|
|
5
|
-
@import './components/search-bar/index.scss';
|
|
1
|
+
@import './components/colorful-button/index.scss';
|
|
2
|
+
@import './components/colorful-input/index.scss';
|
|
3
|
+
@import './components/teletext-list/index.scss';
|
|
4
|
+
@import './components/grid-nav/index.scss';
|
|
5
|
+
@import './components/search-bar/index.scss';
|
|
6
6
|
@import './components/notice-bar/index.scss';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 从children数组中获取指定组件
|
|
3
|
-
* @author ZhuGangMin
|
|
4
|
-
* @date 2024-09-21 14:07:02
|
|
5
|
-
* @param children 父组件传递过来children
|
|
6
|
-
* @param key 组件的key
|
|
7
|
-
* @param props 要覆盖的属性
|
|
8
|
-
*/
|
|
9
|
-
export declare function convertChildren(children: any, key: string, props?: any): any
|
|
1
|
+
/**
|
|
2
|
+
* 从children数组中获取指定组件
|
|
3
|
+
* @author ZhuGangMin
|
|
4
|
+
* @date 2024-09-21 14:07:02
|
|
5
|
+
* @param children 父组件传递过来children
|
|
6
|
+
* @param key 组件的key
|
|
7
|
+
* @param props 要覆盖的属性
|
|
8
|
+
*/
|
|
9
|
+
export declare function convertChildren(children: any, key: string, props?: any): React.DetailedReactHTMLElement<any, HTMLElement>;
|
|
@@ -16,12 +16,10 @@ export function convertChildren(children, key, props) {
|
|
|
16
16
|
if (child.key === key) {
|
|
17
17
|
// 属性融合
|
|
18
18
|
var propsContact = props ? _extends({}, child.props, props) : child.props;
|
|
19
|
-
console.log('propsContact', propsContact);
|
|
20
19
|
node = /*#__PURE__*/React.cloneElement(child, propsContact);
|
|
21
20
|
break;
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
console.log('node', node);
|
|
26
24
|
return node;
|
|
27
25
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const ValueWrapper: (NextFormComponent: React.ElementType, displayName: string) => {
|
|
3
|
-
(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const DynamicPropWrapper: (prop: string, NextFormComponent: React.ElementType, displayName: string) => {
|
|
7
|
-
(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ValueWrapper: (NextFormComponent: React.ElementType, displayName: string) => {
|
|
3
|
+
(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DynamicPropWrapper: (prop: string, NextFormComponent: React.ElementType, displayName: string) => {
|
|
7
|
+
(props: any): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (this: any, ...args: Parameters<T>) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function debounce(func, delay) {
|
|
2
|
+
var timeout;
|
|
3
|
+
return function () {
|
|
4
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5
|
+
args[_key] = arguments[_key];
|
|
6
|
+
}
|
|
7
|
+
// eslint-disable-next-line ts/no-this-alias
|
|
8
|
+
var context = this;
|
|
9
|
+
clearTimeout(timeout);
|
|
10
|
+
timeout = setTimeout(function () {
|
|
11
|
+
return func.apply(context, args);
|
|
12
|
+
}, delay);
|
|
13
|
+
};
|
|
14
|
+
}
|
package/es/variables.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const bizCssPrefix = "bizpack";
|
|
2
|
-
export { bizCssPrefix };
|
|
1
|
+
declare const bizCssPrefix = "bizpack";
|
|
2
|
+
export { bizCssPrefix };
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface Navigation {
|
|
4
|
-
text: string;
|
|
5
|
-
icon: string;
|
|
6
|
-
selectedIcon: string;
|
|
7
|
-
pageId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface NavigationProps {
|
|
10
|
-
itemArray: Navigation[];
|
|
11
|
-
selectedColor: string;
|
|
12
|
-
onClick?: (pageId: string) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Navigation: React.FC<NavigationProps>;
|
|
15
|
-
export default Navigation;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface Navigation {
|
|
4
|
+
text: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
selectedIcon: string;
|
|
7
|
+
pageId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface NavigationProps {
|
|
10
|
+
itemArray: Navigation[];
|
|
11
|
+
selectedColor: string;
|
|
12
|
+
onClick?: (pageId: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const Navigation: React.FC<NavigationProps>;
|
|
15
|
+
export default Navigation;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Navigation from './bottom-navigation';
|
|
2
|
-
export type { NavigationProps } from './bottom-navigation';
|
|
3
|
-
export default Navigation;
|
|
1
|
+
import Navigation from './bottom-navigation';
|
|
2
|
+
export type { NavigationProps } from './bottom-navigation';
|
|
3
|
+
export default Navigation;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.navigation-panel {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
align-items: center;
|
|
5
|
-
padding: 9px 0px 6px 0px;
|
|
6
|
-
width: 100%;
|
|
7
|
-
position: fixed;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
background-color: #fff;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
z-index: 10;
|
|
12
|
-
&-item {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
flex: 1;
|
|
19
|
-
.navigation-item-image {
|
|
20
|
-
margin-bottom: 3px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
.navigation-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding: 9px 0px 6px 0px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
position: fixed;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
z-index: 10;
|
|
12
|
+
&-item {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
flex: 1;
|
|
19
|
+
.navigation-item-image {
|
|
20
|
+
margin-bottom: 3px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* 标签名称
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* 标签颜色
|
|
10
|
-
*/
|
|
11
|
-
color: string;
|
|
12
|
-
}
|
|
13
|
-
declare const Button: React.FC<ButtonProps>;
|
|
14
|
-
export default Button;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* 标签名称
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* 标签颜色
|
|
10
|
+
*/
|
|
11
|
+
color: string;
|
|
12
|
+
}
|
|
13
|
+
declare const Button: React.FC<ButtonProps>;
|
|
14
|
+
export default Button;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 标签tag
|
|
3
|
-
*/
|
|
4
|
-
import Button from './button';
|
|
5
|
-
export type { ButtonProps } from './button';
|
|
6
|
-
export default Button;
|
|
1
|
+
/**
|
|
2
|
+
* 标签tag
|
|
3
|
+
*/
|
|
4
|
+
import Button from './button';
|
|
5
|
+
export type { ButtonProps } from './button';
|
|
6
|
+
export default Button;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _button = _interopRequireDefault(require("./button"));
|
|
7
|
-
/**
|
|
8
|
-
* 标签tag
|
|
7
|
+
/**
|
|
8
|
+
* 标签tag
|
|
9
9
|
*/
|
|
10
10
|
var _default = exports["default"] = _button["default"];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './carousel.scss';
|
|
3
|
+
export interface CarouselProps {
|
|
4
|
+
/**
|
|
5
|
+
* 图片列表
|
|
6
|
+
*/
|
|
7
|
+
images: string[];
|
|
8
|
+
/**
|
|
9
|
+
* 定时播放的时间
|
|
10
|
+
*/
|
|
11
|
+
interval?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const Carousel: React.FC<CarouselProps>;
|
|
14
|
+
export default Carousel;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
require("./carousel.scss");
|
|
7
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
8
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
9
|
+
var Carousel = function Carousel(_ref) {
|
|
10
|
+
var _ref$images = _ref.images,
|
|
11
|
+
images = _ref$images === void 0 ? [] : _ref$images,
|
|
12
|
+
_ref$interval = _ref.interval,
|
|
13
|
+
interval = _ref$interval === void 0 ? 3000 : _ref$interval;
|
|
14
|
+
// 如果没有图片则返回提示
|
|
15
|
+
if (images.length === 0) {
|
|
16
|
+
return /*#__PURE__*/_react["default"].createElement("div", null);
|
|
17
|
+
}
|
|
18
|
+
// 如果只有一张图片,则直接显示
|
|
19
|
+
if (images.length === 1) {
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
|
+
className: "carousel"
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
23
|
+
src: images[0],
|
|
24
|
+
alt: "Single slide",
|
|
25
|
+
className: "carousel-image"
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
// 添加复制的第一张和最后一张图片以实现无缝切换
|
|
29
|
+
var extendedImages = [images[images.length - 1]].concat(images, [images[0]]);
|
|
30
|
+
// 初始显示第二张图片
|
|
31
|
+
var _useState = (0, _react.useState)(1),
|
|
32
|
+
currentIndex = _useState[0],
|
|
33
|
+
setCurrentIndex = _useState[1];
|
|
34
|
+
// 切换到下一张图片
|
|
35
|
+
var goToNext = function goToNext() {
|
|
36
|
+
setCurrentIndex(function (prevIndex) {
|
|
37
|
+
return prevIndex + 1;
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
// 自动播放逻辑:在组件挂载时启动定时器
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
var timer = setInterval(function () {
|
|
43
|
+
goToNext();
|
|
44
|
+
}, interval);
|
|
45
|
+
// 清除定时器,避免内存泄漏
|
|
46
|
+
return function () {
|
|
47
|
+
return clearInterval(timer);
|
|
48
|
+
};
|
|
49
|
+
}, [interval]);
|
|
50
|
+
(0, _react.useEffect)(function () {
|
|
51
|
+
// 当切换到最后一张复制的图片时,设置为第二张图片
|
|
52
|
+
if (currentIndex === extendedImages.length - 1) {
|
|
53
|
+
setTimeout(function () {
|
|
54
|
+
// 跳转到第二张
|
|
55
|
+
setCurrentIndex(1);
|
|
56
|
+
}, 1000);
|
|
57
|
+
}
|
|
58
|
+
}, [currentIndex]);
|
|
59
|
+
// 计算当前显示的图像索引
|
|
60
|
+
var displayIndex = currentIndex > images.length ? currentIndex - images.length : currentIndex;
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: "carousel"
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
+
className: "carousel-track",
|
|
65
|
+
style: {
|
|
66
|
+
transform: "translateX(-" + currentIndex * 100 + "%)",
|
|
67
|
+
// 只有在平滑切换时才应用过渡
|
|
68
|
+
transition: currentIndex === 1 ? 'none' : 'transform 1s ease-in-out'
|
|
69
|
+
}
|
|
70
|
+
}, extendedImages.map(function (image, index) {
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
72
|
+
key: index,
|
|
73
|
+
src: image,
|
|
74
|
+
alt: "Slide " + index,
|
|
75
|
+
className: "carousel-image"
|
|
76
|
+
});
|
|
77
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
+
className: "carousel-counter"
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, displayIndex), /*#__PURE__*/_react["default"].createElement("span", null, "/"), /*#__PURE__*/_react["default"].createElement("span", null, images.length)));
|
|
80
|
+
};
|
|
81
|
+
var _default = exports["default"] = Carousel;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.carousel {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.carousel-track {
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.carousel-image {
|
|
15
|
+
min-width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
object-fit: cover;
|
|
18
|
+
object-position: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.carousel-counter {
|
|
22
|
+
position: absolute;
|
|
23
|
+
bottom: 2px;
|
|
24
|
+
right: 2px;
|
|
25
|
+
color: white;
|
|
26
|
+
background: rgba(0, 0, 0, 0.5);
|
|
27
|
+
padding: 2px 8px;
|
|
28
|
+
border-radius: 5px;
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
display: flex;
|
|
31
|
+
gap: 2px;
|
|
32
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ColorfulButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* 类型
|
|
6
|
-
*/
|
|
7
|
-
type?: "primary" | "secondary" | "normal";
|
|
8
|
-
color?: string;
|
|
9
|
-
style?: object;
|
|
10
|
-
}
|
|
11
|
-
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
-
export default ColorfulButton;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* 类型
|
|
6
|
+
*/
|
|
7
|
+
type?: "primary" | "secondary" | "normal";
|
|
8
|
+
color?: string;
|
|
9
|
+
style?: object;
|
|
10
|
+
}
|
|
11
|
+
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
+
export default ColorfulButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ColorfulButton from './colorful-button';
|
|
2
|
-
export type { ColorfulButtonProps } from './colorful-button';
|
|
3
|
-
export default ColorfulButton;
|
|
1
|
+
import ColorfulButton from './colorful-button';
|
|
2
|
+
export type { ColorfulButtonProps } from './colorful-button';
|
|
3
|
+
export default ColorfulButton;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ColorfulInputProps {
|
|
4
|
-
color?: string;
|
|
5
|
-
style?: object;
|
|
6
|
-
}
|
|
7
|
-
declare const ColorfulInput: React.FC<ColorfulInputProps>;
|
|
8
|
-
export default ColorfulInput;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulInputProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
style?: object;
|
|
6
|
+
}
|
|
7
|
+
declare const ColorfulInput: React.FC<ColorfulInputProps>;
|
|
8
|
+
export default ColorfulInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ColorfulInput from './colorful-input';
|
|
2
|
-
export type { ColorfulInputProps } from './colorful-input';
|
|
3
|
-
export default ColorfulInput;
|
|
1
|
+
import ColorfulInput from './colorful-input';
|
|
2
|
+
export type { ColorfulInputProps } from './colorful-input';
|
|
3
|
+
export default ColorfulInput;
|