@dckj-npm/dc-material 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/es/components/bottom-navigation/index.d.ts +3 -3
- package/es/components/bottom-navigation/index.scss +24 -24
- 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/button/index.scss +16 -16
- package/es/components/carousel/carousel.d.ts +14 -14
- package/es/components/carousel/carousel.scss +32 -32
- 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-button/index.scss +5 -5
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/goods-card-list/index.d.ts +3 -4
- package/es/components/goods-card-list/index.js +1 -2
- package/es/components/goods-card-list/types.d.ts +45 -45
- 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 -41
- package/es/components/integral-task/index.d.ts +6 -6
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/index.scss +35 -35
- 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 +50 -50
- 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 +29 -29
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +37 -37
- 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 -27
- 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/index.scss +12 -12
- 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 +23 -23
- 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 -11
- package/es/components/tab-container-item/tab-container-item.js +2 -7
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- 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 +4 -8
- 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 -42
- package/es/index.js +1 -5
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -9
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/component-wrapper.d.ts +9 -9
- package/es/utils/debounce.d.ts +1 -1
- package/es/variables.d.ts +2 -2
- package/es/variables.scss +3 -3
- 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 +24 -24
- 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/button/index.scss +16 -16
- package/lib/components/carousel/carousel.d.ts +14 -14
- package/lib/components/carousel/carousel.scss +32 -32
- 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-button/index.scss +5 -5
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/goods-card-list/index.d.ts +3 -4
- package/lib/components/goods-card-list/index.js +1 -3
- package/lib/components/goods-card-list/types.d.ts +45 -45
- 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 -41
- package/lib/components/integral-task/index.d.ts +6 -6
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/index.scss +35 -35
- 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 +50 -50
- 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 +29 -29
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +37 -37
- 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 -27
- 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/index.scss +12 -12
- 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 +23 -23
- 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 -11
- package/lib/components/tab-container-item/tab-container-item.js +2 -7
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- 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 +4 -8
- 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 -42
- package/lib/index.js +1 -6
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -9
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/component-wrapper.d.ts +9 -9
- package/lib/utils/debounce.d.ts +1 -1
- package/lib/variables.d.ts +2 -2
- package/lib/variables.scss +3 -3
- package/lowcode/button2/meta.ts +75 -75
- package/lowcode/custom-radio-group/meta.ts +310 -310
- 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 +268 -268
- package/lowcode/goods-card-list-common/meta.ts +268 -268
- package/lowcode/grid-nav/meta.ts +212 -212
- package/lowcode/integral-task/meta.ts +211 -211
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/message-list/meta.ts +202 -202
- package/lowcode/navigation/meta.ts +165 -165
- package/lowcode/notice-bar/meta.ts +229 -229
- package/lowcode/position/meta.ts +161 -161
- package/lowcode/search-bar/meta.ts +54 -54
- package/lowcode/swiper/meta.ts +237 -237
- package/lowcode/tab-container/meta.ts +70 -70
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tab-message/meta.ts +101 -101
- 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 -22
- package/lowcode_es/goods-card-list-common/meta.d.ts +22 -22
- package/lowcode_es/grid-nav/meta.d.ts +22 -22
- package/lowcode_es/integral-task/meta.d.ts +22 -22
- package/lowcode_es/menu-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.d.ts +22 -22
- package/lowcode_es/meta.js +24 -24
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.d.ts +22 -22
- package/lowcode_es/position/meta.d.ts +22 -22
- package/lowcode_es/rich-text/meta.d.ts +22 -22
- package/lowcode_es/search-bar/meta.d.ts +22 -22
- package/lowcode_es/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 -22
- package/lowcode_lib/goods-card-list-common/meta.d.ts +22 -22
- package/lowcode_lib/grid-nav/meta.d.ts +22 -22
- package/lowcode_lib/integral-task/meta.d.ts +22 -22
- package/lowcode_lib/menu-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.d.ts +22 -22
- package/lowcode_lib/meta.js +24 -24
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.d.ts +22 -22
- package/lowcode_lib/position/meta.d.ts +22 -22
- package/lowcode_lib/rich-text/meta.d.ts +22 -22
- package/lowcode_lib/search-bar/meta.d.ts +22 -22
- package/lowcode_lib/swiper/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- package/lowcode_lib/tab-message/meta.d.ts +22 -22
- package/lowcode_lib/tag-c/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/view.js +2 -2
- package/package.json +3 -3
- package/es/components/goods-card-list/goods-card-list-common.d.ts +0 -5
- package/es/components/goods-card-list/goods-card-list-common.js +0 -52
- package/es/components/goods-card-list/goods-card-list-common.scss +0 -119
- 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 -15
- package/es/components/rich-text/rich-text.d.ts +0 -14
- package/es/components/rich-text/rich-text.js +0 -28
- 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 -57
- package/lib/components/goods-card-list/goods-card-list-common.scss +0 -119
- 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 -15
- package/lib/components/rich-text/rich-text.d.ts +0 -14
- package/lib/components/rich-text/rich-text.js +0 -33
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
#{$biz-css-prefix}-colorful-button {
|
|
4
|
-
border: 2px dashed blue;
|
|
5
|
-
}
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
#{$biz-css-prefix}-colorful-button {
|
|
4
|
+
border: 2px dashed blue;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GoodsCardListProps } from './types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './goods-card-list.scss';
|
|
4
|
-
declare const GoodsCardList: React.FC<GoodsCardListProps>;
|
|
5
|
-
export default GoodsCardList;
|
|
1
|
+
import type { GoodsCardListProps } from './types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './goods-card-list.scss';
|
|
4
|
+
declare const GoodsCardList: React.FC<GoodsCardListProps>;
|
|
5
|
+
export default GoodsCardList;
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
.card-list-goods__container {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
|
|
5
|
-
& > .card-list-goods__item {
|
|
6
|
-
position: absolute;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
transition: top 0.35s ease, left 0.35s ease, width 0.35s ease;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
border-radius: 8px;
|
|
11
|
-
box-shadow: 0 3px 9px 1px rgba(204, 204, 204, 0.35);
|
|
12
|
-
|
|
13
|
-
& > .card-list-goods__image {
|
|
14
|
-
height: 200px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
display: flex;
|
|
18
|
-
|
|
19
|
-
& > img {
|
|
20
|
-
height: 100%;
|
|
21
|
-
width: 100%;
|
|
22
|
-
object-fit: cover;
|
|
23
|
-
object-position: center;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
& > .card-list-goods__content {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
padding: 0.5rem;
|
|
32
|
-
|
|
33
|
-
.card-list-goods__title {
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
display: -webkit-box;
|
|
36
|
-
-webkit-box-orient: vertical;
|
|
37
|
-
-webkit-line-clamp: 2;
|
|
38
|
-
line-clamp: 2;
|
|
39
|
-
margin-top: 0.25rem;
|
|
40
|
-
margin-bottom: 0.25rem;
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
font-weight: 700;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.card-list-goods__desc {
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
text-overflow: ellipsis;
|
|
48
|
-
white-space: nowrap;
|
|
49
|
-
line-clamp: 2;
|
|
50
|
-
margin-top: 0.25rem;
|
|
51
|
-
margin-bottom: 0.25rem;
|
|
52
|
-
font-size: 12px;
|
|
53
|
-
color: #333333;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.card-list-goods__bottom {
|
|
57
|
-
margin-top: 0.25rem;
|
|
58
|
-
margin-bottom: 0.25rem;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: baseline;
|
|
61
|
-
flex-wrap: wrap;
|
|
62
|
-
row-gap: 0.5rem;
|
|
63
|
-
|
|
64
|
-
& > div {
|
|
65
|
-
display: flex;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.card-list-goods__unit {
|
|
69
|
-
font-size: 12px;
|
|
70
|
-
color: #F57D51;
|
|
71
|
-
font-weight: 700;
|
|
72
|
-
line-height: 1;
|
|
73
|
-
|
|
74
|
-
&__delete {
|
|
75
|
-
margin-left: 0;
|
|
76
|
-
font-size: 14px;
|
|
77
|
-
color: #666666;
|
|
78
|
-
line-height: 1;
|
|
79
|
-
text-decoration: line-through
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.card-list-goods__price {
|
|
85
|
-
font-size: 17px;
|
|
86
|
-
color: #F57D51;
|
|
87
|
-
font-weight: 700;
|
|
88
|
-
line-height: 1;
|
|
89
|
-
|
|
90
|
-
&__delete {
|
|
91
|
-
margin-left: 0;
|
|
92
|
-
font-size: 14px;
|
|
93
|
-
color: #666666;
|
|
94
|
-
line-height: 1;
|
|
95
|
-
text-decoration: line-through
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.card-list-goods__sales {
|
|
100
|
-
margin-left: 3px;
|
|
101
|
-
font-size: 12px;
|
|
102
|
-
color: #666666;
|
|
103
|
-
line-height: 1;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
}
|
|
1
|
+
.card-list-goods__container {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
& > .card-list-goods__item {
|
|
6
|
+
position: absolute;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
transition: top 0.35s ease, left 0.35s ease, width 0.35s ease;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
box-shadow: 0 3px 9px 1px rgba(204, 204, 204, 0.35);
|
|
12
|
+
|
|
13
|
+
& > .card-list-goods__image {
|
|
14
|
+
height: 200px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
display: flex;
|
|
18
|
+
|
|
19
|
+
& > img {
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: 100%;
|
|
22
|
+
object-fit: cover;
|
|
23
|
+
object-position: center;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& > .card-list-goods__content {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
padding: 0.5rem;
|
|
32
|
+
|
|
33
|
+
.card-list-goods__title {
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
display: -webkit-box;
|
|
36
|
+
-webkit-box-orient: vertical;
|
|
37
|
+
-webkit-line-clamp: 2;
|
|
38
|
+
line-clamp: 2;
|
|
39
|
+
margin-top: 0.25rem;
|
|
40
|
+
margin-bottom: 0.25rem;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.card-list-goods__desc {
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
line-clamp: 2;
|
|
50
|
+
margin-top: 0.25rem;
|
|
51
|
+
margin-bottom: 0.25rem;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
color: #333333;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.card-list-goods__bottom {
|
|
57
|
+
margin-top: 0.25rem;
|
|
58
|
+
margin-bottom: 0.25rem;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: baseline;
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
row-gap: 0.5rem;
|
|
63
|
+
|
|
64
|
+
& > div {
|
|
65
|
+
display: flex;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.card-list-goods__unit {
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
color: #F57D51;
|
|
71
|
+
font-weight: 700;
|
|
72
|
+
line-height: 1;
|
|
73
|
+
|
|
74
|
+
&__delete {
|
|
75
|
+
margin-left: 0;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
color: #666666;
|
|
78
|
+
line-height: 1;
|
|
79
|
+
text-decoration: line-through
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.card-list-goods__price {
|
|
85
|
+
font-size: 17px;
|
|
86
|
+
color: #F57D51;
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
line-height: 1;
|
|
89
|
+
|
|
90
|
+
&__delete {
|
|
91
|
+
margin-left: 0;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
color: #666666;
|
|
94
|
+
line-height: 1;
|
|
95
|
+
text-decoration: line-through
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.card-list-goods__sales {
|
|
100
|
+
margin-left: 3px;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
color: #666666;
|
|
103
|
+
line-height: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import GoodsCardList from './goods-card-list';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export { GoodsCardList, GoodsCardListCommon };
|
|
1
|
+
import GoodsCardList from './goods-card-list';
|
|
2
|
+
export type { GoodsCardListItemProps, GoodsCardListProps } from './types';
|
|
3
|
+
export { GoodsCardList };
|
|
@@ -3,6 +3,4 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
var _goodsCardList = _interopRequireDefault(require("./goods-card-list"));
|
|
6
|
-
exports.GoodsCardList = _goodsCardList["default"];
|
|
7
|
-
var _goodsCardListCommon = _interopRequireDefault(require("./goods-card-list-common"));
|
|
8
|
-
exports.GoodsCardListCommon = _goodsCardListCommon["default"];
|
|
6
|
+
exports.GoodsCardList = _goodsCardList["default"];
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export interface GoodsCardListProps {
|
|
2
|
-
/**
|
|
3
|
-
* 卡片列表数据
|
|
4
|
-
*/
|
|
5
|
-
dataList: GoodsCardListItemProps[];
|
|
6
|
-
/**
|
|
7
|
-
* 最大销量
|
|
8
|
-
*/
|
|
9
|
-
maxSales?: number;
|
|
10
|
-
/**
|
|
11
|
-
* 点击事件
|
|
12
|
-
* @param item
|
|
13
|
-
*/
|
|
14
|
-
onClick?: (item: GoodsCardListItemProps) => void;
|
|
15
|
-
}
|
|
16
|
-
export interface GoodsCardListItemProps {
|
|
17
|
-
/**
|
|
18
|
-
* 唯一标识
|
|
19
|
-
*/
|
|
20
|
-
key: string;
|
|
21
|
-
/**
|
|
22
|
-
* 缩略图列表
|
|
23
|
-
*/
|
|
24
|
-
imageList: string[];
|
|
25
|
-
/**
|
|
26
|
-
* 标题
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
29
|
-
/**
|
|
30
|
-
* 简介
|
|
31
|
-
*/
|
|
32
|
-
desc: string;
|
|
33
|
-
/**
|
|
34
|
-
* 价格
|
|
35
|
-
*/
|
|
36
|
-
price: string;
|
|
37
|
-
/**
|
|
38
|
-
* 促销价格
|
|
39
|
-
*/
|
|
40
|
-
activePrice?: string;
|
|
41
|
-
/**
|
|
42
|
-
* 销量
|
|
43
|
-
*/
|
|
44
|
-
sales: number;
|
|
45
|
-
}
|
|
1
|
+
export interface GoodsCardListProps {
|
|
2
|
+
/**
|
|
3
|
+
* 卡片列表数据
|
|
4
|
+
*/
|
|
5
|
+
dataList: GoodsCardListItemProps[];
|
|
6
|
+
/**
|
|
7
|
+
* 最大销量
|
|
8
|
+
*/
|
|
9
|
+
maxSales?: number;
|
|
10
|
+
/**
|
|
11
|
+
* 点击事件
|
|
12
|
+
* @param item
|
|
13
|
+
*/
|
|
14
|
+
onClick?: (item: GoodsCardListItemProps) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface GoodsCardListItemProps {
|
|
17
|
+
/**
|
|
18
|
+
* 唯一标识
|
|
19
|
+
*/
|
|
20
|
+
key: string;
|
|
21
|
+
/**
|
|
22
|
+
* 缩略图列表
|
|
23
|
+
*/
|
|
24
|
+
imageList: string[];
|
|
25
|
+
/**
|
|
26
|
+
* 标题
|
|
27
|
+
*/
|
|
28
|
+
title: string;
|
|
29
|
+
/**
|
|
30
|
+
* 简介
|
|
31
|
+
*/
|
|
32
|
+
desc: string;
|
|
33
|
+
/**
|
|
34
|
+
* 价格
|
|
35
|
+
*/
|
|
36
|
+
price: string;
|
|
37
|
+
/**
|
|
38
|
+
* 促销价格
|
|
39
|
+
*/
|
|
40
|
+
activePrice?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 销量
|
|
43
|
+
*/
|
|
44
|
+
sales: number;
|
|
45
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface GridNavProps {
|
|
3
|
-
dataSourceSetting: [];
|
|
4
|
-
columns: number;
|
|
5
|
-
iconSize: string;
|
|
6
|
-
fontWeight: string;
|
|
7
|
-
fontSize: number;
|
|
8
|
-
fontColor: string;
|
|
9
|
-
lineHeight: string;
|
|
10
|
-
lineNum: number;
|
|
11
|
-
}
|
|
12
|
-
declare const GridNav: React.ForwardRefExoticComponent<GridNavProps & React.RefAttributes<any>>;
|
|
13
|
-
export default GridNav;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface GridNavProps {
|
|
3
|
+
dataSourceSetting: [];
|
|
4
|
+
columns: number;
|
|
5
|
+
iconSize: string;
|
|
6
|
+
fontWeight: string;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
fontColor: string;
|
|
9
|
+
lineHeight: string;
|
|
10
|
+
lineNum: number;
|
|
11
|
+
}
|
|
12
|
+
declare const GridNav: React.ForwardRefExoticComponent<GridNavProps & React.RefAttributes<any>>;
|
|
13
|
+
export default GridNav;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import GridNav from "./grid-nav";
|
|
2
|
-
export type { GridNavProps } from './grid-nav';
|
|
3
|
-
export default GridNav;
|
|
1
|
+
import GridNav from "./grid-nav";
|
|
2
|
+
export type { GridNavProps } from './grid-nav';
|
|
3
|
+
export default GridNav;
|
|
@@ -1,41 +1,37 @@
|
|
|
1
|
-
/* write style here */
|
|
2
|
-
.grid-navigation {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
&:hover {
|
|
39
|
-
color: #007bff;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
/* write style here */
|
|
2
|
+
.grid-navigation {
|
|
3
|
+
//padding: 10px;
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: grid;
|
|
6
|
+
gap: 14px 38px; /* 宫格之间的间距 */
|
|
7
|
+
margin: 0;
|
|
8
|
+
// grid-template-columns: repeat(60px, minmax(1fr));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.grid-item {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: center;
|
|
15
|
+
text-align: center;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
color: #333;
|
|
18
|
+
position: relative;
|
|
19
|
+
img {
|
|
20
|
+
width: 48px;
|
|
21
|
+
height: 51px;
|
|
22
|
+
margin-bottom: 3px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
span {
|
|
26
|
+
font-size: 13px;
|
|
27
|
+
color: #222222;
|
|
28
|
+
// overflow: hidden;
|
|
29
|
+
// text-overflow: ellipsis;
|
|
30
|
+
// white-space: nowrap;
|
|
31
|
+
// max-width: 60px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
color: #007bff;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 标签tag
|
|
3
|
-
*/
|
|
4
|
-
import IntegralTask from './integral-task';
|
|
5
|
-
export type { IntegralTaskProps } from './integral-task';
|
|
6
|
-
export default IntegralTask;
|
|
1
|
+
/**
|
|
2
|
+
* 标签tag
|
|
3
|
+
*/
|
|
4
|
+
import IntegralTask from './integral-task';
|
|
5
|
+
export type { IntegralTaskProps } from './integral-task';
|
|
6
|
+
export default IntegralTask;
|
|
@@ -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 _integralTask = _interopRequireDefault(require("./integral-task"));
|
|
7
|
-
/**
|
|
8
|
-
* 标签tag
|
|
7
|
+
/**
|
|
8
|
+
* 标签tag
|
|
9
9
|
*/
|
|
10
10
|
var _default = exports["default"] = _integralTask["default"];
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
.integral-task__container {
|
|
2
|
-
padding: 0 12px;
|
|
3
|
-
&__item {
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
align-items: center;
|
|
7
|
-
&__left {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
&__img {
|
|
11
|
-
width: 53px;
|
|
12
|
-
height: 53px;
|
|
13
|
-
margin-right: 9px;
|
|
14
|
-
}
|
|
15
|
-
&__content {
|
|
16
|
-
&__title {
|
|
17
|
-
font-size: 15px;
|
|
18
|
-
color: #333333;
|
|
19
|
-
}
|
|
20
|
-
&__integral {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
&--icon {
|
|
24
|
-
width: 15px;
|
|
25
|
-
height: 15px;
|
|
26
|
-
}
|
|
27
|
-
&--number {
|
|
28
|
-
font-size: 12px;
|
|
29
|
-
color: #EA6A3D;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
.integral-task__container {
|
|
2
|
+
padding: 0 12px;
|
|
3
|
+
&__item {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
align-items: center;
|
|
7
|
+
&__left {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
&__img {
|
|
11
|
+
width: 53px;
|
|
12
|
+
height: 53px;
|
|
13
|
+
margin-right: 9px;
|
|
14
|
+
}
|
|
15
|
+
&__content {
|
|
16
|
+
&__title {
|
|
17
|
+
font-size: 15px;
|
|
18
|
+
color: #333333;
|
|
19
|
+
}
|
|
20
|
+
&__integral {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
&--icon {
|
|
24
|
+
width: 15px;
|
|
25
|
+
height: 15px;
|
|
26
|
+
}
|
|
27
|
+
&--number {
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
color: #EA6A3D;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface DataProps {
|
|
4
|
-
/**
|
|
5
|
-
* 任务名称
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* 积分
|
|
10
|
-
*/
|
|
11
|
-
integral: number;
|
|
12
|
-
/**
|
|
13
|
-
* 状态 0 未完成 1 已完成
|
|
14
|
-
*/
|
|
15
|
-
status: number;
|
|
16
|
-
}
|
|
17
|
-
export interface IntegralTaskProps {
|
|
18
|
-
/**
|
|
19
|
-
* 任务名称
|
|
20
|
-
*/
|
|
21
|
-
list: DataProps[];
|
|
22
|
-
/**
|
|
23
|
-
* 图标
|
|
24
|
-
*/
|
|
25
|
-
icon: string;
|
|
26
|
-
/**
|
|
27
|
-
* 图片
|
|
28
|
-
*/
|
|
29
|
-
images: string[];
|
|
30
|
-
/**
|
|
31
|
-
* 完成文案
|
|
32
|
-
*/
|
|
33
|
-
completeLabel: string;
|
|
34
|
-
/**
|
|
35
|
-
* 未完成文案
|
|
36
|
-
*/
|
|
37
|
-
undoneLabel: string;
|
|
38
|
-
}
|
|
39
|
-
declare const IntegralTask: React.FC<IntegralTaskProps>;
|
|
40
|
-
export default IntegralTask;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface DataProps {
|
|
4
|
+
/**
|
|
5
|
+
* 任务名称
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* 积分
|
|
10
|
+
*/
|
|
11
|
+
integral: number;
|
|
12
|
+
/**
|
|
13
|
+
* 状态 0 未完成 1 已完成
|
|
14
|
+
*/
|
|
15
|
+
status: number;
|
|
16
|
+
}
|
|
17
|
+
export interface IntegralTaskProps {
|
|
18
|
+
/**
|
|
19
|
+
* 任务名称
|
|
20
|
+
*/
|
|
21
|
+
list: DataProps[];
|
|
22
|
+
/**
|
|
23
|
+
* 图标
|
|
24
|
+
*/
|
|
25
|
+
icon: string;
|
|
26
|
+
/**
|
|
27
|
+
* 图片
|
|
28
|
+
*/
|
|
29
|
+
images: string[];
|
|
30
|
+
/**
|
|
31
|
+
* 完成文案
|
|
32
|
+
*/
|
|
33
|
+
completeLabel: string;
|
|
34
|
+
/**
|
|
35
|
+
* 未完成文案
|
|
36
|
+
*/
|
|
37
|
+
undoneLabel: string;
|
|
38
|
+
}
|
|
39
|
+
declare const IntegralTask: React.FC<IntegralTaskProps>;
|
|
40
|
+
export default IntegralTask;
|