@pisell/materials 1.0.446 → 1.0.448
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/browserSelect/chevron-down.png +0 -0
- package/es/components/browserSelect/index.d.ts +15 -0
- package/es/components/browserSelect/index.js +36 -0
- package/es/components/browserSelect/index.less +18 -0
- package/es/components/button/index.js +2 -0
- package/es/components/buttonGroupEdit/index.d.ts +8 -0
- package/es/components/buttonGroupEdit/index.js +411 -0
- package/es/components/buttonGroupPreview/index.d.ts +20 -0
- package/es/components/buttonGroupPreview/index.js +81 -0
- package/es/components/cardPro/index.d.ts +4 -0
- package/es/components/cardPro/index.js +66 -0
- package/es/components/cardPro/index.less +58 -0
- package/es/components/collapse/index.d.ts +6 -0
- package/es/components/collapse/index.js +66 -0
- package/es/components/collapse/index.less +1 -0
- package/es/components/date-picker/constants.d.ts +39 -0
- package/es/components/date-picker/constants.js +76 -0
- package/es/components/date-picker/datePickerCpt.d.ts +8 -0
- package/es/components/date-picker/datePickerCpt.js +370 -0
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/es/components/date-picker/hooks/useMediaQuery.js +28 -0
- package/es/components/date-picker/index.js +2 -2
- package/es/components/date-picker/index.less +1880 -0
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/drag-sort-tree/index.js +2 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/picker-view/index.d.ts +2 -0
- package/es/components/picker-view/index.js +2 -0
- package/es/components/pisellAnchor/index.d.ts +15 -0
- package/es/components/pisellAnchor/index.js +114 -0
- package/es/components/pisellAnchor/index.less +98 -0
- package/es/components/pisellInformationEntry/Input/index.js +9 -3
- package/es/components/pisellInformationEntry/constants.d.ts +10 -0
- package/es/components/pisellInformationEntry/constants.js +10 -0
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +54 -0
- package/es/components/pisellInformationEntry/index.js +21 -4
- package/es/components/pisellInformationEntry/index.less +1 -1
- package/es/components/pisellLoading/index.d.ts +2 -0
- package/es/components/pisellLoading/index.js +3 -1
- package/es/components/pisellQrcode/index.d.ts +4 -0
- package/es/components/pisellQrcode/index.js +75 -0
- package/es/components/pisellQrcode/index.less +41 -0
- package/es/components/pisellStatistic/index.d.ts +10 -0
- package/es/components/pisellStatistic/index.js +26 -0
- package/es/components/pisellStatistic/index.less +14 -0
- package/es/components/pisellTags/index.d.ts +13 -0
- package/es/components/pisellTags/index.js +83 -0
- package/es/components/pisellTags/index.less +17 -0
- package/es/components/pisellTags/utils.d.ts +1 -0
- package/es/components/pisellTags/utils.js +89 -0
- package/es/components/pisellUpload/index.d.ts +11 -0
- package/es/components/pisellUpload/index.js +34 -0
- package/es/components/pisellUpload/index.less +15 -0
- package/es/components/pisellUploadCrop/index.d.ts +3 -0
- package/es/components/pisellUploadCrop/index.js +73 -0
- package/es/components/pisellUploadCrop/index.less +15 -0
- package/es/components/pisellWalletCard/img/drak.png +0 -0
- package/es/components/pisellWalletCard/img/light.png +0 -0
- package/es/components/pisellWalletCard/index.d.ts +4 -0
- package/es/components/pisellWalletCard/index.js +122 -0
- package/es/components/pisellWalletCard/index.less +96 -0
- package/es/components/pisellWalletPassCard/index.d.ts +2 -0
- package/es/components/pisellWalletPassCard/index.js +16 -4
- package/es/components/pisellWalletPassCard/index.less +3 -0
- package/es/components/productCard/components/Actions/index.d.ts +4 -0
- package/es/components/productCard/components/Actions/index.js +20 -0
- package/es/components/productCard/components/Actions/index.less +14 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.js +32 -0
- package/es/components/productCard/components/AmountFooter/index.less +30 -0
- package/es/components/productCard/components/Divider/index.d.ts +4 -0
- package/es/components/productCard/components/Divider/index.js +11 -0
- package/es/components/productCard/components/Divider/index.less +13 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.js +69 -0
- package/es/components/productCard/components/Header/index.less +59 -0
- package/es/components/productCard/components/Holder/index.d.ts +4 -0
- package/es/components/productCard/components/Holder/index.js +11 -0
- package/es/components/productCard/components/Holder/index.less +11 -0
- package/es/components/productCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/components/Note/index.js +17 -0
- package/es/components/productCard/components/Note/index.less +20 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.js +96 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.less +53 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +31 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/options/index.js +23 -0
- package/es/components/productCard/components/Packages/components/options/index.less +28 -0
- package/es/components/productCard/components/Packages/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/index.js +22 -0
- package/es/components/productCard/components/Packages/index.less +17 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Packages/utils.js +40 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Sales/index.js +22 -0
- package/es/components/productCard/components/Sales/index.less +18 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/components/Like/index.js +26 -0
- package/es/components/productCard/components/Time/components/Like/index.less +6 -0
- package/es/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/es/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/components/Time/index.js +30 -0
- package/es/components/productCard/components/Time/index.less +25 -0
- package/es/components/productCard/index.d.ts +5 -0
- package/es/components/productCard/index.js +80 -0
- package/es/components/productCard/index.less +48 -0
- package/es/components/productCard/types.d.ts +10 -0
- package/es/components/productCard/types.js +1 -0
- package/es/components/productCard/utils.d.ts +162 -0
- package/es/components/productCard/utils.js +683 -0
- package/es/components/record-view/index.d.ts +3 -3
- package/es/components/record-view/index.js +23 -16
- package/es/components/section-footers/index.d.ts +8 -0
- package/es/components/section-footers/index.js +16 -0
- package/es/components/select-time/RightPanel/index.d.ts +2 -2
- package/es/components/select-time/RightPanel/index.js +7 -7
- package/es/components/table/Actions/component/ExportImport/index.js +3 -3
- package/es/components/table/BasicTable/index.js +7 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/es/components/table/Gallery/components/GalleryItem/index.js +10 -3
- package/es/components/table/Gallery/components/GalleryItem/index.less +1 -0
- package/es/components/table/Gallery/index.js +14 -4
- package/es/components/table/Table/index.js +2 -1
- package/es/components/table/Table/utils.d.ts +15 -3
- package/es/components/table/Table/utils.js +6 -2
- package/es/components/table/hooks/useTableSetting.js +26 -5
- package/es/components/table/hooks/useTransDataSource.d.ts +1 -0
- package/es/components/table/hooks/useTransDataSource.js +6 -4
- package/es/components/table/types.d.ts +2 -0
- package/es/components/tabs/index.d.ts +1 -0
- package/es/components/tabs/index.js +33 -11
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Keyboard/index.js +10 -2
- package/es/index.d.ts +18 -4
- package/es/index.js +20 -3
- package/es/locales/en-US.d.ts +14 -0
- package/es/locales/en-US.js +16 -1
- package/es/locales/zh-CN.d.ts +14 -0
- package/es/locales/zh-CN.js +16 -1
- package/es/locales/zh-TW.d.ts +14 -0
- package/es/locales/zh-TW.js +16 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +4 -1
- package/lib/components/browserSelect/chevron-down.png +0 -0
- package/lib/components/browserSelect/index.d.ts +15 -0
- package/lib/components/browserSelect/index.js +59 -0
- package/lib/components/browserSelect/index.less +18 -0
- package/lib/components/button/index.js +2 -0
- package/lib/components/buttonGroupEdit/index.d.ts +8 -0
- package/lib/components/buttonGroupEdit/index.js +234 -0
- package/lib/components/buttonGroupPreview/index.d.ts +20 -0
- package/lib/components/buttonGroupPreview/index.js +65 -0
- package/lib/components/cardPro/index.d.ts +4 -0
- package/lib/components/cardPro/index.js +60 -0
- package/lib/components/cardPro/index.less +58 -0
- package/lib/components/collapse/index.d.ts +6 -0
- package/lib/components/collapse/index.js +88 -0
- package/lib/components/collapse/index.less +1 -0
- package/lib/components/date-picker/constants.d.ts +39 -0
- package/lib/components/date-picker/constants.js +78 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
- package/lib/components/date-picker/datePickerCpt.js +403 -0
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/lib/components/date-picker/hooks/useMediaQuery.js +43 -0
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-picker/index.less +1880 -0
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/index.js +0 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/picker-view/index.d.ts +2 -0
- package/lib/components/picker-view/index.js +36 -0
- package/lib/components/pisellAnchor/index.d.ts +15 -0
- package/lib/components/pisellAnchor/index.js +107 -0
- package/lib/components/pisellAnchor/index.less +98 -0
- package/lib/components/pisellInformationEntry/Input/index.js +9 -1
- package/lib/components/pisellInformationEntry/constants.d.ts +10 -0
- package/lib/components/pisellInformationEntry/constants.js +12 -0
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +83 -0
- package/lib/components/pisellInformationEntry/index.js +18 -2
- package/lib/components/pisellInformationEntry/index.less +1 -1
- package/lib/components/pisellLoading/index.d.ts +2 -0
- package/lib/components/pisellLoading/index.js +2 -1
- package/lib/components/pisellQrcode/index.d.ts +4 -0
- package/lib/components/pisellQrcode/index.js +79 -0
- package/lib/components/pisellQrcode/index.less +41 -0
- package/lib/components/pisellStatistic/index.d.ts +10 -0
- package/lib/components/pisellStatistic/index.js +51 -0
- package/lib/components/pisellStatistic/index.less +14 -0
- package/lib/components/pisellTags/index.d.ts +13 -0
- package/lib/components/pisellTags/index.js +113 -0
- package/lib/components/pisellTags/index.less +17 -0
- package/lib/components/pisellTags/utils.d.ts +1 -0
- package/lib/components/pisellTags/utils.js +86 -0
- package/lib/components/pisellUpload/index.d.ts +11 -0
- package/lib/components/pisellUpload/index.js +53 -0
- package/lib/components/pisellUpload/index.less +15 -0
- package/lib/components/pisellUploadCrop/index.d.ts +3 -0
- package/lib/components/pisellUploadCrop/index.js +75 -0
- package/lib/components/pisellUploadCrop/index.less +15 -0
- package/lib/components/pisellWalletCard/img/drak.png +0 -0
- package/lib/components/pisellWalletCard/img/light.png +0 -0
- package/lib/components/pisellWalletCard/index.d.ts +4 -0
- package/lib/components/pisellWalletCard/index.js +184 -0
- package/lib/components/pisellWalletCard/index.less +96 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
- package/lib/components/pisellWalletPassCard/index.js +8 -4
- package/lib/components/pisellWalletPassCard/index.less +3 -0
- package/lib/components/productCard/components/Actions/index.d.ts +4 -0
- package/lib/components/productCard/components/Actions/index.js +54 -0
- package/lib/components/productCard/components/Actions/index.less +14 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.js +61 -0
- package/lib/components/productCard/components/AmountFooter/index.less +30 -0
- package/lib/components/productCard/components/Divider/index.d.ts +4 -0
- package/lib/components/productCard/components/Divider/index.js +50 -0
- package/lib/components/productCard/components/Divider/index.less +13 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.js +81 -0
- package/lib/components/productCard/components/Header/index.less +59 -0
- package/lib/components/productCard/components/Holder/index.d.ts +4 -0
- package/lib/components/productCard/components/Holder/index.js +42 -0
- package/lib/components/productCard/components/Holder/index.less +11 -0
- package/lib/components/productCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/components/Note/index.js +43 -0
- package/lib/components/productCard/components/Note/index.less +20 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.js +93 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.less +53 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +48 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/options/index.js +73 -0
- package/lib/components/productCard/components/Packages/components/options/index.less +28 -0
- package/lib/components/productCard/components/Packages/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/index.js +51 -0
- package/lib/components/productCard/components/Packages/index.less +17 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Packages/utils.js +44 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Sales/index.js +51 -0
- package/lib/components/productCard/components/Sales/index.less +18 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/components/Like/index.js +64 -0
- package/lib/components/productCard/components/Time/components/Like/index.less +6 -0
- package/lib/components/productCard/components/Time/components/Like/like-heart.png +0 -0
- package/lib/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/index.js +57 -0
- package/lib/components/productCard/components/Time/index.less +25 -0
- package/lib/components/productCard/index.d.ts +5 -0
- package/lib/components/productCard/index.js +101 -0
- package/lib/components/productCard/index.less +48 -0
- package/lib/components/productCard/types.d.ts +10 -0
- package/lib/components/productCard/types.js +17 -0
- package/lib/components/productCard/utils.d.ts +162 -0
- package/lib/components/productCard/utils.js +598 -0
- package/lib/components/record-view/index.d.ts +3 -3
- package/lib/components/record-view/index.js +19 -3
- package/lib/components/section-footers/index.d.ts +8 -0
- package/lib/components/section-footers/index.js +39 -0
- package/lib/components/select-time/RightPanel/index.d.ts +2 -2
- package/lib/components/table/Actions/component/ExportImport/index.js +3 -4
- package/lib/components/table/BasicTable/index.js +5 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.js +18 -4
- package/lib/components/table/Gallery/components/GalleryItem/index.less +1 -0
- package/lib/components/table/Gallery/index.js +14 -3
- package/lib/components/table/Table/index.js +2 -1
- package/lib/components/table/Table/utils.d.ts +15 -3
- package/lib/components/table/Table/utils.js +7 -1
- package/lib/components/table/hooks/useTableSetting.js +23 -9
- package/lib/components/table/hooks/useTransDataSource.d.ts +1 -0
- package/lib/components/table/hooks/useTransDataSource.js +5 -4
- package/lib/components/table/types.d.ts +2 -0
- package/lib/components/tabs/index.d.ts +1 -0
- package/lib/components/tabs/index.js +36 -6
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Keyboard/index.js +15 -2
- package/lib/index.d.ts +18 -4
- package/lib/index.js +76 -34
- package/lib/locales/en-US.d.ts +14 -0
- package/lib/locales/en-US.js +16 -1
- package/lib/locales/zh-CN.d.ts +14 -0
- package/lib/locales/zh-CN.js +16 -1
- package/lib/locales/zh-TW.d.ts +14 -0
- package/lib/locales/zh-TW.js +16 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +7 -2
- package/lowcode/badge/meta.ts +8 -8
- package/lowcode/collapse/meta.ts +85 -1
- package/lowcode/pisell-anchor/meta.ts +127 -0
- package/lowcode/pisell-anchor/snippets.ts +20 -0
- package/lowcode/pisell-qrcode/__screenshots__/upload-1.png +0 -0
- package/lowcode/pisell-qrcode/meta.ts +46 -0
- package/lowcode/pisell-qrcode/snippets.ts +12 -0
- package/lowcode/pisell-statistic/meta.ts +83 -0
- package/lowcode/pisell-statistic/snippets.ts +13 -0
- package/lowcode/pisell-tooltip/meta.ts +1 -1
- package/lowcode/pisell-upload/__screenshots__/upload-1.png +0 -0
- package/lowcode/pisell-upload/meta.ts +508 -0
- package/lowcode/pisell-upload/snippets.ts +20 -0
- package/lowcode/pisell-upload-crop/meta.ts +77 -0
- package/lowcode/pisell-upload-crop/snippe.ts +12 -0
- package/lowcode/pisell-wallet-card/meta.ts +141 -0
- package/lowcode/pisell-wallet-card/snippets.ts +26 -0
- package/lowcode/product-card/meta.ts +92 -0
- package/lowcode/product-card/snippets.ts +15 -0
- package/lowcode/record-view/meta.ts +12 -0
- package/lowcode/section-footers/meta.ts +47 -3
- package/lowcode/section-footers/snippe.ts +14 -1
- package/lowcode/statistic/meta.ts +1 -1
- package/lowcode/tabs/meta.ts +51 -51
- package/lowcode/tabs/snippets.ts +36 -36
- package/lowcode/tag/meta.ts +6 -0
- package/lowcode/timeline/meta.ts +12 -3
- package/lowcode/timeline/snippets.ts +2 -0
- package/lowcode/timeline.item/meta.ts +1 -1
- package/package.json +30 -25
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
.pisell-wallet-card-wrapper {
|
|
2
|
+
.pisell-lowcode-card-body {
|
|
3
|
+
padding: 0;
|
|
4
|
+
p {
|
|
5
|
+
margin: 0;
|
|
6
|
+
}
|
|
7
|
+
.pisell-wallet-card-content {
|
|
8
|
+
padding: 16px 18px 16px;
|
|
9
|
+
|
|
10
|
+
background-position: top center;
|
|
11
|
+
background-size: cover;
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
|
|
14
|
+
&.dark {
|
|
15
|
+
.pisell-wallet-card-header-left {
|
|
16
|
+
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
.pisell-wallet-card-row {
|
|
19
|
+
div p:first-child {
|
|
20
|
+
color: #eaecf0;
|
|
21
|
+
}
|
|
22
|
+
div p:last-child {
|
|
23
|
+
color: #fff;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.light {
|
|
29
|
+
.pisell-wallet-card-header-left {
|
|
30
|
+
color: #101828;
|
|
31
|
+
}
|
|
32
|
+
.pisell-wallet-card-row {
|
|
33
|
+
div p:first-child {
|
|
34
|
+
color: #667085;
|
|
35
|
+
}
|
|
36
|
+
div p:last-child {
|
|
37
|
+
color: #101828;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pisell-wallet-card-header {
|
|
43
|
+
.pisell-wallet-card-header-left {
|
|
44
|
+
font-family: Inter;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
line-height: 18px; /* 150% */
|
|
49
|
+
.pisell-wallet-card-header-level-text {
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
line-height: 20px; /* 142.857% */
|
|
53
|
+
}
|
|
54
|
+
.pisell-wallet-card-header-icon {
|
|
55
|
+
width: 20px;
|
|
56
|
+
height: 20px;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.pisell-wallet-card-header-right {
|
|
61
|
+
.pisell-wallet-card-icon {
|
|
62
|
+
font-size: 40px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.pisell-wallet-card-list {
|
|
68
|
+
width: 100%;
|
|
69
|
+
margin-top: 20px;
|
|
70
|
+
.pisell-wallet-card-row {
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 50px;
|
|
73
|
+
margin-top: 10px;
|
|
74
|
+
div p:first-child {
|
|
75
|
+
font-family: Inter;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
line-height: 20px; /* 142.857% */
|
|
80
|
+
}
|
|
81
|
+
div p:last-child {
|
|
82
|
+
font-family: Inter;
|
|
83
|
+
font-size: 20px;
|
|
84
|
+
font-style: normal;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
line-height: 30px; /* 150% */
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.pisell-wallet-card-showCode {
|
|
92
|
+
padding: 20px;
|
|
93
|
+
background-color: #fff;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -42,10 +42,16 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
42
42
|
_props$showQrCode = props.showQrCode,
|
|
43
43
|
showQrCode = _props$showQrCode === void 0 ? true : _props$showQrCode,
|
|
44
44
|
_props$showBalanceSym = props.showBalanceSymbol,
|
|
45
|
-
showBalanceSymbol = _props$showBalanceSym === void 0 ? true : _props$showBalanceSym
|
|
45
|
+
showBalanceSymbol = _props$showBalanceSym === void 0 ? true : _props$showBalanceSym,
|
|
46
|
+
_props$showDisabledRe = props.showDisabledReason,
|
|
47
|
+
showDisabledReason = _props$showDisabledRe === void 0 ? true : _props$showDisabledRe,
|
|
48
|
+
_props$showDiscount = props.showDiscount,
|
|
49
|
+
showDiscount = _props$showDiscount === void 0 ? false : _props$showDiscount,
|
|
50
|
+
discount = props.discount;
|
|
46
51
|
return /*#__PURE__*/React.createElement("div", {
|
|
47
52
|
className: classNames('pisell-wallet-pass-card', {
|
|
48
|
-
'pisell-card-disabled': disabled
|
|
53
|
+
'pisell-card-disabled': disabled,
|
|
54
|
+
'pisell-card-disabled-hide-disabled-reason': disabled && !showDisabledReason
|
|
49
55
|
}),
|
|
50
56
|
style: showCover ? {
|
|
51
57
|
backgroundImage: "url('".concat(cover || 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARC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AAAAAAAAAAAAAAAAAAAAAAh/wARRP8AlWS9etLVtHwmF1Zi1YtE8pjkm4zWLcK1ET+qmWmitNtFhtPWcVZn5LwagIAAI+P45ycIzxXrWsW+UxKrDkjLirlj71Ynkz4hWL6DPW3ScVv4S54TabcMwTb9VEfuXgoAQAATcZxd9wvPSP1cz8uf5NNDl7/RYc2+/axVn9zTJWt8dqWjlMTEo/8AD1ptwbBNp8Jj/tK8FoCAADPWYfpGky4Ijft47RHv2Y8Ezd/wrBfyx9mfhy/JUg4D6OLUYa+rj1d61jyheC8BAAAmItExMbxMc4QcBmcelyaG0+lp81qfDfeJ/evQaee7/wAQajHTlGTBW9o9sTsvBeAgAAILT9A43Fp5Y9XXaZ8IvH9YXov8QUi3C75d5i2KYvS0eExKwWjjTZLZtNjy262pEzt7naAAAAAAAAAAAAAAAAAAAgrP0/jk233x6Om0e29v7LNTkth02TLXrWkzG/uS8Ax1pwymXnNsszfJaeszMqLQEAABDx+05NNj0NZ56jNWnw33mVyDUfWf4gwUvzjHgtese2Z2WC+IiI2iIiNuWwCAAAl41mjBwrPffrSaxt5zy/NUh4/zw6fFPq5NXSto845/0WbFWjw/R9JiwbbdjHWJ98Q0BAAAZa7L3OizZd9uzjtMfJqi/wAQ2tTg+eaz4RHzmIWbGnBsXc8LwU8e7ifnzUvMdYpjrSvSIiIep0AAHObJGLFbJP3azO7pPxa004ZqLVnn3Nv4EGfAKTj4RhiZ6xMz8ZmVjHh9YpoMFaxyjFX+ENigAA8tMVrNp6RHN6y10zXRZrRPOMVtvkCb/DsT/lOO9ut5taf/AOpXJeDRFeFaeI/VwqW7ABAAAAAAAAAAAAAAAAAAB//Z', "')")
|
|
@@ -73,7 +79,13 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
73
79
|
useThousandsSeparator: true,
|
|
74
80
|
value: balance,
|
|
75
81
|
showCurrencySymbol: showBalanceSymbol
|
|
76
|
-
}))
|
|
82
|
+
})), showDiscount && /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: "pisell-card-amount-item"
|
|
84
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
className: "pisell-card-amount-item-label"
|
|
86
|
+
}, getText('pisell-discount-card-title')), /*#__PURE__*/React.createElement("div", {
|
|
87
|
+
className: "pisell-card-amount-item-value"
|
|
88
|
+
}, discount, "% ", getText('pisell-discount-card-unit')))), /*#__PURE__*/React.createElement("div", {
|
|
77
89
|
className: "pisell-card-code-wrap"
|
|
78
90
|
}, /*#__PURE__*/React.createElement("div", {
|
|
79
91
|
className: "pisell-card-code"
|
|
@@ -83,7 +95,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
83
95
|
value: qrCode,
|
|
84
96
|
preview: true,
|
|
85
97
|
size: 60
|
|
86
|
-
}))), (disabled || disabledReason) && /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
}))), (disabled || disabledReason) && showDisabledReason && /*#__PURE__*/React.createElement("div", {
|
|
87
99
|
className: "pisell-card-warn-message"
|
|
88
100
|
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
89
101
|
className: "pisell-card-icon",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { Button } from 'antd';
|
|
4
|
+
import "./index.less";
|
|
5
|
+
var prefix = 'pisell-lowcode-';
|
|
6
|
+
var Actions = function Actions(_ref) {
|
|
7
|
+
var item = _ref.item;
|
|
8
|
+
return item !== null && item !== void 0 && item.actionText ? /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: classNames("".concat(prefix, "product-actions"))
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
11
|
+
className: classNames("".concat(prefix, "product-actions-item")),
|
|
12
|
+
size: "large",
|
|
13
|
+
onClick: function onClick(e) {
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
e.stopPropagation();
|
|
16
|
+
// onAddTime();
|
|
17
|
+
}
|
|
18
|
+
}, item.actionText)) : null;
|
|
19
|
+
};
|
|
20
|
+
export default Actions;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { _formatAmount } from "../Packages/utils";
|
|
4
|
+
import Divider from "../Divider";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var prefix = 'pisell-lowcode-';
|
|
7
|
+
var Footer = function Footer(_ref) {
|
|
8
|
+
var item = _ref.item,
|
|
9
|
+
amountSymbol = _ref.amountSymbol,
|
|
10
|
+
hideDivider = _ref.hideDivider;
|
|
11
|
+
/**
|
|
12
|
+
* @title: 折扣
|
|
13
|
+
* @description:
|
|
14
|
+
* @param {*} useMemo
|
|
15
|
+
* @return {*}
|
|
16
|
+
* @Author: WangHan
|
|
17
|
+
* @Date: 2024-11-22 13:50
|
|
18
|
+
*/
|
|
19
|
+
var isDiscount = useMemo(function () {
|
|
20
|
+
// item中没有该属性则不展示
|
|
21
|
+
if (!(item !== null && item !== void 0 && item.hasOwnProperty('origin_total'))) return false;
|
|
22
|
+
return Number(item === null || item === void 0 ? void 0 : item.total) != Number(item === null || item === void 0 ? void 0 : item.origin_total);
|
|
23
|
+
}, [item]);
|
|
24
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !hideDivider ? /*#__PURE__*/React.createElement(Divider, null) : null, /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: classNames("".concat(prefix, "packages-product-footer"), hideDivider && "".concat(prefix, "packages-product-hide-divider-footer"))
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, _formatAmount(item === null || item === void 0 ? void 0 : item.total, amountSymbol)), /*#__PURE__*/React.createElement("span", null, "\xD7".concat(item === null || item === void 0 ? void 0 : item.num)), /*#__PURE__*/React.createElement("span", {
|
|
27
|
+
className: "".concat(prefix, "packages-product-footer-total")
|
|
28
|
+
}, "".concat(amountSymbol, " ").concat(_formatAmount((item === null || item === void 0 ? void 0 : item.total) * (item === null || item === void 0 ? void 0 : item.num))))), isDiscount ? /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: "".concat(prefix, "packages-product-footer-discount")
|
|
30
|
+
}, /*#__PURE__*/React.createElement("span", null, _formatAmount(item === null || item === void 0 ? void 0 : item.origin_total, amountSymbol)), /*#__PURE__*/React.createElement("span", null, "".concat(amountSymbol, " ").concat(_formatAmount((item === null || item === void 0 ? void 0 : item.origin_total) * (item === null || item === void 0 ? void 0 : item.num))))) : null));
|
|
31
|
+
};
|
|
32
|
+
export default Footer;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@pisell-prefix: pisell-lowcode;
|
|
2
|
+
|
|
3
|
+
.@{pisell-prefix} {
|
|
4
|
+
&-packages-product-footer {
|
|
5
|
+
color: var(--Gray-500, #667085);
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
line-height: 20px;
|
|
10
|
+
> div {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-packages-product-footer-discount {
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
line-height: 18px;
|
|
20
|
+
text-decoration-line: line-through;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-packages-product-footer-total {
|
|
24
|
+
color: var(--Gray-900, #101828);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-packages-product-hide-divider-footer {
|
|
28
|
+
margin-top: 8px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import "./index.less";
|
|
4
|
+
var prefix = 'pisell-lowcode-';
|
|
5
|
+
var Divider = function Divider(_ref) {
|
|
6
|
+
var type = _ref.type;
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: classNames("".concat(prefix, "product-divider"), type === 'inside' && "".concat(prefix, "product-divider-inside"))
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
export default Divider;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Button } from 'antd';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import Iconfont from "../../../iconfont";
|
|
5
|
+
import { image, formatAmount } from '@pisell/utils';
|
|
6
|
+
import Options from "../Packages/components/options";
|
|
7
|
+
import "./index.less";
|
|
8
|
+
var prefix = 'pisell-lowcode-';
|
|
9
|
+
var Header = function Header(_ref) {
|
|
10
|
+
var isShowDelete = _ref.isShowDelete,
|
|
11
|
+
d = _ref.d,
|
|
12
|
+
showImage = _ref.showImage;
|
|
13
|
+
console.log(d, showImage, 'wh8888');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @title: 是否显示价格
|
|
17
|
+
* @description:
|
|
18
|
+
* @param {*} useMemo
|
|
19
|
+
* @return {*}
|
|
20
|
+
* @Author: WangHan
|
|
21
|
+
* @Date: 2024-11-23 16:13
|
|
22
|
+
*/
|
|
23
|
+
var showPrice = useMemo(function () {
|
|
24
|
+
var _d$bundle, _d$options;
|
|
25
|
+
return (d === null || d === void 0 ? void 0 : (_d$bundle = d.bundle) === null || _d$bundle === void 0 ? void 0 : _d$bundle.length) > 0 || (d === null || d === void 0 ? void 0 : (_d$options = d.options) === null || _d$options === void 0 ? void 0 : _d$options.length) > 0;
|
|
26
|
+
}, [d === null || d === void 0 ? void 0 : d.bundle]);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @title: 样式是否居中
|
|
30
|
+
* @description:
|
|
31
|
+
* @param {*} useMemo
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: WangHan
|
|
34
|
+
* @Date: 2024-11-23 17:37
|
|
35
|
+
*/
|
|
36
|
+
var headerCenterStyle = useMemo(function () {
|
|
37
|
+
var _d$options2;
|
|
38
|
+
return (d === null || d === void 0 ? void 0 : (_d$options2 = d.options) === null || _d$options2 === void 0 ? void 0 : _d$options2.length) > 0 || (d === null || d === void 0 ? void 0 : d.product_option_string);
|
|
39
|
+
}, [d === null || d === void 0 ? void 0 : d.options]);
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: classNames("".concat(prefix, "product-header"), headerCenterStyle && "".concat(prefix, "product-options-header"))
|
|
42
|
+
}, isShowDelete ? /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "".concat(prefix, "product-delete"),
|
|
44
|
+
onClick: function onClick(e) {
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
// handleDeleteService(d);
|
|
47
|
+
}
|
|
48
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
49
|
+
type: "text",
|
|
50
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
51
|
+
type: "pisell2-trash-01"
|
|
52
|
+
})
|
|
53
|
+
})) : null, showImage ? /*#__PURE__*/React.createElement("img", {
|
|
54
|
+
src: image.ali(d === null || d === void 0 ? void 0 : d.product_cover, 100),
|
|
55
|
+
className: "".concat(prefix, "product-header-cover")
|
|
56
|
+
}) : null, d !== null && d !== void 0 && d.id ? /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: "".concat(prefix, "product-right-wrap")
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "".concat(prefix, "product-title")
|
|
60
|
+
}, /*#__PURE__*/React.createElement("span", null, d === null || d === void 0 ? void 0 : d.title), showPrice ? /*#__PURE__*/React.createElement("span", {
|
|
61
|
+
className: "".concat(prefix, "product-title-price")
|
|
62
|
+
}, formatAmount(d === null || d === void 0 ? void 0 : d.price, 2, d === null || d === void 0 ? void 0 : d.symbol)) : null), d !== null && d !== void 0 && d.product_option_string ? /*#__PURE__*/React.createElement("span", {
|
|
63
|
+
className: "".concat(prefix, "product-title-variant")
|
|
64
|
+
}, d === null || d === void 0 ? void 0 : d.product_option_string) : null, /*#__PURE__*/React.createElement(Options, {
|
|
65
|
+
options: d === null || d === void 0 ? void 0 : d.options,
|
|
66
|
+
amountSymbol: d === null || d === void 0 ? void 0 : d.symbol
|
|
67
|
+
})) : null);
|
|
68
|
+
};
|
|
69
|
+
export default Header;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@pisell-prefix: pisell-lowcode;
|
|
2
|
+
|
|
3
|
+
.@{pisell-prefix} {
|
|
4
|
+
&-product-header {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: 8px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-product-options-header {
|
|
11
|
+
align-items: initial;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-product-delete {
|
|
15
|
+
position: absolute;
|
|
16
|
+
padding: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-product-header-cover {
|
|
23
|
+
width: 64px;
|
|
24
|
+
height: 64px;
|
|
25
|
+
object-fit: cover;
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-product-right-wrap {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
flex: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-product-title {
|
|
37
|
+
color: var(--gray-900, #101828);
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
line-height: 24px;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-product-title-price {
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
line-height: 20px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-product-title-variant {
|
|
53
|
+
color: var(--Gray-500, #667085);
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
line-height: 20px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Divider from "../Divider";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
var prefix = 'pisell-lowcode-';
|
|
5
|
+
var Holder = function Holder(_ref) {
|
|
6
|
+
var d = _ref.d;
|
|
7
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: "".concat(prefix, "product-holder-wrap")
|
|
9
|
+
}, d === null || d === void 0 ? void 0 : d.holder));
|
|
10
|
+
};
|
|
11
|
+
export default Holder;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import Divider from "../Divider";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
var prefix = 'pisell-lowcode-';
|
|
6
|
+
var Note = function Note(_ref) {
|
|
7
|
+
var item = _ref.item,
|
|
8
|
+
type = _ref.type;
|
|
9
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
10
|
+
type: type
|
|
11
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: classNames("".concat(prefix, "product-note-wrap"))
|
|
13
|
+
}, item !== null && item !== void 0 && item.note ? /*#__PURE__*/React.createElement("div", null, "Note: ", item.note) : null, /*#__PURE__*/React.createElement("span", {
|
|
14
|
+
className: "".concat(prefix, "product-note-btn")
|
|
15
|
+
}, item !== null && item !== void 0 && item.note ? 'Edit note' : 'Add note')));
|
|
16
|
+
};
|
|
17
|
+
export default Note;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@pisell-prefix: pisell-lowcode;
|
|
2
|
+
|
|
3
|
+
.@{pisell-prefix} {
|
|
4
|
+
&-product-note-wrap {
|
|
5
|
+
display: flex;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
color: var(--Gray-900, #101828);
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-product-note-btn {
|
|
15
|
+
color: var(--Blue-600, #1570ef);
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface CollapsibleListProps<T> {
|
|
4
|
+
list: T[];
|
|
5
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
|
|
10
|
+
export default CollapsibleList;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import React, { useState, useMemo } from 'react';
|
|
12
|
+
import { locales } from '@pisell/utils';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import "./index.less";
|
|
15
|
+
var MAX_LIMIT = 3;
|
|
16
|
+
var CollapsibleList = function CollapsibleList(props) {
|
|
17
|
+
var _props$list = props.list,
|
|
18
|
+
list = _props$list === void 0 ? [] : _props$list,
|
|
19
|
+
renderItem = props.renderItem,
|
|
20
|
+
className = props.className,
|
|
21
|
+
style = props.style;
|
|
22
|
+
var _useState = useState(MAX_LIMIT),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
maxLimit = _useState2[0],
|
|
25
|
+
setMaxLimit = _useState2[1];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @title: 展开和收起
|
|
29
|
+
* @description:
|
|
30
|
+
* @param {any} d
|
|
31
|
+
* @return {*}
|
|
32
|
+
* @Author: zhiwei.Wang
|
|
33
|
+
* @Date: 2024-01-30 17:08
|
|
34
|
+
*/
|
|
35
|
+
var handlePreviewAll = function handlePreviewAll() {
|
|
36
|
+
var _maxLimit = maxLimit;
|
|
37
|
+
if (_maxLimit === MAX_LIMIT) {
|
|
38
|
+
_maxLimit = 99;
|
|
39
|
+
} else {
|
|
40
|
+
_maxLimit = MAX_LIMIT;
|
|
41
|
+
}
|
|
42
|
+
setMaxLimit(_maxLimit);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @title: 是否展开全部
|
|
47
|
+
* @description:
|
|
48
|
+
* @param {*} useMemo
|
|
49
|
+
* @return {*}
|
|
50
|
+
* @Author: zhiwei.Wang
|
|
51
|
+
* @Date: 2024-01-30 17:08
|
|
52
|
+
*/
|
|
53
|
+
var showAll = useMemo(function () {
|
|
54
|
+
return list.length > MAX_LIMIT;
|
|
55
|
+
}, [list]);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @title: 展开文案
|
|
59
|
+
* @description:
|
|
60
|
+
* @return {*}
|
|
61
|
+
* @Author: zhiwei.Wang
|
|
62
|
+
* @Date: 2024-01-30 17:08
|
|
63
|
+
*/
|
|
64
|
+
var viewAllText = useMemo(function () {
|
|
65
|
+
var _maxLimit = maxLimit;
|
|
66
|
+
if (_maxLimit === MAX_LIMIT) {
|
|
67
|
+
return locales.getText('pisell2.text.view-all');
|
|
68
|
+
}
|
|
69
|
+
return locales.getText('pisell2.text.view-less');
|
|
70
|
+
}, [maxLimit]);
|
|
71
|
+
var _list = useMemo(function () {
|
|
72
|
+
var arr = _toConsumableArray(list);
|
|
73
|
+
// 默认展示3条, 点击更多时展示全部
|
|
74
|
+
var _maxLimit = maxLimit;
|
|
75
|
+
if (list.length > _maxLimit) {
|
|
76
|
+
arr = arr.slice(0, _maxLimit);
|
|
77
|
+
}
|
|
78
|
+
return arr;
|
|
79
|
+
}, [list, maxLimit]);
|
|
80
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: classNames('pisell2-collapsible-list-wrap', className),
|
|
82
|
+
style: style
|
|
83
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
className: "pisell2-collapsible-list"
|
|
85
|
+
}, _list.map(function (d, i) {
|
|
86
|
+
return renderItem(d, i);
|
|
87
|
+
})), showAll ? /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
className: "pisell2-collapsible-list-view-all",
|
|
89
|
+
onClick: function onClick(e) {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
e.stopPropagation();
|
|
92
|
+
handlePreviewAll();
|
|
93
|
+
}
|
|
94
|
+
}, viewAllText) : null);
|
|
95
|
+
};
|
|
96
|
+
export default CollapsibleList;
|