@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,71 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellCountdown',
|
|
6
|
+
title: '倒计时',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellCountdown',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'format',
|
|
22
|
+
title: { label: '格式化倒计时展示', tip: '格式化倒计时展示,参考 dayjs | format' },
|
|
23
|
+
propType: 'string',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'leftTime',
|
|
27
|
+
title: {
|
|
28
|
+
label: '剩余时间',
|
|
29
|
+
tip: '剩余时间(毫秒)| leftTime',
|
|
30
|
+
},
|
|
31
|
+
propType: 'number',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'targetDate',
|
|
35
|
+
title: {
|
|
36
|
+
label: '目标时间',
|
|
37
|
+
tip: '目标时间 | targetDate(如果同时传了 leftTime 和 targetDate,则会忽略 targetDate,以 leftTime 为主)',
|
|
38
|
+
},
|
|
39
|
+
propType: { type: "oneOfType", value: ["string", "number"] },
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'interval',
|
|
43
|
+
title: { label: '间隔', tip: '变化时间间隔(毫秒)| interval' },
|
|
44
|
+
propType: 'number',
|
|
45
|
+
defaultValue: 1000
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
configure: {
|
|
49
|
+
supports: {
|
|
50
|
+
style: true,
|
|
51
|
+
className: true,
|
|
52
|
+
events: [
|
|
53
|
+
{
|
|
54
|
+
name: 'onChange',
|
|
55
|
+
template:
|
|
56
|
+
"onChange(event,${extParams}){\n// 倒计时时间变化时触发\nconsole.log('onChange', event);}",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'onFinish',
|
|
60
|
+
template:
|
|
61
|
+
"onFinish(){\n// 倒计时完成时触发\nconsole.log('onFinish');}",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "onClick",
|
|
65
|
+
template:
|
|
66
|
+
"onClick(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onClick', event);}",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
import baseDatePickerMeta from '../date-picker/meta';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: "PisellDatePicker",
|
|
7
|
+
title: "pisell日期选择框",
|
|
8
|
+
category: "表单",
|
|
9
|
+
docUrl: "",
|
|
10
|
+
screenshot: "",
|
|
11
|
+
devMode: "proCode",
|
|
12
|
+
npm: {
|
|
13
|
+
package: "@pisell/materials",
|
|
14
|
+
version: "1.0.1",
|
|
15
|
+
exportName: "PisellDatePicker",
|
|
16
|
+
main: "src/index.tsx",
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: "",
|
|
19
|
+
},
|
|
20
|
+
configure: {
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
name: "type",
|
|
24
|
+
title: {
|
|
25
|
+
label: "选择类型",
|
|
26
|
+
tip: "type | 选择类型",
|
|
27
|
+
},
|
|
28
|
+
propType: {
|
|
29
|
+
type: "oneOf",
|
|
30
|
+
value: ["input", "select", "both"],
|
|
31
|
+
},
|
|
32
|
+
setter: {
|
|
33
|
+
componentName: "RadioGroupSetter",
|
|
34
|
+
props: {
|
|
35
|
+
options: [
|
|
36
|
+
{
|
|
37
|
+
title: "Input",
|
|
38
|
+
value: "input",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "Select",
|
|
42
|
+
value: "select",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "Both",
|
|
46
|
+
value: "both",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
defaultValue: "both",
|
|
52
|
+
},
|
|
53
|
+
...baseDatePickerMeta.configure.props,
|
|
54
|
+
],
|
|
55
|
+
supports: {
|
|
56
|
+
style: true,
|
|
57
|
+
events: [
|
|
58
|
+
{
|
|
59
|
+
name: "onChange",
|
|
60
|
+
template:
|
|
61
|
+
"onChange(date,dateString,${extParams}){\n// 时间发生变化的回调\nconsole.log('onChange',date,dateString);}",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "onOpenChange",
|
|
65
|
+
template:
|
|
66
|
+
"onOpenChange(open,${extParams}){\n// 弹出日历和关闭日历的回调\nconsole.log('onOpenChange',open);}",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "onPanelChange",
|
|
70
|
+
template:
|
|
71
|
+
"onPanelChange(value,mode,${extParams}){\n// 日历面板切换的回调\nconsole.log('onPanelChange',value,mode);}",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellEmpty',
|
|
6
|
+
title: '空状态',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellEmpty',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'description',
|
|
22
|
+
title: { label: '内容描述', tip: '自定义描述内容' },
|
|
23
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
24
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'extraDescription',
|
|
28
|
+
title: { label: '额外内容描述', tip: '自定义额外描述内容' },
|
|
29
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
30
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'icon',
|
|
34
|
+
title: {
|
|
35
|
+
label: {
|
|
36
|
+
type: 'i18n',
|
|
37
|
+
'en-US': 'icon',
|
|
38
|
+
'zh-CN': '图标',
|
|
39
|
+
},
|
|
40
|
+
tip: 'icon | Set the icon component of the button',
|
|
41
|
+
},
|
|
42
|
+
propType: { type: 'oneOfType', value: ['node'] },
|
|
43
|
+
setter: [
|
|
44
|
+
{
|
|
45
|
+
componentName: 'SlotSetter',
|
|
46
|
+
initialValue: {
|
|
47
|
+
type: 'JSSlot',
|
|
48
|
+
value: [
|
|
49
|
+
{
|
|
50
|
+
componentName: 'Icon',
|
|
51
|
+
props: {
|
|
52
|
+
type: 'SmileOutlined',
|
|
53
|
+
size: 20,
|
|
54
|
+
rotate: 0,
|
|
55
|
+
spin: false,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
defaultValue: null,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'footer',
|
|
66
|
+
title: { label: '操作区域', tip: '自定义底部额外操作区域' },
|
|
67
|
+
propType: { type: 'oneOfType', value: ['node'] },
|
|
68
|
+
setter: ['SlotSetter'],
|
|
69
|
+
},
|
|
70
|
+
// {
|
|
71
|
+
// name: 'imageStyle',
|
|
72
|
+
// title: { label: '图片样式', tip: '图片样式' },
|
|
73
|
+
// propType: 'object',
|
|
74
|
+
// },
|
|
75
|
+
// {
|
|
76
|
+
// name: 'image',
|
|
77
|
+
// title: {
|
|
78
|
+
// label: '图片地址',
|
|
79
|
+
// tip: '设置显示图片,为string时表示自定义图片地址。',
|
|
80
|
+
// },
|
|
81
|
+
// propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
82
|
+
// },
|
|
83
|
+
],
|
|
84
|
+
configure: { supports: { style: true } },
|
|
85
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellInformationEntry',
|
|
6
|
+
title: '信息录入',
|
|
7
|
+
category: '表单',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellInformationEntry',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'entryModes',
|
|
22
|
+
title: { label: '录入方式', tip: '录入方式' },
|
|
23
|
+
propType: {
|
|
24
|
+
type: 'arrayOf',
|
|
25
|
+
value: {
|
|
26
|
+
type: 'shape',
|
|
27
|
+
value: [
|
|
28
|
+
{
|
|
29
|
+
name: 'type',
|
|
30
|
+
title: { label: '录入类型', tip: '录入类型' },
|
|
31
|
+
propType: {
|
|
32
|
+
type: 'oneOf',
|
|
33
|
+
value: ['scanCode', 'input', 'scanner', 'nfc'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'name',
|
|
38
|
+
propType: ['string', 'number'],
|
|
39
|
+
description: '文案',
|
|
40
|
+
defaultValue: '选项值',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'disabled',
|
|
44
|
+
propType: 'bool',
|
|
45
|
+
description: '是否禁用',
|
|
46
|
+
defaultValue: false,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
setter: {
|
|
52
|
+
componentName: 'ArraySetter',
|
|
53
|
+
props: {
|
|
54
|
+
itemSetter: {
|
|
55
|
+
componentName: 'ObjectSetter',
|
|
56
|
+
props: {
|
|
57
|
+
config: {
|
|
58
|
+
items: [
|
|
59
|
+
{
|
|
60
|
+
name: 'type',
|
|
61
|
+
title: '录入类型',
|
|
62
|
+
isRequired: true,
|
|
63
|
+
setter: [
|
|
64
|
+
{
|
|
65
|
+
componentName: 'SelectSetter',
|
|
66
|
+
mode: "single",
|
|
67
|
+
props: (target) => {
|
|
68
|
+
// console.log(target,'targettarget',target.parent.parent.parent.getPropValue("entryModes"));
|
|
69
|
+
const typeValues = target.parent.parent.parent.getPropValue("entryModes").filter(Boolean).map(item => item?.type);
|
|
70
|
+
console.log(typeValues,'typeValues');
|
|
71
|
+
return {
|
|
72
|
+
options: [
|
|
73
|
+
{
|
|
74
|
+
title: '扫码',
|
|
75
|
+
value: 'scanCode',
|
|
76
|
+
disabled: typeValues.includes('scanCode'),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: '手动输入',
|
|
80
|
+
value: 'input',
|
|
81
|
+
disabled: typeValues.includes('input'),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: '扫描枪(外设)',
|
|
85
|
+
value: 'scanner',
|
|
86
|
+
disabled: typeValues.includes('scanner'),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: 'NFC(外设)',
|
|
90
|
+
value: 'nfc',
|
|
91
|
+
disabled: typeValues.includes('nfc'),
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
'VariableSetter',
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'name',
|
|
102
|
+
title: '文案',
|
|
103
|
+
setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
|
|
104
|
+
isRequired: true,
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
initialValue: {
|
|
110
|
+
type: "",
|
|
111
|
+
name: "",
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'title',
|
|
119
|
+
title: { label: '标题文案', tip: '标题文案' },
|
|
120
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
121
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'searchDescribe',
|
|
125
|
+
title: { label: '搜索框描述文案', tip: '搜索框描述文案' },
|
|
126
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
127
|
+
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
configure: { supports: { style: true } },
|
|
131
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '信息录入',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'PisellInformationEntry',
|
|
6
|
+
props: {
|
|
7
|
+
entryModes: [
|
|
8
|
+
{ type: 'scanCode' },
|
|
9
|
+
{ type: 'input' },
|
|
10
|
+
{ type: 'scanner' },
|
|
11
|
+
{ type: 'nfc' },
|
|
12
|
+
],
|
|
13
|
+
title: "",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellInput',
|
|
6
|
+
title: 'pisell输入框',
|
|
7
|
+
category: '表单',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "PisellInput",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'defaultValue',
|
|
22
|
+
title: { label: '默认值', tip: '默认内容' },
|
|
23
|
+
propType: 'string',
|
|
24
|
+
setter: 'StringSetter',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'value',
|
|
28
|
+
title: { label: '当前值', tip: '当前值' },
|
|
29
|
+
propType: 'string',
|
|
30
|
+
setter: 'StringSetter'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'allowClear',
|
|
34
|
+
title: { label: '支持清除', tip: '是否允许清除' },
|
|
35
|
+
propType: 'bool',
|
|
36
|
+
setter: 'BoolSetter',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'bordered',
|
|
40
|
+
title: { label: '显示边框', tip: '是否有边框' },
|
|
41
|
+
propType: 'bool',
|
|
42
|
+
defaultValue: true,
|
|
43
|
+
setter: 'BoolSetter',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'disabled',
|
|
47
|
+
title: { label: '是否禁用', tip: '是否为禁用状态' },
|
|
48
|
+
propType: 'bool',
|
|
49
|
+
defaultValue: false,
|
|
50
|
+
setter: 'BoolSetter',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'placeholder',
|
|
54
|
+
title: { label: '占位提示', tip: '占位提示' },
|
|
55
|
+
propType: 'string',
|
|
56
|
+
setter: 'PisellI18nSetter'
|
|
57
|
+
},
|
|
58
|
+
// {
|
|
59
|
+
// name: 'id',
|
|
60
|
+
// title: { label: '输入框ID', tip: '输入框的ID' },
|
|
61
|
+
// propType: 'string',
|
|
62
|
+
// },
|
|
63
|
+
{
|
|
64
|
+
name: 'maxLength',
|
|
65
|
+
title: { label: '最大长度', tip: '最大长度' },
|
|
66
|
+
propType: 'number',
|
|
67
|
+
setter: 'NumberSetter',
|
|
68
|
+
},
|
|
69
|
+
// {
|
|
70
|
+
// name: 'size',
|
|
71
|
+
// title: { label: '控件大小', tip: '控件大小' },
|
|
72
|
+
// setter: {
|
|
73
|
+
// componentName: 'RadioGroupSetter',
|
|
74
|
+
// props: {
|
|
75
|
+
// options: [
|
|
76
|
+
// {
|
|
77
|
+
// title: '大',
|
|
78
|
+
// value: 'large',
|
|
79
|
+
// },
|
|
80
|
+
// {
|
|
81
|
+
// title: '中',
|
|
82
|
+
// value: 'middle',
|
|
83
|
+
// },
|
|
84
|
+
// {
|
|
85
|
+
// title: '小',
|
|
86
|
+
// value: 'small',
|
|
87
|
+
// },
|
|
88
|
+
// ],
|
|
89
|
+
// },
|
|
90
|
+
// },
|
|
91
|
+
// propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
|
|
92
|
+
// defaultValue: 'middle',
|
|
93
|
+
// },
|
|
94
|
+
{
|
|
95
|
+
name: 'addonAfter',
|
|
96
|
+
title: { label: '后置标签', tip: '后置标签' },
|
|
97
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
98
|
+
setter: ['PisellI18nSetter', 'SlotSetter']
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'addonBefore',
|
|
102
|
+
title: { label: '前置标签', tip: '前置标签' },
|
|
103
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
104
|
+
setter: ['PisellI18nSetter', 'SlotSetter']
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'prefix',
|
|
108
|
+
title: { label: '前缀', tip: '前缀' },
|
|
109
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
110
|
+
setter: ['PisellI18nSetter', 'SlotSetter']
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'suffix',
|
|
114
|
+
title: { label: '后缀', tip: '后缀' },
|
|
115
|
+
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
116
|
+
setter: ['PisellI18nSetter', 'SlotSetter']
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'onChange',
|
|
120
|
+
title: { label: '输入框内容变化时的回调', tip: '输入框内容变化时的回调' },
|
|
121
|
+
propType: 'func',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'onPressEnter',
|
|
125
|
+
title: { label: '按下回车的回调', tip: '按下回车的回调' },
|
|
126
|
+
propType: 'func',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'onFocus',
|
|
130
|
+
title: { label: '获取焦点回调', tip: '获取焦点回调' },
|
|
131
|
+
propType: 'func',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'onKeyDown',
|
|
135
|
+
title: { label: '按键按下时的回调', tip: '按键按下时的回调' },
|
|
136
|
+
propType: 'func',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'onKeyPress',
|
|
140
|
+
title: { label: '按键按下后的回调', tip: '按键按下之后释放之前的回调' },
|
|
141
|
+
propType: 'func',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'onKeyUp',
|
|
145
|
+
title: { label: '按键释放回调', tip: '按键释放之后的回调' },
|
|
146
|
+
propType: 'func',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'onBlur',
|
|
150
|
+
title: { label: '失去焦点回调', tip: '失去焦点回调' },
|
|
151
|
+
propType: 'func',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
configure: {
|
|
155
|
+
supports: {
|
|
156
|
+
style: true,
|
|
157
|
+
events: [
|
|
158
|
+
{
|
|
159
|
+
name: 'onChange',
|
|
160
|
+
template:
|
|
161
|
+
"onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'onPressEnter',
|
|
165
|
+
template:
|
|
166
|
+
"onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'onFocus',
|
|
170
|
+
template: "onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'onKeyDown',
|
|
174
|
+
template:
|
|
175
|
+
"onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'onKeyPress',
|
|
179
|
+
template:
|
|
180
|
+
"onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'onKeyUp',
|
|
184
|
+
template: "onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'onBlur',
|
|
188
|
+
template: "onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
import baseInputMeta from '../pisell-input/meta';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: "PisellInput.BankCard",
|
|
7
|
+
title: "银行卡",
|
|
8
|
+
category: "表单",
|
|
9
|
+
docUrl: "",
|
|
10
|
+
screenshot: "",
|
|
11
|
+
devMode: "proCode",
|
|
12
|
+
npm: {
|
|
13
|
+
package: "@pisell/materials",
|
|
14
|
+
version: "1.0.1",
|
|
15
|
+
exportName: "PisellInput",
|
|
16
|
+
main: "src/index.tsx",
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: "BankCard",
|
|
19
|
+
},
|
|
20
|
+
props: [
|
|
21
|
+
...baseInputMeta.props,
|
|
22
|
+
],
|
|
23
|
+
configure: {
|
|
24
|
+
supports: {
|
|
25
|
+
style: true,
|
|
26
|
+
events: [
|
|
27
|
+
{
|
|
28
|
+
name: 'onChange',
|
|
29
|
+
template:
|
|
30
|
+
"onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'onPressEnter',
|
|
34
|
+
template:
|
|
35
|
+
"onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'onFocus',
|
|
39
|
+
template: "onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'onKeyDown',
|
|
43
|
+
template:
|
|
44
|
+
"onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'onKeyPress',
|
|
48
|
+
template:
|
|
49
|
+
"onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'onKeyUp',
|
|
53
|
+
template: "onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'onBlur',
|
|
57
|
+
template: "onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|