@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,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
3
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
+
declare const PisellInput: {
|
|
5
|
+
(props: InputProps & {
|
|
6
|
+
/** 平台 */
|
|
7
|
+
platform?: PisellContextType['platform'];
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
BankCard: (props: import("./components/BankCard").BankCardProps) => React.JSX.Element;
|
|
10
|
+
SecurityCode: (props: import("./components/SecurityCode").SecurityCodeProps) => React.JSX.Element;
|
|
11
|
+
Copy: (props: import("./components/Copy").CopyProps) => React.JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export default PisellInput;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellInput/index.tsx
|
|
30
|
+
var pisellInput_exports = {};
|
|
31
|
+
__export(pisellInput_exports, {
|
|
32
|
+
default: () => pisellInput_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellInput_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_input = __toESM(require("../input"));
|
|
37
|
+
var import_BankCard = __toESM(require("./components/BankCard"));
|
|
38
|
+
var import_SecurityCode = __toESM(require("./components/SecurityCode"));
|
|
39
|
+
var import_Copy = __toESM(require("./components/Copy"));
|
|
40
|
+
var PisellInput = (props) => {
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement(import_input.default, { ...props, size: props.size || "large" });
|
|
42
|
+
};
|
|
43
|
+
PisellInput.BankCard = import_BankCard.default;
|
|
44
|
+
PisellInput.SecurityCode = import_SecurityCode.default;
|
|
45
|
+
PisellInput.Copy = import_Copy.default;
|
|
46
|
+
var pisellInput_default = PisellInput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpinProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare type MaskType = {
|
|
5
|
+
width: number | string;
|
|
6
|
+
height: number | string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
};
|
|
9
|
+
export interface PisellLoadingProps extends SpinProps {
|
|
10
|
+
/** 是否正在加载中 */
|
|
11
|
+
loading: boolean;
|
|
12
|
+
/** mask是否展示 对象形式时是mask配置 */
|
|
13
|
+
mask?: boolean | MaskType;
|
|
14
|
+
/** 是否全屏 */
|
|
15
|
+
fullscreen?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const PisellLoading: (props: PisellLoadingProps) => React.JSX.Element;
|
|
18
|
+
export default PisellLoading;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellLoading/index.tsx
|
|
30
|
+
var pisellLoading_exports = {};
|
|
31
|
+
__export(pisellLoading_exports, {
|
|
32
|
+
default: () => pisellLoading_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellLoading_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_iconfont = __toESM(require("../iconfont"));
|
|
38
|
+
var import_useCssVariables = __toESM(require("../../hooks/useCssVariables"));
|
|
39
|
+
var import_utils = require("../../utils");
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var PisellLoading = (props) => {
|
|
42
|
+
const { children, fullscreen, mask, loading } = props;
|
|
43
|
+
const ref = (0, import_react.useRef)(null);
|
|
44
|
+
const {
|
|
45
|
+
backgroundColor = "#fff",
|
|
46
|
+
width = "100%",
|
|
47
|
+
height = "100%"
|
|
48
|
+
} = mask || {};
|
|
49
|
+
(0, import_useCssVariables.default)({
|
|
50
|
+
variables: {
|
|
51
|
+
"--pisell-loading-mask-opacity": mask ? "1" : "0",
|
|
52
|
+
"--pisell-loading-bg-color": fullscreen && !mask ? "transparent" : backgroundColor,
|
|
53
|
+
"--pisell-loading-bg-width": (0, import_utils.getCssNumber)(width) || "100%",
|
|
54
|
+
"--pisell-loading-bg-height": (0, import_utils.getCssNumber)(height) || "100%",
|
|
55
|
+
"--pisell-loading-bg-border-radius": width !== "100%" || height !== "100%" ? "12px" : "0px"
|
|
56
|
+
},
|
|
57
|
+
ref
|
|
58
|
+
});
|
|
59
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { ref, className: "pisell-loading-wrapper" }, /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
+
import_antd.Spin,
|
|
61
|
+
{
|
|
62
|
+
fullscreen,
|
|
63
|
+
spinning: loading,
|
|
64
|
+
indicator: /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-loader2", style: { fontSize: 40 }, spin: true })
|
|
65
|
+
},
|
|
66
|
+
children
|
|
67
|
+
));
|
|
68
|
+
};
|
|
69
|
+
var pisellLoading_default = PisellLoading;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.pisell-loading-wrapper {
|
|
2
|
+
.pisell-lowcode-spin-spinning {
|
|
3
|
+
z-index: 11;
|
|
4
|
+
}
|
|
5
|
+
.pisell-lowcode-spin-fullscreen {
|
|
6
|
+
background-color: var(--pisell-loading-bg-color);
|
|
7
|
+
width: var(--pisell-loading-bg-width);
|
|
8
|
+
height: var(--pisell-loading-bg-height);
|
|
9
|
+
border-radius: var(--pisell-loading-bg-border-radius);
|
|
10
|
+
top: 50%;
|
|
11
|
+
left: 50%;
|
|
12
|
+
transform: translate(-50%, -50%);
|
|
13
|
+
.pisell-lowcode-spin-dot {
|
|
14
|
+
transform: none;
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.pisell-lowcode-spin-dot {
|
|
19
|
+
transform: translate(-50%, -50%);
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
.pisell-lowcode-spin-blur {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
.pisell-lowcode-spin-blur::after {
|
|
26
|
+
opacity: var(--pisell-loading-mask-opacity);
|
|
27
|
+
background-color: var(--pisell-loading-bg-color);
|
|
28
|
+
width: var(--pisell-loading-bg-width);
|
|
29
|
+
height: var(--pisell-loading-bg-height);
|
|
30
|
+
border-radius: var(--pisell-loading-bg-border-radius);
|
|
31
|
+
top: 50%;
|
|
32
|
+
left: 50%;
|
|
33
|
+
transform: translate(-50%, -50%);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellMessage/index.tsx
|
|
20
|
+
var pisellMessage_exports = {};
|
|
21
|
+
__export(pisellMessage_exports, {
|
|
22
|
+
message: () => message,
|
|
23
|
+
setMessage: () => setMessage
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(pisellMessage_exports);
|
|
26
|
+
var message;
|
|
27
|
+
var setMessage = (m) => {
|
|
28
|
+
message = m;
|
|
29
|
+
};
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
message,
|
|
33
|
+
setMessage
|
|
34
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellModalProps } from '../../index';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface InformationProps extends PisellModalProps {
|
|
5
|
+
/** 标题 */
|
|
6
|
+
title: string;
|
|
7
|
+
/** 描述 */
|
|
8
|
+
describe: string;
|
|
9
|
+
/** 取消按钮是否展示 */
|
|
10
|
+
cancelVisible?: boolean;
|
|
11
|
+
/** 确认按钮是否展示 */
|
|
12
|
+
okVisible?: boolean;
|
|
13
|
+
/** 确认按钮文字 */
|
|
14
|
+
okText: React.ReactNode;
|
|
15
|
+
/** 取消按钮文字 */
|
|
16
|
+
cancelText: React.ReactNode;
|
|
17
|
+
/** 右上角关闭按钮是否展示 */
|
|
18
|
+
closable?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const Information: (props: InformationProps) => React.JSX.Element;
|
|
21
|
+
export default Information;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellModal/components/Information/index.tsx
|
|
30
|
+
var Information_exports = {};
|
|
31
|
+
__export(Information_exports, {
|
|
32
|
+
default: () => Information_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Information_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import__ = __toESM(require("../../index"));
|
|
37
|
+
var import_index = require("./index.less");
|
|
38
|
+
var Information = (props) => {
|
|
39
|
+
const { title, describe, footerDivider, ...others } = props;
|
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
|
+
import__.default,
|
|
42
|
+
{
|
|
43
|
+
...others,
|
|
44
|
+
mobileModalHeight: "auto",
|
|
45
|
+
headerDivider: false,
|
|
46
|
+
footerDivider,
|
|
47
|
+
size: "small",
|
|
48
|
+
transitionName: "pisell-move-down"
|
|
49
|
+
},
|
|
50
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-modal-information-title" }, title),
|
|
51
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-modal-information-describe" }, describe)
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
var Information_default = Information;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.pisell-modal-information-title {
|
|
2
|
+
color: var(--Gray-900, #101828);
|
|
3
|
+
font-size: 24px;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: 28px; /* 155.556% */
|
|
7
|
+
margin-bottom: 4px;
|
|
8
|
+
}
|
|
9
|
+
.pisell-modal-information-describe {
|
|
10
|
+
color: var(--Gray-900, #101828);
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
line-height: 20px; /* 142.857% */
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellModal/components/IpadModal/index.tsx
|
|
30
|
+
var IpadModal_exports = {};
|
|
31
|
+
__export(IpadModal_exports, {
|
|
32
|
+
default: () => IpadModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(IpadModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_PcModal = __toESM(require("../PcModal"));
|
|
37
|
+
var IpadModal = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_PcModal.default, { ...props });
|
|
39
|
+
};
|
|
40
|
+
var IpadModal_default = IpadModal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PcModalProps } from '../PcModal';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface MobileModalProps extends PcModalProps {
|
|
5
|
+
/** 移动端展示时弹窗高度 默认null 在移动端全屏 */
|
|
6
|
+
mobileModalHeight?: string | number;
|
|
7
|
+
}
|
|
8
|
+
declare const MobileModal: (props: MobileModalProps) => React.JSX.Element;
|
|
9
|
+
export default MobileModal;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellModal/components/MobileModal/index.tsx
|
|
30
|
+
var MobileModal_exports = {};
|
|
31
|
+
__export(MobileModal_exports, {
|
|
32
|
+
default: () => MobileModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(MobileModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_PcModal = __toESM(require("../PcModal"));
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var MobileModal = (props) => {
|
|
40
|
+
const { wrapClassName, mobileModalHeight } = props;
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
+
import_PcModal.default,
|
|
43
|
+
{
|
|
44
|
+
...props,
|
|
45
|
+
transitionName: "pisell-move-down",
|
|
46
|
+
width: "100%",
|
|
47
|
+
wrapClassName: (0, import_classnames.default)("pisell-mobile-modal", {
|
|
48
|
+
[wrapClassName]: wrapClassName
|
|
49
|
+
}),
|
|
50
|
+
modalRender: (node) => {
|
|
51
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: (0, import_classnames.default)({
|
|
55
|
+
["pisell-mobile-modal-render"]: mobileModalHeight
|
|
56
|
+
}),
|
|
57
|
+
style: {
|
|
58
|
+
height: mobileModalHeight || "100%"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
node
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
var MobileModal_default = MobileModal;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.pisell-lowcode-modal-root {
|
|
2
|
+
.pisell-mobile-modal {
|
|
3
|
+
.pisell-lowcode-modal {
|
|
4
|
+
margin: 0;
|
|
5
|
+
height: 100%;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
top: auto;
|
|
9
|
+
padding-bottom: 0;
|
|
10
|
+
vertical-align: bottom;
|
|
11
|
+
}
|
|
12
|
+
.pisell-mobile-modal-render {
|
|
13
|
+
position: absolute;
|
|
14
|
+
width: 100%;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
border-radius: 12px 12px 0 0;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
max-height: 90%;
|
|
19
|
+
min-height: 200px;
|
|
20
|
+
}
|
|
21
|
+
.pisell-lowcode-modal-content {
|
|
22
|
+
padding: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
height: 100%;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
max-height: none;
|
|
28
|
+
.pisell-lowcode-modal-close {
|
|
29
|
+
padding: 10px;
|
|
30
|
+
top: 8px;
|
|
31
|
+
right: 16px;
|
|
32
|
+
box-sizing: content-box;
|
|
33
|
+
}
|
|
34
|
+
.pisell-lowcode-modal-header {
|
|
35
|
+
padding: 16px 24px;
|
|
36
|
+
border-bottom: 1px solid var(--Gray-200, #eaecf0);
|
|
37
|
+
margin: 0;
|
|
38
|
+
.pisell-lowcode-modal-title {
|
|
39
|
+
color: var(--Gray-900, #101828);
|
|
40
|
+
font-size: 18px;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
line-height: 24px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.pisell-lowcode-modal-body {
|
|
47
|
+
padding: 0 24px;
|
|
48
|
+
flex: 1;
|
|
49
|
+
overflow: auto;
|
|
50
|
+
}
|
|
51
|
+
.pisell-lowcode-modal-footer {
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
border-top: 1px solid var(--Gray-200, #eaecf0);
|
|
55
|
+
padding: 24px;
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps, ModalProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface PcModalProps extends ModalProps {
|
|
5
|
+
/**
|
|
6
|
+
* 弹窗大小
|
|
7
|
+
* large 800
|
|
8
|
+
* middle 480
|
|
9
|
+
* small 400
|
|
10
|
+
* */
|
|
11
|
+
size?: 'large' | 'middle' | 'small';
|
|
12
|
+
/** 头部分割线是否展示 */
|
|
13
|
+
headerDivider?: boolean;
|
|
14
|
+
/** 底部分割线是否展示 */
|
|
15
|
+
footerDivider?: boolean;
|
|
16
|
+
/** 删除按钮props */
|
|
17
|
+
deleteButtonProps?: ButtonProps | null;
|
|
18
|
+
/** 删除事件 */
|
|
19
|
+
onDelete?: () => void;
|
|
20
|
+
/** footer中额外操作按钮 */
|
|
21
|
+
actions?: React.ReactNode;
|
|
22
|
+
/** 取消按钮是否展示 */
|
|
23
|
+
cancelVisible?: boolean;
|
|
24
|
+
/** 确认按钮是否展示 */
|
|
25
|
+
okVisible?: boolean;
|
|
26
|
+
/** header是否展示 */
|
|
27
|
+
header?: boolean | null;
|
|
28
|
+
}
|
|
29
|
+
declare const PcModal: (props: PcModalProps) => React.JSX.Element;
|
|
30
|
+
export default PcModal;
|