@pisell/materials 2.2.13 → 2.2.14
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 +13 -13
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +29 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +22 -20
- package/es/components/button/index.d.ts +4 -3
- package/es/components/button/index.js +14 -3
- package/es/components/iconfont/index.d.ts +2 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/page/index.css +0 -0
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +226 -186
- package/es/components/pisell-config-provider/context.d.ts +20 -0
- package/es/components/pisell-config-provider/context.js +36 -0
- package/es/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
- package/es/components/pisell-config-provider/hooks/usePisellConfig.js +11 -0
- package/es/components/pisell-config-provider/index.d.ts +12 -0
- package/es/components/pisell-config-provider/index.js +36 -0
- package/es/components/pisellAlert/index.d.ts +22 -0
- package/es/components/pisellAlert/index.js +73 -0
- package/es/components/pisellAlert/index.less +149 -0
- package/es/components/pisellCard/index.d.ts +12 -0
- package/es/components/pisellCard/index.js +16 -0
- package/es/components/pisellCard/index.less +9 -0
- package/es/components/pisellCardList/index.d.ts +43 -0
- package/es/components/pisellCardList/index.js +72 -0
- package/es/components/pisellCardList/index.less +75 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +34 -0
- package/es/components/pisellCheckboxGroup/index.js +173 -0
- package/es/components/pisellCheckboxGroup/index.less +36 -0
- package/es/components/pisellCheckboxGroup/mock.d.ts +4 -0
- package/es/components/pisellCheckboxGroup/mock.js +16 -0
- package/es/components/pisellContainer/components/Portal/index.d.ts +10 -0
- package/es/components/pisellContainer/components/Portal/index.js +7 -0
- package/es/components/pisellContainer/containers.d.ts +1 -0
- package/es/components/pisellContainer/containers.js +8 -0
- package/es/components/pisellContainer/index.d.ts +22 -0
- package/es/components/pisellContainer/index.js +19 -0
- package/es/components/pisellCountdown/index.d.ts +24 -0
- package/es/components/pisellCountdown/index.js +44 -0
- package/es/components/pisellCountdown/utils.d.ts +7 -0
- package/es/components/pisellCountdown/utils.js +50 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +22 -0
- package/es/components/pisellDatePicker/datePickerCpt.js +191 -0
- package/es/components/pisellDatePicker/detePickerCpt.less +22 -0
- package/es/components/pisellDatePicker/index.d.ts +3 -0
- package/es/components/pisellDatePicker/index.js +17 -0
- package/es/components/pisellEmpty/index.d.ts +16 -0
- package/es/components/pisellEmpty/index.js +38 -0
- package/es/components/pisellEmpty/index.less +34 -0
- package/es/components/pisellInformationEntry/Input/index.d.ts +8 -0
- package/es/components/pisellInformationEntry/Input/index.js +50 -0
- package/es/components/pisellInformationEntry/Input/index.less +14 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +8 -0
- package/es/components/pisellInformationEntry/Scan/index.js +25 -0
- package/es/components/pisellInformationEntry/Scan/index.less +8 -0
- package/es/components/pisellInformationEntry/constants.d.ts +3 -0
- package/es/components/pisellInformationEntry/constants.js +21 -0
- package/es/components/pisellInformationEntry/index.d.ts +31 -0
- package/es/components/pisellInformationEntry/index.js +188 -0
- package/es/components/pisellInformationEntry/index.less +40 -0
- package/es/components/pisellInformationEntry/utils.d.ts +4 -0
- package/es/components/pisellInformationEntry/utils.js +38 -0
- package/es/components/pisellInput/components/BankCard/cardPng/AMEX.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/Discover.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/JCB.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/MasterCard.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/UnionPay.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/VISA.png +0 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +11 -0
- package/es/components/pisellInput/components/BankCard/index.js +82 -0
- package/es/components/pisellInput/components/BankCard/index.less +4 -0
- package/es/components/pisellInput/components/BankCard/utils.d.ts +11 -0
- package/es/components/pisellInput/components/BankCard/utils.js +65 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +11 -0
- package/es/components/pisellInput/components/Copy/index.js +53 -0
- package/es/components/pisellInput/components/SecurityCode/card.png +0 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +12 -0
- package/es/components/pisellInput/components/SecurityCode/index.js +46 -0
- package/es/components/pisellInput/components/SecurityCode/index.less +4 -0
- package/es/components/pisellInput/index.d.ts +13 -0
- package/es/components/pisellInput/index.js +15 -0
- package/es/components/pisellLoading/index.d.ts +18 -0
- package/es/components/pisellLoading/index.js +45 -0
- package/es/components/pisellLoading/index.less +35 -0
- package/es/components/pisellMessage/index.d.ts +4 -0
- package/es/components/pisellMessage/index.js +5 -0
- package/es/components/pisellModal/components/Information/index.d.ts +21 -0
- package/es/components/pisellModal/components/Information/index.js +25 -0
- package/es/components/pisellModal/components/Information/index.less +16 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +6 -0
- package/es/components/pisellModal/components/IpadModal/index.js +6 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +9 -0
- package/es/components/pisellModal/components/MobileModal/index.js +27 -0
- package/es/components/pisellModal/components/MobileModal/index.less +60 -0
- package/es/components/pisellModal/components/PcModal/index.d.ts +30 -0
- package/es/components/pisellModal/components/PcModal/index.js +129 -0
- package/es/components/pisellModal/components/PcModal/index.less +105 -0
- package/es/components/pisellModal/components/functions/index.d.ts +12 -0
- package/es/components/pisellModal/components/functions/index.js +44 -0
- package/es/components/pisellModal/components/functions/index.less +25 -0
- package/es/components/pisellModal/components/index.d.ts +10 -0
- package/es/components/pisellModal/components/index.js +9 -0
- package/es/components/pisellModal/constants.d.ts +6 -0
- package/es/components/pisellModal/constants.js +6 -0
- package/es/components/pisellModal/index.d.ts +43 -0
- package/es/components/pisellModal/index.js +30 -0
- package/es/components/pisellRow/index.d.ts +22 -0
- package/es/components/pisellRow/index.js +67 -0
- package/es/components/pisellRow/index.less +13 -0
- package/es/components/pisellScan/index.d.ts +21 -0
- package/es/components/pisellScan/index.js +80 -0
- package/es/components/pisellScan/index.less +12 -0
- package/es/components/pisellText/components/Amount/index.d.ts +18 -0
- package/es/components/pisellText/components/Amount/index.js +25 -0
- package/es/components/pisellText/index.d.ts +8 -0
- package/es/components/pisellText/index.js +7 -0
- package/es/components/pisellToast/index.d.ts +16 -0
- package/es/components/pisellToast/index.js +32 -0
- package/es/components/pisellToast/index.less +26 -0
- package/es/components/pisellTooltip/index.d.ts +10 -0
- package/es/components/pisellTooltip/index.js +15 -0
- package/es/components/pisellTooltip/index.less +5 -0
- package/es/components/pisellWalletPassCard/bg.jpeg +0 -0
- package/es/components/pisellWalletPassCard/index.d.ts +54 -0
- package/es/components/pisellWalletPassCard/index.js +93 -0
- package/es/components/pisellWalletPassCard/index.less +100 -0
- package/es/hooks/useCssVariables.d.ts +8 -0
- package/es/hooks/useCssVariables.js +21 -0
- package/es/index.d.ts +23 -0
- package/es/index.js +26 -1
- package/es/locales/en-US.d.ts +9 -0
- package/es/locales/en-US.js +13 -1
- package/es/locales/index.js +3 -1
- package/es/locales/zh-CN.d.ts +9 -0
- package/es/locales/zh-CN.js +13 -1
- package/es/locales/zh-TW.d.ts +9 -0
- package/es/locales/zh-TW.js +13 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +15 -1
- package/es/utils/locale.js +2 -1
- package/lib/components/button/index.d.ts +4 -3
- package/lib/components/button/index.js +13 -9
- package/lib/components/iconfont/index.d.ts +2 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/page/index.css +0 -0
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page/index.js +201 -161
- package/lib/components/pisell-config-provider/context.d.ts +20 -0
- package/lib/components/pisell-config-provider/context.js +49 -0
- package/lib/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
- package/lib/components/pisell-config-provider/hooks/usePisellConfig.js +31 -0
- package/lib/components/pisell-config-provider/index.d.ts +12 -0
- package/lib/components/pisell-config-provider/index.js +69 -0
- package/lib/components/pisellAlert/index.d.ts +22 -0
- package/lib/components/pisellAlert/index.js +95 -0
- package/lib/components/pisellAlert/index.less +149 -0
- package/lib/components/pisellCard/index.d.ts +12 -0
- package/lib/components/pisellCard/index.js +48 -0
- package/lib/components/pisellCard/index.less +9 -0
- package/lib/components/pisellCardList/index.d.ts +43 -0
- package/lib/components/pisellCardList/index.js +108 -0
- package/lib/components/pisellCardList/index.less +75 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +34 -0
- package/lib/components/pisellCheckboxGroup/index.js +150 -0
- package/lib/components/pisellCheckboxGroup/index.less +36 -0
- package/lib/components/pisellCheckboxGroup/mock.d.ts +4 -0
- package/lib/components/pisellCheckboxGroup/mock.js +35 -0
- package/lib/components/pisellContainer/components/Portal/index.d.ts +10 -0
- package/lib/components/pisellContainer/components/Portal/index.js +40 -0
- package/lib/components/pisellContainer/containers.d.ts +1 -0
- package/lib/components/pisellContainer/containers.js +46 -0
- package/lib/components/pisellContainer/index.d.ts +22 -0
- package/lib/components/pisellContainer/index.js +49 -0
- package/lib/components/pisellCountdown/index.d.ts +24 -0
- package/lib/components/pisellCountdown/index.js +63 -0
- package/lib/components/pisellCountdown/utils.d.ts +7 -0
- package/lib/components/pisellCountdown/utils.js +60 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +22 -0
- package/lib/components/pisellDatePicker/datePickerCpt.js +157 -0
- package/lib/components/pisellDatePicker/detePickerCpt.less +22 -0
- package/lib/components/pisellDatePicker/index.d.ts +3 -0
- package/lib/components/pisellDatePicker/index.js +48 -0
- package/lib/components/pisellEmpty/index.d.ts +16 -0
- package/lib/components/pisellEmpty/index.js +61 -0
- package/lib/components/pisellEmpty/index.less +34 -0
- package/lib/components/pisellInformationEntry/Input/index.d.ts +8 -0
- package/lib/components/pisellInformationEntry/Input/index.js +56 -0
- package/lib/components/pisellInformationEntry/Input/index.less +14 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +8 -0
- package/lib/components/pisellInformationEntry/Scan/index.js +64 -0
- package/lib/components/pisellInformationEntry/Scan/index.less +8 -0
- package/lib/components/pisellInformationEntry/constants.d.ts +3 -0
- package/lib/components/pisellInformationEntry/constants.js +49 -0
- package/lib/components/pisellInformationEntry/index.d.ts +31 -0
- package/lib/components/pisellInformationEntry/index.js +162 -0
- package/lib/components/pisellInformationEntry/index.less +40 -0
- package/lib/components/pisellInformationEntry/utils.d.ts +4 -0
- package/lib/components/pisellInformationEntry/utils.js +40 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/AMEX.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/Discover.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/JCB.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/MasterCard.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/UnionPay.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/VISA.png +0 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +11 -0
- package/lib/components/pisellInput/components/BankCard/index.js +98 -0
- package/lib/components/pisellInput/components/BankCard/index.less +4 -0
- package/lib/components/pisellInput/components/BankCard/utils.d.ts +11 -0
- package/lib/components/pisellInput/components/BankCard/utils.js +103 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +11 -0
- package/lib/components/pisellInput/components/Copy/index.js +61 -0
- package/lib/components/pisellInput/components/SecurityCode/card.png +0 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +12 -0
- package/lib/components/pisellInput/components/SecurityCode/index.js +74 -0
- package/lib/components/pisellInput/components/SecurityCode/index.less +4 -0
- package/lib/components/pisellInput/index.d.ts +13 -0
- package/lib/components/pisellInput/index.js +46 -0
- package/lib/components/pisellLoading/index.d.ts +18 -0
- package/lib/components/pisellLoading/index.js +69 -0
- package/lib/components/pisellLoading/index.less +35 -0
- package/lib/components/pisellMessage/index.d.ts +4 -0
- package/lib/components/pisellMessage/index.js +34 -0
- package/lib/components/pisellModal/components/Information/index.d.ts +21 -0
- package/lib/components/pisellModal/components/Information/index.js +54 -0
- package/lib/components/pisellModal/components/Information/index.less +16 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +6 -0
- package/lib/components/pisellModal/components/IpadModal/index.js +40 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +9 -0
- package/lib/components/pisellModal/components/MobileModal/index.js +67 -0
- package/lib/components/pisellModal/components/MobileModal/index.less +60 -0
- package/lib/components/pisellModal/components/PcModal/index.d.ts +30 -0
- package/lib/components/pisellModal/components/PcModal/index.js +143 -0
- package/lib/components/pisellModal/components/PcModal/index.less +105 -0
- package/lib/components/pisellModal/components/functions/index.d.ts +12 -0
- package/lib/components/pisellModal/components/functions/index.js +90 -0
- package/lib/components/pisellModal/components/functions/index.less +25 -0
- package/lib/components/pisellModal/components/index.d.ts +10 -0
- package/lib/components/pisellModal/components/index.js +52 -0
- package/lib/components/pisellModal/constants.d.ts +6 -0
- package/lib/components/pisellModal/constants.js +33 -0
- package/lib/components/pisellModal/index.d.ts +43 -0
- package/lib/components/pisellModal/index.js +63 -0
- package/lib/components/pisellRow/index.d.ts +22 -0
- package/lib/components/pisellRow/index.js +82 -0
- package/lib/components/pisellRow/index.less +13 -0
- package/lib/components/pisellScan/index.d.ts +21 -0
- package/lib/components/pisellScan/index.js +100 -0
- package/lib/components/pisellScan/index.less +12 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +18 -0
- package/lib/components/pisellText/components/Amount/index.js +64 -0
- package/lib/components/pisellText/index.d.ts +8 -0
- package/lib/components/pisellText/index.js +41 -0
- package/lib/components/pisellToast/index.d.ts +16 -0
- package/lib/components/pisellToast/index.js +59 -0
- package/lib/components/pisellToast/index.less +26 -0
- package/lib/components/pisellTooltip/index.d.ts +10 -0
- package/lib/components/pisellTooltip/index.js +53 -0
- package/lib/components/pisellTooltip/index.less +5 -0
- package/lib/components/pisellWalletPassCard/bg.jpeg +0 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +54 -0
- package/lib/components/pisellWalletPassCard/index.js +101 -0
- package/lib/components/pisellWalletPassCard/index.less +100 -0
- package/lib/hooks/useCssVariables.d.ts +8 -0
- package/lib/hooks/useCssVariables.js +36 -0
- package/lib/index.d.ts +23 -0
- package/lib/index.js +71 -0
- package/lib/locales/en-US.d.ts +9 -0
- package/lib/locales/en-US.js +13 -1
- package/lib/locales/index.js +3 -1
- package/lib/locales/zh-CN.d.ts +9 -0
- package/lib/locales/zh-CN.js +13 -1
- package/lib/locales/zh-TW.d.ts +9 -0
- package/lib/locales/zh-TW.js +13 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +16 -0
- package/lib/utils/locale.js +2 -1
- package/lowcode/_utils/transform-meta.ts +31 -10
- package/lowcode/button/__screenshots__/pisell-modal-information.png +0 -0
- package/lowcode/button/meta.ts +30 -0
- package/lowcode/button/snippets.ts +28 -0
- package/lowcode/information-modal/meta.ts +1931 -0
- package/lowcode/modal/meta.ts +1 -1
- package/lowcode/page/meta.ts +8 -1
- package/lowcode/pisell-alert/meta.ts +117 -0
- package/lowcode/pisell-alert/snippets.ts +50 -0
- package/lowcode/pisell-card/__screenshots__/card-1.png +0 -0
- package/lowcode/pisell-card/meta.ts +100 -0
- package/lowcode/pisell-card/snippets.ts +10 -0
- package/lowcode/pisell-card-list/meta.ts +145 -0
- package/lowcode/pisell-card-list/snippets.ts +9 -0
- package/lowcode/pisell-checkbox-group/meta.ts +112 -0
- package/lowcode/pisell-checkbox-group/snippets.ts +13 -0
- package/lowcode/pisell-container/meta.ts +71 -0
- package/lowcode/pisell-container/snippets.ts +14 -0
- package/lowcode/pisell-countdown/meta.ts +71 -0
- package/lowcode/pisell-countdown/snippets.ts +12 -0
- package/lowcode/pisell-date-picker/meta.ts +76 -0
- package/lowcode/pisell-date-picker/snippets.ts +9 -0
- package/lowcode/pisell-empty/__screenshots__/empty-1.png +0 -0
- package/lowcode/pisell-empty/meta.ts +85 -0
- package/lowcode/pisell-empty/snippets.ts +10 -0
- package/lowcode/pisell-information-entry/meta.ts +131 -0
- package/lowcode/pisell-information-entry/snippets.ts +17 -0
- package/lowcode/pisell-input/__screenshots__/input-1.png +0 -0
- package/lowcode/pisell-input/meta.ts +193 -0
- package/lowcode/pisell-input/snippets.ts +11 -0
- package/lowcode/pisell-input.bank-card-input/__screenshots__/pisell-input.bank-card-input.png +0 -0
- package/lowcode/pisell-input.bank-card-input/meta.ts +62 -0
- package/lowcode/pisell-input.bank-card-input/snippets.ts +11 -0
- package/lowcode/pisell-input.copy/meta.ts +73 -0
- package/lowcode/pisell-input.copy/snippets.ts +10 -0
- package/lowcode/pisell-input.security-code/__screenshots__/pisell-input.security-code.png +0 -0
- package/lowcode/pisell-input.security-code/meta.ts +92 -0
- package/lowcode/pisell-input.security-code/snippets.ts +11 -0
- package/lowcode/pisell-loading/meta.ts +98 -0
- package/lowcode/pisell-loading/snippets.ts +11 -0
- package/lowcode/pisell-modal/__screenshots__/modal-1.png +0 -0
- package/lowcode/pisell-modal/__screenshots__/modal-2.png +0 -0
- package/lowcode/pisell-modal/meta.ts +200 -0
- package/lowcode/pisell-modal/snippets.ts +38 -0
- package/lowcode/pisell-modal.information/__screenshots__/pisell-modal.information.png +0 -0
- package/lowcode/pisell-modal.information/meta.ts +116 -0
- package/lowcode/pisell-modal.information/snippets.ts +17 -0
- package/lowcode/pisell-row/meta.ts +127 -0
- package/lowcode/pisell-row/snippets.ts +24 -0
- package/lowcode/pisell-scan/meta.ts +53 -0
- package/lowcode/pisell-scan/snippets.ts +13 -0
- package/lowcode/pisell-text/meta.ts +8117 -0
- package/lowcode/pisell-text.amount/meta.ts +61 -0
- package/lowcode/pisell-text.amount/snippets.ts +15 -0
- package/lowcode/pisell-tooltip/__screenshots__/tooltip-1.jpg +0 -0
- package/lowcode/pisell-tooltip/meta.ts +306 -0
- package/lowcode/pisell-tooltip/snippets.ts +12 -0
- package/lowcode/pisell-wallet-pass-card/meta.ts +189 -0
- package/lowcode/pisell-wallet-pass-card/snippets.ts +20 -0
- package/package.json +4 -3
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellText.Amount',
|
|
6
|
+
title: '空状态',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellText',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: 'Amount',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'value',
|
|
22
|
+
title: { label: '当前数值', tip: '当前数值' },
|
|
23
|
+
propType: 'number',
|
|
24
|
+
setter: 'NumberSetter',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'precision',
|
|
28
|
+
title: { label: '小数点后位数', tip: '小数点后位数 默认是小数点后2位' },
|
|
29
|
+
propType: 'number',
|
|
30
|
+
setter: 'NumberSetter',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'showCurrencySymbol',
|
|
34
|
+
title: {
|
|
35
|
+
label: '显示货币符号',
|
|
36
|
+
tip: '显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示',
|
|
37
|
+
},
|
|
38
|
+
propType: 'bool',
|
|
39
|
+
defaultValue: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'useThousandsSeparator',
|
|
43
|
+
title: {
|
|
44
|
+
label: '千分位',
|
|
45
|
+
tip: '千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭',
|
|
46
|
+
},
|
|
47
|
+
propType: 'bool',
|
|
48
|
+
defaultValue: false,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'hideDecimalForWholeNumbers',
|
|
52
|
+
title: {
|
|
53
|
+
label: '整数位隐藏小数',
|
|
54
|
+
tip: '整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间',
|
|
55
|
+
},
|
|
56
|
+
propType: 'bool',
|
|
57
|
+
defaultValue: true,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
configure: { supports: { style: true, className: true } },
|
|
61
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellTooltip',
|
|
6
|
+
title: '文字提示',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellTooltip',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '内容',
|
|
22
|
+
display: 'block',
|
|
23
|
+
type: 'group',
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
name: 'title',
|
|
27
|
+
title: {
|
|
28
|
+
label: '提示文字',
|
|
29
|
+
tip: 'title | 提示文字',
|
|
30
|
+
},
|
|
31
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
32
|
+
setter: ['PisellI18nSetter', 'SlotSetter', 'VariableSetter'],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: '控制',
|
|
38
|
+
display: 'block',
|
|
39
|
+
type: 'group',
|
|
40
|
+
items: [
|
|
41
|
+
{
|
|
42
|
+
name: 'defaultOpen',
|
|
43
|
+
title: {
|
|
44
|
+
label: '默认显隐',
|
|
45
|
+
tip: 'defaultOpen | 默认是否显隐',
|
|
46
|
+
},
|
|
47
|
+
propType: 'bool',
|
|
48
|
+
setter: 'BoolSetter',
|
|
49
|
+
defaultValue: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'open',
|
|
53
|
+
title: {
|
|
54
|
+
label: '当前显隐',
|
|
55
|
+
tip: 'open | 当前是否显隐',
|
|
56
|
+
},
|
|
57
|
+
propType: 'bool',
|
|
58
|
+
setter: 'BoolSetter',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: '外观',
|
|
64
|
+
display: 'block',
|
|
65
|
+
type: 'group',
|
|
66
|
+
items: [
|
|
67
|
+
{
|
|
68
|
+
name: 'placement',
|
|
69
|
+
title: { label: '气泡位置', tip: 'placement | 气泡位置' },
|
|
70
|
+
propType: {
|
|
71
|
+
type: 'oneOf',
|
|
72
|
+
value: [
|
|
73
|
+
'top',
|
|
74
|
+
'left',
|
|
75
|
+
'right',
|
|
76
|
+
'bottom',
|
|
77
|
+
'topLeft',
|
|
78
|
+
'topRight',
|
|
79
|
+
'bottomLeft',
|
|
80
|
+
'bottomRight',
|
|
81
|
+
'leftTop',
|
|
82
|
+
'leftBottom',
|
|
83
|
+
'rightTop',
|
|
84
|
+
'rightBottom',
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
defaultValue: 'top',
|
|
88
|
+
setter: {
|
|
89
|
+
componentName: 'SelectSetter',
|
|
90
|
+
props: {
|
|
91
|
+
options: [
|
|
92
|
+
{
|
|
93
|
+
title: '上',
|
|
94
|
+
value: 'top',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: '左',
|
|
98
|
+
value: 'left',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: '右',
|
|
102
|
+
value: 'right',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: '下',
|
|
106
|
+
value: 'bottom',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: '上左',
|
|
110
|
+
value: 'topLeft',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: '上右',
|
|
114
|
+
value: 'topRight',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: '下左',
|
|
118
|
+
value: 'bottomLeft',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: '下右',
|
|
122
|
+
value: 'bottomRight',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: '左上',
|
|
126
|
+
value: 'leftTop',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: '左下',
|
|
130
|
+
value: 'leftBottom',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
title: '右上',
|
|
134
|
+
value: 'rightTop',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: '右下',
|
|
138
|
+
value: 'rightBottom',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'autoAdjustOverflow',
|
|
146
|
+
title: {
|
|
147
|
+
label: '自动调整',
|
|
148
|
+
tip: 'autoAdjustOverflow | 气泡被遮挡时自动调整位置',
|
|
149
|
+
},
|
|
150
|
+
propType: 'bool',
|
|
151
|
+
setter: 'BoolSetter',
|
|
152
|
+
defaultValue: true,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'arrowPointAtCenter',
|
|
156
|
+
title: {
|
|
157
|
+
label: '指向中心',
|
|
158
|
+
tip: 'arrowPointAtCenter | 箭头是否指向目标元素中心',
|
|
159
|
+
},
|
|
160
|
+
propType: 'bool',
|
|
161
|
+
setter: 'BoolSetter',
|
|
162
|
+
defaultValue: false,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'color',
|
|
166
|
+
title: {
|
|
167
|
+
label: '背景颜色',
|
|
168
|
+
tip: 'color | 背景颜色',
|
|
169
|
+
},
|
|
170
|
+
propType: 'string',
|
|
171
|
+
setter: 'ColorSetter',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'zIndex',
|
|
175
|
+
title: {
|
|
176
|
+
label: 'zIndex',
|
|
177
|
+
tip: 'zIndex | 设置 Tooltip 的 z-index值',
|
|
178
|
+
},
|
|
179
|
+
propType: 'number',
|
|
180
|
+
setter: 'NumberSetter',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'overlayStyle',
|
|
186
|
+
title: '卡片样式',
|
|
187
|
+
type: 'group',
|
|
188
|
+
extraProps: {
|
|
189
|
+
display: 'entry',
|
|
190
|
+
},
|
|
191
|
+
items: [
|
|
192
|
+
{
|
|
193
|
+
name: 'overlayStyle',
|
|
194
|
+
title: { label: '样式设置', tip: 'overlayStyle | 卡片样式' },
|
|
195
|
+
setter: 'StyleSetter',
|
|
196
|
+
extraProps: {
|
|
197
|
+
display: 'block',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'overlayInnerStyle',
|
|
204
|
+
title: '卡片内容样式',
|
|
205
|
+
type: 'group',
|
|
206
|
+
extraProps: {
|
|
207
|
+
display: 'entry',
|
|
208
|
+
},
|
|
209
|
+
items: [
|
|
210
|
+
{
|
|
211
|
+
name: 'overlayInnerStyle',
|
|
212
|
+
title: {
|
|
213
|
+
label: '样式设置',
|
|
214
|
+
tip: 'overlayStyle | 卡片内容区域的样式',
|
|
215
|
+
},
|
|
216
|
+
setter: 'StyleSetter',
|
|
217
|
+
extraProps: {
|
|
218
|
+
display: 'block',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
title: '行为',
|
|
225
|
+
display: 'block',
|
|
226
|
+
type: 'group',
|
|
227
|
+
items: [
|
|
228
|
+
{
|
|
229
|
+
name: 'trigger',
|
|
230
|
+
title: { label: '触发行为', tip: 'trigger | 触发行为' },
|
|
231
|
+
propType: {
|
|
232
|
+
type: 'oneOf',
|
|
233
|
+
value: ['hover', 'focus', 'click', 'contextMenu'],
|
|
234
|
+
},
|
|
235
|
+
defaultValue: 'hover',
|
|
236
|
+
setter: {
|
|
237
|
+
componentName: 'SelectSetter',
|
|
238
|
+
props: {
|
|
239
|
+
options: [
|
|
240
|
+
{
|
|
241
|
+
title: '鼠标悬停',
|
|
242
|
+
value: 'hover',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
title: '获得焦点',
|
|
246
|
+
value: 'focus',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
title: '鼠标点击',
|
|
250
|
+
value: 'click',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
title: '右键菜单',
|
|
254
|
+
value: 'contextMenu',
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: 'mouseEnterDelay',
|
|
262
|
+
title: {
|
|
263
|
+
label: '展示延时',
|
|
264
|
+
tip: 'mouseEnterDelay | 鼠标移入后延时多少才显示 Tooltip,单位:秒',
|
|
265
|
+
},
|
|
266
|
+
propType: 'number',
|
|
267
|
+
defaultValue: 0.1,
|
|
268
|
+
setter: {
|
|
269
|
+
componentName: 'NumberSetter',
|
|
270
|
+
props: {
|
|
271
|
+
step: 0.1,
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: 'mouseLeaveDelay',
|
|
277
|
+
title: {
|
|
278
|
+
label: '隐藏延时',
|
|
279
|
+
tip: 'mouseLeaveDelay | 鼠标移出后延时多少才隐藏 Tooltip,单位:秒',
|
|
280
|
+
},
|
|
281
|
+
propType: 'number',
|
|
282
|
+
defaultValue: 0.1,
|
|
283
|
+
setter: {
|
|
284
|
+
componentName: 'NumberSetter',
|
|
285
|
+
props: {
|
|
286
|
+
step: 0.1,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
configure: {
|
|
294
|
+
component: { isContainer: true },
|
|
295
|
+
supports: {
|
|
296
|
+
style: true,
|
|
297
|
+
events: [
|
|
298
|
+
{
|
|
299
|
+
name: 'onOpenChange',
|
|
300
|
+
template:
|
|
301
|
+
"onOpenChange(open,${extParams}){\n// 显示隐藏的回调\nconsole.log('onOpenChange',open);}",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellWalletPassCard',
|
|
6
|
+
title: 'PisellWalletPassCard',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellWalletPassCard',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: "platform",
|
|
22
|
+
title: {
|
|
23
|
+
label: "平台",
|
|
24
|
+
},
|
|
25
|
+
propType: { type: "oneOf", value: ["h5", "pc", "ipad"] },
|
|
26
|
+
setter: [
|
|
27
|
+
{
|
|
28
|
+
componentName: "RadioGroupSetter",
|
|
29
|
+
props: {
|
|
30
|
+
options: [
|
|
31
|
+
{
|
|
32
|
+
title: "h5",
|
|
33
|
+
value: "h5",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: "pc",
|
|
37
|
+
value: "pc",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "ipad",
|
|
41
|
+
value: "ipad",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
"VariableSetter",
|
|
47
|
+
],
|
|
48
|
+
defaultValue: "pc",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "themeMode",
|
|
52
|
+
title: {
|
|
53
|
+
label: "选择类型",
|
|
54
|
+
},
|
|
55
|
+
propType: { type: "oneOf", value: ["light", "dark", null] },
|
|
56
|
+
setter: [
|
|
57
|
+
{
|
|
58
|
+
componentName: "RadioGroupSetter",
|
|
59
|
+
props: {
|
|
60
|
+
options: [
|
|
61
|
+
{
|
|
62
|
+
title: "Light",
|
|
63
|
+
value: "light",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: "Dark",
|
|
67
|
+
value: "dark",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
"VariableSetter",
|
|
73
|
+
],
|
|
74
|
+
defaultValue: "light",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'name',
|
|
78
|
+
title: { label: '商品名称', tip: '商品名称' },
|
|
79
|
+
propType: 'string',
|
|
80
|
+
setter: 'StringSetter'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'showName',
|
|
84
|
+
title: { label: '显示商品名称', tip: '显示商品名称' },
|
|
85
|
+
propType: 'bool',
|
|
86
|
+
setter: 'BoolSetter',
|
|
87
|
+
defaultValue: true,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'storeName',
|
|
91
|
+
title: { label: '共享店铺名称', tip: '共享店铺名称' },
|
|
92
|
+
propType: 'string',
|
|
93
|
+
setter: 'StringSetter'
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'showStoreName',
|
|
97
|
+
title: { label: '显示共享店铺名称', tip: '显示共享店铺名称' },
|
|
98
|
+
propType: 'bool',
|
|
99
|
+
setter: 'BoolSetter',
|
|
100
|
+
defaultValue: true,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'redeem',
|
|
104
|
+
title: { label: '使用金额', tip: '使用金额' },
|
|
105
|
+
propType: 'string',
|
|
106
|
+
setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'showRedeem',
|
|
110
|
+
title: { label: '显示使用金额', tip: '显示使用金额' },
|
|
111
|
+
propType: 'bool',
|
|
112
|
+
setter: 'BoolSetter',
|
|
113
|
+
defaultValue: true,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'balance',
|
|
117
|
+
title: { label: '余额', tip: '余额' },
|
|
118
|
+
propType: 'string',
|
|
119
|
+
setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'showBalance',
|
|
123
|
+
title: { label: '显示余额', tip: '显示余额' },
|
|
124
|
+
propType: 'bool',
|
|
125
|
+
setter: 'BoolSetter',
|
|
126
|
+
defaultValue: true,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'code',
|
|
130
|
+
title: { label: '识别码编号', tip: '识别码编号' },
|
|
131
|
+
propType: 'string',
|
|
132
|
+
setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'showCode',
|
|
136
|
+
title: { label: '显示识别码编号', tip: '显示识别码编号' },
|
|
137
|
+
propType: 'bool',
|
|
138
|
+
setter: 'BoolSetter',
|
|
139
|
+
defaultValue: true,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'validDate',
|
|
143
|
+
title: { label: '有效期', tip: '有效期' },
|
|
144
|
+
propType: 'string',
|
|
145
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'showValidDate',
|
|
149
|
+
title: { label: '显示有效期', tip: '显示有效期' },
|
|
150
|
+
propType: 'bool',
|
|
151
|
+
setter: 'BoolSetter',
|
|
152
|
+
defaultValue: true,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'showDetail',
|
|
156
|
+
title: { label: '显示查看详情按钮', tip: '显示查看详情按钮' },
|
|
157
|
+
propType: 'bool',
|
|
158
|
+
setter: 'BoolSetter',
|
|
159
|
+
defaultValue: true,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'qrCode',
|
|
163
|
+
title: { label: '二维码', tip: '二维码' },
|
|
164
|
+
propType: 'string',
|
|
165
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'showQrCode',
|
|
169
|
+
title: { label: '显示识别码二维码', tip: '显示识别码二维码' },
|
|
170
|
+
propType: 'bool',
|
|
171
|
+
setter: 'BoolSetter',
|
|
172
|
+
defaultValue: true,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'cover',
|
|
176
|
+
title: { label: '识别码卡封面', tip: '识别码卡封面' },
|
|
177
|
+
propType: 'string',
|
|
178
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'showCover',
|
|
182
|
+
title: { label: '显示识别码卡封面', tip: '显示识别码卡封面' },
|
|
183
|
+
propType: 'bool',
|
|
184
|
+
setter: 'BoolSetter',
|
|
185
|
+
defaultValue: true,
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
configure: { supports: { style: true } },
|
|
189
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '识别码卡片',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'PisellWalletPassCard',
|
|
6
|
+
props: {
|
|
7
|
+
name: '张三',
|
|
8
|
+
qrCode: 'https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLRpBpr.png',
|
|
9
|
+
storeName: '张三的店铺',
|
|
10
|
+
balance: 100,
|
|
11
|
+
code: 'Walletpass code',
|
|
12
|
+
validDate: '2022-01-01',
|
|
13
|
+
redeem: 1000,
|
|
14
|
+
disabled: false,
|
|
15
|
+
disabledReason: '',
|
|
16
|
+
cover: '',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,9 +61,10 @@
|
|
|
61
61
|
"react-window": "^1.8.10",
|
|
62
62
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
63
63
|
"crypto-js": "^4.2.0",
|
|
64
|
-
"@
|
|
64
|
+
"@zxing/library": "0.21.2",
|
|
65
|
+
"@pisell/utils": "1.0.28",
|
|
65
66
|
"@pisell/icon": "0.0.11",
|
|
66
|
-
"@pisell/date-picker": "1.0.
|
|
67
|
+
"@pisell/date-picker": "1.0.93"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"react": "^18.0.0",
|