@pisell/materials 6.2.29 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +150 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -28
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -29
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/classicLayout/index.js +5 -4
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -7
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/icon/index.js +5 -5
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.js +6 -6
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/es/components/pisellGoodPassCard/index.d.ts +0 -1
- package/es/components/pisellGoodPassCard/index.js +5 -17
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellToast/index.js +0 -3
- package/es/components/pisellWalletPassCard/index.d.ts +0 -1
- package/es/components/productCard/components/Header/index.js +8 -21
- package/es/components/productCard/components/Header/index.less +0 -15
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.js +2 -2
- package/es/components/productCard/index.d.ts +1 -3
- package/es/components/productCard/index.js +2 -5
- package/es/components/productCard/index.less +0 -6
- package/es/components/qrcode/index.js +1 -1
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/utils.js +5 -5
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/index.d.ts +0 -11
- package/es/components/virtual-keyboard/index.js +3 -88
- package/es/components/virtual-keyboard/index.less +1 -33
- package/es/hooks/useResponsive.js +2 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/miniRedux.js +9 -8
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -7
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/lowCodePage/index.js +2 -1
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -1
- package/lib/components/pisellGoodPassCard/index.js +4 -31
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellToast/index.js +0 -3
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/index.js +11 -20
- package/lib/components/productCard/components/Header/index.less +0 -15
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.js +2 -2
- package/lib/components/productCard/index.d.ts +1 -3
- package/lib/components/productCard/index.js +2 -6
- package/lib/components/productCard/index.less +0 -6
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/utils/index.js +2 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/index.d.ts +0 -11
- package/lib/components/virtual-keyboard/index.js +2 -60
- package/lib/components/virtual-keyboard/index.less +1 -33
- package/lib/hooks/useResponsive.js +6 -3
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/_setters/antd-icon-setter/index.tsx +2 -3
- package/lowcode/virtual-keyboard/meta.ts +0 -131
- package/package.json +3 -5
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -73
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -113
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +0 -51
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/holders/index.js +0 -32
- package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -32
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/index.js +0 -52
- package/es/components/productCard/cartSkuCard/components/packages/index.less +0 -22
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +0 -40
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/resources/index.js +0 -44
- package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -20
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/components/sales/index.js +0 -55
- package/es/components/productCard/cartSkuCard/components/sales/index.less +0 -22
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/specs/index.js +0 -43
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -28
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -292
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +0 -53
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +0 -37
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/index.js +0 -216
- package/es/components/productCard/cartSkuCard/index.less +0 -69
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/cartSkuCard/locales.js +0 -30
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -79
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -113
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +0 -70
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +0 -52
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -32
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +0 -73
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +0 -22
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +0 -44
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +0 -73
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -20
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +0 -76
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +0 -22
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +0 -65
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -28
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -339
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +0 -67
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +0 -37
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/index.js +0 -234
- package/lib/components/productCard/cartSkuCard/index.less +0 -69
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/cartSkuCard/locales.js +0 -61
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-card-wrapper {
|
|
2
|
-
border-radius: 8px;
|
|
3
|
-
background: var(--Base-White, #fff);
|
|
4
|
-
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.pisell-cart-sku-card {
|
|
8
|
-
padding: 4px 8px 4px 4px;
|
|
9
|
-
border-radius: inherit;
|
|
10
|
-
user-select: none;
|
|
11
|
-
position: relative;
|
|
12
|
-
|
|
13
|
-
&__delete-btn {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
position: absolute;
|
|
16
|
-
padding: 10px;
|
|
17
|
-
top: 0;
|
|
18
|
-
right: 0;
|
|
19
|
-
|
|
20
|
-
> span {
|
|
21
|
-
color: #667085;
|
|
22
|
-
font-size: 20px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&__content {
|
|
27
|
-
display: flex;
|
|
28
|
-
gap: 4px;
|
|
29
|
-
|
|
30
|
-
img {
|
|
31
|
-
width: 48px;
|
|
32
|
-
height: 48px;
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
border-radius: 6px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.product-info {
|
|
38
|
-
flex: 1;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
gap: 4px;
|
|
42
|
-
flex: 1 0 0;
|
|
43
|
-
flex-wrap: wrap;
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
min-height: 30px;
|
|
46
|
-
|
|
47
|
-
.product-name {
|
|
48
|
-
color: var(--Gray-900, #101828);
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
font-style: normal;
|
|
51
|
-
font-weight: 600;
|
|
52
|
-
line-height: 20px;
|
|
53
|
-
width: 100%;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
text-overflow: ellipsis;
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.product-price {
|
|
60
|
-
color: var(--Gray-900, #101828);
|
|
61
|
-
font-size: 14px;
|
|
62
|
-
font-style: normal;
|
|
63
|
-
font-weight: 500;
|
|
64
|
-
line-height: 20px;
|
|
65
|
-
width: 100%;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.product.card.discount.reason': string;
|
|
4
|
-
'pisell2.cart.sku-card.more': string;
|
|
5
|
-
'pisell2.cart.sku-card.packages.title': string;
|
|
6
|
-
'pisell2.cart.sku-card.sales.title': string;
|
|
7
|
-
'pisell2.cart.sku-card.actions.delete': string;
|
|
8
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
9
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
10
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
11
|
-
'pisell2.product.card.discount.note': string;
|
|
12
|
-
'pisell2.product.card.edit': string;
|
|
13
|
-
'pisell2.product.card.discount.add.note': string;
|
|
14
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
15
|
-
'pisell2.product.card.confirm': string;
|
|
16
|
-
'pisell2.product.card.cancel': string;
|
|
17
|
-
'pisell2.product.card.note.pla': string;
|
|
18
|
-
'pisell2.product.card.items.package': string;
|
|
19
|
-
'pisell2.product.card.view-all': string;
|
|
20
|
-
'pisell2.product.card.view-less': string;
|
|
21
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
22
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
23
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
24
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
25
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
26
|
-
'pisell2.product.card.sales': string;
|
|
27
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
28
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
29
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
30
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
31
|
-
'pisell2.product.card.closing-soon.warning': string;
|
|
32
|
-
};
|
|
33
|
-
'zh-CN': {
|
|
34
|
-
'pisell2.product.card.discount.reason': string;
|
|
35
|
-
'pisell2.cart.sku-card.more': string;
|
|
36
|
-
'pisell2.cart.sku-card.packages.title': string;
|
|
37
|
-
'pisell2.cart.sku-card.sales.title': string;
|
|
38
|
-
'pisell2.cart.sku-card.actions.delete': string;
|
|
39
|
-
'pisell2.product.card.edit': string;
|
|
40
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
41
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
42
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
43
|
-
'pisell2.product.card.discount.note': string;
|
|
44
|
-
'pisell2.product.card.discount.add.note': string;
|
|
45
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
46
|
-
'pisell2.product.card.confirm': string;
|
|
47
|
-
'pisell2.product.card.cancel': string;
|
|
48
|
-
'pisell2.product.card.note.pla': string;
|
|
49
|
-
'pisell2.product.card.items.package': string;
|
|
50
|
-
'pisell2.product.card.view-all': string;
|
|
51
|
-
'pisell2.product.card.view-less': string;
|
|
52
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
53
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
54
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
55
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
56
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
57
|
-
'pisell2.product.card.sales': string;
|
|
58
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
59
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
60
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
61
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
62
|
-
'pisell2.product.card.closing-soon.warning': string;
|
|
63
|
-
};
|
|
64
|
-
'zh-HK': {
|
|
65
|
-
'pisell2.product.card.discount.reason': string;
|
|
66
|
-
'pisell2.cart.sku-card.more': string;
|
|
67
|
-
'pisell2.cart.sku-card.packages.title': string;
|
|
68
|
-
'pisell2.cart.sku-card.sales.title': string;
|
|
69
|
-
'pisell2.cart.sku-card.actions.delete': string;
|
|
70
|
-
'pisell2.product.card.edit': string;
|
|
71
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
72
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
73
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
74
|
-
'pisell2.product.card.discount.note': string;
|
|
75
|
-
'pisell2.product.card.discount.add.note': string;
|
|
76
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
77
|
-
'pisell2.product.card.confirm': string;
|
|
78
|
-
'pisell2.product.card.cancel': string;
|
|
79
|
-
'pisell2.product.card.note.pla': string;
|
|
80
|
-
'pisell2.product.card.items.package': string;
|
|
81
|
-
'pisell2.product.card.view-all': string;
|
|
82
|
-
'pisell2.product.card.view-less': string;
|
|
83
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
84
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
85
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
86
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
87
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
88
|
-
'pisell2.product.card.sales': string;
|
|
89
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
90
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
91
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
92
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
93
|
-
'pisell2.product.card.closing-soon.warning': string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import localeTexts from "../locales";
|
|
8
|
-
export default {
|
|
9
|
-
en: _objectSpread(_objectSpread({}, localeTexts.en), {}, {
|
|
10
|
-
'pisell2.product.card.discount.reason': 'Discount reason',
|
|
11
|
-
'pisell2.cart.sku-card.more': 'more...',
|
|
12
|
-
'pisell2.cart.sku-card.packages.title': 'Items in package',
|
|
13
|
-
'pisell2.cart.sku-card.sales.title': 'Sales',
|
|
14
|
-
'pisell2.cart.sku-card.actions.delete': 'Delete'
|
|
15
|
-
}),
|
|
16
|
-
'zh-CN': _objectSpread(_objectSpread({}, localeTexts['zh-CN']), {}, {
|
|
17
|
-
'pisell2.product.card.discount.reason': '折扣原因',
|
|
18
|
-
'pisell2.cart.sku-card.more': '更多……',
|
|
19
|
-
'pisell2.cart.sku-card.packages.title': '包含的商品',
|
|
20
|
-
'pisell2.cart.sku-card.sales.title': '销售',
|
|
21
|
-
'pisell2.cart.sku-card.actions.delete': '删除'
|
|
22
|
-
}),
|
|
23
|
-
'zh-HK': _objectSpread(_objectSpread({}, localeTexts['zh-HK']), {}, {
|
|
24
|
-
'pisell2.product.card.discount.reason': '折扣原因',
|
|
25
|
-
'pisell2.cart.sku-card.more': '更多……',
|
|
26
|
-
'pisell2.cart.sku-card.packages.title': '包含的商品',
|
|
27
|
-
'pisell2.cart.sku-card.sales.title': '銷售',
|
|
28
|
-
'pisell2.cart.sku-card.actions.delete': '刪除'
|
|
29
|
-
})
|
|
30
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface IProps {
|
|
4
|
-
isShowImage?: boolean;
|
|
5
|
-
dataSource: {
|
|
6
|
-
image?: string;
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
options?: any[];
|
|
9
|
-
product_option_string?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
symbol?: string;
|
|
12
|
-
price?: string | number;
|
|
13
|
-
total?: number;
|
|
14
|
-
origin_total?: number;
|
|
15
|
-
num?: number;
|
|
16
|
-
};
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
isMainProduct?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const BasicInfo: (props: IProps) => JSX.Element;
|
|
21
|
-
export default BasicInfo;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/productCard/cartSkuCard/components/basicInfo/index.tsx
|
|
30
|
-
var basicInfo_exports = {};
|
|
31
|
-
__export(basicInfo_exports, {
|
|
32
|
-
default: () => basicInfo_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(basicInfo_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_specs = __toESM(require("../specs"));
|
|
39
|
-
var import__ = require("../../index");
|
|
40
|
-
var import_index = require("./index.less");
|
|
41
|
-
var BasicInfo = (props) => {
|
|
42
|
-
const { isShowImage, dataSource = {}, style, isMainProduct } = props;
|
|
43
|
-
const {
|
|
44
|
-
image,
|
|
45
|
-
bundle,
|
|
46
|
-
options,
|
|
47
|
-
product_option_string,
|
|
48
|
-
name,
|
|
49
|
-
price,
|
|
50
|
-
symbol,
|
|
51
|
-
total = 0,
|
|
52
|
-
origin_total = 0,
|
|
53
|
-
num = 1
|
|
54
|
-
} = dataSource;
|
|
55
|
-
const renderNumTag = () => {
|
|
56
|
-
if (num > 1)
|
|
57
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
className: (0, import_classnames.default)(`num-tag`, {
|
|
61
|
-
"is-main": isMainProduct
|
|
62
|
-
})
|
|
63
|
-
},
|
|
64
|
-
num < 100 ? num : "99+"
|
|
65
|
-
);
|
|
66
|
-
return null;
|
|
67
|
-
};
|
|
68
|
-
const hasSpecs = (bundle == null ? void 0 : bundle.length) || (options == null ? void 0 : options.length) || product_option_string;
|
|
69
|
-
const renderImage = () => {
|
|
70
|
-
if (!isShowImage) return null;
|
|
71
|
-
if (image) {
|
|
72
|
-
return /* @__PURE__ */ import_react.default.createElement("img", { src: import_utils.image.ali(image, 64), className: `product-cover` });
|
|
73
|
-
}
|
|
74
|
-
const displayText = name ? name.slice(0, 2) : "";
|
|
75
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `product-cover-text` }, displayText);
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), (!isShowImage || !image && !name) && num > 1 ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 26 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), hasSpecs ? /* @__PURE__ */ import_react.default.createElement(import_specs.default, { dataSource }) : /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol))), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-amount` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `total-amont` }, (0, import_utils.formatAmount)(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `origin-amount` }, (0, import_utils.formatAmount)(origin_total * num, 2, symbol)) : null));
|
|
78
|
-
};
|
|
79
|
-
var basicInfo_default = BasicInfo;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-card {
|
|
2
|
-
&__basic-info {
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 4px;
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
.num-tag {
|
|
8
|
-
background-color: #7f56da;
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 0;
|
|
11
|
-
top: 0;
|
|
12
|
-
border-radius: 12px;
|
|
13
|
-
min-width: 24px;
|
|
14
|
-
height: 24px;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
z-index: 1;
|
|
19
|
-
|
|
20
|
-
color: var(--Base-White, #fff);
|
|
21
|
-
font-size: 16px;
|
|
22
|
-
font-style: normal;
|
|
23
|
-
font-weight: 600;
|
|
24
|
-
line-height: 16px;
|
|
25
|
-
|
|
26
|
-
&.is-main {
|
|
27
|
-
left: -4px;
|
|
28
|
-
top: -4px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
img {
|
|
33
|
-
width: 48px;
|
|
34
|
-
height: 48px;
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
border-radius: 6px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.product-cover-text {
|
|
40
|
-
width: 48px;
|
|
41
|
-
height: 48px;
|
|
42
|
-
flex-shrink: 0;
|
|
43
|
-
border-radius: 8px;
|
|
44
|
-
background-color: #DEDEDE;
|
|
45
|
-
color: #7E7E7E;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
font-size: 22px;
|
|
50
|
-
font-weight: 500;
|
|
51
|
-
line-height: 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.product-info {
|
|
55
|
-
flex: 1;
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: 4px;
|
|
59
|
-
flex: 1 0 0;
|
|
60
|
-
flex-wrap: wrap;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
|
|
63
|
-
.product-name {
|
|
64
|
-
color: var(--Gray-900, #101828);
|
|
65
|
-
font-size: 14px;
|
|
66
|
-
font-style: normal;
|
|
67
|
-
font-weight: 600;
|
|
68
|
-
line-height: 20px;
|
|
69
|
-
width: 100%;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
text-overflow: ellipsis;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.product-price {
|
|
76
|
-
color: var(--Gray-900, #101828);
|
|
77
|
-
font-size: 14px;
|
|
78
|
-
font-style: normal;
|
|
79
|
-
font-weight: 500;
|
|
80
|
-
line-height: 20px;
|
|
81
|
-
width: 100%;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.product-amount {
|
|
86
|
-
display: flex;
|
|
87
|
-
align-items: center;
|
|
88
|
-
gap: 4px;
|
|
89
|
-
flex-wrap: wrap;
|
|
90
|
-
flex-shrink: 0;
|
|
91
|
-
.total-amont {
|
|
92
|
-
color: var(--Base-Black, #000);
|
|
93
|
-
text-align: center;
|
|
94
|
-
font-size: 14px;
|
|
95
|
-
font-style: normal;
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
line-height: 20px;
|
|
98
|
-
width: 100%;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.origin-amount {
|
|
102
|
-
color: var(--Gray-500, #667085);
|
|
103
|
-
text-align: center;
|
|
104
|
-
font-size: 12px;
|
|
105
|
-
font-style: normal;
|
|
106
|
-
font-weight: 400;
|
|
107
|
-
line-height: 18px;
|
|
108
|
-
text-decoration-line: line-through;
|
|
109
|
-
width: 100%;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/productCard/cartSkuCard/components/discountReason/index.tsx
|
|
30
|
-
var discountReason_exports = {};
|
|
31
|
-
__export(discountReason_exports, {
|
|
32
|
-
default: () => discountReason_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(discountReason_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import__ = require("../../index");
|
|
39
|
-
var DiscountReason = (props) => {
|
|
40
|
-
const { dataSource = {}, hideDivider } = props;
|
|
41
|
-
const { total, origin_total, symbol, tip, num, discount_reason } = dataSource;
|
|
42
|
-
const isDiscount = (0, import_react.useMemo)(() => {
|
|
43
|
-
if (!origin_total) return false;
|
|
44
|
-
return Number(total) != Number(origin_total);
|
|
45
|
-
}, [total, origin_total]);
|
|
46
|
-
const renderDivider = () => {
|
|
47
|
-
return isDiscount && discount_reason && !hideDivider ? /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: "4px 0" } }) : null;
|
|
48
|
-
};
|
|
49
|
-
const renderDiscountReason = () => {
|
|
50
|
-
if (isDiscount && discount_reason) {
|
|
51
|
-
if (Array.isArray(discount_reason)) {
|
|
52
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
"div",
|
|
54
|
-
{
|
|
55
|
-
className: `${import__.PREFIX}_discount-reason`,
|
|
56
|
-
style: { display: "flex", flexWrap: "wrap", gap: "4px" }
|
|
57
|
-
},
|
|
58
|
-
discount_reason.map((reason, index) => {
|
|
59
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { key: index, color: "red" }, reason);
|
|
60
|
-
})
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}_discount-reason` }, /* @__PURE__ */ import_react.default.createElement("span", null, `${import_utils.locales.getText(
|
|
64
|
-
"pisell2.product.card.discount.reason"
|
|
65
|
-
)}: ${discount_reason}`));
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderDivider(), renderDiscountReason());
|
|
69
|
-
};
|
|
70
|
-
var discountReason_default = DiscountReason;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/productCard/cartSkuCard/components/holders/index.tsx
|
|
30
|
-
var holders_exports = {};
|
|
31
|
-
__export(holders_exports, {
|
|
32
|
-
default: () => holders_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(holders_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_iconfont = __toESM(require("../../../../iconfont"));
|
|
37
|
-
var import__ = require("../../index");
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
var Holders = (props) => {
|
|
40
|
-
const { dataSource = {} } = props;
|
|
41
|
-
const { holders, holder_id } = dataSource;
|
|
42
|
-
if (!holder_id) return null;
|
|
43
|
-
const renderHolder = (id) => {
|
|
44
|
-
if (!id) return null;
|
|
45
|
-
const holder = holders.find((item) => item.id === id);
|
|
46
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: id }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "holder-icon", type: "pisell2-user-check-01" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, (holder == null ? void 0 : holder.label) || id));
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__holders` }, Array.isArray(holder_id) ? holder_id == null ? void 0 : holder_id.map((id) => {
|
|
49
|
-
return renderHolder(id);
|
|
50
|
-
}) : renderHolder(holder_id));
|
|
51
|
-
};
|
|
52
|
-
var holders_default = Holders;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.pisell-cart-sku-card__holders {
|
|
2
|
-
user-select: none;
|
|
3
|
-
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 16px;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
|
|
8
|
-
.holder-item {
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
min-width: 30px;
|
|
14
|
-
|
|
15
|
-
.holder-icon {
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
color: #7f56da;
|
|
18
|
-
margin-right: 2;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.holder-label {
|
|
22
|
-
color: #667085;
|
|
23
|
-
font-size: 14px;
|
|
24
|
-
font-weight: 500;
|
|
25
|
-
line-height: 20px;
|
|
26
|
-
display: inline-block;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/productCard/cartSkuCard/components/packages/index.tsx
|
|
30
|
-
var packages_exports = {};
|
|
31
|
-
__export(packages_exports, {
|
|
32
|
-
default: () => packages_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(packages_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_collapsibleList = __toESM(require("../../../components/Packages/components/collapsibleList"));
|
|
39
|
-
var import_basicInfo = __toESM(require("../basicInfo"));
|
|
40
|
-
var import__ = require("../../index");
|
|
41
|
-
var import_index = require("./index.less");
|
|
42
|
-
var Packages = ({ isShowImage, dataSource = {} }) => {
|
|
43
|
-
const { bundle = [], symbol = "$" } = dataSource;
|
|
44
|
-
return (bundle == null ? void 0 : bundle.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: "4px 0" } }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__packages-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `packages-title` }, import_utils.locales.getText("pisell2.cart.sku-card.packages.title")), /* @__PURE__ */ import_react.default.createElement(
|
|
45
|
-
import_collapsibleList.default,
|
|
46
|
-
{
|
|
47
|
-
style: {
|
|
48
|
-
marginTop: 4
|
|
49
|
-
},
|
|
50
|
-
list: bundle || [],
|
|
51
|
-
renderItem: (item) => {
|
|
52
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
import_basicInfo.default,
|
|
54
|
-
{
|
|
55
|
-
isShowImage,
|
|
56
|
-
dataSource: {
|
|
57
|
-
...item,
|
|
58
|
-
name: item.title,
|
|
59
|
-
image: item.cover,
|
|
60
|
-
symbol
|
|
61
|
-
},
|
|
62
|
-
style: {
|
|
63
|
-
border: "1px solid #D0D5DD",
|
|
64
|
-
borderRadius: 4,
|
|
65
|
-
padding: 4
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
))) : null;
|
|
72
|
-
};
|
|
73
|
-
var packages_default = Packages;
|