@para-ui/core 2.1.35 → 2.1.38
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/AutoBox/index.d.ts +34 -0
- package/AutoBox/index.js +28 -0
- package/AutoTips/index.d.ts +27 -0
- package/AutoTips/index.js +15 -0
- package/Breadcrumbs/index.d.ts +39 -0
- package/Breadcrumbs/index.js +28 -0
- package/Button/SplitButton.d.ts +59 -0
- package/Button/index.d.ts +56 -0
- package/Button/index.js +53 -0
- package/Button/lang/en_US.d.ts +4 -0
- package/Button/lang/index.d.ts +9 -0
- package/Button/lang/zh_CN.d.ts +4 -0
- package/ButtonGroup/index.d.ts +33 -0
- package/ButtonGroup/index.js +53 -0
- package/Carousel/index.d.ts +30 -0
- package/Carousel/index.js +15 -0
- package/Cascader/index.d.ts +52 -0
- package/Cascader/index.js +41 -0
- package/Cascader/lang/en_US.d.ts +4 -0
- package/Cascader/lang/index.d.ts +9 -0
- package/Cascader/lang/zh_CN.d.ts +4 -0
- package/Checkbox/index.d.ts +40 -0
- package/Checkbox/index.js +27 -0
- package/CheckboxGroup/index.d.ts +46 -0
- package/CheckboxGroup/index.js +27 -0
- package/Collapse/collapsePanel.d.ts +30 -0
- package/Collapse/index.d.ts +57 -0
- package/Collapse/index.js +28 -0
- package/Collapse/motion.d.ts +5 -0
- package/Collapse/util.d.ts +11 -0
- package/CollapseBox/index.d.ts +27 -0
- package/CollapseBox/index.js +15 -0
- package/CollapseBox/util.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -0
- package/ColorPicker/index.js +1 -0
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -0
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -0
- package/ComboSelect/index.d.ts +11 -0
- package/ComboSelect/index.js +391 -0
- package/ComboSelect/interface.d.ts +141 -0
- package/ComboSelect/lang/en_US.d.ts +8 -0
- package/ComboSelect/lang/index.d.ts +17 -0
- package/ComboSelect/lang/zh_CN.d.ts +8 -0
- package/ComboSelect/utils.d.ts +13 -0
- package/Container/index.d.ts +77 -0
- package/Container/index.js +15 -0
- package/DatePicker/PickerButton.d.ts +3 -0
- package/DatePicker/PickerTag.d.ts +3 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -0
- package/DatePicker/generatePicker/index.d.ts +77 -0
- package/DatePicker/index.d.ts +18 -0
- package/DatePicker/index.js +144 -0
- package/DatePicker/lang/en_US.d.ts +3 -0
- package/DatePicker/lang/index.d.ts +7 -0
- package/DatePicker/lang/zh_CN.d.ts +3 -0
- package/DatePicker/util.d.ts +20 -0
- package/Desktop/index.d.ts +55 -0
- package/Desktop/index.js +14 -0
- package/Drawer/index.d.ts +11 -0
- package/Drawer/index.js +53 -0
- package/Drawer/interface.d.ts +78 -0
- package/Drawer/lang/en_US.d.ts +5 -0
- package/Drawer/lang/index.d.ts +11 -0
- package/Drawer/lang/zh_CN.d.ts +5 -0
- package/Empty/images/index.d.ts +2 -0
- package/Empty/index.d.ts +30 -0
- package/Empty/index.js +14 -0
- package/Empty/lang/en_US.d.ts +6 -0
- package/Empty/lang/index.d.ts +13 -0
- package/Empty/lang/zh_CN.d.ts +6 -0
- package/Form/index.d.ts +172 -0
- package/Form/index.js +248 -0
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -0
- package/FormItem/compoments/formFile/index.d.ts +38 -0
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -0
- package/FormItem/compoments/formSelect/index.d.ts +18 -0
- package/FormItem/errorTips.d.ts +12 -0
- package/FormItem/index.d.ts +145 -0
- package/FormItem/index.js +248 -0
- package/FormItem/itemType.d.ts +42 -0
- package/FormItem/validateFunction.d.ts +15 -0
- package/FunctionModal/dialog.d.ts +58 -0
- package/FunctionModal/index.d.ts +8 -0
- package/FunctionModal/index.js +118 -0
- package/FunctionModal/modalContext.d.ts +14 -0
- package/GlobalContext/componentsProps.d.ts +19 -0
- package/GlobalContext/confirmLocale.d.ts +7 -0
- package/GlobalContext/index.d.ts +28 -0
- package/GlobalContext/index.js +16 -0
- package/GlobalContext/intl.d.ts +34 -0
- package/GlobalContext/useFormatMessage.d.ts +3 -0
- package/Help/index.d.ts +20 -0
- package/Help/index.js +28 -0
- package/HelperText/index.d.ts +19 -0
- package/HelperText/index.js +15 -0
- package/Hooks/useGlobalProps.d.ts +1 -0
- package/InputLang/index.d.ts +49 -0
- package/InputLang/index.js +118 -0
- package/InputNumber/index.d.ts +74 -0
- package/InputNumber/index.js +79 -0
- package/Label/index.d.ts +35 -0
- package/Label/index.js +27 -0
- package/Loading/index.d.ts +17 -0
- package/Loading/index.js +28 -0
- package/Menu/footerExpansion.d.ts +9 -0
- package/Menu/index.d.ts +10 -0
- package/Menu/index.js +53 -0
- package/Menu/interface.d.ts +139 -0
- package/Menu/logo.d.ts +9 -0
- package/Menu/verticalMenuList.d.ts +14 -0
- package/Message/index.d.ts +59 -0
- package/Message/index.js +67 -0
- package/Modal/Confirm/index.d.ts +66 -0
- package/Modal/index.d.ts +61 -0
- package/Modal/index.js +118 -0
- package/Modal/lang/en_US.d.ts +5 -0
- package/Modal/lang/index.d.ts +11 -0
- package/Modal/lang/zh_CN.d.ts +5 -0
- package/MultiBox/index.d.ts +54 -0
- package/MultiBox/index.js +105 -0
- package/Notification/index.d.ts +52 -0
- package/Notification/index.js +67 -0
- package/OperateBtn/index.d.ts +59 -0
- package/OperateBtn/index.js +66 -0
- package/OperateBtn/lang/en_US.d.ts +4 -0
- package/OperateBtn/lang/index.d.ts +9 -0
- package/OperateBtn/lang/zh_CN.d.ts +4 -0
- package/PageHeader/horizontalMeun.d.ts +9 -0
- package/PageHeader/horizontalMeunRight.d.ts +9 -0
- package/PageHeader/index.d.ts +10 -0
- package/PageHeader/index.js +66 -0
- package/PageHeader/interface.d.ts +167 -0
- package/Pagination/index.d.ts +33 -0
- package/Pagination/index.js +183 -0
- package/Pagination/lang/en_US.d.ts +8 -0
- package/Pagination/lang/index.d.ts +17 -0
- package/Pagination/lang/zh_CN.d.ts +8 -0
- package/ParauiProvider/index.d.ts +12 -0
- package/ParauiProvider/index.js +15 -0
- package/PopConfirm/index.d.ts +50 -0
- package/PopConfirm/index.js +105 -0
- package/PopConfirm/lang/en_US.d.ts +5 -0
- package/PopConfirm/lang/index.d.ts +11 -0
- package/PopConfirm/lang/zh_CN.d.ts +5 -0
- package/Popover/index.d.ts +14 -0
- package/Popover/index.js +15 -0
- package/Popper/index.d.ts +13 -0
- package/Popper/index.js +16 -0
- package/Querying/images/index.d.ts +2 -0
- package/Querying/index.d.ts +26 -0
- package/Querying/index.js +14 -0
- package/Querying/lang/en_US.d.ts +4 -0
- package/Querying/lang/index.d.ts +9 -0
- package/Querying/lang/zh_CN.d.ts +4 -0
- package/README.md +29 -1
- package/Radio/index.d.ts +38 -0
- package/Radio/index.js +27 -0
- package/RadioGroup/index.d.ts +47 -0
- package/RadioGroup/index.js +27 -0
- package/Search/index.d.ts +56 -0
- package/Search/index.js +118 -0
- package/Select/index.d.ts +86 -0
- package/Select/index.js +105 -0
- package/Select/lang/en_US.d.ts +5 -0
- package/Select/lang/index.d.ts +11 -0
- package/Select/lang/zh_CN.d.ts +5 -0
- package/SelectInput/index.d.ts +11 -0
- package/SelectInput/index.js +105 -0
- package/SingleBox/index.d.ts +42 -0
- package/SingleBox/index.js +105 -0
- package/Slider/index.d.ts +14 -0
- package/Slider/index.js +15 -0
- package/Slider/interface.d.ts +102 -0
- package/Split/index.d.ts +7 -0
- package/Split/index.js +15 -0
- package/Stepper/icons.d.ts +5 -0
- package/Stepper/index.d.ts +39 -0
- package/Stepper/index.js +145 -0
- package/Switch/index.d.ts +78 -0
- package/Switch/index.js +40 -0
- package/Table/index.d.ts +10 -0
- package/Table/index.js +261 -0
- package/Table/interface.d.ts +200 -0
- package/Table/lang/en_US.d.ts +6 -0
- package/Table/lang/index.d.ts +13 -0
- package/Table/lang/zh_CN.d.ts +6 -0
- package/Table/tableBody.d.ts +9 -0
- package/Table/tableBodyElement/index.d.ts +15 -0
- package/Table/tableBodyInterface.d.ts +67 -0
- package/Table/tableContainer/index.d.ts +16 -0
- package/Table/tableElement/index.d.ts +17 -0
- package/Table/tableHead.d.ts +9 -0
- package/Table/tableHeadElement/index.d.ts +15 -0
- package/Table/tableHeadInterface.d.ts +30 -0
- package/Table/tablePagination.d.ts +9 -0
- package/Table/tablePaginationInterFace.d.ts +24 -0
- package/Table/tdElement/index.d.ts +15 -0
- package/Table/thElement/index.d.ts +15 -0
- package/Table/trElement/index.d.ts +15 -0
- package/Table/util.d.ts +16 -0
- package/Tabs/index.d.ts +48 -0
- package/Tabs/index.js +131 -0
- package/Tag/TagGroup.d.ts +66 -0
- package/Tag/index.d.ts +34 -0
- package/Tag/index.js +40 -0
- package/TextField/index.d.ts +93 -0
- package/TextField/index.js +79 -0
- package/TimePicker/index.d.ts +22 -0
- package/TimePicker/index.js +144 -0
- package/TimePicker/locale/en_US.d.ts +3 -0
- package/TimePicker/locale/zh_CN.d.ts +3 -0
- package/TimePicker/style/index.d.ts +1 -0
- package/Timeline/index.d.ts +22 -0
- package/Timeline/index.js +15 -0
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -0
- package/ToggleButton/index.d.ts +49 -0
- package/ToggleButton/index.js +53 -0
- package/Tooltip/index.d.ts +14 -0
- package/Tooltip/index.js +15 -0
- package/Transfer/index.d.ts +17 -0
- package/Transfer/index.js +144 -0
- package/Transfer/lang/en_US.d.ts +6 -0
- package/Transfer/lang/index.d.ts +13 -0
- package/Transfer/lang/zh_CN.d.ts +6 -0
- package/Tree/OperateBar/index.d.ts +13 -0
- package/Tree/Tree.d.ts +4 -0
- package/Tree/index.d.ts +5 -0
- package/Tree/index.js +131 -0
- package/Tree/interface.d.ts +201 -0
- package/Tree/lang/en_US.d.ts +8 -0
- package/Tree/lang/index.d.ts +17 -0
- package/Tree/lang/zh_CN.d.ts +8 -0
- package/{docs/view/autoTips/index.scss → Tree/utils/closestPolyfill.d.ts} +0 -0
- package/Tree/utils/tools.d.ts +26 -0
- package/Tree/utils/treeUtil.d.ts +15 -0
- package/Upload/Dragger/index.d.ts +10 -0
- package/Upload/ErroTip/index.d.ts +13 -0
- package/Upload/ImageUpload/index.d.ts +14 -0
- package/Upload/ImgCrop/EasyCrop.d.ts +17 -0
- package/Upload/ImgCrop/constants.d.ts +7 -0
- package/Upload/ImgCrop/index.d.ts +6 -0
- package/Upload/ImgCrop/interface.d.ts +24 -0
- package/Upload/UploadList/index.d.ts +5 -0
- package/Upload/index.d.ts +15 -0
- package/Upload/index.js +196 -0
- package/Upload/interface.d.ts +134 -0
- package/Upload/lang/en_US.d.ts +12 -0
- package/Upload/lang/index.d.ts +25 -0
- package/Upload/lang/zh_CN.d.ts +12 -0
- package/cdn/AutoBox/index.js +29 -0
- package/cdn/AutoTips/index.js +40 -0
- package/cdn/Breadcrumbs/index.js +53 -0
- package/cdn/Button/index.js +79 -0
- package/cdn/ButtonGroup/index.js +79 -0
- package/cdn/Carousel/index.js +6 -0
- package/cdn/Cascader/index.js +40 -0
- package/cdn/Checkbox/index.js +53 -0
- package/cdn/CheckboxGroup/index.js +53 -0
- package/cdn/Collapse/index.js +27 -0
- package/cdn/CollapseBox/index.js +1 -0
- package/cdn/ColorPicker/index.js +1 -0
- package/cdn/ComboSelect/index.js +438 -0
- package/cdn/Container/index.js +1 -0
- package/cdn/DatePicker/index.js +183 -0
- package/cdn/Desktop/index.js +24 -0
- package/cdn/Drawer/index.js +84 -0
- package/cdn/Empty/index.js +1 -0
- package/cdn/Form/index.js +295 -0
- package/cdn/FormItem/index.js +295 -0
- package/cdn/FunctionModal/index.js +144 -0
- package/cdn/GlobalContext/index.js +1 -0
- package/cdn/Help/index.js +53 -0
- package/cdn/HelperText/index.js +1 -0
- package/cdn/InputLang/index.js +144 -0
- package/cdn/InputNumber/index.js +118 -0
- package/cdn/Label/index.js +53 -0
- package/cdn/Loading/index.js +14 -0
- package/cdn/Menu/index.js +40 -0
- package/cdn/Message/index.js +53 -0
- package/cdn/Modal/index.js +144 -0
- package/cdn/MultiBox/index.js +131 -0
- package/cdn/Notification/index.js +66 -0
- package/cdn/OperateBtn/index.js +92 -0
- package/cdn/PageHeader/index.js +92 -0
- package/cdn/Pagination/index.js +214 -0
- package/cdn/ParauiProvider/index.js +9 -0
- package/cdn/PopConfirm/index.js +131 -0
- package/cdn/Popover/index.js +16 -0
- package/cdn/Popper/index.js +26 -0
- package/cdn/Querying/index.js +1 -0
- package/cdn/Radio/index.js +53 -0
- package/cdn/RadioGroup/index.js +53 -0
- package/cdn/Search/index.js +144 -0
- package/cdn/Select/index.js +131 -0
- package/cdn/SelectInput/index.js +131 -0
- package/cdn/SingleBox/index.js +131 -0
- package/cdn/Slider/index.js +14 -0
- package/cdn/Split/index.js +1 -0
- package/cdn/Stepper/index.js +154 -0
- package/cdn/Switch/index.js +71 -0
- package/cdn/Table/index.js +292 -0
- package/cdn/Tabs/index.js +165 -0
- package/cdn/Tag/index.js +27 -0
- package/cdn/TextField/index.js +105 -0
- package/cdn/TimePicker/index.js +183 -0
- package/cdn/Timeline/index.js +16 -0
- package/cdn/ToggleButton/index.js +79 -0
- package/cdn/Tooltip/index.js +40 -0
- package/cdn/Transfer/index.js +170 -0
- package/cdn/Tree/index.js +170 -0
- package/cdn/Upload/index.js +249 -0
- package/index.d.ts +124 -0
- package/index.js +729 -0
- package/package.json +5 -4
- package/{temp/style.css → style.css} +12 -10
- package/.eslintignore +0 -12
- package/babel.config.js +0 -7
- package/docs/App.tsx +0 -277
- package/docs/Router.tsx +0 -79
- package/docs/assets/1.jpeg +0 -0
- package/docs/assets/P.svg +0 -1
- 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 +0 -73
- package/docs/config/router.tsx +0 -212
- package/docs/context/global.tsx +0 -65
- package/docs/index.tsx +0 -42
- package/docs/locale/index.ts +0 -64
- package/docs/locale/lang/en_US.ts +0 -16
- package/docs/locale/lang/zh_CN.ts +0 -16
- package/docs/react-app-env.d.ts +0 -18
- package/docs/services/api.ts +0 -6
- package/docs/styles/index.scss +0 -31
- package/docs/view/autoBox/api.tsx +0 -67
- package/docs/view/autoBox/codeString.tsx +0 -137
- package/docs/view/autoBox/index.scss +0 -15
- package/docs/view/autoBox/index.tsx +0 -97
- package/docs/view/autoTips/api.tsx +0 -49
- package/docs/view/autoTips/codeString.tsx +0 -34
- package/docs/view/autoTips/index.tsx +0 -53
- package/docs/view/breadcrumbs/api.tsx +0 -72
- package/docs/view/breadcrumbs/codeString.tsx +0 -160
- package/docs/view/breadcrumbs/index.scss +0 -14
- package/docs/view/breadcrumbs/index.tsx +0 -173
- package/docs/view/button/api.tsx +0 -131
- package/docs/view/button/codeString.tsx +0 -153
- package/docs/view/button/index.scss +0 -23
- package/docs/view/button/index.tsx +0 -165
- package/docs/view/buttonGroup/api.tsx +0 -55
- package/docs/view/buttonGroup/codeString.tsx +0 -108
- package/docs/view/buttonGroup/index.scss +0 -9
- package/docs/view/buttonGroup/index.tsx +0 -93
- package/docs/view/carousel/api.tsx +0 -165
- package/docs/view/carousel/codeString.tsx +0 -207
- package/docs/view/carousel/index.scss +0 -12
- package/docs/view/carousel/index.tsx +0 -174
- package/docs/view/cascader/api.tsx +0 -116
- package/docs/view/cascader/codeString.tsx +0 -584
- package/docs/view/cascader/index.scss +0 -0
- package/docs/view/cascader/index.tsx +0 -261
- package/docs/view/checkbox/api.tsx +0 -148
- package/docs/view/checkbox/codeString.tsx +0 -215
- package/docs/view/checkbox/index.scss +0 -0
- package/docs/view/checkbox/index.tsx +0 -233
- package/docs/view/collapse/api.tsx +0 -109
- package/docs/view/collapse/codeString.tsx +0 -186
- package/docs/view/collapse/index.scss +0 -0
- package/docs/view/collapse/index.tsx +0 -171
- package/docs/view/colorPicker/api.tsx +0 -30
- package/docs/view/colorPicker/codeString.tsx +0 -58
- package/docs/view/colorPicker/index.scss +0 -5
- package/docs/view/colorPicker/index.tsx +0 -39
- package/docs/view/comboSelect/api.tsx +0 -255
- package/docs/view/comboSelect/codeString.tsx +0 -629
- package/docs/view/comboSelect/index.scss +0 -5
- package/docs/view/comboSelect/index.tsx +0 -402
- package/docs/view/container/api.tsx +0 -61
- package/docs/view/container/codeString.tsx +0 -64
- package/docs/view/container/index.scss +0 -0
- package/docs/view/container/index.tsx +0 -84
- package/docs/view/datePicker/api.tsx +0 -264
- package/docs/view/datePicker/codeString.tsx +0 -185
- package/docs/view/datePicker/index.scss +0 -8
- package/docs/view/datePicker/index.tsx +0 -205
- package/docs/view/drawer/api.tsx +0 -123
- package/docs/view/drawer/codeString.tsx +0 -122
- package/docs/view/drawer/index.scss +0 -5
- package/docs/view/drawer/index.tsx +0 -200
- package/docs/view/empty/api.tsx +0 -57
- package/docs/view/empty/codeString.tsx +0 -38
- package/docs/view/empty/index.scss +0 -11
- package/docs/view/empty/index.tsx +0 -43
- package/docs/view/form/api.tsx +0 -266
- package/docs/view/form/codeString.tsx +0 -203
- package/docs/view/form/index.scss +0 -0
- package/docs/view/form/index.tsx +0 -225
- package/docs/view/help/api.tsx +0 -58
- package/docs/view/help/codeString.tsx +0 -39
- package/docs/view/help/index.scss +0 -5
- package/docs/view/help/index.tsx +0 -40
- package/docs/view/helperText/api.tsx +0 -31
- package/docs/view/helperText/codeString.tsx +0 -16
- package/docs/view/helperText/index.scss +0 -0
- package/docs/view/helperText/index.tsx +0 -33
- package/docs/view/home/index.scss +0 -55
- package/docs/view/home/index.tsx +0 -119
- package/docs/view/icons/index.scss +0 -48
- package/docs/view/icons/index.tsx +0 -87
- package/docs/view/inputLang/api.tsx +0 -99
- package/docs/view/inputLang/codeString.tsx +0 -66
- package/docs/view/inputLang/index.scss +0 -0
- package/docs/view/inputLang/index.tsx +0 -85
- package/docs/view/inputNumber/api.tsx +0 -169
- package/docs/view/inputNumber/codeString.tsx +0 -129
- package/docs/view/inputNumber/index.scss +0 -0
- package/docs/view/inputNumber/index.tsx +0 -141
- package/docs/view/label/api.tsx +0 -63
- package/docs/view/label/codeString.tsx +0 -63
- package/docs/view/label/index.scss +0 -0
- package/docs/view/label/index.tsx +0 -82
- package/docs/view/loading/api.tsx +0 -26
- package/docs/view/loading/codeString.tsx +0 -13
- package/docs/view/loading/index.scss +0 -0
- package/docs/view/loading/index.tsx +0 -38
- package/docs/view/menu/api.tsx +0 -227
- package/docs/view/menu/codeString.tsx +0 -302
- package/docs/view/menu/index.scss +0 -42
- package/docs/view/menu/index.tsx +0 -289
- package/docs/view/message/api.tsx +0 -35
- package/docs/view/message/codeString.tsx +0 -73
- package/docs/view/message/index.scss +0 -7
- package/docs/view/message/index.tsx +0 -64
- package/docs/view/modal/api.tsx +0 -141
- package/docs/view/modal/codeString.tsx +0 -222
- package/docs/view/modal/index.scss +0 -9
- package/docs/view/modal/index.tsx +0 -222
- package/docs/view/multiBox/api.tsx +0 -99
- package/docs/view/multiBox/codeString.tsx +0 -104
- package/docs/view/multiBox/index.scss +0 -0
- package/docs/view/multiBox/index.tsx +0 -123
- package/docs/view/notification/api.tsx +0 -148
- package/docs/view/notification/codeString.tsx +0 -110
- package/docs/view/notification/index.scss +0 -9
- package/docs/view/notification/index.tsx +0 -118
- package/docs/view/operateBtn/api.tsx +0 -127
- package/docs/view/operateBtn/codeString.tsx +0 -165
- package/docs/view/operateBtn/index.scss +0 -0
- package/docs/view/operateBtn/index.tsx +0 -160
- package/docs/view/pageHeader/api.tsx +0 -321
- package/docs/view/pageHeader/codeString.tsx +0 -252
- package/docs/view/pageHeader/index.scss +0 -6
- package/docs/view/pageHeader/index.tsx +0 -291
- package/docs/view/pagination/api.tsx +0 -71
- package/docs/view/pagination/codeString.tsx +0 -45
- package/docs/view/pagination/index.scss +0 -0
- package/docs/view/pagination/index.tsx +0 -54
- package/docs/view/popConfirm/api.tsx +0 -96
- package/docs/view/popConfirm/codeString.tsx +0 -130
- package/docs/view/popConfirm/index.scss +0 -33
- package/docs/view/popConfirm/index.tsx +0 -167
- package/docs/view/popover/api.tsx +0 -80
- package/docs/view/popover/codeString.tsx +0 -40
- package/docs/view/popover/index.scss +0 -4
- package/docs/view/popover/index.tsx +0 -53
- package/docs/view/querying/api.tsx +0 -46
- package/docs/view/querying/codeString.tsx +0 -28
- package/docs/view/querying/index.scss +0 -11
- package/docs/view/querying/index.tsx +0 -35
- package/docs/view/radio/api.tsx +0 -142
- package/docs/view/radio/codeString.tsx +0 -136
- package/docs/view/radio/index.scss +0 -0
- package/docs/view/radio/index.tsx +0 -154
- package/docs/view/search/api.tsx +0 -132
- package/docs/view/search/codeString.tsx +0 -164
- package/docs/view/search/index.scss +0 -0
- package/docs/view/search/index.tsx +0 -142
- package/docs/view/select/api.tsx +0 -195
- package/docs/view/select/codeString.tsx +0 -379
- package/docs/view/select/index.scss +0 -12
- package/docs/view/select/index.tsx +0 -370
- package/docs/view/selectInput/api.tsx +0 -161
- package/docs/view/selectInput/codeString.tsx +0 -171
- package/docs/view/selectInput/index.scss +0 -12
- package/docs/view/selectInput/index.tsx +0 -167
- package/docs/view/singleBox/api.tsx +0 -89
- package/docs/view/singleBox/codeString.tsx +0 -94
- package/docs/view/singleBox/index.scss +0 -0
- package/docs/view/singleBox/index.tsx +0 -111
- package/docs/view/slider/api.tsx +0 -135
- package/docs/view/slider/codeString.tsx +0 -99
- package/docs/view/slider/index.scss +0 -11
- package/docs/view/slider/index.tsx +0 -95
- package/docs/view/stepper/api.tsx +0 -49
- package/docs/view/stepper/codeString.tsx +0 -64
- package/docs/view/stepper/index.scss +0 -3
- package/docs/view/stepper/index.tsx +0 -57
- package/docs/view/switch/api.tsx +0 -70
- package/docs/view/switch/codeString.tsx +0 -48
- package/docs/view/switch/index.scss +0 -16
- package/docs/view/switch/index.tsx +0 -50
- package/docs/view/table/api.tsx +0 -330
- package/docs/view/table/codeString.tsx +0 -737
- package/docs/view/table/index.scss +0 -0
- package/docs/view/table/index.tsx +0 -549
- package/docs/view/tabs/api.tsx +0 -106
- package/docs/view/tabs/codeString.tsx +0 -243
- package/docs/view/tabs/index.scss +0 -5
- package/docs/view/tabs/index.tsx +0 -132
- package/docs/view/tag/api.tsx +0 -119
- package/docs/view/tag/codeString.tsx +0 -95
- package/docs/view/tag/index.scss +0 -5
- package/docs/view/tag/index.tsx +0 -91
- package/docs/view/textField/api.tsx +0 -229
- package/docs/view/textField/codeString.tsx +0 -251
- package/docs/view/textField/index.scss +0 -3
- package/docs/view/textField/index.tsx +0 -327
- package/docs/view/timeLine/api.tsx +0 -43
- package/docs/view/timeLine/codeString.tsx +0 -85
- package/docs/view/timeLine/index.scss +0 -5
- package/docs/view/timeLine/index.tsx +0 -73
- package/docs/view/timePicker/api.tsx +0 -178
- package/docs/view/timePicker/codeString.tsx +0 -66
- package/docs/view/timePicker/index.scss +0 -8
- package/docs/view/timePicker/index.tsx +0 -75
- package/docs/view/toggleButton/api.tsx +0 -100
- package/docs/view/toggleButton/codeString.tsx +0 -152
- package/docs/view/toggleButton/index.scss +0 -5
- package/docs/view/toggleButton/index.tsx +0 -108
- package/docs/view/toolTip/api.tsx +0 -96
- package/docs/view/toolTip/codeString.tsx +0 -42
- package/docs/view/toolTip/index.scss +0 -5
- package/docs/view/toolTip/index.tsx +0 -44
- package/docs/view/transfer/api.tsx +0 -33
- package/docs/view/transfer/codeString.tsx +0 -44
- package/docs/view/transfer/index.scss +0 -0
- package/docs/view/transfer/index.tsx +0 -59
- package/docs/view/tree/api.tsx +0 -413
- package/docs/view/tree/codeString.tsx +0 -437
- package/docs/view/tree/index.scss +0 -5
- package/docs/view/tree/index.tsx +0 -362
- package/docs/view/upload/api.tsx +0 -302
- package/docs/view/upload/codeString.tsx +0 -248
- package/docs/view/upload/index.scss +0 -7
- package/docs/view/upload/index.tsx +0 -207
- package/publish.sh +0 -5
- package/run.js +0 -43
- package/scripts/extract-css.js +0 -9
- package/temp/main.js +0 -1103
- package/tsconfig.json +0 -40
- package/webpack.cdn.config.js +0 -81
- package/webpack.config.js +0 -249
- package/webpack.extract.css.js +0 -86
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","@para-ui/core/GlobalContext"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@para-ui/core/GlobalContext")):t.ParaUI=e(t.react,t["@para-ui/core/GlobalContext"])}(self,(function(t,e){return function(){var r={6010:function(t,e,r){"use strict";function a(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=a(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function n(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=a(t))&&(n&&(n+=" "),n+=e);return n}r.d(e,{Z:function(){return n}})},665:function(t,e,r){(e=r(3645)(!1)).push([t.id,".paraui-querying{display:inline-flex;flex-direction:column;align-items:center}.paraui-querying-image img{width:100%}.paraui-querying-description{line-height:1;font-size:14px;font-weight:400;color:rgba(46,55,67,0.7)}.paraui-querying>.paraui-querying-image{line-height:0}.paraui-querying-large .paraui-querying-description{margin-top:24px}.paraui-querying-small .paraui-querying-description{margin-top:12px;font-size:12px}\n",""]),t.exports=e},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",a=t[3];if(!a)return r;if(e&&"function"==typeof btoa){var n=(s=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),f="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(f," */")),i=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[r].concat(i).concat([n]).join("\n")}var s,o,f;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,a){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(a)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(n[s]=!0)}for(var o=0;o<t.length;o++){var f=[].concat(t[o]);a&&n[f[0]]||(r&&(f[2]?f[2]="".concat(r," and ").concat(f[2]):f[2]=r),e.push(f))}},e}},7418:function(t){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function n(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(t){a[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var s,o,f=n(t),l=1;l<arguments.length;l++){for(var d in s=Object(arguments[l]))r.call(s,d)&&(f[d]=s[d]);if(e){o=e(s);for(var c=0;c<o.length;c++)a.call(s,o[c])&&(f[o[c]]=s[o[c]])}}return f}},5251:function(t,e,r){"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
|
+
*/r(7418);var a=r(8156),n=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),e.Fragment=i("react.fragment")}var s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,f={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,r){var a,i={},l=null,d=null;for(a in void 0!==r&&(l=""+r),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(d=e.ref),e)o.call(e,a)&&!f.hasOwnProperty(a)&&(i[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===i[a]&&(i[a]=e[a]);return{$$typeof:n,type:t,key:l,ref:d,props:i,_owner:s.current}}e.jsx=l,e.jsxs=l},5893:function(t,e,r){"use strict";t.exports=r(5251)},7385:function(t,e,r){var a=r(3379),n=r(665);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.id,n,""]]);var i={insert:("body","body"),singleton:!1};a(n,i);t.exports=n.locals||{}},3379:function(t,e,r){"use strict";var a,n=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),s=[];function o(t){for(var e=-1,r=0;r<s.length;r++)if(s[r].identifier===t){e=r;break}return e}function f(t,e){for(var r={},a=[],n=0;n<t.length;n++){var i=t[n],f=e.base?i[0]+e.base:i[0],l=r[f]||0,d="".concat(f," ").concat(l);r[f]=l+1;var c=o(d),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==c?(s[c].references++,s[c].updater(h)):s.push({identifier:d,updater:g(h,e),references:1}),a.push(d)}return a}function l(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var n=r.nc;n&&(a.nonce=n)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var s=i(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var d,c=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function h(t,e,r,a){var n=r?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=c(e,n);else{var i=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function u(t,e,r){var a=r.css,n=r.media,i=r.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var m=null,x=0;function g(t,e){var r,a,n;if(e.singleton){var i=x++;r=m||(m=l(e)),a=h.bind(null,r,i,!1),n=h.bind(null,r,i,!0)}else r=l(e),a=u.bind(null,r,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var r=f(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<r.length;a++){var n=o(r[a]);s[n].references--}for(var i=f(t,e),l=0;l<r.length;l++){var d=o(r[l]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}r=i}}}},3054:function(t,e,r){"use strict";var a=r(8156),n=r.n(a),i=r(5395),s=r.n(i);e.Z=function(t,e){var r=n().useContext(s()).intlFormat;return e.zh_CN=e.zh,e.en_US=e.en,r&&r(t,e)}},2537:function(t,e,r){"use strict";r.d(e,{Z:function(){return f}});var a=r(8156),n=r.n(a),i=r(5395),s=r.n(i),o=function(){return o=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},o.apply(this,arguments)};function f(t,e){var r=n().useContext(s()).componentsProps,a=r&&r[e];return o(o({},a),t)}},5395:function(t){"use strict";t.exports=e},8156:function(e){"use strict";e.exports=t}},a={};function n(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]={id:t,exports:{}};return r[t](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";n.r(i),n.d(i,{default:function(){return d}});var t=n(5893),e=n(6010),r=function(){return r=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},a=n(3054),s={zh:{querying:"数据查询中"},en:{querying:"Data querying"}},o=(n(7385),n(2537)),f=function(){return f=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},f.apply(this,arguments)},l={large:(0,t.jsx)((function(){return(0,t.jsx)("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"334",height:"238",viewBox:"0 0 334 238"},{children:(0,t.jsxs)("g",r({id:"数据查询中-大",transform:"translate(-303 -696)"},{children:[(0,t.jsx)("rect",{id:"矩形_20296","data-name":"矩形 20296",width:"334",height:"238",transform:"translate(303 696)",fill:"rgba(255,255,255,0)"}),(0,t.jsxs)("g",r({id:"插画",transform:"translate(174.443 675.406)"},{children:[(0,t.jsxs)("g",r({id:"底",transform:"translate(142.557 33.595)"},{children:[(0,t.jsx)("path",{id:"背景",d:"M4637.062,989.227c3.9-4.993,13.692-26.559,55.608-26.734,21.923,2.127,40.048,22.729,50.663,42.262s49.942,22.464,64.316,26.146,41.027,22.905,32.384,57.476-49.9,29.156-82.36,47.8-45.434,26.558-84.576,21.854c-20.6-4.352-34.522-18.288-31.249-38.791,1.555-10.4,11.784-29.468,13.7-43.442s-19.939-44.82-23.007-51.922C4627.981,1014.233,4633.166,994.22,4637.062,989.227Z",transform:"translate(-4572.552 -948.18)",fill:"#edf2fd"}),(0,t.jsx)("rect",{id:"矩形_20289","data-name":"矩形 20289",width:"47.466",height:"8.288",rx:"4.144",transform:"translate(18.459 56.507)",fill:"#edf2fd"}),(0,t.jsx)("rect",{id:"矩形_20290","data-name":"矩形 20290",width:"47.466",height:"8.288",rx:"4.144",transform:"translate(42.569 79.864)",fill:"#edf2fd"}),(0,t.jsx)("rect",{id:"矩形_20291","data-name":"矩形 20291",width:"47.466",height:"8.288",rx:"4.144",transform:"translate(220.378 162.741)",fill:"#edf2fd"}),(0,t.jsx)("rect",{id:"矩形_20292","data-name":"矩形 20292",width:"47.466",height:"8.288",rx:"4.144",transform:"translate(258.803 140.138)",fill:"#edf2fd"}),(0,t.jsxs)("g",r({id:"组_20015","data-name":"组 20015",transform:"translate(275.563 90.228) rotate(-90)"},{children:[(0,t.jsx)("rect",{id:"矩形_20286","data-name":"矩形 20286",width:"6.974",height:"1.162",rx:"0.581",transform:"translate(6.974 4.068) rotate(180)",fill:"#99b6f8"}),(0,t.jsx)("rect",{id:"矩形_20286-2","data-name":"矩形 20286",width:"6.974",height:"1.162",rx:"0.581",transform:"translate(4.068) rotate(90)",fill:"#99b6f8"})]})),(0,t.jsx)("rect",{id:"矩形_20286-3","data-name":"矩形 20286",width:"9.041",height:"1.507",rx:"0.753",transform:"translate(5.274 78.734) rotate(90)",fill:"#99b6f8"}),(0,t.jsx)("rect",{id:"矩形_20286-4","data-name":"矩形 20286",width:"9.041",height:"1.507",rx:"0.753",transform:"translate(0 82.501)",fill:"#99b6f8"}),(0,t.jsxs)("g",r({id:"椭圆_10195","data-name":"椭圆 10195",transform:"translate(29.007 34.658)",fill:"none",stroke:"#99b6f8","stroke-width":"2",opacity:"0.999"},{children:[(0,t.jsx)("circle",{cx:"5.274",cy:"5.274",r:"5.274",stroke:"none"}),(0,t.jsx)("circle",{cx:"5.274",cy:"5.274",r:"4.274",fill:"none"})]})),(0,t.jsxs)("g",r({id:"矩形_20287","data-name":"矩形 20287",transform:"translate(225.538 54.258) rotate(-45)",fill:"none",stroke:"#99b6f8","stroke-width":"2"},{children:[(0,t.jsx)("rect",{width:"9.041",height:"9.041",rx:"1",stroke:"none"}),(0,t.jsx)("rect",{x:"1",y:"1",width:"7.041",height:"7.041",fill:"none"})]})),(0,t.jsxs)("g",r({id:"矩形_20288","data-name":"矩形 20288",transform:"translate(53.192 116.356) rotate(-45)",fill:"none",stroke:"#99b6f8","stroke-width":"2"},{children:[(0,t.jsx)("rect",{width:"6.027",height:"6.027",rx:"1",stroke:"none"}),(0,t.jsx)("rect",{x:"1",y:"1",width:"4.027",height:"4.027",fill:"none"})]})),(0,t.jsxs)("g",r({id:"椭圆_10196","data-name":"椭圆 10196",transform:"translate(194.762)",fill:"none",stroke:"#99b6f8","stroke-width":"2",opacity:"0.999"},{children:[(0,t.jsx)("circle",{cx:"3.767",cy:"3.767",r:"3.767",stroke:"none"}),(0,t.jsx)("circle",{cx:"3.767",cy:"3.767",r:"2.767",fill:"none"})]})),(0,t.jsxs)("g",r({id:"椭圆_10197","data-name":"椭圆 10197",transform:"translate(29.007 165.755)",fill:"none",stroke:"#99b6f8","stroke-width":"2",opacity:"0.999"},{children:[(0,t.jsx)("circle",{cx:"3.767",cy:"3.767",r:"3.767",stroke:"none"}),(0,t.jsx)("circle",{cx:"3.767",cy:"3.767",r:"2.767",fill:"none"})]})),(0,t.jsxs)("g",r({id:"组_20016","data-name":"组 20016",transform:"translate(213.221 201.543) rotate(-90)"},{children:[(0,t.jsx)("rect",{id:"矩形_20286-5","data-name":"矩形 20286",width:"6.974",height:"1.162",rx:"0.581",transform:"translate(6.974 4.068) rotate(180)",fill:"#99b6f8"}),(0,t.jsx)("rect",{id:"矩形_20286-6","data-name":"矩形 20286",width:"6.974",height:"1.162",rx:"0.581",transform:"translate(4.068) rotate(90)",fill:"#99b6f8"})]}))]})),(0,t.jsxs)("g",r({id:"记录",transform:"translate(217.857 94.956)"},{children:[(0,t.jsx)("path",{id:"路径_18121","data-name":"路径 18121",d:"M12.284,0H171.972a12.284,12.284,0,0,1,12.284,12.284v90.593a12.284,12.284,0,0,1-12.284,12.284H12.284A12.284,12.284,0,0,1,0,102.876V12.284A12.284,12.284,0,0,1,12.284,0Z",transform:"translate(0 0)",fill:"#dde7ff"}),(0,t.jsx)("path",{id:"矩形_131","data-name":"矩形 131",d:"M6,0H178.256a6,6,0,0,1,6,6v6.934a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V6A6,6,0,0,1,6,0Z",transform:"translate(0 0)",fill:"#6487d9"}),(0,t.jsx)("rect",{id:"矩形_139","data-name":"矩形 139",width:"3.839",height:"3.839",rx:"1.919",transform:"translate(3.293 3.012)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20046","data-name":"矩形 20046",width:"3.839",height:"3.839",rx:"1.919",transform:"translate(10.203 3.012)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20047","data-name":"矩形 20047",width:"3.839",height:"3.839",rx:"1.919",transform:"translate(17.113 3.012)",fill:"#fff"})]})),(0,t.jsxs)("g",r({id:"记录-2","data-name":"记录",transform:"translate(207.876 86.958)"},{children:[(0,t.jsx)("rect",{id:"矩形_20062","data-name":"矩形 20062",width:"184.256",height:"115.16",rx:"16",fill:"#f7f9ff"}),(0,t.jsx)("path",{id:"矩形_131-2","data-name":"矩形 131",d:"M6,0H178.256a6,6,0,0,1,6,6v6.934a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V6A6,6,0,0,1,6,0Z",fill:"#3666d6"}),(0,t.jsx)("rect",{id:"矩形_139-2","data-name":"矩形 139",width:"3.839",height:"3.839",rx:"1.919",transform:"translate(4.829 4.548)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20046-2","data-name":"矩形 20046",width:"3.839",height:"3.839",rx:"1.919",transform:"translate(11.739 4.548)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20047-2","data-name":"矩形 20047",width:"3.839",height:"3.839",rx:"1.919",transform:"translate(18.648 4.548)",fill:"#fff"})]})),(0,t.jsx)("rect",{id:"矩形_130","data-name":"矩形 130",width:"37.672",height:"91.919",rx:"6",transform:"translate(215.025 104.592)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20294","data-name":"矩形 20294",width:"123.563",height:"91.919",rx:"6",transform:"translate(260.23 104.592)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20293","data-name":"矩形 20293",width:"143.152",height:"3.767",rx:"1.884",transform:"translate(243.893 91.609)",fill:"#fff",opacity:"0.4"}),(0,t.jsx)("rect",{id:"矩形_19933","data-name":"矩形 19933",width:"27.124",height:"25.617",rx:"2",transform:"translate(220.537 110.444)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19935","data-name":"矩形 19935",width:"27.124",height:"6.027",rx:"3.014",transform:"translate(220.537 148.869)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19936","data-name":"矩形 19936",width:"27.124",height:"6.027",rx:"3.014",transform:"translate(220.537 159.417)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19938","data-name":"矩形 19938",width:"27.124",height:"6.027",rx:"3.014",transform:"translate(220.537 169.965)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19939","data-name":"矩形 19939",width:"13.562",height:"6.027",rx:"3.014",transform:"translate(220.537 180.513)",fill:"#dde7ff"}),(0,t.jsx)("path",{id:"路径_17905","data-name":"路径 17905",d:"M20.356,21.964l-9.429-10.17v2.289H9.107V9.83H20.239a3.921,3.921,0,1,1,0,7.842h-.65L17.9,15.845h2.328a2.087,2.087,0,0,0,0-4.175H13.288L21.2,20.182l1.613,1.782Zm-4.773-4.3h-4.65v4.3H9.1V15.858h4.767l1.7,1.834Z",transform:"translate(217.468 107.352)",fill:"#3666d6"}),(0,t.jsxs)("g",r({id:"组_19234","data-name":"组 19234",transform:"matrix(0.819, -0.574, 0.574, 0.819, 352.183, 181.295)"},{children:[(0,t.jsx)("rect",{id:"矩形_19826","data-name":"矩形 19826",width:"3.819",height:"15.414",transform:"translate(16.505 35.056)",fill:"#939fba"}),(0,t.jsx)("circle",{id:"椭圆_10118","data-name":"椭圆 10118",cx:"18.415",cy:"18.415",r:"18.415",transform:"translate(0 0)",fill:"#3666d6"}),(0,t.jsx)("circle",{id:"椭圆_10119","data-name":"椭圆 10119",cx:"14.595",cy:"14.595",r:"14.595",transform:"translate(3.819 3.819)",fill:"#e2e9ff"}),(0,t.jsx)("path",{id:"路径_17675","data-name":"路径 17675",d:"M1.625,0A10.484,10.484,0,0,0,.642,9.4c1.97,4.34,4.6,5.151,4.6,5.151",transform:"matrix(0.848, 0.53, -0.53, 0.848, 11.766, 8.135)",fill:"none",stroke:"#fff","stroke-linecap":"round","stroke-width":"3"}),(0,t.jsx)("rect",{id:"矩形_19827","data-name":"矩形 19827",width:"5.729",height:"23.053",rx:"2.865",transform:"translate(15.55 47.196)",fill:"#3666d6"}),(0,t.jsx)("rect",{id:"矩形_19828","data-name":"矩形 19828",width:"5.729",height:"1.091",transform:"translate(15.55 49.924)",fill:"#ffa150"}),(0,t.jsx)("rect",{id:"矩形_19829","data-name":"矩形 19829",width:"5.729",height:"1.091",transform:"translate(15.55 66.566)",fill:"#ffa150"})]}))]}))]}))}))}),{}),small:(0,t.jsx)((function(){return(0,t.jsx)("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 120 120"},{children:(0,t.jsxs)("g",r({id:"数据查询中-小",transform:"translate(-1048 -245)"},{children:[(0,t.jsx)("g",r({id:"边缘框",transform:"translate(1048 245)"},{children:(0,t.jsx)("rect",{id:"边缘框-2","data-name":"边缘框",width:"120",height:"120",fill:"none"})})),(0,t.jsxs)("g",r({id:"插画",transform:"translate(823.877 167.068)"},{children:[(0,t.jsxs)("g",r({id:"记录",transform:"translate(235.483 107.933)"},{children:[(0,t.jsx)("path",{id:"路径_18536","data-name":"路径 18536",d:"M3.723,0H99.067a3.723,3.723,0,0,1,3.723,3.723v56.8a3.723,3.723,0,0,1-3.723,3.723H3.723A3.723,3.723,0,0,1,0,60.521V3.723A3.723,3.723,0,0,1,3.723,0Z",transform:"translate(0.057 0.215)",fill:"#dde7ff"}),(0,t.jsx)("path",{id:"路径_18540","data-name":"路径 18540",d:"M3.723,0H99.067a3.723,3.723,0,0,1,3.723,3.723V7.215H0V3.723A3.723,3.723,0,0,1,3.723,0Z",transform:"translate(0 0)",fill:"#6487d9"}),(0,t.jsx)("rect",{id:"矩形_139","data-name":"矩形 139",width:"2.141",height:"2.141",rx:"1.071",transform:"translate(1.837 1.68)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20046","data-name":"矩形 20046",width:"2.141",height:"2.141",rx:"1.071",transform:"translate(5.692 1.68)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20047","data-name":"矩形 20047",width:"2.141",height:"2.141",rx:"1.071",transform:"translate(9.547 1.68)",fill:"#fff"})]})),(0,t.jsxs)("g",r({id:"记录-2","data-name":"记录",transform:"translate(229.915 103.472)"},{children:[(0,t.jsx)("path",{id:"路径_18538","data-name":"路径 18538",d:"M3.723,0H99.067a3.723,3.723,0,0,1,3.723,3.723v56.8a3.723,3.723,0,0,1-3.723,3.723H3.723A3.723,3.723,0,0,1,0,60.521V3.723A3.723,3.723,0,0,1,3.723,0Z",fill:"#f7f9ff"}),(0,t.jsx)("path",{id:"路径_18537","data-name":"路径 18537",d:"M3.723,0H99.067a3.723,3.723,0,0,1,3.723,3.723V7.215H0V3.723A3.723,3.723,0,0,1,3.723,0Z",fill:"#3666d6"}),(0,t.jsx)("rect",{id:"矩形_139-2","data-name":"矩形 139",width:"2.141",height:"2.141",rx:"1.071",transform:"translate(2.694 2.537)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20046-2","data-name":"矩形 20046",width:"2.141",height:"2.141",rx:"1.071",transform:"translate(6.549 2.537)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20047-2","data-name":"矩形 20047",width:"2.141",height:"2.141",rx:"1.071",transform:"translate(10.403 2.537)",fill:"#fff"})]})),(0,t.jsx)("rect",{id:"矩形_130","data-name":"矩形 130",width:"21.016",height:"51.278",rx:"6",transform:"translate(233.903 113.309)",fill:"#fff"}),(0,t.jsx)("path",{id:"路径_18539","data-name":"路径 18539",d:"M2.793,0H66.139a2.793,2.793,0,0,1,2.793,2.793V48.486a2.793,2.793,0,0,1-2.793,2.793H2.793A2.793,2.793,0,0,1,0,48.486V2.793A2.793,2.793,0,0,1,2.793,0Z",transform:"translate(259.122 113.309)",fill:"#fff"}),(0,t.jsx)("rect",{id:"矩形_20293","data-name":"矩形 20293",width:"79.859",height:"2.102",rx:"1.051",transform:"translate(250.008 106.066)",fill:"#fff",opacity:"0.4"}),(0,t.jsx)("rect",{id:"矩形_19933","data-name":"矩形 19933",width:"15.131",height:"14.291",rx:"2",transform:"translate(236.978 116.574)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19935","data-name":"矩形 19935",width:"15.131",height:"3.363",rx:"1.681",transform:"translate(236.978 138.01)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19936","data-name":"矩形 19936",width:"15.131",height:"3.363",rx:"1.681",transform:"translate(236.978 143.894)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19938","data-name":"矩形 19938",width:"15.131",height:"3.363",rx:"1.681",transform:"translate(236.978 149.778)",fill:"#dde7ff"}),(0,t.jsx)("rect",{id:"矩形_19939","data-name":"矩形 19939",width:"7.566",height:"3.363",rx:"1.681",transform:"translate(236.978 155.663)",fill:"#dde7ff"}),(0,t.jsx)("path",{id:"路径_17905","data-name":"路径 17905",d:"M15.38,16.6l-5.26-5.674V12.2H9.1V9.83h6.211a2.188,2.188,0,1,1,0,4.375h-.363l-.943-1.019h1.3a1.164,1.164,0,0,0,0-2.329H11.436l4.415,4.749.9.994Zm-2.663-2.4H10.123v2.4H9.1v-3.41h2.659l.95,1.023Z",transform:"translate(231.243 110.503)",fill:"#3666d6"}),(0,t.jsxs)("g",r({id:"组_19234","data-name":"组 19234",transform:"matrix(0.819, -0.574, 0.574, 0.819, 283.948, 133.735)"},{children:[(0,t.jsx)("rect",{id:"矩形_19826","data-name":"矩形 19826",width:"2.131",height:"8.599",transform:"translate(9.208 19.557)",fill:"#939fba"}),(0,t.jsx)("circle",{id:"椭圆_10118","data-name":"椭圆 10118",cx:"10.273",cy:"10.273",r:"10.273",transform:"translate(0 0)",fill:"#3666d6"}),(0,t.jsx)("circle",{id:"椭圆_10119","data-name":"椭圆 10119",cx:"8.142",cy:"8.142",r:"8.142",transform:"translate(2.131 2.131)",fill:"#e2e9ff"}),(0,t.jsx)("path",{id:"路径_17675","data-name":"路径 17675",d:"M.906,0A5.849,5.849,0,0,0,.358,5.243c1.1,2.421,2.566,2.874,2.566,2.874",transform:"matrix(0.848, 0.53, -0.53, 0.848, 6.564, 4.538)",fill:"none",stroke:"#fff","stroke-linecap":"round","stroke-width":"3"}),(0,t.jsx)("rect",{id:"矩形_19827","data-name":"矩形 19827",width:"3.196",height:"12.86",rx:"1.598",transform:"translate(8.675 26.329)",fill:"#3666d6"}),(0,t.jsx)("rect",{id:"矩形_19828","data-name":"矩形 19828",width:"3.196",height:"0.609",transform:"translate(8.675 27.851)",fill:"#ffa150"}),(0,t.jsx)("rect",{id:"矩形_19829","data-name":"矩形 19829",width:"3.196",height:"0.609",transform:"translate(8.675 37.135)",fill:"#ffa150"})]}))]}))]}))}))}),{})},d=function(r){var n=(0,o.Z)(r,"Querying"),i=n.className,d=n.style,c=n.size,h=void 0===c?"large":c,u=n.imageStyle,m=n.image,x=void 0===m?l[h]:m,g=n.description,p=n.customQuerying,j=(0,a.Z)("Querying",s),y=void 0!==g?g:j({id:"querying"}),v="string"==typeof y?y:"querying",w=null;return w="string"==typeof x?(0,t.jsx)("img",{src:x,alt:v}):x,(0,t.jsx)("div",f({className:(0,e.Z)("paraui-querying",i,"paraui-querying-".concat(h)),style:d},{children:p||(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",f({className:"paraui-querying-image",style:u},{children:w})),y&&(0,t.jsx)("div",f({className:"paraui-querying-description"},{children:y}))]})}))}}(),i}()}));
|
package/README.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## 版本: 2.1.38
|
|
2
|
+
|
|
3
|
+
para-ui/core@2.1.38 发布
|
|
4
|
+
【Search】修改按钮间距
|
|
5
|
+
【Table】表格checkDefaultValue不传,里面做默认选中逻辑. 修改表格勾选显示异常
|
|
6
|
+
【Table】修改固定列阴影高度超出,导致滚动问题
|
|
7
|
+
【Table】空状态居中显示
|
|
8
|
+
【Empty】修改空状态组件,替换插画,容器不设置高度,由插画撑开
|
|
9
|
+
【Querying】修改查询中组件,替换插画,容器不设置高度,由插画撑开
|
|
10
|
+
【Hooks】新增useGlobalProps方法,用来处理全局props覆盖内部
|
|
11
|
+
【Select】修改空状态组件样式
|
|
12
|
+
【ComSelect】修改空状态组件样式
|
|
13
|
+
【Menu】修改菜单存在两级,且第二级只有一项的时候,收缩时可点击弹窗菜单
|
|
14
|
+
【CollapseBox】修复高度固定问题,导致第三级菜单显示不出
|
|
15
|
+
|
|
16
|
+
## 版本: 2.1.37
|
|
17
|
+
|
|
18
|
+
para-ui/core@2.1.37 发布
|
|
19
|
+
【CollapseBox】新增折叠容器
|
|
20
|
+
【Menu】替换Mui折叠面板 -> CollapseBox
|
|
21
|
+
【Table】接口请求回来,requestCallback回来在去除loading
|
|
22
|
+
【打包】更换 node-sass 为 sass
|
|
23
|
+
【Tooltip】弹出内容跟随父组件移动
|
|
24
|
+
|
|
25
|
+
## 版本: 2.1.36
|
|
26
|
+
|
|
27
|
+
para-ui/core@2.1.36 解决2.1.35包的问题
|
|
28
|
+
|
|
1
29
|
## 版本: 2.1.35
|
|
2
30
|
|
|
3
31
|
para-ui/core@2.1.35 发布
|
|
@@ -51,7 +79,7 @@
|
|
|
51
79
|
【Table】width支持传入数字
|
|
52
80
|
【Help】修改容器为inline-block
|
|
53
81
|
【PopConfirm】增加bubble属性
|
|
54
|
-
|
|
82
|
+
|
|
55
83
|
## 版本: 2.1.29
|
|
56
84
|
|
|
57
85
|
para-ui/core@2.1.29 发布
|
package/Radio/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/4 10:20
|
|
4
|
+
* @description 单选框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { LabelTooltipProps } from '../Label';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface RadioProps {
|
|
10
|
+
/** 样式class */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** style */
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/** 标题 */
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
/** 帮组提示信息 */
|
|
17
|
+
labelTooltip?: LabelTooltipProps;
|
|
18
|
+
/** 大小 */
|
|
19
|
+
size?: 'small' | 'medium' | 'large';
|
|
20
|
+
/** 默认值 有值不受控组件 初始化第一次 */
|
|
21
|
+
defaultChecked?: boolean;
|
|
22
|
+
/** 默认值 有值受控组件*/
|
|
23
|
+
checked?: boolean;
|
|
24
|
+
/** 禁用 */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** inputProps */
|
|
27
|
+
inputProps?: {
|
|
28
|
+
type?: string;
|
|
29
|
+
value?: any;
|
|
30
|
+
checked?: any;
|
|
31
|
+
[name: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/** 改变事件 */
|
|
34
|
+
onChange?: (e: any, checked: boolean) => void;
|
|
35
|
+
[name: string]: any;
|
|
36
|
+
}
|
|
37
|
+
export declare const Radio: FunctionComponent<RadioProps>;
|
|
38
|
+
export default Radio;
|
package/Radio/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@material-ui/core")):"function"==typeof define&&define.amd?define(["react","@material-ui/core"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@material-ui/core")):r.ParaUI=e(r.react,r["@material-ui/core"])}(self,(function(r,e){return function(){var a={5670:function(r,e,a){var t;self,r.exports=(t=a(8156),function(){var r={466:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},3645:function(r){"use strict";r.exports=function(r){var e=[];return e.toString=function(){return this.map((function(e){var a=function(r,e){var a,t,o,n=r[1]||"",i=r[3];if(!i)return n;if(e&&"function"==typeof btoa){var l=(a=i,t=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t),"/*# ".concat(o," */")),c=i.sources.map((function(r){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(r," */")}));return[n].concat(c).concat([l]).join("\n")}return[n].join("\n")}(e,r);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(r,a,t){"string"==typeof r&&(r=[[null,r,""]]);var o={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(o[i]=!0)}for(var l=0;l<r.length;l++){var c=[].concat(r[l]);t&&o[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),e.push(c))}},e}},7418:function(r){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function o(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(r){t[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(r){return!1}}()?Object.assign:function(r,n){for(var i,l,c=o(r),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))a.call(i,s)&&(c[s]=i[s]);if(e){l=e(i);for(var p=0;p<l.length;p++)t.call(i,l[p])&&(c[l[p]]=i[l[p]])}}return c}},5251:function(r,e,a){"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
|
+
*/a(7418);var t=a(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;o=n("react.element"),e.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(r,e,a){var t,n={},u=null,s=null;for(t in void 0!==a&&(u=""+a),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,t)&&!c.hasOwnProperty(t)&&(n[t]=e[t]);if(r&&r.defaultProps)for(t in e=r.defaultProps)void 0===n[t]&&(n[t]=e[t]);return{$$typeof:o,type:r,key:u,ref:s,props:n,_owner:i.current}}e.jsx=u,e.jsxs=u},5893:function(r,e,a){"use strict";r.exports=a(5251)},7856:function(r,e,a){var t=a(3379),o=a(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[r.id,o,""]]),t(o,{insert:"head",singleton:!1}),r.exports=o.locals||{}},3379:function(r,e,a){"use strict";var t,o=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var r={};return function(e){if(void 0===r[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(r){a=null}r[e]=a}return r[e]}}(),i=[];function l(r){for(var e=-1,a=0;a<i.length;a++)if(i[a].identifier===r){e=a;break}return e}function c(r,e){for(var a={},t=[],o=0;o<r.length;o++){var n=r[o],c=e.base?n[0]+e.base:n[0],u=a[c]||0,s="".concat(c," ").concat(u);a[c]=u+1;var p=l(s),d={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(i[p].references++,i[p].updater(d)):i.push({identifier:s,updater:h(d,e),references:1}),t.push(s)}return t}function u(r){var e=document.createElement("style"),t=r.attributes||{};if(void 0===t.nonce){var o=a.nc;o&&(t.nonce=o)}if(Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])})),"function"==typeof r.insert)r.insert(e);else{var i=n(r.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(e)}return e}var s,p=(s=[],function(r,e){return s[r]=e,s.filter(Boolean).join("\n")});function d(r,e,a,t){var o=a?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(r.styleSheet)r.styleSheet.cssText=p(e,o);else{var n=document.createTextNode(o),i=r.childNodes;i[e]&&r.removeChild(i[e]),i.length?r.insertBefore(n,i[e]):r.appendChild(n)}}function f(r,e,a){var t=a.css,o=a.media,n=a.sourceMap;if(o?r.setAttribute("media",o):r.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}var b=null,v=0;function h(r,e){var a,t,o;if(e.singleton){var n=v++;a=b||(b=u(e)),t=d.bind(null,a,n,!1),o=d.bind(null,a,n,!0)}else a=u(e),t=f.bind(null,a,e),o=function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(a)};return t(r),function(e){if(e){if(e.css===r.css&&e.media===r.media&&e.sourceMap===r.sourceMap)return;t(r=e)}else o()}}r.exports=function(r,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var a=c(r=r||[],e);return function(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var t=0;t<a.length;t++){var o=l(a[t]);i[o].references--}for(var n=c(r,e),u=0;u<a.length;u++){var s=l(a[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}a=n}}}},4939:function(r,e,a){"use strict";var t=a(5893),o=(a(7856),function(){return o=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},o.apply(this,arguments)}),n=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(r);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(r,t[o])&&(a[t[o]]=r[t[o]])}return a};e.default=function(r){var e,a=r.path,i=r.className,l=r.color,c=void 0===l?"primary":l,u=r.size,s=void 0===u?"small":u,p=r.dataName,d=void 0===p?"":p,f=n(r,["path","className","color","size","dataName"]);return(0,t.jsx)("svg",o({className:(e="paraui-icon",e+=" svg-icon",i&&(e+=" "+i),c&&(e+=" paraui-icon-"+c),s&&(e+=" paraui-icon-"+s),e),viewBox:"0 0 1024 1024","data-name":d},f,{children:a}),void 0)}},8156:function(r){"use strict";r.exports=t}},e={};function a(t){var o=e[t];if(void 0!==o)return o.exports;var n=e[t]={id:t,exports:{}};return r[t](n,n.exports,a),n.exports}a.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(e,{a:e}),e},a.d=function(r,e){for(var t in e)a.o(e,t)&&!a.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},a.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},a.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var o={};return function(){"use strict";a.r(o),a.d(o,{Help:function(){return n}});var r=a(5893),e=a(4939),t=function(){return t=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},t.apply(this,arguments)},n=function(a){return(0,r.jsx)(e.default,t({dataName:"Help",path:(0,r.jsxs)(r.Fragment,{children:[(0,r.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,r.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)},a),void 0)};o.default=n}(),o}())},6010:function(r,e,a){"use strict";function t(r){var e,a,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(a=t(r[e]))&&(o&&(o+=" "),o+=a);else for(e in r)r[e]&&(o&&(o+=" "),o+=e);return o}function o(){for(var r,e,a=0,o="";a<arguments.length;)(r=arguments[a++])&&(e=t(r))&&(o&&(o+=" "),o+=e);return o}a.d(e,{Z:function(){return o}})},7381:function(r,e,a){(e=a(3645)(!1)).push([r.id,".paraui-help{display:inline-block;font-size:16px;color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}\n",""]),r.exports=e},4928:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},8979:function(r,e,a){(e=a(3645)(!1)).push([r.id,'.paraui-radio{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-radio:hover>.paraui-radio-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-radio:hover>.paraui-radio-label svg{color:rgba(54,102,214,0.8)}.paraui-radio:hover>.paraui-help>.paraui-radio-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-radio:hover>.paraui-help>.paraui-radio-label svg{color:rgba(54,102,214,0.8)}.paraui-radio:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:rgba(54,102,214,0.8)}.paraui-radio>.paraui-radio-box{position:relative}.paraui-radio>.paraui-radio-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner{position:relative;top:0;left:0;display:block;background-color:white;border:1px solid rgba(171,176,185,0.4);border-radius:50%}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner:after{position:absolute;display:table;content:" ";transform:scale(1) translate(-50%, -50%);background-color:white;border-radius:50%;left:50%;top:50%}.paraui-radio>.paraui-radio-label{color:#2e3743;padding:0 8px;margin:0;display:inline-flex;align-items:flex-start}.paraui-radio>.paraui-radio-label>.paraui-help>svg{top:0}.paraui-radio .paraui-label{line-height:16px}.paraui-radio>.paraui-help{padding:0 8px}.paraui-radio>.paraui-help>.paraui-radio-label{color:#2e3743;margin:0;display:inline-flex;align-items:center}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner{border-color:transparent;background-color:#3666d6}.paraui-radio.radio-checked:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:transparent;background-color:rgba(54,102,214,0.8)}.paraui-radio.radio-disabled{cursor:not-allowed}.paraui-radio.radio-disabled:hover>.paraui-radio-box>.paraui-radio-box-inner{background-color:#f5f6f7;border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled>.paraui-radio-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-label svg{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>input{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner{background-color:#f5f6f7;border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:#f5f6f7}.paraui-radio.radio-disabled.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled>.paraui-help{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-help>.paraui-radio-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-radio.radio-small>.paraui-radio-box{top:1px}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner{width:14px;height:14px}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner:after{width:4px;height:4px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner:after{width:6px;height:6px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner:after{width:6px;height:6px}\n',""]),r.exports=e},9929:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},3645:function(r){"use strict";r.exports=function(r){var e=[];return e.toString=function(){return this.map((function(e){var a=function(r,e){var a=r[1]||"",t=r[3];if(!t)return a;if(e&&"function"==typeof btoa){var o=(i=t,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),n=t.sources.map((function(r){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(r," */")}));return[a].concat(n).concat([o]).join("\n")}var i,l,c;return[a].join("\n")}(e,r);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(r,a,t){"string"==typeof r&&(r=[[null,r,""]]);var o={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(o[i]=!0)}for(var l=0;l<r.length;l++){var c=[].concat(r[l]);t&&o[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),e.push(c))}},e}},7418:function(r){"use strict";
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function o(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(r){t[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(r){return!1}}()?Object.assign:function(r,n){for(var i,l,c=o(r),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))a.call(i,s)&&(c[s]=i[s]);if(e){l=e(i);for(var p=0;p<l.length;p++)t.call(i,l[p])&&(c[l[p]]=i[l[p]])}}return c}},5251:function(r,e,a){"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
|
+
*/a(7418);var t=a(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;o=n("react.element"),e.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(r,e,a){var t,n={},u=null,s=null;for(t in void 0!==a&&(u=""+a),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,t)&&!c.hasOwnProperty(t)&&(n[t]=e[t]);if(r&&r.defaultProps)for(t in e=r.defaultProps)void 0===n[t]&&(n[t]=e[t]);return{$$typeof:o,type:r,key:u,ref:s,props:n,_owner:i.current}}e.jsx=u,e.jsxs=u},5893:function(r,e,a){"use strict";r.exports=a(5251)},2113:function(r,e,a){var t=a(3379),o=a(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[r.id,o,""]]);var n={insert:("body","body"),singleton:!1};t(o,n);r.exports=o.locals||{}},9663:function(r,e,a){var t=a(3379),o=a(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[r.id,o,""]]);var n={insert:("body","body"),singleton:!1};t(o,n);r.exports=o.locals||{}},7510:function(r,e,a){var t=a(3379),o=a(8979);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[r.id,o,""]]);var n={insert:("body","body"),singleton:!1};t(o,n);r.exports=o.locals||{}},2310:function(r,e,a){var t=a(3379),o=a(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[r.id,o,""]]);var n={insert:("body","body"),singleton:!1};t(o,n);r.exports=o.locals||{}},3379:function(r,e,a){"use strict";var t,o=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var r={};return function(e){if(void 0===r[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(r){a=null}r[e]=a}return r[e]}}(),i=[];function l(r){for(var e=-1,a=0;a<i.length;a++)if(i[a].identifier===r){e=a;break}return e}function c(r,e){for(var a={},t=[],o=0;o<r.length;o++){var n=r[o],c=e.base?n[0]+e.base:n[0],u=a[c]||0,s="".concat(c," ").concat(u);a[c]=u+1;var p=l(s),d={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(i[p].references++,i[p].updater(d)):i.push({identifier:s,updater:h(d,e),references:1}),t.push(s)}return t}function u(r){var e=document.createElement("style"),t=r.attributes||{};if(void 0===t.nonce){var o=a.nc;o&&(t.nonce=o)}if(Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])})),"function"==typeof r.insert)r.insert(e);else{var i=n(r.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(e)}return e}var s,p=(s=[],function(r,e){return s[r]=e,s.filter(Boolean).join("\n")});function d(r,e,a,t){var o=a?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(r.styleSheet)r.styleSheet.cssText=p(e,o);else{var n=document.createTextNode(o),i=r.childNodes;i[e]&&r.removeChild(i[e]),i.length?r.insertBefore(n,i[e]):r.appendChild(n)}}function f(r,e,a){var t=a.css,o=a.media,n=a.sourceMap;if(o?r.setAttribute("media",o):r.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}var b=null,v=0;function h(r,e){var a,t,o;if(e.singleton){var n=v++;a=b||(b=u(e)),t=d.bind(null,a,n,!1),o=d.bind(null,a,n,!0)}else a=u(e),t=f.bind(null,a,e),o=function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(a)};return t(r),function(e){if(e){if(e.css===r.css&&e.media===r.media&&e.sourceMap===r.sourceMap)return;t(r=e)}else o()}}r.exports=function(r,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var a=c(r=r||[],e);return function(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var t=0;t<a.length;t++){var o=l(a[t]);i[o].references--}for(var n=c(r,e),u=0;u<a.length;u++){var s=l(a[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}a=n}}}},3566:function(r,e,a){"use strict";var t=a(5893),o=a(7371),n=a(5670),i=a.n(n),l=a(6010),c=(a(2113),function(){return c=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},c.apply(this,arguments)}),u=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(r);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(r,t[o])&&(a[t[o]]=r[t[o]])}return a};e.default=function(r){var e=r.title,a=void 0===e?"":e,n=r.children,s=r.arrow,p=void 0===s||s,d=r.interactive,f=void 0===d||d,b=r.className,v=(r.placement,u(r,["title","children","arrow","interactive","className","placement"]));return(0,t.jsx)(o.default,c({title:a,arrow:p,interactive:f},v,{children:(0,t.jsx)("span",c({className:(0,l.Z)("paraui-help",b)},{children:n||(0,t.jsx)(i(),{})}))}))}},8767:function(r,e,a){"use strict";var t=a(5893),o=a(3566),n=(a(9663),function(){return n=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},n.apply(this,arguments)});e.default=function(r){var e=r.className,a=r.style,i=r.label,l=r.labelSign,c=r.required,u=void 0!==c&&c,s=r.tooltip,p=r.tooltipType,d=void 0===p?"icon":p,f=r.placement,b=r.arrow,v=r.tooltipIcon,h=function(){var r="paraui-label";return d&&(r+=" paraui-label-"+d),s&&(r+=" paraui-label-tooltip"),e&&(r+=" "+e),r};return(0,t.jsxs)(t.Fragment,{children:["icon"===d&&(0,t.jsxs)("label",n({className:h(),style:a},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),l&&(0,t.jsx)("span",{children:l}),s&&(0,t.jsx)(o.default,n({title:s,placement:f,arrow:b},{children:v}))]})),"line"===d&&(0,t.jsx)(o.default,n({title:s||"",placement:f,arrow:b},{children:(0,t.jsxs)("label",n({className:h(),style:a},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),l&&(0,t.jsx)("span",{children:l})]}))}))]})}},7371:function(r,e,a){"use strict";var t=a(5893),o=a(670),n=a(6010),i=(a(2310),function(){return i=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},i.apply(this,arguments)}),l=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(r);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(r,t[o])&&(a[t[o]]=r[t[o]])}return a};e.default=function(r){var e,a=r.placement,c=void 0===a?"top-start":a,u=r.className,s=r.arrow,p=void 0===s||s,d=r.PopperProps,f=r.boundariesElement,b=void 0===f?"scrollParent":f,v=l(r,["placement","className","arrow","PopperProps","boundariesElement"]),h=i(i({},r.classes),{popper:(0,n.Z)("paraui-tooltip",u,null===(e=r.classes)||void 0===e?void 0:e.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,t.jsx)(o.Tooltip,i({},v,{enterTouchDelay:0,arrow:p,placement:c,classes:h,PopperProps:i(i({},d),{modifiers:{preventOverflow:{boundariesElement:b}}})}))}},670:function(r){"use strict";r.exports=e},8156:function(e){"use strict";e.exports=r}},t={};function o(r){var e=t[r];if(void 0!==e)return e.exports;var n=t[r]={id:r,exports:{}};return a[r](n,n.exports,o),n.exports}o.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(e,{a:e}),e},o.d=function(r,e){for(var a in e)o.o(e,a)&&!o.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:e[a]})},o.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var n={};return function(){"use strict";o.r(n),o.d(n,{Radio:function(){return i}});var r=o(5893),e=o(8156),a=o(8767),t=(o(7510),function(){return t=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},t.apply(this,arguments)}),i=function(o){var n=o.className,i=void 0===n?"":n,l=o.labelTooltip,c=o.label,u=void 0===c?"":c,s=o.size,p=void 0===s?"large":s,d=o.disabled,f=void 0!==d&&d,b=o.onChange,v=o.style,h=(0,e.useState)(!1),g=h[0],m=h[1];(0,e.useEffect)((function(){void 0!==o.defaultChecked&&m(o.defaultChecked)}),[]),(0,e.useEffect)((function(){void 0!==o.checked&&m(o.checked)}),[o.checked]);var y;return(0,r.jsxs)("label",t({className:(y="paraui-radio",i&&(y+=" "+i),p&&(y+=" radio-"+p),f&&(y+=" radio-disabled"),g&&(y+=" radio-checked"),y),onClick:function(r){r.preventDefault(),f||(void 0===o.checked&&m(!g),r.target.checked=!g,b&&b(r,!g))},style:v},{children:[(0,r.jsxs)("span",t({className:"paraui-radio-box"},{children:[(0,r.jsx)("input",t({type:"radio",value:g},o.inputProps)),(0,r.jsx)("span",{className:"paraui-radio-box-inner"})]})),u&&(0,r.jsx)(a.default,t({label:u},l,{className:function(){var r="paraui-radio-label";return l&&l.className&&(r+=" "+l.className),r}()}))]}))};n.default=i}(),n}()}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/4 14:18
|
|
4
|
+
* @description 单选框组
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { RadioProps } from '../Radio';
|
|
8
|
+
import { LabelTooltipProps } from "../Label";
|
|
9
|
+
import './index.scss';
|
|
10
|
+
export interface RadioListProps extends RadioProps {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export interface RadioGroupProps {
|
|
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: RadioListProps[];
|
|
42
|
+
/** 改变值 */
|
|
43
|
+
onChange?: (val: any, item?: RadioListProps) => void;
|
|
44
|
+
[name: string]: any;
|
|
45
|
+
}
|
|
46
|
+
export declare const RadioGroup: FunctionComponent<RadioGroupProps>;
|
|
47
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@material-ui/core")):"function"==typeof define&&define.amd?define(["react","@material-ui/core"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@material-ui/core")):r.ParaUI=e(r.react,r["@material-ui/core"])}(self,(function(r,e){return function(){var a={5670:function(r,e,a){var o;self,r.exports=(o=a(8156),function(){var r={466:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},3645:function(r){"use strict";r.exports=function(r){var e=[];return e.toString=function(){return this.map((function(e){var a=function(r,e){var a,o,t,i=r[1]||"",n=r[3];if(!n)return i;if(e&&"function"==typeof btoa){var l=(a=n,o=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(t," */")),u=n.sources.map((function(r){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(r," */")}));return[i].concat(u).concat([l]).join("\n")}return[i].join("\n")}(e,r);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(r,a,o){"string"==typeof r&&(r=[[null,r,""]]);var t={};if(o)for(var i=0;i<this.length;i++){var n=this[i][0];null!=n&&(t[n]=!0)}for(var l=0;l<r.length;l++){var u=[].concat(r[l]);o&&t[u[0]]||(a&&(u[2]?u[2]="".concat(a," and ").concat(u[2]):u[2]=a),e.push(u))}},e}},7418:function(r){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function t(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(r){o[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(r){return!1}}()?Object.assign:function(r,i){for(var n,l,u=t(r),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))a.call(n,s)&&(u[s]=n[s]);if(e){l=e(n);for(var p=0;p<l.length;p++)o.call(n,l[p])&&(u[l[p]]=n[l[p]])}}return u}},5251:function(r,e,a){"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
|
+
*/a(7418);var o=a(8156),t=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;t=i("react.element"),e.Fragment=i("react.fragment")}var n=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(r,e,a){var o,i={},c=null,s=null;for(o in void 0!==a&&(c=""+a),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,o)&&!u.hasOwnProperty(o)&&(i[o]=e[o]);if(r&&r.defaultProps)for(o in e=r.defaultProps)void 0===i[o]&&(i[o]=e[o]);return{$$typeof:t,type:r,key:c,ref:s,props:i,_owner:n.current}}e.jsx=c,e.jsxs=c},5893:function(r,e,a){"use strict";r.exports=a(5251)},7856:function(r,e,a){var o=a(3379),t=a(466);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]),o(t,{insert:"head",singleton:!1}),r.exports=t.locals||{}},3379:function(r,e,a){"use strict";var o,t=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var r={};return function(e){if(void 0===r[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(r){a=null}r[e]=a}return r[e]}}(),n=[];function l(r){for(var e=-1,a=0;a<n.length;a++)if(n[a].identifier===r){e=a;break}return e}function u(r,e){for(var a={},o=[],t=0;t<r.length;t++){var i=r[t],u=e.base?i[0]+e.base:i[0],c=a[u]||0,s="".concat(u," ").concat(c);a[u]=c+1;var p=l(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(n[p].references++,n[p].updater(d)):n.push({identifier:s,updater:h(d,e),references:1}),o.push(s)}return o}function c(r){var e=document.createElement("style"),o=r.attributes||{};if(void 0===o.nonce){var t=a.nc;t&&(o.nonce=t)}if(Object.keys(o).forEach((function(r){e.setAttribute(r,o[r])})),"function"==typeof r.insert)r.insert(e);else{var n=i(r.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}return e}var s,p=(s=[],function(r,e){return s[r]=e,s.filter(Boolean).join("\n")});function d(r,e,a,o){var t=a?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(r.styleSheet)r.styleSheet.cssText=p(e,t);else{var i=document.createTextNode(t),n=r.childNodes;n[e]&&r.removeChild(n[e]),n.length?r.insertBefore(i,n[e]):r.appendChild(i)}}function f(r,e,a){var o=a.css,t=a.media,i=a.sourceMap;if(t?r.setAttribute("media",t):r.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleSheet)r.styleSheet.cssText=o;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(o))}}var b=null,v=0;function h(r,e){var a,o,t;if(e.singleton){var i=v++;a=b||(b=c(e)),o=d.bind(null,a,i,!1),t=d.bind(null,a,i,!0)}else a=c(e),o=f.bind(null,a,e),t=function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(a)};return o(r),function(e){if(e){if(e.css===r.css&&e.media===r.media&&e.sourceMap===r.sourceMap)return;o(r=e)}else t()}}r.exports=function(r,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=t());var a=u(r=r||[],e);return function(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var o=0;o<a.length;o++){var t=l(a[o]);n[t].references--}for(var i=u(r,e),c=0;c<a.length;c++){var s=l(a[c]);0===n[s].references&&(n[s].updater(),n.splice(s,1))}a=i}}}},4939:function(r,e,a){"use strict";var o=a(5893),t=(a(7856),function(){return t=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},t.apply(this,arguments)}),i=function(r,e){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(a[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(r);t<o.length;t++)e.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(r,o[t])&&(a[o[t]]=r[o[t]])}return a};e.default=function(r){var e,a=r.path,n=r.className,l=r.color,u=void 0===l?"primary":l,c=r.size,s=void 0===c?"small":c,p=r.dataName,d=void 0===p?"":p,f=i(r,["path","className","color","size","dataName"]);return(0,o.jsx)("svg",t({className:(e="paraui-icon",e+=" svg-icon",n&&(e+=" "+n),u&&(e+=" paraui-icon-"+u),s&&(e+=" paraui-icon-"+s),e),viewBox:"0 0 1024 1024","data-name":d},f,{children:a}),void 0)}},8156:function(r){"use strict";r.exports=o}},e={};function a(o){var t=e[o];if(void 0!==t)return t.exports;var i=e[o]={id:o,exports:{}};return r[o](i,i.exports,a),i.exports}a.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(e,{a:e}),e},a.d=function(r,e){for(var o in e)a.o(e,o)&&!a.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},a.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},a.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var t={};return function(){"use strict";a.r(t),a.d(t,{Help:function(){return i}});var r=a(5893),e=a(4939),o=function(){return o=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},o.apply(this,arguments)},i=function(a){return(0,r.jsx)(e.default,o({dataName:"Help",path:(0,r.jsxs)(r.Fragment,{children:[(0,r.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,r.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)},a),void 0)};t.default=i}(),t}())},6010:function(r,e,a){"use strict";function o(r){var e,a,t="";if("string"==typeof r||"number"==typeof r)t+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(a=o(r[e]))&&(t&&(t+=" "),t+=a);else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function t(){for(var r,e,a=0,t="";a<arguments.length;)(r=arguments[a++])&&(e=o(r))&&(t&&(t+=" "),t+=e);return t}a.d(e,{Z:function(){return t}})},7381:function(r,e,a){(e=a(3645)(!1)).push([r.id,".paraui-help{display:inline-block;font-size:16px;color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}\n",""]),r.exports=e},9916:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},4928:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},8979:function(r,e,a){(e=a(3645)(!1)).push([r.id,'.paraui-radio{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-radio:hover>.paraui-radio-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-radio:hover>.paraui-radio-label svg{color:rgba(54,102,214,0.8)}.paraui-radio:hover>.paraui-help>.paraui-radio-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-radio:hover>.paraui-help>.paraui-radio-label svg{color:rgba(54,102,214,0.8)}.paraui-radio:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:rgba(54,102,214,0.8)}.paraui-radio>.paraui-radio-box{position:relative}.paraui-radio>.paraui-radio-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner{position:relative;top:0;left:0;display:block;background-color:white;border:1px solid rgba(171,176,185,0.4);border-radius:50%}.paraui-radio>.paraui-radio-box>.paraui-radio-box-inner:after{position:absolute;display:table;content:" ";transform:scale(1) translate(-50%, -50%);background-color:white;border-radius:50%;left:50%;top:50%}.paraui-radio>.paraui-radio-label{color:#2e3743;padding:0 8px;margin:0;display:inline-flex;align-items:flex-start}.paraui-radio>.paraui-radio-label>.paraui-help>svg{top:0}.paraui-radio .paraui-label{line-height:16px}.paraui-radio>.paraui-help{padding:0 8px}.paraui-radio>.paraui-help>.paraui-radio-label{color:#2e3743;margin:0;display:inline-flex;align-items:center}.paraui-radio.radio-checked>.paraui-radio-box>.paraui-radio-box-inner{border-color:transparent;background-color:#3666d6}.paraui-radio.radio-checked:hover>.paraui-radio-box>.paraui-radio-box-inner{border-color:transparent;background-color:rgba(54,102,214,0.8)}.paraui-radio.radio-disabled{cursor:not-allowed}.paraui-radio.radio-disabled:hover>.paraui-radio-box>.paraui-radio-box-inner{background-color:#f5f6f7;border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled>.paraui-radio-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-label svg{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>input{cursor:not-allowed}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner{background-color:#f5f6f7;border-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:#f5f6f7}.paraui-radio.radio-disabled.radio-checked>.paraui-radio-box>.paraui-radio-box-inner:after{background-color:rgba(171,176,185,0.4)}.paraui-radio.radio-disabled>.paraui-help{color:rgba(46,55,67,0.4)}.paraui-radio.radio-disabled>.paraui-help>.paraui-radio-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-radio.radio-small>.paraui-radio-box{top:1px}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner{width:14px;height:14px}.paraui-radio.radio-small>.paraui-radio-box>.paraui-radio-box-inner:after{width:4px;height:4px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-medium>.paraui-radio-box>.paraui-radio-box-inner:after{width:6px;height:6px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner{width:16px;height:16px}.paraui-radio.radio-large>.paraui-radio-box>.paraui-radio-box-inner:after{width:6px;height:6px}\n',""]),r.exports=e},2816:function(r,e,a){(e=a(3645)(!1)).push([r.id,".paraui-radio-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-radio-group>.radio-group-content{line-height:0}.paraui-radio-group.radio-group-column>.radio-group-content{display:flex;flex-direction:column}.paraui-radio-group.radio-group-column>.radio-group-content>.paraui-radio{margin-bottom:8px}.paraui-radio-group.radio-group-column>.radio-group-content>.paraui-radio:last-child{margin-bottom:0}\n",""]),r.exports=e},9929:function(r,e,a){(e=a(3645)(!1)).push([r.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",""]),r.exports=e},3645:function(r){"use strict";r.exports=function(r){var e=[];return e.toString=function(){return this.map((function(e){var a=function(r,e){var a=r[1]||"",o=r[3];if(!o)return a;if(e&&"function"==typeof btoa){var t=(n=o,l=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(u," */")),i=o.sources.map((function(r){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(r," */")}));return[a].concat(i).concat([t]).join("\n")}var n,l,u;return[a].join("\n")}(e,r);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(r,a,o){"string"==typeof r&&(r=[[null,r,""]]);var t={};if(o)for(var i=0;i<this.length;i++){var n=this[i][0];null!=n&&(t[n]=!0)}for(var l=0;l<r.length;l++){var u=[].concat(r[l]);o&&t[u[0]]||(a&&(u[2]?u[2]="".concat(a," and ").concat(u[2]):u[2]=a),e.push(u))}},e}},7418:function(r){"use strict";
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function t(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(r){o[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(r){return!1}}()?Object.assign:function(r,i){for(var n,l,u=t(r),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))a.call(n,s)&&(u[s]=n[s]);if(e){l=e(n);for(var p=0;p<l.length;p++)o.call(n,l[p])&&(u[l[p]]=n[l[p]])}}return u}},5251:function(r,e,a){"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
|
+
*/a(7418);var o=a(8156),t=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;t=i("react.element"),e.Fragment=i("react.fragment")}var n=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(r,e,a){var o,i={},c=null,s=null;for(o in void 0!==a&&(c=""+a),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,o)&&!u.hasOwnProperty(o)&&(i[o]=e[o]);if(r&&r.defaultProps)for(o in e=r.defaultProps)void 0===i[o]&&(i[o]=e[o]);return{$$typeof:t,type:r,key:c,ref:s,props:i,_owner:n.current}}e.jsx=c,e.jsxs=c},5893:function(r,e,a){"use strict";r.exports=a(5251)},2113:function(r,e,a){var o=a(3379),t=a(7381);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]);var i={insert:("body","body"),singleton:!1};o(t,i);r.exports=t.locals||{}},3936:function(r,e,a){var o=a(3379),t=a(9916);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]);var i={insert:("body","body"),singleton:!1};o(t,i);r.exports=t.locals||{}},9663:function(r,e,a){var o=a(3379),t=a(4928);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]);var i={insert:("body","body"),singleton:!1};o(t,i);r.exports=t.locals||{}},7510:function(r,e,a){var o=a(3379),t=a(8979);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]);var i={insert:("body","body"),singleton:!1};o(t,i);r.exports=t.locals||{}},5271:function(r,e,a){var o=a(3379),t=a(2816);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]);var i={insert:("body","body"),singleton:!1};o(t,i);r.exports=t.locals||{}},2310:function(r,e,a){var o=a(3379),t=a(9929);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[r.id,t,""]]);var i={insert:("body","body"),singleton:!1};o(t,i);r.exports=t.locals||{}},3379:function(r,e,a){"use strict";var o,t=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var r={};return function(e){if(void 0===r[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(r){a=null}r[e]=a}return r[e]}}(),n=[];function l(r){for(var e=-1,a=0;a<n.length;a++)if(n[a].identifier===r){e=a;break}return e}function u(r,e){for(var a={},o=[],t=0;t<r.length;t++){var i=r[t],u=e.base?i[0]+e.base:i[0],c=a[u]||0,s="".concat(u," ").concat(c);a[u]=c+1;var p=l(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(n[p].references++,n[p].updater(d)):n.push({identifier:s,updater:h(d,e),references:1}),o.push(s)}return o}function c(r){var e=document.createElement("style"),o=r.attributes||{};if(void 0===o.nonce){var t=a.nc;t&&(o.nonce=t)}if(Object.keys(o).forEach((function(r){e.setAttribute(r,o[r])})),"function"==typeof r.insert)r.insert(e);else{var n=i(r.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}return e}var s,p=(s=[],function(r,e){return s[r]=e,s.filter(Boolean).join("\n")});function d(r,e,a,o){var t=a?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(r.styleSheet)r.styleSheet.cssText=p(e,t);else{var i=document.createTextNode(t),n=r.childNodes;n[e]&&r.removeChild(n[e]),n.length?r.insertBefore(i,n[e]):r.appendChild(i)}}function f(r,e,a){var o=a.css,t=a.media,i=a.sourceMap;if(t?r.setAttribute("media",t):r.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleSheet)r.styleSheet.cssText=o;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(o))}}var b=null,v=0;function h(r,e){var a,o,t;if(e.singleton){var i=v++;a=b||(b=c(e)),o=d.bind(null,a,i,!1),t=d.bind(null,a,i,!0)}else a=c(e),o=f.bind(null,a,e),t=function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(a)};return o(r),function(e){if(e){if(e.css===r.css&&e.media===r.media&&e.sourceMap===r.sourceMap)return;o(r=e)}else t()}}r.exports=function(r,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=t());var a=u(r=r||[],e);return function(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var o=0;o<a.length;o++){var t=l(a[o]);n[t].references--}for(var i=u(r,e),c=0;c<a.length;c++){var s=l(a[c]);0===n[s].references&&(n[s].updater(),n.splice(s,1))}a=i}}}},3566:function(r,e,a){"use strict";var o=a(5893),t=a(7371),i=a(5670),n=a.n(i),l=a(6010),u=(a(2113),function(){return u=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},u.apply(this,arguments)}),c=function(r,e){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(a[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(r);t<o.length;t++)e.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(r,o[t])&&(a[o[t]]=r[o[t]])}return a};e.default=function(r){var e=r.title,a=void 0===e?"":e,i=r.children,s=r.arrow,p=void 0===s||s,d=r.interactive,f=void 0===d||d,b=r.className,v=(r.placement,c(r,["title","children","arrow","interactive","className","placement"]));return(0,o.jsx)(t.default,u({title:a,arrow:p,interactive:f},v,{children:(0,o.jsx)("span",u({className:(0,l.Z)("paraui-help",b)},{children:i||(0,o.jsx)(n(),{})}))}))}},4254:function(r,e,a){"use strict";var o=a(5893),t=(a(3936),function(){return t=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},t.apply(this,arguments)});e.default=function(r){var e,a=r.className,i=r.style,n=r.error,l=void 0!==n&&n,u=r.helperText;return(0,o.jsx)("p",t({className:(e="paraui-helper-text",a&&(e+=" "+a),l&&(e+=" paraui-helper-text-error"),e),style:i},{children:u}))}},8767:function(r,e,a){"use strict";var o=a(5893),t=a(3566),i=(a(9663),function(){return i=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},i.apply(this,arguments)});e.default=function(r){var e=r.className,a=r.style,n=r.label,l=r.labelSign,u=r.required,c=void 0!==u&&u,s=r.tooltip,p=r.tooltipType,d=void 0===p?"icon":p,f=r.placement,b=r.arrow,v=r.tooltipIcon,h=function(){var r="paraui-label";return d&&(r+=" paraui-label-"+d),s&&(r+=" paraui-label-tooltip"),e&&(r+=" "+e),r};return(0,o.jsxs)(o.Fragment,{children:["icon"===d&&(0,o.jsxs)("label",i({className:h(),style:a},{children:[(0,o.jsx)(o.Fragment,{children:n}),c&&(0,o.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),l&&(0,o.jsx)("span",{children:l}),s&&(0,o.jsx)(t.default,i({title:s,placement:f,arrow:b},{children:v}))]})),"line"===d&&(0,o.jsx)(t.default,i({title:s||"",placement:f,arrow:b},{children:(0,o.jsxs)("label",i({className:h(),style:a},{children:[(0,o.jsx)(o.Fragment,{children:n}),c&&(0,o.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),l&&(0,o.jsx)("span",{children:l})]}))}))]})}},3877:function(r,e,a){"use strict";var o=a(5893),t=a(8156),i=a(8767),n=(a(7510),function(){return n=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},n.apply(this,arguments)});e.default=function(r){var e=r.className,a=void 0===e?"":e,l=r.labelTooltip,u=r.label,c=void 0===u?"":u,s=r.size,p=void 0===s?"large":s,d=r.disabled,f=void 0!==d&&d,b=r.onChange,v=r.style,h=(0,t.useState)(!1),g=h[0],m=h[1];(0,t.useEffect)((function(){void 0!==r.defaultChecked&&m(r.defaultChecked)}),[]),(0,t.useEffect)((function(){void 0!==r.checked&&m(r.checked)}),[r.checked]);var y;return(0,o.jsxs)("label",n({className:(y="paraui-radio",a&&(y+=" "+a),p&&(y+=" radio-"+p),f&&(y+=" radio-disabled"),g&&(y+=" radio-checked"),y),onClick:function(e){e.preventDefault(),f||(void 0===r.checked&&m(!g),e.target.checked=!g,b&&b(e,!g))},style:v},{children:[(0,o.jsxs)("span",n({className:"paraui-radio-box"},{children:[(0,o.jsx)("input",n({type:"radio",value:g},r.inputProps)),(0,o.jsx)("span",{className:"paraui-radio-box-inner"})]})),c&&(0,o.jsx)(i.default,n({label:c},l,{className:function(){var r="paraui-radio-label";return l&&l.className&&(r+=" "+l.className),r}()}))]}))}},7371:function(r,e,a){"use strict";var o=a(5893),t=a(670),i=a(6010),n=(a(2310),function(){return n=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},n.apply(this,arguments)}),l=function(r,e){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(a[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(r);t<o.length;t++)e.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(r,o[t])&&(a[o[t]]=r[o[t]])}return a};e.default=function(r){var e,a=r.placement,u=void 0===a?"top-start":a,c=r.className,s=r.arrow,p=void 0===s||s,d=r.PopperProps,f=r.boundariesElement,b=void 0===f?"scrollParent":f,v=l(r,["placement","className","arrow","PopperProps","boundariesElement"]),h=n(n({},r.classes),{popper:(0,i.Z)("paraui-tooltip",c,null===(e=r.classes)||void 0===e?void 0:e.popper,{"paraui-tooltip-left-right":(null==u?void 0:u.includes("left"))||(null==u?void 0:u.includes("right")),"paraui-tooltip-top-bottom":(null==u?void 0:u.includes("top"))||(null==u?void 0:u.includes("bottom"))})});return(0,o.jsx)(t.Tooltip,n({},v,{enterTouchDelay:0,arrow:p,placement:u,classes:h,PopperProps:n(n({},d),{modifiers:{preventOverflow:{boundariesElement:b}}})}))}},670:function(r){"use strict";r.exports=e},8156:function(e){"use strict";e.exports=r}},o={};function t(r){var e=o[r];if(void 0!==e)return e.exports;var i=o[r]={id:r,exports:{}};return a[r](i,i.exports,t),i.exports}t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,{a:e}),e},t.d=function(r,e){for(var a in e)t.o(e,a)&&!t.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:e[a]})},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};return function(){"use strict";t.r(i),t.d(i,{RadioGroup:function(){return u}});var r=t(8156),e=t(5893),a=t(3877),o=t(8767),n=t(4254),l=(t(5271),function(){return l=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},l.apply(this,arguments)}),u=function(t){var i=t.className,u=void 0===i?"":i,c=t.style,s=t.label,p=void 0===s?"":s,d=t.labelTooltip,f=t.size,b=void 0===f?"large":f,v=t.row,h=void 0===v||v,g=t.disabled,m=void 0!==g&&g,y=t.required,x=void 0!==y&&y,j=t.error,O=void 0!==j&&j,w=t.helperText,S=void 0===w?"":w,N=t.id,_=void 0===N?"name":N,P=t.value,C=t.list,k=t.onChange,M=(0,r.useState)(),E=M[0],T=M[1];(0,r.useEffect)((function(){void 0!==t.defaultValue&&T(t.defaultValue)}),[]),(0,r.useEffect)((function(){void 0!==P&&T(P)}),[P]);var H,R=function(r){return function(){var e=r[_];P!==e&&(void 0===t.value&&T(e),k&&k(e,r))}};return(0,e.jsxs)("div",l({className:(H="paraui-radio-group",u&&(H+=" "+u),b&&(H+=" radio-group-"+b),O&&(H+=" radio-group-error"),m&&(H+=" radio-group-disabled"),H+=h?" radio-group-row":" radio-group-column"),style:c},{children:[function(){if(p||x){return(0,e.jsx)(o.default,l({label:p,required:x},d,{className:(r="radio-group-label",d&&d.className&&(r+=" "+d.className),r)}))}var r;return null}(),(0,e.jsx)("div",l({className:"radio-group-content"},{children:C.map((function(e,o){return(0,r.createElement)(a.default,l({},e,{checked:E===e[_],size:b,disabled:Boolean(m||e.disabled),key:o,onChange:R(e)}))}))})),(0,e.jsx)(n.default,{className:"radio-group-error-text",error:O,helperText:S})]}))};i.default=u}(),i}()}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/11 16:10
|
|
4
|
+
* @description 搜索框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface SearchProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
/** style */
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
/** 尺寸 小/中/大 */
|
|
13
|
+
size?: 'small' | 'medium' | 'large';
|
|
14
|
+
/** 输入框placeholder */
|
|
15
|
+
placeholder?: ReactNode;
|
|
16
|
+
/** 默认值 不受控 */
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
/** 输入框值 */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** 是否显示按钮 */
|
|
21
|
+
showBtn?: boolean;
|
|
22
|
+
/** 按钮位置 分离/内置 */
|
|
23
|
+
btnType?: 'outside' | 'inside';
|
|
24
|
+
/** 按钮文本 */
|
|
25
|
+
btnText?: ReactNode;
|
|
26
|
+
/** 按钮图标 */
|
|
27
|
+
btnIcon?: ReactNode;
|
|
28
|
+
/** 输入框右侧图标 */
|
|
29
|
+
rightIcon?: ReactNode;
|
|
30
|
+
/** 一直存在右侧图标 */
|
|
31
|
+
rightIconExist?: boolean;
|
|
32
|
+
/** 是否显示输入框右侧图标 */
|
|
33
|
+
showRightIcon?: boolean;
|
|
34
|
+
/** 是否显示清空按钮 */
|
|
35
|
+
allowClear?: boolean;
|
|
36
|
+
/** 改变值 */
|
|
37
|
+
onChange?: (val: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
38
|
+
/** 失去焦点 */
|
|
39
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
40
|
+
/** 得到焦点 */
|
|
41
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
42
|
+
/** 键盘按下 */
|
|
43
|
+
onKeydown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
44
|
+
/** 键盘抬起 */
|
|
45
|
+
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
46
|
+
/** 点击按钮 */
|
|
47
|
+
onClickBtn?: (val: string) => void;
|
|
48
|
+
/** 点击输入框右侧按钮 */
|
|
49
|
+
onClickRightIcon?: (val: string) => void;
|
|
50
|
+
/** 点击清空内容回调 */
|
|
51
|
+
onClear?: () => void;
|
|
52
|
+
/** 回车事件 */
|
|
53
|
+
onEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
54
|
+
}
|
|
55
|
+
export declare const Search: FunctionComponent<SearchProps>;
|
|
56
|
+
export default Search;
|