@para-ui/core 2.1.34 → 2.1.35
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/.eslintignore +12 -0
- package/README.md +12 -0
- package/babel.config.js +7 -0
- package/docs/App.tsx +277 -0
- package/docs/Router.tsx +79 -0
- package/docs/assets/1.jpeg +0 -0
- package/docs/assets/P.svg +1 -0
- package/docs/assets/icon.ico +0 -0
- package/docs/assets/icon.png +0 -0
- package/docs/assets/logo.png +0 -0
- package/docs/config/interceptors.ts +73 -0
- package/docs/config/router.tsx +212 -0
- package/docs/context/global.tsx +65 -0
- package/docs/index.tsx +42 -0
- package/docs/locale/index.ts +64 -0
- package/docs/locale/lang/en_US.ts +16 -0
- package/docs/locale/lang/zh_CN.ts +16 -0
- package/docs/react-app-env.d.ts +18 -0
- package/docs/services/api.ts +6 -0
- package/docs/styles/index.scss +31 -0
- package/docs/view/autoBox/api.tsx +67 -0
- package/docs/view/autoBox/codeString.tsx +137 -0
- package/docs/view/autoBox/index.scss +15 -0
- package/docs/view/autoBox/index.tsx +97 -0
- package/docs/view/autoTips/api.tsx +49 -0
- package/docs/view/autoTips/codeString.tsx +34 -0
- package/{Tree/utils/closestPolyfill.d.ts → docs/view/autoTips/index.scss} +0 -0
- package/docs/view/autoTips/index.tsx +53 -0
- package/docs/view/breadcrumbs/api.tsx +72 -0
- package/docs/view/breadcrumbs/codeString.tsx +160 -0
- package/docs/view/breadcrumbs/index.scss +14 -0
- package/docs/view/breadcrumbs/index.tsx +173 -0
- package/docs/view/button/api.tsx +131 -0
- package/docs/view/button/codeString.tsx +153 -0
- package/docs/view/button/index.scss +23 -0
- package/docs/view/button/index.tsx +165 -0
- package/docs/view/buttonGroup/api.tsx +55 -0
- package/docs/view/buttonGroup/codeString.tsx +108 -0
- package/docs/view/buttonGroup/index.scss +9 -0
- package/docs/view/buttonGroup/index.tsx +93 -0
- package/docs/view/carousel/api.tsx +165 -0
- package/docs/view/carousel/codeString.tsx +207 -0
- package/docs/view/carousel/index.scss +12 -0
- package/docs/view/carousel/index.tsx +174 -0
- package/docs/view/cascader/api.tsx +116 -0
- package/docs/view/cascader/codeString.tsx +584 -0
- package/docs/view/cascader/index.scss +0 -0
- package/docs/view/cascader/index.tsx +261 -0
- package/docs/view/checkbox/api.tsx +148 -0
- package/docs/view/checkbox/codeString.tsx +215 -0
- package/docs/view/checkbox/index.scss +0 -0
- package/docs/view/checkbox/index.tsx +233 -0
- package/docs/view/collapse/api.tsx +109 -0
- package/docs/view/collapse/codeString.tsx +186 -0
- package/docs/view/collapse/index.scss +0 -0
- package/docs/view/collapse/index.tsx +171 -0
- package/docs/view/colorPicker/api.tsx +30 -0
- package/docs/view/colorPicker/codeString.tsx +58 -0
- package/docs/view/colorPicker/index.scss +5 -0
- package/docs/view/colorPicker/index.tsx +39 -0
- package/docs/view/comboSelect/api.tsx +255 -0
- package/docs/view/comboSelect/codeString.tsx +629 -0
- package/docs/view/comboSelect/index.scss +5 -0
- package/docs/view/comboSelect/index.tsx +402 -0
- package/docs/view/container/api.tsx +61 -0
- package/docs/view/container/codeString.tsx +64 -0
- package/docs/view/container/index.scss +0 -0
- package/docs/view/container/index.tsx +84 -0
- package/docs/view/datePicker/api.tsx +264 -0
- package/docs/view/datePicker/codeString.tsx +185 -0
- package/docs/view/datePicker/index.scss +8 -0
- package/docs/view/datePicker/index.tsx +205 -0
- package/docs/view/drawer/api.tsx +123 -0
- package/docs/view/drawer/codeString.tsx +122 -0
- package/docs/view/drawer/index.scss +5 -0
- package/docs/view/drawer/index.tsx +200 -0
- package/docs/view/empty/api.tsx +57 -0
- package/docs/view/empty/codeString.tsx +38 -0
- package/docs/view/empty/index.scss +11 -0
- package/docs/view/empty/index.tsx +43 -0
- package/docs/view/form/api.tsx +266 -0
- package/docs/view/form/codeString.tsx +203 -0
- package/docs/view/form/index.scss +0 -0
- package/docs/view/form/index.tsx +225 -0
- package/docs/view/help/api.tsx +58 -0
- package/docs/view/help/codeString.tsx +39 -0
- package/docs/view/help/index.scss +5 -0
- package/docs/view/help/index.tsx +40 -0
- package/docs/view/helperText/api.tsx +31 -0
- package/docs/view/helperText/codeString.tsx +16 -0
- package/docs/view/helperText/index.scss +0 -0
- package/docs/view/helperText/index.tsx +33 -0
- package/docs/view/home/index.scss +55 -0
- package/docs/view/home/index.tsx +119 -0
- package/docs/view/icons/index.scss +48 -0
- package/docs/view/icons/index.tsx +87 -0
- package/docs/view/inputLang/api.tsx +99 -0
- package/docs/view/inputLang/codeString.tsx +66 -0
- package/docs/view/inputLang/index.scss +0 -0
- package/docs/view/inputLang/index.tsx +85 -0
- package/docs/view/inputNumber/api.tsx +169 -0
- package/docs/view/inputNumber/codeString.tsx +129 -0
- package/docs/view/inputNumber/index.scss +0 -0
- package/docs/view/inputNumber/index.tsx +141 -0
- package/docs/view/label/api.tsx +63 -0
- package/docs/view/label/codeString.tsx +63 -0
- package/docs/view/label/index.scss +0 -0
- package/docs/view/label/index.tsx +82 -0
- package/docs/view/loading/api.tsx +26 -0
- package/docs/view/loading/codeString.tsx +13 -0
- package/docs/view/loading/index.scss +0 -0
- package/docs/view/loading/index.tsx +38 -0
- package/docs/view/menu/api.tsx +227 -0
- package/docs/view/menu/codeString.tsx +302 -0
- package/docs/view/menu/index.scss +42 -0
- package/docs/view/menu/index.tsx +289 -0
- package/docs/view/message/api.tsx +35 -0
- package/docs/view/message/codeString.tsx +73 -0
- package/docs/view/message/index.scss +7 -0
- package/docs/view/message/index.tsx +64 -0
- package/docs/view/modal/api.tsx +141 -0
- package/docs/view/modal/codeString.tsx +222 -0
- package/docs/view/modal/index.scss +9 -0
- package/docs/view/modal/index.tsx +222 -0
- package/docs/view/multiBox/api.tsx +99 -0
- package/docs/view/multiBox/codeString.tsx +104 -0
- package/docs/view/multiBox/index.scss +0 -0
- package/docs/view/multiBox/index.tsx +123 -0
- package/docs/view/notification/api.tsx +148 -0
- package/docs/view/notification/codeString.tsx +110 -0
- package/docs/view/notification/index.scss +9 -0
- package/docs/view/notification/index.tsx +118 -0
- package/docs/view/operateBtn/api.tsx +127 -0
- package/docs/view/operateBtn/codeString.tsx +165 -0
- package/docs/view/operateBtn/index.scss +0 -0
- package/docs/view/operateBtn/index.tsx +160 -0
- package/docs/view/pageHeader/api.tsx +321 -0
- package/docs/view/pageHeader/codeString.tsx +252 -0
- package/docs/view/pageHeader/index.scss +6 -0
- package/docs/view/pageHeader/index.tsx +291 -0
- package/docs/view/pagination/api.tsx +71 -0
- package/docs/view/pagination/codeString.tsx +45 -0
- package/docs/view/pagination/index.scss +0 -0
- package/docs/view/pagination/index.tsx +54 -0
- package/docs/view/popConfirm/api.tsx +96 -0
- package/docs/view/popConfirm/codeString.tsx +130 -0
- package/docs/view/popConfirm/index.scss +33 -0
- package/docs/view/popConfirm/index.tsx +167 -0
- package/docs/view/popover/api.tsx +80 -0
- package/docs/view/popover/codeString.tsx +40 -0
- package/docs/view/popover/index.scss +4 -0
- package/docs/view/popover/index.tsx +53 -0
- package/docs/view/querying/api.tsx +46 -0
- package/docs/view/querying/codeString.tsx +28 -0
- package/docs/view/querying/index.scss +11 -0
- package/docs/view/querying/index.tsx +35 -0
- package/docs/view/radio/api.tsx +142 -0
- package/docs/view/radio/codeString.tsx +136 -0
- package/docs/view/radio/index.scss +0 -0
- package/docs/view/radio/index.tsx +154 -0
- package/docs/view/search/api.tsx +132 -0
- package/docs/view/search/codeString.tsx +164 -0
- package/docs/view/search/index.scss +0 -0
- package/docs/view/search/index.tsx +142 -0
- package/docs/view/select/api.tsx +195 -0
- package/docs/view/select/codeString.tsx +379 -0
- package/docs/view/select/index.scss +12 -0
- package/docs/view/select/index.tsx +370 -0
- package/docs/view/selectInput/api.tsx +161 -0
- package/docs/view/selectInput/codeString.tsx +171 -0
- package/docs/view/selectInput/index.scss +12 -0
- package/docs/view/selectInput/index.tsx +167 -0
- package/docs/view/singleBox/api.tsx +89 -0
- package/docs/view/singleBox/codeString.tsx +94 -0
- package/docs/view/singleBox/index.scss +0 -0
- package/docs/view/singleBox/index.tsx +111 -0
- package/docs/view/slider/api.tsx +135 -0
- package/docs/view/slider/codeString.tsx +99 -0
- package/docs/view/slider/index.scss +11 -0
- package/docs/view/slider/index.tsx +95 -0
- package/docs/view/stepper/api.tsx +49 -0
- package/docs/view/stepper/codeString.tsx +64 -0
- package/docs/view/stepper/index.scss +3 -0
- package/docs/view/stepper/index.tsx +57 -0
- package/docs/view/switch/api.tsx +70 -0
- package/docs/view/switch/codeString.tsx +48 -0
- package/docs/view/switch/index.scss +16 -0
- package/docs/view/switch/index.tsx +50 -0
- package/docs/view/table/api.tsx +330 -0
- package/docs/view/table/codeString.tsx +737 -0
- package/docs/view/table/index.scss +0 -0
- package/docs/view/table/index.tsx +549 -0
- package/docs/view/tabs/api.tsx +106 -0
- package/docs/view/tabs/codeString.tsx +243 -0
- package/docs/view/tabs/index.scss +5 -0
- package/docs/view/tabs/index.tsx +132 -0
- package/docs/view/tag/api.tsx +119 -0
- package/docs/view/tag/codeString.tsx +95 -0
- package/docs/view/tag/index.scss +5 -0
- package/docs/view/tag/index.tsx +91 -0
- package/docs/view/textField/api.tsx +229 -0
- package/docs/view/textField/codeString.tsx +251 -0
- package/docs/view/textField/index.scss +3 -0
- package/docs/view/textField/index.tsx +327 -0
- package/docs/view/timeLine/api.tsx +43 -0
- package/docs/view/timeLine/codeString.tsx +85 -0
- package/docs/view/timeLine/index.scss +5 -0
- package/docs/view/timeLine/index.tsx +73 -0
- package/docs/view/timePicker/api.tsx +178 -0
- package/docs/view/timePicker/codeString.tsx +66 -0
- package/docs/view/timePicker/index.scss +8 -0
- package/docs/view/timePicker/index.tsx +75 -0
- package/docs/view/toggleButton/api.tsx +100 -0
- package/docs/view/toggleButton/codeString.tsx +152 -0
- package/docs/view/toggleButton/index.scss +5 -0
- package/docs/view/toggleButton/index.tsx +108 -0
- package/docs/view/toolTip/api.tsx +96 -0
- package/docs/view/toolTip/codeString.tsx +42 -0
- package/docs/view/toolTip/index.scss +5 -0
- package/docs/view/toolTip/index.tsx +44 -0
- package/docs/view/transfer/api.tsx +33 -0
- package/docs/view/transfer/codeString.tsx +44 -0
- package/docs/view/transfer/index.scss +0 -0
- package/docs/view/transfer/index.tsx +59 -0
- package/docs/view/tree/api.tsx +413 -0
- package/docs/view/tree/codeString.tsx +437 -0
- package/docs/view/tree/index.scss +5 -0
- package/docs/view/tree/index.tsx +362 -0
- package/docs/view/upload/api.tsx +302 -0
- package/docs/view/upload/codeString.tsx +248 -0
- package/docs/view/upload/index.scss +7 -0
- package/docs/view/upload/index.tsx +207 -0
- package/package.json +1 -1
- package/publish.sh +5 -0
- package/run.js +43 -0
- package/scripts/extract-css.js +9 -0
- package/temp/main.js +1103 -0
- package/{style.css → temp/style.css} +2 -2
- package/tsconfig.json +40 -0
- package/webpack.cdn.config.js +81 -0
- package/webpack.config.js +249 -0
- package/webpack.extract.css.js +86 -0
- package/AutoBox/index.d.ts +0 -34
- package/AutoBox/index.js +0 -28
- package/AutoTips/index.d.ts +0 -27
- package/AutoTips/index.js +0 -15
- package/Breadcrumbs/index.d.ts +0 -39
- package/Breadcrumbs/index.js +0 -28
- package/Button/SplitButton.d.ts +0 -59
- package/Button/index.d.ts +0 -56
- package/Button/index.js +0 -53
- package/Button/lang/en_US.d.ts +0 -4
- package/Button/lang/index.d.ts +0 -9
- package/Button/lang/zh_CN.d.ts +0 -4
- package/ButtonGroup/index.d.ts +0 -33
- package/ButtonGroup/index.js +0 -53
- package/Carousel/index.d.ts +0 -30
- package/Carousel/index.js +0 -15
- package/Cascader/index.d.ts +0 -52
- package/Cascader/index.js +0 -41
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Checkbox/index.d.ts +0 -40
- package/Checkbox/index.js +0 -27
- package/CheckboxGroup/index.d.ts +0 -46
- package/CheckboxGroup/index.js +0 -27
- package/Collapse/collapsePanel.d.ts +0 -30
- package/Collapse/index.d.ts +0 -57
- package/Collapse/index.js +0 -28
- package/Collapse/motion.d.ts +0 -5
- package/Collapse/util.d.ts +0 -11
- package/ColorPicker/index.d.ts +0 -4
- package/ColorPicker/index.js +0 -1
- package/ComBox/index.d.ts +0 -16
- package/ComBox/index.js +0 -16
- package/ComBox/interface.d.ts +0 -5
- package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
- package/ComboSelect/index.d.ts +0 -11
- package/ComboSelect/index.js +0 -391
- package/ComboSelect/interface.d.ts +0 -139
- package/ComboSelect/lang/en_US.d.ts +0 -8
- package/ComboSelect/lang/index.d.ts +0 -17
- package/ComboSelect/lang/zh_CN.d.ts +0 -8
- package/ComboSelect/utils.d.ts +0 -13
- package/Container/index.d.ts +0 -77
- package/Container/index.js +0 -15
- package/DatePicker/PickerButton.d.ts +0 -3
- package/DatePicker/PickerTag.d.ts +0 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
- package/DatePicker/generatePicker/index.d.ts +0 -77
- package/DatePicker/index.d.ts +0 -18
- package/DatePicker/index.js +0 -144
- package/DatePicker/lang/en_US.d.ts +0 -3
- package/DatePicker/lang/index.d.ts +0 -7
- package/DatePicker/lang/zh_CN.d.ts +0 -3
- package/DatePicker/util.d.ts +0 -20
- package/Desktop/index.d.ts +0 -55
- package/Desktop/index.js +0 -14
- package/Drawer/index.d.ts +0 -11
- package/Drawer/index.js +0 -53
- package/Drawer/interface.d.ts +0 -78
- package/Drawer/lang/en_US.d.ts +0 -5
- package/Drawer/lang/index.d.ts +0 -11
- package/Drawer/lang/zh_CN.d.ts +0 -5
- package/Empty/images/index.d.ts +0 -2
- package/Empty/index.d.ts +0 -29
- package/Empty/index.js +0 -14
- package/Empty/lang/en_US.d.ts +0 -6
- package/Empty/lang/index.d.ts +0 -13
- package/Empty/lang/zh_CN.d.ts +0 -6
- package/Form/index.d.ts +0 -154
- package/Form/index.js +0 -209
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
- package/FormItem/compoments/formFile/index.d.ts +0 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
- package/FormItem/compoments/formSelect/index.d.ts +0 -18
- package/FormItem/errorTips.d.ts +0 -10
- package/FormItem/index.d.ts +0 -130
- package/FormItem/index.js +0 -209
- package/FormItem/itemType.d.ts +0 -42
- package/FormItem/validateFunction.d.ts +0 -15
- package/FunctionModal/dialog.d.ts +0 -58
- package/FunctionModal/index.d.ts +0 -8
- package/FunctionModal/index.js +0 -118
- package/FunctionModal/modalContext.d.ts +0 -14
- package/GlobalContext/componentsProps.d.ts +0 -15
- package/GlobalContext/confirmLocale.d.ts +0 -7
- package/GlobalContext/index.d.ts +0 -28
- package/GlobalContext/index.js +0 -16
- package/GlobalContext/intl.d.ts +0 -34
- package/GlobalContext/useFormatMessage.d.ts +0 -3
- package/Help/index.d.ts +0 -20
- package/Help/index.js +0 -28
- package/HelperText/index.d.ts +0 -19
- package/HelperText/index.js +0 -15
- package/InputLang/index.d.ts +0 -49
- package/InputLang/index.js +0 -118
- package/InputNumber/index.d.ts +0 -74
- package/InputNumber/index.js +0 -79
- package/Label/index.d.ts +0 -35
- package/Label/index.js +0 -27
- package/Loading/index.d.ts +0 -17
- package/Loading/index.js +0 -28
- package/Menu/footerExpansion.d.ts +0 -9
- package/Menu/index.d.ts +0 -10
- package/Menu/index.js +0 -53
- package/Menu/interface.d.ts +0 -137
- package/Menu/logo.d.ts +0 -9
- package/Menu/verticalMenuList.d.ts +0 -14
- package/Message/index.d.ts +0 -59
- package/Message/index.js +0 -67
- package/Modal/Confirm/index.d.ts +0 -66
- package/Modal/index.d.ts +0 -61
- package/Modal/index.js +0 -118
- package/Modal/lang/en_US.d.ts +0 -5
- package/Modal/lang/index.d.ts +0 -11
- package/Modal/lang/zh_CN.d.ts +0 -5
- package/MultiBox/index.d.ts +0 -54
- package/MultiBox/index.js +0 -105
- package/Notification/index.d.ts +0 -52
- package/Notification/index.js +0 -67
- package/OperateBtn/index.d.ts +0 -59
- package/OperateBtn/index.js +0 -66
- package/OperateBtn/lang/en_US.d.ts +0 -4
- package/OperateBtn/lang/index.d.ts +0 -9
- package/OperateBtn/lang/zh_CN.d.ts +0 -4
- package/PageHeader/horizontalMeun.d.ts +0 -9
- package/PageHeader/horizontalMeunRight.d.ts +0 -9
- package/PageHeader/index.d.ts +0 -10
- package/PageHeader/index.js +0 -66
- package/PageHeader/interface.d.ts +0 -167
- package/Pagination/index.d.ts +0 -33
- package/Pagination/index.js +0 -183
- package/Pagination/lang/en_US.d.ts +0 -8
- package/Pagination/lang/index.d.ts +0 -17
- package/Pagination/lang/zh_CN.d.ts +0 -8
- package/ParauiProvider/index.d.ts +0 -12
- package/ParauiProvider/index.js +0 -15
- package/PopConfirm/index.d.ts +0 -50
- package/PopConfirm/index.js +0 -105
- package/PopConfirm/lang/en_US.d.ts +0 -5
- package/PopConfirm/lang/index.d.ts +0 -11
- package/PopConfirm/lang/zh_CN.d.ts +0 -5
- package/Popover/index.d.ts +0 -14
- package/Popover/index.js +0 -15
- package/Popper/index.d.ts +0 -13
- package/Popper/index.js +0 -16
- package/Querying/images/index.d.ts +0 -2
- package/Querying/index.d.ts +0 -25
- package/Querying/index.js +0 -14
- package/Querying/lang/en_US.d.ts +0 -4
- package/Querying/lang/index.d.ts +0 -9
- package/Querying/lang/zh_CN.d.ts +0 -4
- package/Radio/index.d.ts +0 -38
- package/Radio/index.js +0 -27
- package/RadioGroup/index.d.ts +0 -47
- package/RadioGroup/index.js +0 -27
- package/Search/index.d.ts +0 -56
- package/Search/index.js +0 -118
- package/Select/index.d.ts +0 -85
- package/Select/index.js +0 -105
- package/Select/lang/en_US.d.ts +0 -5
- package/Select/lang/index.d.ts +0 -11
- package/Select/lang/zh_CN.d.ts +0 -5
- package/Select/selectCom.d.ts +0 -11
- package/SelectInput/index.d.ts +0 -11
- package/SelectInput/index.js +0 -105
- package/SingleBox/index.d.ts +0 -42
- package/SingleBox/index.js +0 -105
- package/Slider/index.d.ts +0 -14
- package/Slider/index.js +0 -15
- package/Slider/interface.d.ts +0 -102
- package/Split/index.d.ts +0 -7
- package/Split/index.js +0 -15
- package/Stepper/icons.d.ts +0 -5
- package/Stepper/index.d.ts +0 -39
- package/Stepper/index.js +0 -145
- package/Switch/index.d.ts +0 -78
- package/Switch/index.js +0 -40
- package/Table/index.d.ts +0 -9
- package/Table/index.js +0 -261
- package/Table/interface.d.ts +0 -200
- package/Table/lang/en_US.d.ts +0 -6
- package/Table/lang/index.d.ts +0 -13
- package/Table/lang/zh_CN.d.ts +0 -6
- package/Table/tableBody.d.ts +0 -9
- package/Table/tableBodyElement/index.d.ts +0 -15
- package/Table/tableBodyInterface.d.ts +0 -67
- package/Table/tableCom.d.ts +0 -11
- package/Table/tableContainer/index.d.ts +0 -16
- package/Table/tableElement/index.d.ts +0 -17
- package/Table/tableHead.d.ts +0 -9
- package/Table/tableHeadElement/index.d.ts +0 -15
- package/Table/tableHeadInterface.d.ts +0 -30
- package/Table/tablePagination.d.ts +0 -9
- package/Table/tablePaginationInterFace.d.ts +0 -24
- package/Table/tdElement/index.d.ts +0 -15
- package/Table/thElement/index.d.ts +0 -15
- package/Table/trElement/index.d.ts +0 -15
- package/Table/util.d.ts +0 -16
- package/Tabs/index.d.ts +0 -48
- package/Tabs/index.js +0 -131
- package/Tag/TagGroup.d.ts +0 -66
- package/Tag/index.d.ts +0 -34
- package/Tag/index.js +0 -40
- package/TextField/index.d.ts +0 -93
- package/TextField/index.js +0 -79
- package/TextField/textFieldCom.d.ts +0 -11
- package/TimePicker/index.d.ts +0 -22
- package/TimePicker/index.js +0 -144
- package/TimePicker/locale/en_US.d.ts +0 -3
- package/TimePicker/locale/zh_CN.d.ts +0 -3
- package/TimePicker/style/index.d.ts +0 -1
- package/Timeline/index.d.ts +0 -22
- package/Timeline/index.js +0 -15
- package/ToggleButton/ToggleButtonGroup.d.ts +0 -45
- package/ToggleButton/index.d.ts +0 -49
- package/ToggleButton/index.js +0 -53
- package/Tooltip/index.d.ts +0 -14
- package/Tooltip/index.js +0 -15
- package/Transfer/index.d.ts +0 -17
- package/Transfer/index.js +0 -144
- package/Transfer/lang/en_US.d.ts +0 -6
- package/Transfer/lang/index.d.ts +0 -13
- package/Transfer/lang/zh_CN.d.ts +0 -6
- package/Tree/OperateBar/index.d.ts +0 -13
- package/Tree/Tree.d.ts +0 -4
- package/Tree/index.d.ts +0 -5
- package/Tree/index.js +0 -131
- package/Tree/interface.d.ts +0 -201
- package/Tree/lang/en_US.d.ts +0 -8
- package/Tree/lang/index.d.ts +0 -17
- package/Tree/lang/zh_CN.d.ts +0 -8
- package/Tree/utils/tools.d.ts +0 -26
- package/Tree/utils/treeUtil.d.ts +0 -15
- package/Upload/Dragger/index.d.ts +0 -10
- package/Upload/ErroTip/index.d.ts +0 -13
- package/Upload/ImageUpload/index.d.ts +0 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
- package/Upload/ImgCrop/constants.d.ts +0 -7
- package/Upload/ImgCrop/index.d.ts +0 -6
- package/Upload/ImgCrop/interface.d.ts +0 -24
- package/Upload/UploadList/index.d.ts +0 -5
- package/Upload/index.d.ts +0 -15
- package/Upload/index.js +0 -196
- package/Upload/interface.d.ts +0 -134
- package/Upload/lang/en_US.d.ts +0 -12
- package/Upload/lang/index.d.ts +0 -25
- package/Upload/lang/zh_CN.d.ts +0 -12
- package/cdn/AutoBox/index.js +0 -29
- package/cdn/AutoTips/index.js +0 -40
- package/cdn/Breadcrumbs/index.js +0 -53
- package/cdn/Button/index.js +0 -79
- package/cdn/ButtonGroup/index.js +0 -79
- package/cdn/Carousel/index.js +0 -6
- package/cdn/Cascader/index.js +0 -40
- package/cdn/Checkbox/index.js +0 -53
- package/cdn/CheckboxGroup/index.js +0 -53
- package/cdn/Collapse/index.js +0 -27
- package/cdn/ColorPicker/index.js +0 -1
- package/cdn/ComBox/index.js +0 -1
- package/cdn/ComboSelect/index.js +0 -438
- package/cdn/Container/index.js +0 -1
- package/cdn/DatePicker/index.js +0 -183
- package/cdn/Desktop/index.js +0 -24
- package/cdn/Drawer/index.js +0 -84
- package/cdn/Empty/index.js +0 -1
- package/cdn/Form/index.js +0 -248
- package/cdn/FormItem/index.js +0 -248
- package/cdn/FunctionModal/index.js +0 -144
- package/cdn/GlobalContext/index.js +0 -1
- package/cdn/Help/index.js +0 -53
- package/cdn/HelperText/index.js +0 -1
- package/cdn/InputLang/index.js +0 -144
- package/cdn/InputNumber/index.js +0 -118
- package/cdn/Label/index.js +0 -53
- package/cdn/Loading/index.js +0 -14
- package/cdn/Menu/index.js +0 -55
- package/cdn/Message/index.js +0 -53
- package/cdn/Modal/index.js +0 -144
- package/cdn/MultiBox/index.js +0 -131
- package/cdn/Notification/index.js +0 -66
- package/cdn/OperateBtn/index.js +0 -92
- package/cdn/PageHeader/index.js +0 -92
- package/cdn/Pagination/index.js +0 -214
- package/cdn/ParauiProvider/index.js +0 -9
- package/cdn/PopConfirm/index.js +0 -131
- package/cdn/Popover/index.js +0 -16
- package/cdn/Popper/index.js +0 -26
- package/cdn/Querying/index.js +0 -1
- package/cdn/Radio/index.js +0 -53
- package/cdn/RadioGroup/index.js +0 -53
- package/cdn/Search/index.js +0 -144
- package/cdn/Select/index.js +0 -131
- package/cdn/SelectInput/index.js +0 -131
- package/cdn/SingleBox/index.js +0 -131
- package/cdn/Slider/index.js +0 -14
- package/cdn/Split/index.js +0 -1
- package/cdn/Stepper/index.js +0 -154
- package/cdn/Switch/index.js +0 -71
- package/cdn/Table/index.js +0 -292
- package/cdn/Tabs/index.js +0 -165
- package/cdn/Tag/index.js +0 -27
- package/cdn/TextField/index.js +0 -105
- package/cdn/TimePicker/index.js +0 -183
- package/cdn/Timeline/index.js +0 -16
- package/cdn/ToggleButton/index.js +0 -79
- package/cdn/Tooltip/index.js +0 -40
- package/cdn/Transfer/index.js +0 -170
- package/cdn/Tree/index.js +0 -170
- package/cdn/Upload/index.js +0 -249
- package/index.d.ts +0 -124
- package/index.js +0 -690
package/CheckboxGroup/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/4 16:23
|
|
4
|
-
* @description 复选框组
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import { CheckboxProps } from '../Checkbox';
|
|
8
|
-
import { LabelTooltipProps } from "../Label";
|
|
9
|
-
import './index.scss';
|
|
10
|
-
export interface CheckboxListProps extends CheckboxProps {
|
|
11
|
-
[name: string]: any;
|
|
12
|
-
}
|
|
13
|
-
export interface CheckboxGroupProps {
|
|
14
|
-
/** 样式class */
|
|
15
|
-
className?: string;
|
|
16
|
-
/** style */
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
/** 标题 */
|
|
19
|
-
label?: ReactNode;
|
|
20
|
-
/** 帮组提示信息 */
|
|
21
|
-
labelTooltip?: LabelTooltipProps;
|
|
22
|
-
/** 大小 */
|
|
23
|
-
size?: 'small' | 'medium' | 'large';
|
|
24
|
-
/** 是否必填 */
|
|
25
|
-
required?: boolean;
|
|
26
|
-
/** 布局方式 横向/竖向 */
|
|
27
|
-
row?: boolean;
|
|
28
|
-
/** 是否禁用 */
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
/** 是否显示错误 */
|
|
31
|
-
error?: boolean;
|
|
32
|
-
/** 错误提示 */
|
|
33
|
-
helperText?: ReactNode;
|
|
34
|
-
/** 默认值 不受控 */
|
|
35
|
-
defaultValue?: any;
|
|
36
|
-
/** 值 */
|
|
37
|
-
value?: any[];
|
|
38
|
-
/** 选中选值 */
|
|
39
|
-
id?: string;
|
|
40
|
-
/** 选项数据 */
|
|
41
|
-
list: CheckboxListProps[];
|
|
42
|
-
/** 改变值 */
|
|
43
|
-
onChange?: (val: any) => void;
|
|
44
|
-
}
|
|
45
|
-
export declare const CheckboxGroup: FunctionComponent<CheckboxGroupProps>;
|
|
46
|
-
export default CheckboxGroup;
|
package/CheckboxGroup/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,r,o){return function(){var t={5670:function(e,r,o){var t;self,e.exports=(t=o(8156),function(){var e={466:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o,t,a,n=e[1]||"",i=e[3];if(!i)return n;if(r&&"function"==typeof btoa){var c=(o=i,t=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t),"/*# ".concat(a," */")),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([c]).join("\n")}return[n].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);t&&a[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,c,l=a(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))o.call(i,s)&&(l[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)t.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,o){"use strict";
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react-jsx-runtime.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/o(7418);var t=o(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),r.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var t,n={},u=null,s=null;for(t in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:a,type:e,key:u,ref:s,props:n,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},7856:function(e,r,o){var t=o(3379),a=o(466);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),t(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),i=[];function c(e){for(var r=-1,o=0;o<i.length;o++)if(i[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},t=[],a=0;a<e.length;a++){var n=e[a],l=r.base?n[0]+r.base:n[0],u=o[l]||0,s="".concat(l," ").concat(u);o[l]=u+1;var p=c(s),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(i[p].references++,i[p].updater(b)):i.push({identifier:s,updater:x(b,r),references:1}),t.push(s)}return t}function u(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var i=n(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function b(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var n=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(n,i[r]):e.appendChild(n)}}function f(e,r,o){var t=o.css,a=o.media,n=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,h=0;function x(e,r){var o,t,a;if(r.singleton){var n=h++;o=d||(d=u(r)),t=b.bind(null,o,n,!1),a=b.bind(null,o,n,!0)}else o=u(r),t=f.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=c(o[t]);i[a].references--}for(var n=l(e,r),u=0;u<o.length;u++){var s=c(o[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}o=n}}}},4939:function(e,r,o){"use strict";var t=o(5893),a=(o(7856),function(){return a=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)}),n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r,o=e.path,i=e.className,c=e.color,l=void 0===c?"primary":c,u=e.size,s=void 0===u?"small":u,p=e.dataName,b=void 0===p?"":p,f=n(e,["path","className","color","size","dataName"]);return(0,t.jsx)("svg",a({className:(r="paraui-icon",r+=" svg-icon",i&&(r+=" "+i),l&&(r+=" paraui-icon-"+l),s&&(r+=" paraui-icon-"+s),r),viewBox:"0 0 1024 1024","data-name":b},f,{children:o}),void 0)}},8156:function(e){"use strict";e.exports=t}},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var n=r[t]={id:t,exports:{}};return e[t](n,n.exports,o),n.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{Help:function(){return n}});var e=o(5893),r=o(4939),t=function(){return t=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},t.apply(this,arguments)},n=function(o){return(0,e.jsx)(r.default,t({dataName:"Help",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"},void 0),(0,e.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"},void 0)]},void 0)},o),void 0)};a.default=n}(),a}())},6010:function(e,r,o){"use strict";function t(e){var r,o,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=t(e[r]))&&(a&&(a+=" "),a+=o);else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function a(){for(var e,r,o=0,a="";o<arguments.length;)(e=arguments[o++])&&(r=t(e))&&(a&&(a+=" "),a+=r);return a}o.d(r,{Z:function(){return a}})},1204:function(e,r,o){(r=o(3645)(!1)).push([e.id,'.paraui-check-box{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:flex-start;line-height:16px}.paraui-check-box:hover>.paraui-check-box-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-check-box:hover>.paraui-check-box-label svg{color:rgba(54,102,214,0.8)}.paraui-check-box:hover>.paraui-help{padding:0 8px}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label svg{color:rgba(54,102,214,0.8)}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:rgba(54,102,214,0.8)}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px;margin:0;display:inline-flex;align-items:flex-start}.paraui-check-box>.paraui-check-box-label>.paraui-help>svg{top:0}.paraui-check-box .paraui-label{line-height:16px}.paraui-check-box>.paraui-help{padding:0 8px}.paraui-check-box>.paraui-help>.paraui-check-box-label{color:#2e3743;margin:0;display:inline-flex;align-items:center}.paraui-check-box.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,0.8);border-color:transparent}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,0.8);border-color:transparent}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label svg{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label svg{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box{top:1px}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}\n',""]),e.exports=r},9974:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-check-box-group{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;width:100%}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group.check-box-group-column>.check-box-group-content{display:flex;flex-direction:column}.paraui-check-box-group.check-box-group-column>.check-box-group-content>.paraui-check-box{margin-bottom:8px}.paraui-check-box-group.check-box-group-column>.check-box-group-content>.paraui-check-box:last-child{margin-bottom:0}\n",""]),e.exports=r},7381:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-help{display:inline-block;font-size:16px;color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}\n",""]),e.exports=r},9916:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-helper-text{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;padding-left:12px;line-height:20px;color:rgba(46,55,67,0.7)}.paraui-helper-text.paraui-helper-text-error{color:#eb6054}\n",""]),e.exports=r},4928:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-label{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;color:rgba(46,55,67,0.7);margin-bottom:8px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-label>.paraui-label-required{margin-left:2px;color:#eb6054}.paraui-label>.paraui-help{vertical-align:top;margin-left:4px}.paraui-label>.paraui-help svg{color:rgba(46,55,67,0.4);vertical-align:top;position:relative;top:2px}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,0.4);padding-bottom:2px}\n",""]),e.exports=r},9929:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,0.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o=e[1]||"",t=e[3];if(!t)return o;if(r&&"function"==typeof btoa){var a=(i=t,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),n=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[o].concat(n).concat([a]).join("\n")}var i,c,l;return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);t&&a[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
|
|
15
|
-
/*
|
|
16
|
-
object-assign
|
|
17
|
-
(c) Sindre Sorhus
|
|
18
|
-
@license MIT
|
|
19
|
-
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,c,l=a(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))o.call(i,s)&&(l[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)t.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,o){"use strict";
|
|
20
|
-
/** @license React v17.0.2
|
|
21
|
-
* react-jsx-runtime.production.min.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/o(7418);var t=o(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),r.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var t,n={},u=null,s=null;for(t in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:a,type:e,key:u,ref:s,props:n,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},9036:function(e,r,o){var t=o(3379),a=o(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},7708:function(e,r,o){var t=o(3379),a=o(9974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},2113:function(e,r,o){var t=o(3379),a=o(7381);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},3936:function(e,r,o){var t=o(3379),a=o(9916);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},9663:function(e,r,o){var t=o(3379),a=o(4928);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},2310:function(e,r,o){var t=o(3379),a=o(9929);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},3379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),i=[];function c(e){for(var r=-1,o=0;o<i.length;o++)if(i[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},t=[],a=0;a<e.length;a++){var n=e[a],l=r.base?n[0]+r.base:n[0],u=o[l]||0,s="".concat(l," ").concat(u);o[l]=u+1;var p=c(s),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(i[p].references++,i[p].updater(b)):i.push({identifier:s,updater:x(b,r),references:1}),t.push(s)}return t}function u(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var i=n(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function b(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var n=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(n,i[r]):e.appendChild(n)}}function f(e,r,o){var t=o.css,a=o.media,n=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,h=0;function x(e,r){var o,t,a;if(r.singleton){var n=h++;o=d||(d=u(r)),t=b.bind(null,o,n,!1),a=b.bind(null,o,n,!0)}else o=u(r),t=f.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=c(o[t]);i[a].references--}for(var n=l(e,r),u=0;u<o.length;u++){var s=c(o[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}o=n}}}},9690:function(e,r,o){"use strict";var t=o(5893),a=o(8156),n=o(8767),i=(o(9036),function(){return i=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},i.apply(this,arguments)});r.default=function(e){var r=e.className,o=void 0===r?"":r,c=e.label,l=void 0===c?"":c,u=e.labelTooltip,s=e.size,p=void 0===s?"large":s,b=e.disabled,f=void 0!==b&&b,d=e.indeterminate,h=void 0!==d&&d,x=e.onChange,v=e.style,g=(0,a.useState)(!1),m=g[0],k=g[1];(0,a.useEffect)((function(){void 0!==e.defaultChecked&&k(e.defaultChecked)}),[]),(0,a.useEffect)((function(){void 0!==e.checked&&k(e.checked)}),[e.checked]);var y;return(0,t.jsxs)("label",i({className:(y="paraui-check-box",o&&(y+=" "+o),p&&(y+=" check-box-"+p),f&&(y+=" check-box-disabled"),h?y+=" check-box-indeterminate":m&&(y+=" check-box-checked"),y),onClick:function(r){if(r.preventDefault(),!f){if(h)return void 0===e.checked&&k(!0),void(x&&x(r,!0));void 0===e.checked&&k(!m),r.target.checked=!m,r.target.value=!m,x&&x(r,!m)}},style:v},{children:[(0,t.jsxs)("span",i({className:"paraui-checkbox-box"},{children:[(0,t.jsx)("input",i({type:"checkbox",value:m},e.inputProps)),(0,t.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),l&&(0,t.jsx)(n.default,i({label:l},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()}))]}))}},3566:function(e,r,o){"use strict";var t=o(5893),a=o(7371),n=o(5670),i=o.n(n),c=o(6010),l=(o(2113),function(){return l=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)}),u=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r=e.title,o=void 0===r?"":r,n=e.children,s=e.arrow,p=void 0===s||s,b=e.interactive,f=void 0===b||b,d=e.className,h=(e.placement,u(e,["title","children","arrow","interactive","className","placement"]));return(0,t.jsx)(a.default,l({title:o,arrow:p,interactive:f},h,{children:(0,t.jsx)("span",l({className:(0,c.Z)("paraui-help",d)},{children:n||(0,t.jsx)(i(),{})}))}))}},4254:function(e,r,o){"use strict";var t=o(5893),a=(o(3936),function(){return a=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)});r.default=function(e){var r,o=e.className,n=e.style,i=e.error,c=void 0!==i&&i,l=e.helperText;return(0,t.jsx)("p",a({className:(r="paraui-helper-text",o&&(r+=" "+o),c&&(r+=" paraui-helper-text-error"),r),style:n},{children:l}))}},8767:function(e,r,o){"use strict";var t=o(5893),a=o(3566),n=(o(9663),function(){return n=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)});r.default=function(e){var r=e.className,o=e.style,i=e.label,c=e.labelSign,l=e.required,u=void 0!==l&&l,s=e.tooltip,p=e.tooltipType,b=void 0===p?"icon":p,f=e.placement,d=e.arrow,h=e.tooltipIcon,x=function(){var e="paraui-label";return b&&(e+=" paraui-label-"+b),s&&(e+=" paraui-label-tooltip"),r&&(e+=" "+r),e};return(0,t.jsxs)(t.Fragment,{children:["icon"===b&&(0,t.jsxs)("label",n({className:x(),style:o},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),c&&(0,t.jsx)("span",{children:c}),s&&(0,t.jsx)(a.default,n({title:s,placement:f,arrow:d},{children:h}))]})),"line"===b&&(0,t.jsx)(a.default,n({title:s||"",placement:f,arrow:d},{children:(0,t.jsxs)("label",n({className:x(),style:o},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),c&&(0,t.jsx)("span",{children:c})]}))}))]})}},7371:function(e,r,o){"use strict";var t=o(5893),a=o(670),n=o(6010),i=(o(2310),function(){return i=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},i.apply(this,arguments)}),c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r,o=e.placement,l=void 0===o?"top-start":o,u=e.className,s=e.arrow,p=void 0===s||s,b=e.PopperProps,f=e.boundariesElement,d=void 0===f?"scrollParent":f,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),x=i(i({},e.classes),{popper:(0,n.Z)("paraui-tooltip",u,null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==l?void 0:l.includes("left"))||(null==l?void 0:l.includes("right")),"paraui-tooltip-top-bottom":(null==l?void 0:l.includes("top"))||(null==l?void 0:l.includes("bottom"))})});return(0,t.jsx)(a.Tooltip,i({},h,{enterTouchDelay:0,arrow:p,placement:l,classes:x,PopperProps:i(i({},b),{modifiers:{preventOverflow:{boundariesElement:d}}})}))}},670:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=o},8156:function(r){"use strict";r.exports=e}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var o=a[e]={id:e,exports:{}};return t[e](o,o.exports,n),o.exports}n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";n.r(i),n.d(i,{CheckboxGroup:function(){return u}});var e=n(8156),r=n(5893),o=n(9690),t=n(8767),a=n(4254),c=n(8543),l=(n(7708),function(){return l=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)}),u=function(n){var i=n.label,u=void 0===i?"":i,s=n.labelTooltip,p=n.size,b=void 0===p?"large":p,f=n.row,d=void 0===f||f,h=n.disabled,x=void 0!==h&&h,v=n.required,g=void 0!==v&&v,m=n.error,k=void 0!==m&&m,y=n.helperText,j=void 0===y?"":y,O=n.id,w=void 0===O?"name":O,S=n.list,N=n.className,_=void 0===N?"":N,C=n.onChange,P=n.style,M=(0,e.useState)([]),E=M[0],T=M[1];(0,e.useEffect)((function(){void 0!==n.defaultValue&&T(n.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==n.value&&T(n.value)}),[n.value]);var H,F=function(e){return function(r,o){var t=e[w],a=(0,c.DeepClone)(E);if(o)a.push(t);else{var i=a.indexOf(t);a.splice(i,1)}void 0===n.value&&T(a),C&&C(a)}};return(0,r.jsxs)("div",l({className:(H="paraui-check-box-group",_&&(H+=" "+_),b&&(H+=" check-box-group-"+b),k&&(H+=" check-box-group-error"),x&&(H+=" check-box-group-disabled"),H+=d?" check-box-group-row":" check-box-group-column"),style:P},{children:[function(){if(u||g){return(0,r.jsx)(t.default,l({label:u,required:g},s,{className:(e="check-box-group-label",s&&s.className&&(e+=" "+s.className),e)}))}var e;return null}(),(0,r.jsx)("div",l({className:"check-box-group-content"},{children:S.map((function(r,t){return(0,e.createElement)(o.default,l({},r,{checked:-1!==E.indexOf(r[w]),size:b,disabled:Boolean(x||r.disabled),key:t,onChange:F(r)}))}))})),(0,r.jsx)(a.default,{className:"check-box-group-error-text",error:k,helperText:j})]}))};i.default=u}(),i}()}));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/3/7 4:12 PM
|
|
4
|
-
* @description 折叠面板
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
export declare type CollapsibleType = 'header' | 'disabled';
|
|
8
|
-
export interface CollapsePanelProps {
|
|
9
|
-
/** className */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** 样式 */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 对应 activeKey */
|
|
14
|
-
key: string | number;
|
|
15
|
-
/** 面板头内容 */
|
|
16
|
-
header: React.ReactNode;
|
|
17
|
-
/** @deprecated Use `collapsible="disabled"` instead */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/** 是否展示当前面板上的箭头 */
|
|
20
|
-
showArrow?: boolean;
|
|
21
|
-
/** 被隐藏时是否渲染 DOM 结构 */
|
|
22
|
-
forceRender?: boolean;
|
|
23
|
-
id?: string;
|
|
24
|
-
/** 自定义渲染每个面板右上角的内容 */
|
|
25
|
-
extra?: React.ReactNode;
|
|
26
|
-
/** 是否可折叠或指定可折叠触发区域 */
|
|
27
|
-
collapsible?: CollapsibleType;
|
|
28
|
-
}
|
|
29
|
-
export declare const CollapsePanelProps: FunctionComponent<CollapsePanelProps>;
|
|
30
|
-
export default CollapsePanelProps;
|
package/Collapse/index.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/3/7 4:03 PM
|
|
4
|
-
* @description 折叠面板
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import CollapsePanel, { CollapsibleType } from './collapsePanel';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export declare type ExpandIconPosition = 'left' | 'right' | undefined;
|
|
10
|
-
export interface CollapseProps {
|
|
11
|
-
/** className */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** 样式 */
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
/** 初始化选中面板的 key */
|
|
16
|
-
defaultActiveKey?: Array<string | number> | string | number;
|
|
17
|
-
/** 当前激活 tab 面板的 key */
|
|
18
|
-
activeKey?: Array<string | number> | string | number;
|
|
19
|
-
/** 手风琴模式 */
|
|
20
|
-
accordion?: boolean;
|
|
21
|
-
/** 所有子面板是否可折叠或指定可折叠触发区域 */
|
|
22
|
-
collapsible?: CollapsibleType;
|
|
23
|
-
/** 销毁折叠隐藏的面板 */
|
|
24
|
-
destroyInactivePanel?: boolean;
|
|
25
|
-
/** 自定义切换图标 */
|
|
26
|
-
expandIcon?: (panelProps: PanelProps) => React.ReactNode;
|
|
27
|
-
/** 设置图标位置 */
|
|
28
|
-
expandIconPosition?: ExpandIconPosition;
|
|
29
|
-
/** onChange */
|
|
30
|
-
onChange?: (key: string | string[]) => void;
|
|
31
|
-
children?: any;
|
|
32
|
-
}
|
|
33
|
-
interface PanelProps {
|
|
34
|
-
/** 是否展开 */
|
|
35
|
-
isActive?: boolean;
|
|
36
|
-
/** 面板头内容 */
|
|
37
|
-
header?: React.ReactNode;
|
|
38
|
-
/** className */
|
|
39
|
-
className?: string;
|
|
40
|
-
/** style */
|
|
41
|
-
style?: React.CSSProperties;
|
|
42
|
-
/** 是否展示当前面板上的箭头 */
|
|
43
|
-
showArrow?: boolean;
|
|
44
|
-
/** 被隐藏时是否渲染 DOM 结构 */
|
|
45
|
-
forceRender?: boolean;
|
|
46
|
-
/** @deprecated Use `collapsible="disabled"` instead */
|
|
47
|
-
disabled?: boolean;
|
|
48
|
-
/** 自定义渲染每个面板右上角的内容 */
|
|
49
|
-
extra?: React.ReactNode;
|
|
50
|
-
/** 是否可折叠或指定可折叠触发区域 */
|
|
51
|
-
collapsible?: CollapsibleType;
|
|
52
|
-
}
|
|
53
|
-
interface CollapseInterface extends React.FC<CollapseProps> {
|
|
54
|
-
Panel: typeof CollapsePanel;
|
|
55
|
-
}
|
|
56
|
-
export declare const Collapse: CollapseInterface;
|
|
57
|
-
export default Collapse;
|
package/Collapse/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("rc-collapse")):"function"==typeof define&&define.amd?define(["react","rc-collapse"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("rc-collapse")):e.ParaUI=r(e.react,e["rc-collapse"])}(self,(function(e,r){return function(){var t={4674:function(e,r,t){var n;self,e.exports=(n=t(8156),function(){var e={466:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t,n,a,o=e[1]||"",i=e[3];if(!i)return o;if(r&&"function"==typeof btoa){var c=(t=i,n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(a," */")),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([c]).join("\n")}return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);n&&a[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),r.push(l))}},r}},7418:function(e){"use strict";
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,c,l=a(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))t.call(i,u)&&(l[u]=i[u]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,t){"use strict";
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react-jsx-runtime.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/t(7418);var n=t(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),r.Fragment=o("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,o={},s=null,u=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!l.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:a,type:e,key:s,ref:u,props:o,_owner:i.current}}r.jsx=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},7856:function(e,r,t){var n=t(3379),a=t(466);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3379:function(e,r,t){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),i=[];function c(e){for(var r=-1,t=0;t<i.length;t++)if(i[t].identifier===e){r=t;break}return r}function l(e,r){for(var t={},n=[],a=0;a<e.length;a++){var o=e[a],l=r.base?o[0]+r.base:o[0],s=t[l]||0,u="".concat(l," ").concat(s);t[l]=s+1;var p=c(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:u,updater:m(f,r),references:1}),n.push(u)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=t.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var u,p=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var a=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var o=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(o,i[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,a=t.media,o=t.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,h=0;function m(e,r){var t,n,a;if(r.singleton){var o=h++;t=v||(v=s(r)),n=f.bind(null,t,o,!1),a=f.bind(null,t,o,!0)}else t=s(r),n=d.bind(null,t,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var t=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var a=c(t[n]);i[a].references--}for(var o=l(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}t=o}}}},4939:function(e,r,t){"use strict";var n=t(5893),a=(t(7856),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)}),o=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t};r.default=function(e){var r,t=e.path,i=e.className,c=e.color,l=void 0===c?"primary":c,s=e.size,u=void 0===s?"small":s,p=e.dataName,f=void 0===p?"":p,d=o(e,["path","className","color","size","dataName"]);return(0,n.jsx)("svg",a({className:(r="paraui-icon",r+=" svg-icon",i&&(r+=" "+i),l&&(r+=" paraui-icon-"+l),u&&(r+=" paraui-icon-"+u),r),viewBox:"0 0 1024 1024","data-name":f},d,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=n}},r={};function t(n){var a=r[n];if(void 0!==a)return a.exports;var o=r[n]={id:n,exports:{}};return e[n](o,o.exports,t),o.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";t.r(a),t.d(a,{Right:function(){return o}});var e=t(5893),r=t(4939),n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)},o=function(t){return(0,e.jsx)(r.default,n({dataName:"Right",path:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("path",{d:"M318.506667 813.696a42.368 42.368 0 0 1 12.501333-30.165333l271.488-271.573334-271.488-271.488a42.666667 42.666667 0 1 1 60.330667-60.330666l301.653333 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.653333 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"},void 0)},void 0)},t),void 0)};a.default=o}(),a}())},8224:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-collapse{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;background-color:white;border-bottom:1px solid rgba(171,176,185,0.4)}.paraui-collapse .paraui-collapse-motion-collapse{overflow:hidden;transition:height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important}.paraui-collapse>.paraui-collapse-item{border-top:1px solid rgba(171,176,185,0.4)}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header{display:flex;align-items:center;padding:16px;color:#2e3743;cursor:pointer;font-weight:700}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box{line-height:0;margin-right:16px}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box .paraui-collapse-expand-svg{transition:all 0.3s, visibility 0s;color:#2e3743}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-extra{line-height:0;margin-left:auto}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-extra svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-content.paraui-collapse-content-hidden{display:none}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-content>.paraui-collapse-content-box{padding:0 16px 16px;color:#2e3743;font-size:14px}.paraui-collapse>.paraui-collapse-item.paraui-collapse-item-active>.paraui-collapse-header>.paraui-collapse-svg-box .paraui-collapse-expand-svg{transform:rotate(90deg)}.paraui-collapse.paraui-collapse-svg-right>.paraui-collapse-item>.paraui-collapse-header{padding-right:40px;position:relative}.paraui-collapse.paraui-collapse-svg-right>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box{position:absolute;right:12px;top:17px;margin-right:0}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header{color:#2e3743;cursor:not-allowed;background-color:rgba(171,176,185,0.12)}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header>.paraui-collapse-svg-box svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header>.paraui-collapse-svg-box .paraui-collapse-expand-svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header>.paraui-collapse-extra svg{color:#2e3743}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var a=(i=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([a]).join("\n")}var i,c,l;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);n&&a[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),r.push(l))}},r}},7418:function(e){"use strict";
|
|
15
|
-
/*
|
|
16
|
-
object-assign
|
|
17
|
-
(c) Sindre Sorhus
|
|
18
|
-
@license MIT
|
|
19
|
-
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,c,l=a(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))t.call(i,u)&&(l[u]=i[u]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,t){"use strict";
|
|
20
|
-
/** @license React v17.0.2
|
|
21
|
-
* react-jsx-runtime.production.min.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
t(7418);var n=t(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),o("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,o={},s=null,u=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!l.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:a,type:e,key:s,ref:u,props:o,_owner:i.current}}r.jsx=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},5543:function(e,r,t){var n=t(3379),a=t(8224);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:("body","body"),singleton:!1};n(a,o);e.exports=a.locals||{}},3379:function(e,r,t){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),i=[];function c(e){for(var r=-1,t=0;t<i.length;t++)if(i[t].identifier===e){r=t;break}return r}function l(e,r){for(var t={},n=[],a=0;a<e.length;a++){var o=e[a],l=r.base?o[0]+r.base:o[0],s=t[l]||0,u="".concat(l," ").concat(s);t[l]=s+1;var p=c(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:u,updater:m(f,r),references:1}),n.push(u)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=t.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var u,p=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var a=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var o=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(o,i[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,a=t.media,o=t.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,h=0;function m(e,r){var t,n,a;if(r.singleton){var o=h++;t=v||(v=s(r)),n=f.bind(null,t,o,!1),a=f.bind(null,t,o,!0)}else t=s(r),n=d.bind(null,t,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var t=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var a=c(t[n]);i[a].references--}for(var o=l(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}t=o}}}},3749:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,a),o.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";a.r(o),a.d(o,{Collapse:function(){return y},default:function(){return g}});var e=a(5893),r=a(3749),t=a.n(r),n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)},i=function(r){var a,o=r.className,i=void 0===o?"":o,c=r.showArrow,l=void 0===c||c;return(0,e.jsx)(t().Panel,n({},r,{className:(a="",i&&(a+=i),l||(a+=" paraui-collapse-panel-no-arrow"),a),prefixCls:"paraui-collapse"}))},c=a(8156),l=function(){return l=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)},s=c.isValidElement;function u(e,r){return function(e,r,t){return s(e)?c.cloneElement(e,"function"==typeof t?t(e.props||{}):t):r}(e,e,r)}var p=a(4674),f=a.n(p),d=function(){return{height:0,opacity:0}},v=function(e){return{height:e.scrollHeight,opacity:1}},h=function(e,r){return!0===(null==r?void 0:r.deadline)||"height"===r.propertyName},m={motionName:"paraui-collapse-motion-collapse",onAppearStart:d,onEnterStart:d,onAppearActive:v,onEnterActive:v,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:d,onAppearEnd:h,onEnterEnd:h,onLeaveEnd:h,motionDeadline:500},b=(a(5543),function(){return b=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},b.apply(this,arguments)}),y=function(r){var n,a,o,i=r.className,c=void 0===i?"":i,s=r.expandIconPosition,p=void 0===s?"left":s,d=b(b({},m),{motionAppear:!1,leavedClassName:"paraui-collapse-content-hidden"});return(0,e.jsx)(t(),b({openMotion:d},r,{expandIcon:function(t){void 0===t&&(t={});var n=r.expandIcon,a=n?n(t):(0,e.jsx)(f(),{className:"paraui-collapse-expand-svg"});return(0,e.jsx)("div",b({className:"paraui-collapse-svg-box"},{children:a}))},prefixCls:"paraui-collapse",className:(o="",c&&(o+=c),p&&(o+=" paraui-collapse-svg-"+p),o)},{children:(a=r.children,(n=a,n?Array.isArray(n)?n:[n]:[]).map((function(e,r){var t,n,a,o;if(null===(t=e.props)||void 0===t?void 0:t.disabled){var i=e.key||String(r),c=e.props,s=c.disabled,p=c.collapsible;return u(e,b(b({},(n=e.props,a=["disabled"],o=l({},n),Array.isArray(a)&&a.forEach((function(e){delete o[e]})),o)),{key:i,collapsible:null!=p?p:s?"disabled":void 0}))}return e})))}))};y.Panel=i;var g=y}(),o}()}));
|
package/Collapse/motion.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CSSMotionProps } from 'rc-motion';
|
|
2
|
-
declare const collapseMotion: CSSMotionProps;
|
|
3
|
-
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string | undefined) => string;
|
|
4
|
-
export { getTransitionName };
|
|
5
|
-
export default collapseMotion;
|
package/Collapse/util.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const isValidElement: typeof React.isValidElement;
|
|
3
|
-
declare type AnyObject = Record<any, any>;
|
|
4
|
-
declare type RenderProps = undefined | AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
|
|
5
|
-
export declare function replaceElement(element: React.ReactNode, replacement: React.ReactNode, props: RenderProps): React.ReactNode;
|
|
6
|
-
export declare function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement;
|
|
7
|
-
/** toArray */
|
|
8
|
-
export declare function toArray<T>(list: T | T[]): T[];
|
|
9
|
-
/** omit */
|
|
10
|
-
export declare function omit<T extends object, K extends keyof T>(obj: T, fields: K[]): Omit<T, K>;
|
|
11
|
-
export {};
|
package/ColorPicker/index.d.ts
DELETED
package/ColorPicker/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-color")):"function"==typeof define&&define.amd?define(["react-color"],t):"object"==typeof exports?exports.ParaUI=t(require("react-color")):e.ParaUI=t(e["react-color"])}(self,(function(e){return function(){var t={6853:function(e,t,n){(t=n(3645)(!1)).push([e.id,".sketch-picker,.chrome-picker,.swatches-picker,.compact-picker{box-sizing:content-box !important}.sketch-picker *,.chrome-picker *,.swatches-picker *,.compact-picker *{box-sizing:content-box !important}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(c=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var c,a,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},694:function(e,t,n){var r=n(3379),o=n(6853);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),c=[];function a(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=a(f),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(c[l].references++,c[l].updater(d)):c.push({identifier:f,updater:m(d,t),references:1}),r.push(f)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var c=i(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(i,c[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=v||(v=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);c[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var f=a(n[s]);0===c[f].references&&(c[f].updater(),c.splice(f,1))}n=i}}}},598:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o),r.d(o,{ChromePicker:function(){return e.ChromePicker},CompactPicker:function(){return e.CompactPicker},SwatchesPicker:function(){return e.SwatchesPicker}});var e=r(598);r(694);o.default=e.SketchPicker}(),o}()}));
|
package/ComBox/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/4/22 4:57 PM
|
|
4
|
-
* @description 用来给组件套一层,处理一些公共逻辑
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from "react";
|
|
7
|
-
export interface ComBoxProps {
|
|
8
|
-
/** 组件 */
|
|
9
|
-
Com: any;
|
|
10
|
-
/** 组件属性 */
|
|
11
|
-
comProps: any;
|
|
12
|
-
/** 组件名称 */
|
|
13
|
-
comName: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const ComBox: FunctionComponent<ComBoxProps>;
|
|
16
|
-
export default ComBox;
|
package/ComBox/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","@para-ui/core/GlobalContext"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@para-ui/core/GlobalContext")):e.ParaUI=r(e.react,e["@para-ui/core/GlobalContext"])}(self,(function(e,r){return function(){"use strict";var t={7418:function(e){
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/
|
|
7
|
-
var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var u,c,i=n(e),f=1;f<arguments.length;f++){for(var p in u=Object(arguments[f]))t.call(u,p)&&(i[p]=u[p]);if(r){c=r(u);for(var l=0;l<c.length;l++)o.call(u,c[l])&&(i[c[l]]=u[c[l]])}}return i}},5251:function(e,r,t){
|
|
8
|
-
/** @license React v17.0.2
|
|
9
|
-
* react-jsx-runtime.production.min.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
t(7418);var o=t(8156),n=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),a("react.fragment")}var u=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function f(e,r,t){var o,a={},f=null,p=null;for(o in void 0!==t&&(f=""+t),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(p=r.ref),r)c.call(r,o)&&!i.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:n,type:e,key:f,ref:p,props:a,_owner:u.current}}r.jsx=f},5893:function(e,r,t){e.exports=t(5251)},5395:function(e){e.exports=r},8156:function(r){r.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){n.r(a),n.d(a,{ComBox:function(){return i}});var e=n(5893),r=n(8156),t=n.n(r),o=n(5395),u=n.n(o),c=function(){return c=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},c.apply(this,arguments)},i=function(r){var o,n=r.Com,a=r.comProps,i=r.comName,f=t().useContext(u()).componentsProps;return(0,e.jsx)(n,c({},(o=f&&f[i],c(c({},o),a))))};a.default=i}(),a}()}));
|
package/ComBox/interface.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/30 下午2:32
|
|
4
|
-
* @description WithTabsCombo
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { TabsComboSelectProps } from './interface';
|
|
8
|
-
import '../index.scss';
|
|
9
|
-
declare const TabsComboSelect: FunctionComponent<TabsComboSelectProps>;
|
|
10
|
-
export type { TabsComboSelectProps };
|
|
11
|
-
export default TabsComboSelect;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/30 下午2:31
|
|
4
|
-
* @description 接口
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { TableProps as ITableProps } from '../../Table/interface';
|
|
8
|
-
import { TreeProps, TreeNodeProps } from '../../Tree/interface';
|
|
9
|
-
import { TabsProps } from '../../Tabs';
|
|
10
|
-
declare type TableProps = ITableProps & {
|
|
11
|
-
/** 表格参数 */
|
|
12
|
-
params?: Object;
|
|
13
|
-
/** 表格替换字段*/
|
|
14
|
-
replaceFields?: {
|
|
15
|
-
key?: string;
|
|
16
|
-
title?: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export interface TabsList {
|
|
20
|
-
/** 唯一key ,与TabsPanel一致 */
|
|
21
|
-
value?: string;
|
|
22
|
-
/** tab 显示名 */
|
|
23
|
-
label?: string;
|
|
24
|
-
/** 选中当前tab*/
|
|
25
|
-
selected?: boolean;
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}
|
|
28
|
-
export interface TabsPanel {
|
|
29
|
-
/** 唯一key ,与TabsList 一致 */
|
|
30
|
-
value?: string;
|
|
31
|
-
/** 组件类型 */
|
|
32
|
-
mode?: 'tree' | 'table' | 'customize';
|
|
33
|
-
/** mode: table 表格属性 */
|
|
34
|
-
tableProps?: TableProps;
|
|
35
|
-
/** mode: tree 树属性 */
|
|
36
|
-
treeProps?: TreeProps;
|
|
37
|
-
/** mode: customize 自定义组件 */
|
|
38
|
-
customizeComponent?: React.ReactNode;
|
|
39
|
-
/** mode: customize 通过回调渲染自定义组件 */
|
|
40
|
-
customizeRender?: (value: SelectedOption[]) => React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
interface TagFields {
|
|
43
|
-
/** 唯一key , 与TabsList一致 */
|
|
44
|
-
[value: string]: {
|
|
45
|
-
/** tag key */
|
|
46
|
-
key: string;
|
|
47
|
-
/** tag title */
|
|
48
|
-
title: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export declare type SelectedOption = {
|
|
52
|
-
key: string;
|
|
53
|
-
label: string;
|
|
54
|
-
tabKey: string;
|
|
55
|
-
};
|
|
56
|
-
export declare type KeysMap = {
|
|
57
|
-
[index: string]: string[];
|
|
58
|
-
};
|
|
59
|
-
export type { TreeNodeProps };
|
|
60
|
-
export interface TabsComboSelectProps {
|
|
61
|
-
/**占位符*/
|
|
62
|
-
placeholder?: string;
|
|
63
|
-
/**search 占位符*/
|
|
64
|
-
searchPlaceholder?: string;
|
|
65
|
-
/**最大显示数*/
|
|
66
|
-
maxCount?: number;
|
|
67
|
-
/**禁用选择器*/
|
|
68
|
-
disabled?: boolean;
|
|
69
|
-
/** 支持清除 */
|
|
70
|
-
allowClear?: boolean;
|
|
71
|
-
/**cls*/
|
|
72
|
-
className?: string;
|
|
73
|
-
/**弹出层className*/
|
|
74
|
-
popoverClassName?: string;
|
|
75
|
-
/**大小*/
|
|
76
|
-
size?: 'large' | 'medium' | 'small';
|
|
77
|
-
/**选择器footer actions*/
|
|
78
|
-
popoverActions?: React.ReactNode;
|
|
79
|
-
/**是否显示footer actions*/
|
|
80
|
-
showPopoverActions?: boolean;
|
|
81
|
-
/**是否默认打开*/
|
|
82
|
-
defaultOpen?: boolean;
|
|
83
|
-
/**默认值*/
|
|
84
|
-
defaultValue?: SelectedOption[];
|
|
85
|
-
/**当前选中值*/
|
|
86
|
-
value?: SelectedOption[];
|
|
87
|
-
/**位置*/
|
|
88
|
-
anchorOrigin?: 'lt' | 'lc' | 'lb' | 'ct' | 'cc' | 'cb' | 'rt' | 'rc' | 'rb';
|
|
89
|
-
/**搜索回调*/
|
|
90
|
-
onSearch?: (searchValue: {
|
|
91
|
-
tabKey: string;
|
|
92
|
-
searchKey: string | null;
|
|
93
|
-
}) => void;
|
|
94
|
-
/**footer actions 取消回调*/
|
|
95
|
-
onCancel?: () => void;
|
|
96
|
-
/**footer actions 确定回调*/
|
|
97
|
-
onOk?: (options: SelectedOption[]) => void;
|
|
98
|
-
/** 关闭选择器回调 */
|
|
99
|
-
onClose?: () => void;
|
|
100
|
-
/**value发生变化时回调*/
|
|
101
|
-
onChange?: (options: SelectedOption[], originData?: any) => void;
|
|
102
|
-
/**table组件属性*/
|
|
103
|
-
TableProps?: Omit<TableProps, 'check' | 'radio' | 'rowKey' | 'setCheck' | 'setRadio' | 'checkDefaultValue' | 'radioDefaultValue' | 'autoSize' | 'search' | 'paramsCallback'>;
|
|
104
|
-
/**tree组件属性*/
|
|
105
|
-
TreeProps?: Omit<TreeProps, 'checkable' | 'radioable' | 'selectable' | 'checkedKeys' | 'onCheck' | 'onSelect' | 'paramsCallback' | 'params'>;
|
|
106
|
-
/**单选或多选*/
|
|
107
|
-
checkable?: boolean;
|
|
108
|
-
/**是否显示搜索*/
|
|
109
|
-
showSearch?: boolean;
|
|
110
|
-
/**错误状态*/
|
|
111
|
-
error?: boolean;
|
|
112
|
-
/**辅助文本*/
|
|
113
|
-
helperText?: string;
|
|
114
|
-
/**参数处理回调*/
|
|
115
|
-
paramsCallback?: (params: any) => any;
|
|
116
|
-
/** 搜索参数 */
|
|
117
|
-
searchParams?: {
|
|
118
|
-
tabKey: string;
|
|
119
|
-
searchKey: string | null;
|
|
120
|
-
};
|
|
121
|
-
/** tabs列表 */
|
|
122
|
-
tabsList: TabsList[];
|
|
123
|
-
/** tabs 面板 */
|
|
124
|
-
tabsPanel: TabsPanel[];
|
|
125
|
-
/** tag 显示字段*/
|
|
126
|
-
tagFields: TagFields;
|
|
127
|
-
/** 路径字段 */
|
|
128
|
-
fullPathKey?: string;
|
|
129
|
-
/** 自定义路径节点 */
|
|
130
|
-
fullPathRender?: (node: TreeNodeProps) => React.ReactNode;
|
|
131
|
-
/** 路径节点 */
|
|
132
|
-
fullPathNode?: React.ReactNode;
|
|
133
|
-
/** tabs change回调 */
|
|
134
|
-
onTabsChange?: TabsProps['onChange'];
|
|
135
|
-
/** 自动计算下拉框宽度 */
|
|
136
|
-
autoWidth?: boolean;
|
|
137
|
-
/** 自定义渲染tag */
|
|
138
|
-
tagRender?: (option: SelectedOption) => React.ReactNode;
|
|
139
|
-
/** tag 点击回调 */
|
|
140
|
-
onTagClick?: (option: SelectedOption, originData: any) => void;
|
|
141
|
-
}
|
package/ComboSelect/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { ComboSelectProps } from './interface';
|
|
3
|
-
import TabsComboSelect, { TabsComboSelectProps } from "./WithTabsCombo";
|
|
4
|
-
import './index.scss';
|
|
5
|
-
declare const InternalComboSelect: FunctionComponent<ComboSelectProps>;
|
|
6
|
-
declare type MergedType = typeof InternalComboSelect & {
|
|
7
|
-
TabsComboSelect: typeof TabsComboSelect;
|
|
8
|
-
};
|
|
9
|
-
declare const ComboSelect: MergedType;
|
|
10
|
-
export type { ComboSelectProps, TabsComboSelectProps };
|
|
11
|
-
export default ComboSelect;
|