@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,73 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
import baseInputMeta from '../pisell-input/meta';
|
|
3
|
+
import baseButtonMeta from '../button/meta';
|
|
4
|
+
import { addPrefixNameToItems } from "../_utils/transform-meta";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
snippets,
|
|
8
|
+
componentName: 'PisellInput.Copy',
|
|
9
|
+
title: '复制输入框',
|
|
10
|
+
category: '表单',
|
|
11
|
+
docUrl: '',
|
|
12
|
+
screenshot: '',
|
|
13
|
+
devMode: 'proCode',
|
|
14
|
+
npm: {
|
|
15
|
+
package: '@pisell/materials',
|
|
16
|
+
version: '1.0.1',
|
|
17
|
+
exportName: 'PisellInput',
|
|
18
|
+
main: 'src/index.tsx',
|
|
19
|
+
destructuring: true,
|
|
20
|
+
subName: 'Copy',
|
|
21
|
+
},
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
title: '按钮props',
|
|
25
|
+
display: 'entry',
|
|
26
|
+
type: 'group',
|
|
27
|
+
items: addPrefixNameToItems(baseButtonMeta.configure.props, 'buttonProps'),
|
|
28
|
+
},
|
|
29
|
+
...baseInputMeta.props,
|
|
30
|
+
],
|
|
31
|
+
configure: {
|
|
32
|
+
supports: {
|
|
33
|
+
style: true,
|
|
34
|
+
events: [
|
|
35
|
+
{
|
|
36
|
+
name: 'onChange',
|
|
37
|
+
template:
|
|
38
|
+
"onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'onPressEnter',
|
|
42
|
+
template:
|
|
43
|
+
"onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'onFocus',
|
|
47
|
+
template:
|
|
48
|
+
"onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'onKeyDown',
|
|
52
|
+
template:
|
|
53
|
+
"onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'onKeyPress',
|
|
57
|
+
template:
|
|
58
|
+
"onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'onKeyUp',
|
|
62
|
+
template:
|
|
63
|
+
"onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'onBlur',
|
|
67
|
+
template:
|
|
68
|
+
"onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
import baseInputMeta from '../pisell-input/meta';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: 'PisellInput.SecurityCode',
|
|
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: 'SecurityCode',
|
|
19
|
+
},
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
name: 'maxLength',
|
|
23
|
+
title: { label: 'CVC位数', tip: 'CVC位数' },
|
|
24
|
+
setter: {
|
|
25
|
+
componentName: 'RadioGroupSetter',
|
|
26
|
+
props: {
|
|
27
|
+
options: [
|
|
28
|
+
{
|
|
29
|
+
title: '3位',
|
|
30
|
+
value: 3,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: '4位',
|
|
34
|
+
value: 4,
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
propType: { type: 'oneOf', value: [3, 4] },
|
|
40
|
+
defaultValue: 3,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'showCVCIcon',
|
|
44
|
+
title: { label: '显示CVC提示Icon', tip: '是否显示CVC提示Icon' },
|
|
45
|
+
propType: 'bool',
|
|
46
|
+
defaultValue: true,
|
|
47
|
+
setter: 'BoolSetter',
|
|
48
|
+
},
|
|
49
|
+
...(baseInputMeta.props.filter(item => item.name !== 'maxLength'))],
|
|
50
|
+
configure: {
|
|
51
|
+
supports: {
|
|
52
|
+
style: true,
|
|
53
|
+
events: [
|
|
54
|
+
{
|
|
55
|
+
name: 'onChange',
|
|
56
|
+
template:
|
|
57
|
+
"onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'onPressEnter',
|
|
61
|
+
template:
|
|
62
|
+
"onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'onFocus',
|
|
66
|
+
template:
|
|
67
|
+
"onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'onKeyDown',
|
|
71
|
+
template:
|
|
72
|
+
"onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'onKeyPress',
|
|
76
|
+
template:
|
|
77
|
+
"onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'onKeyUp',
|
|
81
|
+
template:
|
|
82
|
+
"onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'onBlur',
|
|
86
|
+
template:
|
|
87
|
+
"onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellLoading',
|
|
6
|
+
title: '加载',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellLoading',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'loading',
|
|
22
|
+
title: {
|
|
23
|
+
label: '是否加载中',
|
|
24
|
+
tip: '是否加载中',
|
|
25
|
+
},
|
|
26
|
+
propType: 'bool',
|
|
27
|
+
defaultValue: false,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'fullscreen',
|
|
31
|
+
title: {
|
|
32
|
+
label: '全屏',
|
|
33
|
+
tip: '是否全屏加载',
|
|
34
|
+
},
|
|
35
|
+
propType: 'bool',
|
|
36
|
+
defaultValue: false,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: '蒙层设置',
|
|
40
|
+
display: 'block',
|
|
41
|
+
type: 'group',
|
|
42
|
+
items: [
|
|
43
|
+
{
|
|
44
|
+
name: 'mask',
|
|
45
|
+
title: { label: '是否开启蒙层 ', tip: '是否开启蒙层 ' },
|
|
46
|
+
propType: "object",
|
|
47
|
+
defaultValue: true,
|
|
48
|
+
setter: "BoolSetter",
|
|
49
|
+
extraProps: {
|
|
50
|
+
setValue: (target, value) => {
|
|
51
|
+
if (value) {
|
|
52
|
+
target.parent.setPropValue("mask", {
|
|
53
|
+
width: "100%",
|
|
54
|
+
height: '100%',
|
|
55
|
+
backgroundColor: "#fff"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'mask.width',
|
|
63
|
+
title: { label: '蒙层宽度', tip: '蒙层宽度' },
|
|
64
|
+
propType: { type: 'oneOfType', value: ['string', 'number'] },
|
|
65
|
+
setter: ['StringSetter', 'NumberSetter'],
|
|
66
|
+
condition: {
|
|
67
|
+
type: "JSFunction",
|
|
68
|
+
value: 'target => !!target.getProps().getPropValue("mask")',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'mask.height',
|
|
73
|
+
title: { label: '蒙层高度', tip: '蒙层高度' },
|
|
74
|
+
propType: { type: 'oneOfType', value: ['string', 'number'] },
|
|
75
|
+
setter: ['StringSetter', 'NumberSetter'],
|
|
76
|
+
condition: {
|
|
77
|
+
type: "JSFunction",
|
|
78
|
+
value: 'target => !!target.getProps().getPropValue("mask")',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'mask.backgroundColor',
|
|
83
|
+
title: { label: '背景色', tip: '背景色 可设置透明度' },
|
|
84
|
+
propType: 'string',
|
|
85
|
+
setter: 'ColorSetter',
|
|
86
|
+
condition: {
|
|
87
|
+
type: "JSFunction",
|
|
88
|
+
value: 'target => !!target.getProps().getPropValue("mask")',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
configure: {
|
|
95
|
+
component: { isContainer: true },
|
|
96
|
+
supports: { style: true },
|
|
97
|
+
},
|
|
98
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import modalMeta from '../modal/meta';
|
|
2
|
+
import snippets from './snippets';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: 'PisellModal',
|
|
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: 'PisellModal',
|
|
16
|
+
main: 'src/index.tsx',
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: '',
|
|
19
|
+
},
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
name: 'platform',
|
|
23
|
+
title: {
|
|
24
|
+
label: '指定平台信息',
|
|
25
|
+
tip: 'platform',
|
|
26
|
+
},
|
|
27
|
+
propType: { type: 'oneOf', value: ['h5', 'ipad', 'pc', null] },
|
|
28
|
+
setter: [
|
|
29
|
+
{
|
|
30
|
+
componentName: 'RadioGroupSetter',
|
|
31
|
+
props: {
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
title: 'h5',
|
|
35
|
+
value: 'h5',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: 'ipad',
|
|
39
|
+
value: 'ipad',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: 'pc',
|
|
43
|
+
value: 'pc',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: 'null',
|
|
47
|
+
value: null,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
'VariableSetter',
|
|
53
|
+
],
|
|
54
|
+
defaultValue: null,
|
|
55
|
+
},
|
|
56
|
+
// {
|
|
57
|
+
// name: 'size',
|
|
58
|
+
// title: {
|
|
59
|
+
// label: 'size',
|
|
60
|
+
// tip: '弹框大小',
|
|
61
|
+
// },
|
|
62
|
+
// propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
|
|
63
|
+
// setter: [
|
|
64
|
+
// {
|
|
65
|
+
// componentName: 'RadioGroupSetter',
|
|
66
|
+
// props: {
|
|
67
|
+
// options: [
|
|
68
|
+
// {
|
|
69
|
+
// title: 'large',
|
|
70
|
+
// value: 'large',
|
|
71
|
+
// },
|
|
72
|
+
// {
|
|
73
|
+
// title: 'middle',
|
|
74
|
+
// value: 'middle',
|
|
75
|
+
// },
|
|
76
|
+
// {
|
|
77
|
+
// title: 'small',
|
|
78
|
+
// value: 'small',
|
|
79
|
+
// },
|
|
80
|
+
// ],
|
|
81
|
+
// },
|
|
82
|
+
// },
|
|
83
|
+
// 'VariableSetter',
|
|
84
|
+
// ],
|
|
85
|
+
// defaultValue: 'middle',
|
|
86
|
+
// },
|
|
87
|
+
{
|
|
88
|
+
name: 'headerDivider',
|
|
89
|
+
title: { label: '顶部区域分割线', tip: '顶部区域分割线是否可见' },
|
|
90
|
+
propType: 'bool',
|
|
91
|
+
setter: 'BoolSetter',
|
|
92
|
+
defaultValue: true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'footerDivider',
|
|
96
|
+
title: { label: '顶部区域分割线', tip: '顶部区域分割线是否可见' },
|
|
97
|
+
propType: 'bool',
|
|
98
|
+
setter: 'BoolSetter',
|
|
99
|
+
defaultValue: true,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'mobileModalHeight',
|
|
103
|
+
title: { label: '移动端高度', tip: '移动端展示时弹窗高度' },
|
|
104
|
+
propType: { type: 'oneOfType', value: ['string', 'number'] },
|
|
105
|
+
defaultValue: null,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'deleteButtonProps',
|
|
109
|
+
title: { label: '删除按钮props', tip: '删除按钮props' },
|
|
110
|
+
propType: 'object',
|
|
111
|
+
setter: {
|
|
112
|
+
componentName: 'ObjectSetter',
|
|
113
|
+
defaultValue: null,
|
|
114
|
+
props: {
|
|
115
|
+
config: {
|
|
116
|
+
items: [
|
|
117
|
+
{
|
|
118
|
+
name: 'disabled',
|
|
119
|
+
title: { label: '是否可点击', tip: 'disabled' },
|
|
120
|
+
propType: 'bool',
|
|
121
|
+
setter: [
|
|
122
|
+
{
|
|
123
|
+
componentName: 'BoolSetter',
|
|
124
|
+
|
|
125
|
+
initialValue: false,
|
|
126
|
+
},
|
|
127
|
+
'VariableSetter',
|
|
128
|
+
],
|
|
129
|
+
isRequired: true,
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "actions",
|
|
138
|
+
title: { label: "操作按钮", tip: "footer中额外操作按钮" },
|
|
139
|
+
propType: { type: "oneOfType", value: ["node"] },
|
|
140
|
+
setter: ["SlotSetter"],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'cancelVisible',
|
|
144
|
+
title: { label: '取消按钮', tip: '取消按钮是否可见' },
|
|
145
|
+
propType: 'bool',
|
|
146
|
+
setter: 'BoolSetter',
|
|
147
|
+
defaultValue: true,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'okVisible',
|
|
151
|
+
title: { label: '确认按钮', tip: '确认按钮是否可见' },
|
|
152
|
+
propType: 'bool',
|
|
153
|
+
setter: 'BoolSetter',
|
|
154
|
+
defaultValue: true,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'header',
|
|
158
|
+
title: { label: '展示header', tip: '是否展示header' },
|
|
159
|
+
propType: 'bool',
|
|
160
|
+
setter: 'BoolSetter',
|
|
161
|
+
defaultValue: true,
|
|
162
|
+
},
|
|
163
|
+
...modalMeta.props,
|
|
164
|
+
],
|
|
165
|
+
configure: {
|
|
166
|
+
component: {
|
|
167
|
+
isContainer: true,
|
|
168
|
+
isModal: true,
|
|
169
|
+
rootSelector: '.pisell-lowcode-modal-content',
|
|
170
|
+
nestingRule: {
|
|
171
|
+
parentWhitelist: ['Page', 'Component'],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
supports: {
|
|
175
|
+
style: true,
|
|
176
|
+
events: [
|
|
177
|
+
{
|
|
178
|
+
name: 'afterClose',
|
|
179
|
+
templete:
|
|
180
|
+
"onCancel(${extParams}){\n// 完全关闭后的回调\nconsole.log('afterClose');}",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'onCancel',
|
|
184
|
+
template:
|
|
185
|
+
"onCancel(${extParams}){\n// 点击遮罩层或右上角叉或取消按钮的回调\nconsole.log('onCancel');}",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'onOk',
|
|
189
|
+
template:
|
|
190
|
+
"onOk(${extParams}){\n// 点击确定回调\nconsole.log('onOk');}",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'onDelete',
|
|
194
|
+
template:
|
|
195
|
+
"onDelete(${extParams}){\n// 点击删除回调\nconsole.log('onDelete');}",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '对话框原子',
|
|
4
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/modal-1.png',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellModal',
|
|
7
|
+
props: {
|
|
8
|
+
open: true,
|
|
9
|
+
destroyOnClose: true,
|
|
10
|
+
footer: {
|
|
11
|
+
"type": "JSSlot",
|
|
12
|
+
"id": "node_oclzi7roj61"
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
"type": "JSSlot",
|
|
16
|
+
"id": "node_oclzi7roj62"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
children: [],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: 'pisell普通型',
|
|
24
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/modal-1.png',
|
|
25
|
+
schema: {
|
|
26
|
+
componentName: 'PisellModal',
|
|
27
|
+
props: {
|
|
28
|
+
title: 'Basic Modal',
|
|
29
|
+
okText: '确认',
|
|
30
|
+
cancelText: '取消',
|
|
31
|
+
open: true,
|
|
32
|
+
footer: null,
|
|
33
|
+
destroyOnClose: true,
|
|
34
|
+
},
|
|
35
|
+
children: [],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
];
|
|
Binary file
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellModal.Information',
|
|
6
|
+
title: '信息对话框',
|
|
7
|
+
category: '反馈',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellModal',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: 'Information',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: "open",
|
|
22
|
+
title: { label: "是否可见", tip: "对话框是否可见" },
|
|
23
|
+
propType: "bool",
|
|
24
|
+
setter: "BoolSetter",
|
|
25
|
+
supportVariable: true,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "title",
|
|
29
|
+
title: { label: "标题内容", tip: "标题内容" },
|
|
30
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
31
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "describe",
|
|
35
|
+
title: { label: "描述正文", tip: "描述正文" },
|
|
36
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
37
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'okVisible',
|
|
41
|
+
title: { label: '确认按钮', tip: '确认按钮是否可见' },
|
|
42
|
+
propType: 'bool',
|
|
43
|
+
setter: 'BoolSetter',
|
|
44
|
+
defaultValue: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'footerDivider',
|
|
48
|
+
title: { label: '顶部区域分割线', tip: '顶部区域分割线是否可见' },
|
|
49
|
+
propType: 'bool',
|
|
50
|
+
setter: 'BoolSetter',
|
|
51
|
+
defaultValue: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "okText",
|
|
55
|
+
title: { label: "确认按钮文字", tip: "确认按钮文字" },
|
|
56
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
57
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "closable",
|
|
61
|
+
title: { label: "显示关闭按钮", tip: "是否显示右上角的关闭按钮" },
|
|
62
|
+
propType: "bool",
|
|
63
|
+
defaultValue: true,
|
|
64
|
+
setter: "BoolSetter",
|
|
65
|
+
supportVariable: true,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'cancelVisible',
|
|
69
|
+
title: { label: '取消按钮', tip: '取消按钮是否可见' },
|
|
70
|
+
propType: 'bool',
|
|
71
|
+
setter: 'BoolSetter',
|
|
72
|
+
defaultValue: true,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "cancelText",
|
|
76
|
+
title: { label: "取消按钮文字", tip: "取消按钮文字" },
|
|
77
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
78
|
+
setter: ["PisellI18nSetter", "SlotSetter"],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
configure: {
|
|
82
|
+
component: {
|
|
83
|
+
isContainer: true,
|
|
84
|
+
isModal: true,
|
|
85
|
+
rootSelector: '.pisell-lowcode-modal-content',
|
|
86
|
+
nestingRule: {
|
|
87
|
+
parentWhitelist: ['Page', 'Component'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
supports: {
|
|
91
|
+
style: true,
|
|
92
|
+
events: [
|
|
93
|
+
{
|
|
94
|
+
name: 'afterClose',
|
|
95
|
+
templete:
|
|
96
|
+
"onCancel(${extParams}){\n// 完全关闭后的回调\nconsole.log('afterClose');}",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'onCancel',
|
|
100
|
+
template:
|
|
101
|
+
"onCancel(${extParams}){\n// 点击遮罩层或右上角叉或取消按钮的回调\nconsole.log('onCancel');}",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'onOk',
|
|
105
|
+
template:
|
|
106
|
+
"onOk(${extParams}){\n// 点击确定回调\nconsole.log('onOk');}",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'onDelete',
|
|
110
|
+
template:
|
|
111
|
+
"onDelete(${extParams}){\n// 点击删除回调\nconsole.log('onDelete');}",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '信息对话框',
|
|
4
|
+
screenshot: require('./__screenshots__/pisell-modal.information.png'),
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellModal.Information',
|
|
7
|
+
props: {
|
|
8
|
+
title: 'Information title',
|
|
9
|
+
describe: 'This is a Supporting text',
|
|
10
|
+
okText: '确认',
|
|
11
|
+
cancelText: '取消',
|
|
12
|
+
open: true,
|
|
13
|
+
},
|
|
14
|
+
children: [],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
];
|