linkmore-design 1.0.90 → 1.0.91
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/dist/Affix/style/variables.d.ts +1 -0
- package/dist/Alert/style/variables.d.ts +1 -0
- package/dist/Approval/style/variables.d.ts +1 -0
- package/dist/AutoComplete/style/variables.d.ts +1 -0
- package/dist/Avatar/style/variables.d.ts +1 -0
- package/dist/Badge/style/variables.d.ts +1 -0
- package/dist/Box/style/variables.d.ts +1 -0
- package/dist/Breadcrumb/style/variables.d.ts +1 -0
- package/dist/ButtonTags/style/variables.d.ts +1 -0
- package/dist/Calendar/style/variables.d.ts +1 -0
- package/dist/Card/style/variables.d.ts +1 -0
- package/dist/CardTable/style/variables.d.ts +1 -0
- package/dist/Carousel/style/variables.d.ts +1 -0
- package/dist/Cascader/style/variables.d.ts +1 -0
- package/dist/Checkbox/style/variables.d.ts +1 -0
- package/dist/Col/style/variables.d.ts +1 -0
- package/dist/Collapse/style/variables.d.ts +1 -0
- package/dist/Comment/style/variables.d.ts +1 -0
- package/dist/ConfigProvider/style/variables.d.ts +1 -0
- package/dist/CustomTableOption/style/variables.d.ts +1 -0
- package/dist/CustomerService/style/variables.d.ts +1 -0
- package/dist/DatePicker/style/variables.d.ts +1 -0
- package/dist/Descriptions/style/variables.d.ts +1 -0
- package/dist/Divider/style/variables.d.ts +1 -0
- package/dist/Drawer/style/variables.d.ts +1 -0
- package/dist/Dropdown/style/variables.d.ts +1 -0
- package/dist/EditTable/style/variables.d.ts +1 -0
- package/dist/Empty/style/variables.d.ts +1 -0
- package/dist/EnlargeImg/style/variables.d.ts +1 -0
- package/dist/Filter/style/variables.d.ts +1 -0
- package/dist/Form/style/variables.d.ts +1 -0
- package/dist/FullScreen/style/variables.d.ts +1 -0
- package/dist/Grid/style/variables.d.ts +1 -0
- package/dist/Icon/style/variables.d.ts +1 -0
- package/dist/IconFont/style/variables.d.ts +1 -0
- package/dist/IconSelect/style/variables.d.ts +1 -0
- package/dist/Image/style/variables.d.ts +1 -0
- package/dist/ImageViewer/style/variables.d.ts +1 -0
- package/dist/Input/style/variables.d.ts +1 -0
- package/dist/InputNumber/style/variables.d.ts +1 -0
- package/dist/Layout/style/variables.d.ts +1 -0
- package/dist/LeftTable/style/variables.d.ts +1 -0
- package/dist/List/style/variables.d.ts +1 -0
- package/dist/LmEditTable/style/variables.d.ts +1 -0
- package/dist/LmFilter/style/variables.d.ts +1 -0
- package/dist/LmSelect/style/variables.d.ts +1 -0
- package/dist/LmTable/style/variables.d.ts +1 -0
- package/dist/LmUpload/style/variables.d.ts +1 -0
- package/dist/LoadingPage/style/variables.d.ts +1 -0
- package/dist/Mentions/style/variables.d.ts +1 -0
- package/dist/Menu/style/variables.d.ts +1 -0
- package/dist/Modal/style/variables.d.ts +1 -0
- package/dist/PageHeader/style/variables.d.ts +1 -0
- package/dist/Pagination/style/variables.d.ts +1 -0
- package/dist/Popconfirm/style/variables.d.ts +1 -0
- package/dist/Popover/style/variables.d.ts +1 -0
- package/dist/Progress/style/variables.d.ts +1 -0
- package/dist/QuickMenu/style/variables.d.ts +1 -0
- package/dist/Radio/style/variables.d.ts +1 -0
- package/dist/Rate/style/variables.d.ts +1 -0
- package/dist/Result/style/variables.d.ts +1 -0
- package/dist/Row/style/variables.d.ts +1 -0
- package/dist/Segmented/style/variables.d.ts +1 -0
- package/dist/Select/style/variables.d.ts +1 -0
- package/dist/Skeleton/style/variables.d.ts +1 -0
- package/dist/Slider/style/variables.d.ts +1 -0
- package/dist/Space/style/variables.d.ts +1 -0
- package/dist/Spin/style/variables.d.ts +1 -0
- package/dist/Statistic/style/variables.d.ts +1 -0
- package/dist/Steps/style/variables.d.ts +1 -0
- package/dist/Switch/style/variables.d.ts +1 -0
- package/dist/Table/style/variables.d.ts +1 -0
- package/dist/Tabs/style/variables.d.ts +1 -0
- package/dist/Tag/style/variables.d.ts +1 -0
- package/dist/TestTable/style/variables.d.ts +1 -0
- package/dist/TimePicker/style/variables.d.ts +1 -0
- package/dist/Timeline/style/variables.d.ts +1 -0
- package/dist/Tooltip/style/variables.d.ts +1 -0
- package/dist/Transfer/style/variables.d.ts +1 -0
- package/dist/Tree/style/variables.d.ts +1 -0
- package/dist/TreeSelect/style/variables.d.ts +1 -0
- package/dist/Typography/style/variables.d.ts +1 -0
- package/dist/Upload/style/variables.d.ts +1 -0
- package/dist/UploadOss/style/variables.d.ts +1 -0
- package/dist/VirtualList/style/variables.d.ts +1 -0
- package/dist/base.css +511 -0
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/locale-provider/style/variables.d.ts +1 -0
- package/dist/message/style/variables.d.ts +1 -0
- package/dist/notification/style/variables.d.ts +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/es/Affix/style/variables.css +0 -0
- package/es/Affix/style/variables.d.ts +1 -0
- package/es/Affix/style/variables.js +1 -0
- package/es/Alert/style/variables.css +26 -0
- package/es/Alert/style/variables.d.ts +1 -0
- package/es/Alert/style/variables.js +1 -0
- package/es/Approval/style/variables.css +199 -0
- package/es/Approval/style/variables.d.ts +1 -0
- package/es/Approval/style/variables.js +1 -0
- package/es/AutoComplete/style/variables.css +0 -0
- package/es/AutoComplete/style/variables.d.ts +1 -0
- package/es/AutoComplete/style/variables.js +1 -0
- package/es/Avatar/style/variables.css +0 -0
- package/es/Avatar/style/variables.d.ts +1 -0
- package/es/Avatar/style/variables.js +1 -0
- package/es/Badge/style/variables.css +0 -0
- package/es/Badge/style/variables.d.ts +1 -0
- package/es/Badge/style/variables.js +1 -0
- package/es/Box/style/variables.css +10 -0
- package/es/Breadcrumb/style/variables.css +0 -0
- package/es/Breadcrumb/style/variables.d.ts +1 -0
- package/es/Breadcrumb/style/variables.js +1 -0
- package/es/Button/style/variables.css +118 -0
- package/es/ButtonTags/style/variables.css +72 -0
- package/es/Calendar/style/variables.css +0 -0
- package/es/Calendar/style/variables.d.ts +1 -0
- package/es/Calendar/style/variables.js +1 -0
- package/es/Card/style/variables.css +0 -0
- package/es/Card/style/variables.d.ts +1 -0
- package/es/Card/style/variables.js +1 -0
- package/es/CardTable/style/variables.css +453 -0
- package/es/Carousel/style/variables.css +0 -0
- package/es/Carousel/style/variables.d.ts +1 -0
- package/es/Carousel/style/variables.js +1 -0
- package/es/Cascader/style/variables.css +15 -0
- package/es/Cascader/style/variables.d.ts +1 -0
- package/es/Cascader/style/variables.js +1 -0
- package/es/Checkbox/style/variables.css +128 -0
- package/es/Col/style/variables.css +0 -0
- package/es/Col/style/variables.d.ts +1 -0
- package/es/Col/style/variables.js +1 -0
- package/es/Collapse/style/variables.css +0 -0
- package/es/Collapse/style/variables.d.ts +1 -0
- package/es/Collapse/style/variables.js +1 -0
- package/es/Comment/style/variables.css +0 -0
- package/es/Comment/style/variables.d.ts +1 -0
- package/es/Comment/style/variables.js +1 -0
- package/es/ConfigProvider/style/variables.css +141 -0
- package/es/CustomTableOption/style/variables.css +99 -0
- package/es/CustomTableOption/style/variables.d.ts +1 -0
- package/es/CustomTableOption/style/variables.js +1 -0
- package/es/CustomerService/style/variables.css +253 -0
- package/es/DatePicker/style/variables.css +0 -0
- package/es/DatePicker/style/variables.d.ts +1 -0
- package/es/DatePicker/style/variables.js +1 -0
- package/es/Descriptions/style/index.css +139 -139
- package/es/Descriptions/style/variables.css +172 -0
- package/es/Descriptions/style/variables.d.ts +1 -0
- package/es/Descriptions/style/variables.js +1 -0
- package/es/Divider/style/variables.css +0 -0
- package/es/Divider/style/variables.d.ts +1 -0
- package/es/Divider/style/variables.js +1 -0
- package/es/Drawer/style/variables.css +8 -0
- package/es/Drawer/style/variables.d.ts +1 -0
- package/es/Drawer/style/variables.js +1 -0
- package/es/Dropdown/style/variables.css +86 -0
- package/es/Dropdown/style/variables.d.ts +1 -0
- package/es/Dropdown/style/variables.js +1 -0
- package/es/EditTable/style/variables.css +178 -0
- package/es/Empty/style/variables.css +44 -0
- package/es/Empty/style/variables.d.ts +1 -0
- package/es/Empty/style/variables.js +1 -0
- package/es/EnlargeImg/style/variables.css +4 -0
- package/es/Filter/style/variables.css +271 -0
- package/es/Form/style/variables.css +181 -0
- package/es/Form/style/variables.d.ts +1 -0
- package/es/Form/style/variables.js +1 -0
- package/es/FullScreen/style/variables.css +10 -0
- package/es/FullScreen/style/variables.d.ts +1 -0
- package/es/FullScreen/style/variables.js +1 -0
- package/es/Grid/style/variables.css +0 -0
- package/es/Grid/style/variables.d.ts +1 -0
- package/es/Grid/style/variables.js +1 -0
- package/es/Icon/style/variables.css +0 -0
- package/es/IconFont/style/variables.css +0 -0
- package/es/IconSelect/style/variables.css +25 -0
- package/es/Image/style/variables.css +0 -0
- package/es/Image/style/variables.d.ts +1 -0
- package/es/Image/style/variables.js +1 -0
- package/es/ImageViewer/style/variables.css +118 -0
- package/es/Input/style/variables.css +773 -0
- package/es/Input/style/variables.d.ts +1 -0
- package/es/Input/style/variables.js +1 -0
- package/es/InputNumber/style/variables.css +35 -0
- package/es/InputNumber/style/variables.d.ts +1 -0
- package/es/InputNumber/style/variables.js +1 -0
- package/es/Layout/style/variables.css +0 -0
- package/es/Layout/style/variables.d.ts +1 -0
- package/es/Layout/style/variables.js +1 -0
- package/es/LeftTable/style/variables.css +161 -0
- package/es/List/style/variables.css +0 -0
- package/es/List/style/variables.d.ts +1 -0
- package/es/List/style/variables.js +1 -0
- package/es/LmEditTable/style/variables.css +89 -0
- package/es/LmEditTable/style/variables.d.ts +1 -0
- package/es/LmEditTable/style/variables.js +1 -0
- package/es/LmFilter/style/variables.css +425 -0
- package/es/LmSelect/style/variables.css +247 -0
- package/es/LmSelect/style/variables.d.ts +1 -0
- package/es/LmSelect/style/variables.js +1 -0
- package/es/LmTable/style/variables.css +1046 -0
- package/es/LmUpload/style/variables.css +218 -0
- package/es/LoadingPage/style/variables.css +0 -0
- package/es/Mentions/style/variables.css +0 -0
- package/es/Mentions/style/variables.d.ts +1 -0
- package/es/Mentions/style/variables.js +1 -0
- package/es/Menu/style/variables.css +0 -0
- package/es/Menu/style/variables.d.ts +1 -0
- package/es/Menu/style/variables.js +1 -0
- package/es/Modal/style/variables.css +35 -0
- package/es/Modal/style/variables.d.ts +1 -0
- package/es/Modal/style/variables.js +1 -0
- package/es/PageHeader/style/variables.css +0 -0
- package/es/PageHeader/style/variables.d.ts +1 -0
- package/es/PageHeader/style/variables.js +1 -0
- package/es/Pagination/style/variables.css +49 -0
- package/es/Pagination/style/variables.d.ts +1 -0
- package/es/Pagination/style/variables.js +1 -0
- package/es/Popconfirm/style/variables.css +0 -0
- package/es/Popconfirm/style/variables.d.ts +1 -0
- package/es/Popconfirm/style/variables.js +1 -0
- package/es/Popover/style/variables.css +0 -0
- package/es/Popover/style/variables.d.ts +1 -0
- package/es/Popover/style/variables.js +1 -0
- package/es/Progress/style/variables.css +0 -0
- package/es/Progress/style/variables.d.ts +1 -0
- package/es/Progress/style/variables.js +1 -0
- package/es/QuickMenu/style/variables.css +56 -0
- package/es/QuickMenu/style/variables.d.ts +1 -0
- package/es/QuickMenu/style/variables.js +1 -0
- package/es/Radio/style/variables.css +141 -0
- package/es/Rate/style/variables.css +0 -0
- package/es/Rate/style/variables.d.ts +1 -0
- package/es/Rate/style/variables.js +1 -0
- package/es/Result/style/variables.css +0 -0
- package/es/Result/style/variables.d.ts +1 -0
- package/es/Result/style/variables.js +1 -0
- package/es/Row/style/variables.css +0 -0
- package/es/Row/style/variables.d.ts +1 -0
- package/es/Row/style/variables.js +1 -0
- package/es/Segmented/style/variables.css +0 -0
- package/es/Segmented/style/variables.d.ts +1 -0
- package/es/Segmented/style/variables.js +1 -0
- package/es/Select/style/variables.css +15 -0
- package/es/Select/style/variables.d.ts +1 -0
- package/es/Select/style/variables.js +1 -0
- package/es/Skeleton/style/variables.css +0 -0
- package/es/Skeleton/style/variables.d.ts +1 -0
- package/es/Skeleton/style/variables.js +1 -0
- package/es/Slider/style/variables.css +0 -0
- package/es/Slider/style/variables.d.ts +1 -0
- package/es/Slider/style/variables.js +1 -0
- package/es/Space/style/variables.css +0 -0
- package/es/Space/style/variables.d.ts +1 -0
- package/es/Space/style/variables.js +1 -0
- package/es/Spin/style/variables.css +0 -0
- package/es/Spin/style/variables.d.ts +1 -0
- package/es/Spin/style/variables.js +1 -0
- package/es/Statistic/style/variables.css +0 -0
- package/es/Statistic/style/variables.d.ts +1 -0
- package/es/Statistic/style/variables.js +1 -0
- package/es/Steps/style/variables.css +0 -0
- package/es/Steps/style/variables.d.ts +1 -0
- package/es/Steps/style/variables.js +1 -0
- package/es/Switch/style/variables.css +41 -0
- package/es/Switch/style/variables.d.ts +1 -0
- package/es/Switch/style/variables.js +1 -0
- package/es/Table/style/variables.css +0 -0
- package/es/Table/style/variables.d.ts +1 -0
- package/es/Table/style/variables.js +1 -0
- package/es/Tabs/style/index.css +1 -1
- package/es/Tabs/style/variables.css +46 -0
- package/es/Tabs/style/variables.d.ts +1 -0
- package/es/Tabs/style/variables.js +1 -0
- package/es/Tag/style/variables.css +64 -0
- package/es/Tag/style/variables.d.ts +1 -0
- package/es/Tag/style/variables.js +1 -0
- package/es/TestTable/style/variables.css +10 -0
- package/es/TimePicker/style/variables.css +0 -0
- package/es/TimePicker/style/variables.d.ts +1 -0
- package/es/TimePicker/style/variables.js +1 -0
- package/es/Timeline/style/variables.css +3 -0
- package/es/Timeline/style/variables.d.ts +1 -0
- package/es/Timeline/style/variables.js +1 -0
- package/es/Tooltip/style/variables.css +0 -0
- package/es/Tooltip/style/variables.d.ts +1 -0
- package/es/Tooltip/style/variables.js +1 -0
- package/es/Transfer/style/variables.css +0 -0
- package/es/Transfer/style/variables.d.ts +1 -0
- package/es/Transfer/style/variables.js +1 -0
- package/es/Tree/style/variables.css +12 -0
- package/es/Tree/style/variables.d.ts +1 -0
- package/es/Tree/style/variables.js +1 -0
- package/es/TreeSelect/style/variables.css +0 -0
- package/es/TreeSelect/style/variables.d.ts +1 -0
- package/es/TreeSelect/style/variables.js +1 -0
- package/es/Typography/style/variables.css +0 -0
- package/es/Typography/style/variables.d.ts +1 -0
- package/es/Typography/style/variables.js +1 -0
- package/es/Upload/style/variables.css +35 -0
- package/es/Upload/style/variables.d.ts +1 -0
- package/es/Upload/style/variables.js +1 -0
- package/es/UploadOss/style/variables.css +121 -0
- package/es/VirtualList/style/variables.css +0 -0
- package/es/locale-provider/style/variables.css +0 -0
- package/es/locale-provider/style/variables.d.ts +1 -0
- package/es/locale-provider/style/variables.js +1 -0
- package/es/message/style/variables.css +31 -0
- package/es/message/style/variables.d.ts +1 -0
- package/es/message/style/variables.js +1 -0
- package/es/notification/style/variables.css +41 -0
- package/es/notification/style/variables.d.ts +1 -0
- package/es/notification/style/variables.js +1 -0
- package/es/styles/index.d.ts +1 -0
- package/es/styles/index.js +1 -0
- package/es/styles/variables.css +6698 -0
- package/lib/Affix/style/variables.css +0 -0
- package/lib/Affix/style/variables.d.ts +1 -0
- package/lib/Affix/style/variables.js +3 -0
- package/lib/Alert/style/variables.css +26 -0
- package/lib/Alert/style/variables.d.ts +1 -0
- package/lib/Alert/style/variables.js +3 -0
- package/lib/Approval/style/variables.css +199 -0
- package/lib/Approval/style/variables.d.ts +1 -0
- package/lib/Approval/style/variables.js +3 -0
- package/lib/AutoComplete/style/variables.css +0 -0
- package/lib/AutoComplete/style/variables.d.ts +1 -0
- package/lib/AutoComplete/style/variables.js +3 -0
- package/lib/Avatar/style/variables.css +0 -0
- package/lib/Avatar/style/variables.d.ts +1 -0
- package/lib/Avatar/style/variables.js +3 -0
- package/lib/Badge/style/variables.css +0 -0
- package/lib/Badge/style/variables.d.ts +1 -0
- package/lib/Badge/style/variables.js +3 -0
- package/lib/Box/style/variables.css +10 -0
- package/lib/Breadcrumb/style/variables.css +0 -0
- package/lib/Breadcrumb/style/variables.d.ts +1 -0
- package/lib/Breadcrumb/style/variables.js +3 -0
- package/lib/Button/style/variables.css +118 -0
- package/lib/ButtonTags/style/variables.css +72 -0
- package/lib/Calendar/style/variables.css +0 -0
- package/lib/Calendar/style/variables.d.ts +1 -0
- package/lib/Calendar/style/variables.js +3 -0
- package/lib/Card/style/variables.css +0 -0
- package/lib/Card/style/variables.d.ts +1 -0
- package/lib/Card/style/variables.js +3 -0
- package/lib/CardTable/style/variables.css +453 -0
- package/lib/Carousel/style/variables.css +0 -0
- package/lib/Carousel/style/variables.d.ts +1 -0
- package/lib/Carousel/style/variables.js +3 -0
- package/lib/Cascader/style/variables.css +15 -0
- package/lib/Cascader/style/variables.d.ts +1 -0
- package/lib/Cascader/style/variables.js +3 -0
- package/lib/Checkbox/style/variables.css +128 -0
- package/lib/Col/style/variables.css +0 -0
- package/lib/Col/style/variables.d.ts +1 -0
- package/lib/Col/style/variables.js +3 -0
- package/lib/Collapse/style/variables.css +0 -0
- package/lib/Collapse/style/variables.d.ts +1 -0
- package/lib/Collapse/style/variables.js +3 -0
- package/lib/Comment/style/variables.css +0 -0
- package/lib/Comment/style/variables.d.ts +1 -0
- package/lib/Comment/style/variables.js +3 -0
- package/lib/ConfigProvider/style/variables.css +141 -0
- package/lib/CustomTableOption/style/variables.css +99 -0
- package/lib/CustomTableOption/style/variables.d.ts +1 -0
- package/lib/CustomTableOption/style/variables.js +3 -0
- package/lib/CustomerService/style/variables.css +253 -0
- package/lib/DatePicker/style/variables.css +0 -0
- package/lib/DatePicker/style/variables.d.ts +1 -0
- package/lib/DatePicker/style/variables.js +3 -0
- package/lib/Descriptions/style/index.css +139 -139
- package/lib/Descriptions/style/variables.css +172 -0
- package/lib/Descriptions/style/variables.d.ts +1 -0
- package/lib/Descriptions/style/variables.js +3 -0
- package/lib/Divider/style/variables.css +0 -0
- package/lib/Divider/style/variables.d.ts +1 -0
- package/lib/Divider/style/variables.js +3 -0
- package/lib/Drawer/style/variables.css +8 -0
- package/lib/Drawer/style/variables.d.ts +1 -0
- package/lib/Drawer/style/variables.js +3 -0
- package/lib/Dropdown/style/variables.css +86 -0
- package/lib/Dropdown/style/variables.d.ts +1 -0
- package/lib/Dropdown/style/variables.js +3 -0
- package/lib/EditTable/style/variables.css +178 -0
- package/lib/Empty/style/variables.css +44 -0
- package/lib/Empty/style/variables.d.ts +1 -0
- package/lib/Empty/style/variables.js +3 -0
- package/lib/EnlargeImg/style/variables.css +4 -0
- package/lib/Filter/style/variables.css +271 -0
- package/lib/Form/style/variables.css +181 -0
- package/lib/Form/style/variables.d.ts +1 -0
- package/lib/Form/style/variables.js +3 -0
- package/lib/FullScreen/style/variables.css +10 -0
- package/lib/FullScreen/style/variables.d.ts +1 -0
- package/lib/FullScreen/style/variables.js +3 -0
- package/lib/Grid/style/variables.css +0 -0
- package/lib/Grid/style/variables.d.ts +1 -0
- package/lib/Grid/style/variables.js +3 -0
- package/lib/Icon/style/variables.css +0 -0
- package/lib/IconFont/style/variables.css +0 -0
- package/lib/IconSelect/style/variables.css +25 -0
- package/lib/Image/style/variables.css +0 -0
- package/lib/Image/style/variables.d.ts +1 -0
- package/lib/Image/style/variables.js +3 -0
- package/lib/ImageViewer/style/variables.css +118 -0
- package/lib/Input/style/variables.css +773 -0
- package/lib/Input/style/variables.d.ts +1 -0
- package/lib/Input/style/variables.js +3 -0
- package/lib/InputNumber/style/variables.css +35 -0
- package/lib/InputNumber/style/variables.d.ts +1 -0
- package/lib/InputNumber/style/variables.js +3 -0
- package/lib/Layout/style/variables.css +0 -0
- package/lib/Layout/style/variables.d.ts +1 -0
- package/lib/Layout/style/variables.js +3 -0
- package/lib/LeftTable/style/variables.css +161 -0
- package/lib/List/style/variables.css +0 -0
- package/lib/List/style/variables.d.ts +1 -0
- package/lib/List/style/variables.js +3 -0
- package/lib/LmEditTable/style/variables.css +89 -0
- package/lib/LmEditTable/style/variables.d.ts +1 -0
- package/lib/LmEditTable/style/variables.js +3 -0
- package/lib/LmFilter/style/variables.css +425 -0
- package/lib/LmSelect/style/variables.css +247 -0
- package/lib/LmSelect/style/variables.d.ts +1 -0
- package/lib/LmSelect/style/variables.js +3 -0
- package/lib/LmTable/style/variables.css +1046 -0
- package/lib/LmUpload/style/variables.css +218 -0
- package/lib/LoadingPage/style/variables.css +0 -0
- package/lib/Mentions/style/variables.css +0 -0
- package/lib/Mentions/style/variables.d.ts +1 -0
- package/lib/Mentions/style/variables.js +3 -0
- package/lib/Menu/style/variables.css +0 -0
- package/lib/Menu/style/variables.d.ts +1 -0
- package/lib/Menu/style/variables.js +3 -0
- package/lib/Modal/style/variables.css +35 -0
- package/lib/Modal/style/variables.d.ts +1 -0
- package/lib/Modal/style/variables.js +3 -0
- package/lib/PageHeader/style/variables.css +0 -0
- package/lib/PageHeader/style/variables.d.ts +1 -0
- package/lib/PageHeader/style/variables.js +3 -0
- package/lib/Pagination/style/variables.css +49 -0
- package/lib/Pagination/style/variables.d.ts +1 -0
- package/lib/Pagination/style/variables.js +3 -0
- package/lib/Popconfirm/style/variables.css +0 -0
- package/lib/Popconfirm/style/variables.d.ts +1 -0
- package/lib/Popconfirm/style/variables.js +3 -0
- package/lib/Popover/style/variables.css +0 -0
- package/lib/Popover/style/variables.d.ts +1 -0
- package/lib/Popover/style/variables.js +3 -0
- package/lib/Progress/style/variables.css +0 -0
- package/lib/Progress/style/variables.d.ts +1 -0
- package/lib/Progress/style/variables.js +3 -0
- package/lib/QuickMenu/style/variables.css +56 -0
- package/lib/QuickMenu/style/variables.d.ts +1 -0
- package/lib/QuickMenu/style/variables.js +3 -0
- package/lib/Radio/style/variables.css +141 -0
- package/lib/Rate/style/variables.css +0 -0
- package/lib/Rate/style/variables.d.ts +1 -0
- package/lib/Rate/style/variables.js +3 -0
- package/lib/Result/style/variables.css +0 -0
- package/lib/Result/style/variables.d.ts +1 -0
- package/lib/Result/style/variables.js +3 -0
- package/lib/Row/style/variables.css +0 -0
- package/lib/Row/style/variables.d.ts +1 -0
- package/lib/Row/style/variables.js +3 -0
- package/lib/Segmented/style/variables.css +0 -0
- package/lib/Segmented/style/variables.d.ts +1 -0
- package/lib/Segmented/style/variables.js +3 -0
- package/lib/Select/style/variables.css +15 -0
- package/lib/Select/style/variables.d.ts +1 -0
- package/lib/Select/style/variables.js +3 -0
- package/lib/Skeleton/style/variables.css +0 -0
- package/lib/Skeleton/style/variables.d.ts +1 -0
- package/lib/Skeleton/style/variables.js +3 -0
- package/lib/Slider/style/variables.css +0 -0
- package/lib/Slider/style/variables.d.ts +1 -0
- package/lib/Slider/style/variables.js +3 -0
- package/lib/Space/style/variables.css +0 -0
- package/lib/Space/style/variables.d.ts +1 -0
- package/lib/Space/style/variables.js +3 -0
- package/lib/Spin/style/variables.css +0 -0
- package/lib/Spin/style/variables.d.ts +1 -0
- package/lib/Spin/style/variables.js +3 -0
- package/lib/Statistic/style/variables.css +0 -0
- package/lib/Statistic/style/variables.d.ts +1 -0
- package/lib/Statistic/style/variables.js +3 -0
- package/lib/Steps/style/variables.css +0 -0
- package/lib/Steps/style/variables.d.ts +1 -0
- package/lib/Steps/style/variables.js +3 -0
- package/lib/Switch/style/variables.css +41 -0
- package/lib/Switch/style/variables.d.ts +1 -0
- package/lib/Switch/style/variables.js +3 -0
- package/lib/Table/style/variables.css +0 -0
- package/lib/Table/style/variables.d.ts +1 -0
- package/lib/Table/style/variables.js +3 -0
- package/lib/Tabs/style/index.css +1 -1
- package/lib/Tabs/style/variables.css +46 -0
- package/lib/Tabs/style/variables.d.ts +1 -0
- package/lib/Tabs/style/variables.js +3 -0
- package/lib/Tag/style/variables.css +64 -0
- package/lib/Tag/style/variables.d.ts +1 -0
- package/lib/Tag/style/variables.js +3 -0
- package/lib/TestTable/style/variables.css +10 -0
- package/lib/TimePicker/style/variables.css +0 -0
- package/lib/TimePicker/style/variables.d.ts +1 -0
- package/lib/TimePicker/style/variables.js +3 -0
- package/lib/Timeline/style/variables.css +3 -0
- package/lib/Timeline/style/variables.d.ts +1 -0
- package/lib/Timeline/style/variables.js +3 -0
- package/lib/Tooltip/style/variables.css +0 -0
- package/lib/Tooltip/style/variables.d.ts +1 -0
- package/lib/Tooltip/style/variables.js +3 -0
- package/lib/Transfer/style/variables.css +0 -0
- package/lib/Transfer/style/variables.d.ts +1 -0
- package/lib/Transfer/style/variables.js +3 -0
- package/lib/Tree/style/variables.css +12 -0
- package/lib/Tree/style/variables.d.ts +1 -0
- package/lib/Tree/style/variables.js +3 -0
- package/lib/TreeSelect/style/variables.css +0 -0
- package/lib/TreeSelect/style/variables.d.ts +1 -0
- package/lib/TreeSelect/style/variables.js +3 -0
- package/lib/Typography/style/variables.css +0 -0
- package/lib/Typography/style/variables.d.ts +1 -0
- package/lib/Typography/style/variables.js +3 -0
- package/lib/Upload/style/variables.css +35 -0
- package/lib/Upload/style/variables.d.ts +1 -0
- package/lib/Upload/style/variables.js +3 -0
- package/lib/UploadOss/style/variables.css +121 -0
- package/lib/VirtualList/style/variables.css +0 -0
- package/lib/locale-provider/style/variables.css +0 -0
- package/lib/locale-provider/style/variables.d.ts +1 -0
- package/lib/locale-provider/style/variables.js +3 -0
- package/lib/message/style/variables.css +31 -0
- package/lib/message/style/variables.d.ts +1 -0
- package/lib/message/style/variables.js +3 -0
- package/lib/notification/style/variables.css +41 -0
- package/lib/notification/style/variables.d.ts +1 -0
- package/lib/notification/style/variables.js +3 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/index.js +3 -0
- package/lib/styles/variables.css +6698 -0
- package/package.json +6 -2
- package/es/Box/style/index.js +0 -3
- package/es/ButtonTags/ButtonTags.js +0 -59
- package/es/ButtonTags/index.js +0 -13
- package/es/ButtonTags/style/index.js +0 -3
- package/es/CardTable/LmCardTable.js +0 -63
- package/es/CardTable/body/TableBody.js +0 -78
- package/es/CardTable/body/TableBodyCell.js +0 -67
- package/es/CardTable/body/TableBodyRow.js +0 -91
- package/es/CardTable/card/PictureTextColumn.js +0 -132
- package/es/CardTable/card/PictureTextRow.js +0 -153
- package/es/CardTable/card/PictureTextRowOperate.js +0 -146
- package/es/CardTable/context.js +0 -20
- package/es/CardTable/empty.js +0 -24
- package/es/CardTable/fns/index.js +0 -160
- package/es/CardTable/footer.js +0 -59
- package/es/CardTable/hooks/usePagination.js +0 -128
- package/es/CardTable/index.js +0 -17
- package/es/CardTable/pager/TablePagination.js +0 -62
- package/es/CardTable/pager/index.js +0 -48
- package/es/CardTable/style/index.js +0 -3
- package/es/CardTable/table/Table.js +0 -27
- package/es/CardTable/table/TableContainer.js +0 -97
- package/es/CardTable/table/TableRoot.js +0 -210
- package/es/CardTable/table/TableWrapper.js +0 -40
- package/es/CardTable/toolbar/ToolBarBottom.js +0 -28
- package/es/CardTable/utils.js +0 -31
- package/es/Checkbox/index.js +0 -47
- package/es/Checkbox/style/index.js +0 -3
- package/es/ConfigProvider/style/index.js +0 -3
- package/es/CustomerService/components/question.js +0 -120
- package/es/CustomerService/index.js +0 -291
- package/es/CustomerService/style/index.js +0 -3
- package/es/EditTable/EditTable.js +0 -704
- package/es/EditTable/index.js +0 -13
- package/es/EditTable/style/index.js +0 -3
- package/es/EnlargeImg/index.js +0 -109
- package/es/EnlargeImg/style/index.js +0 -3
- package/es/Filter/Popover.js +0 -199
- package/es/Filter/baseFilter/Popover.js +0 -213
- package/es/Filter/baseFilter/ToggleFilter.js +0 -111
- package/es/Filter/baseFilter/index.js +0 -100
- package/es/Filter/complex/ComplexFilter.js +0 -149
- package/es/Filter/complex/ComplexItem.js +0 -157
- package/es/Filter/components/Checkbox.js +0 -94
- package/es/Filter/components/Date.js +0 -87
- package/es/Filter/components/Input.js +0 -63
- package/es/Filter/components/Select.js +0 -89
- package/es/Filter/components/Tree.js +0 -64
- package/es/Filter/components/header.js +0 -60
- package/es/Filter/components/index.js +0 -47
- package/es/Filter/context.js +0 -15
- package/es/Filter/edit/editFilter.js +0 -273
- package/es/Filter/index.js +0 -174
- package/es/Filter/popContext.js +0 -15
- package/es/Filter/remember.js +0 -136
- package/es/Filter/style/index.js +0 -3
- package/es/Icon/index.js +0 -20
- package/es/Icon/style/index.js +0 -3
- package/es/IconFont/font/iconfont.js +0 -48
- package/es/IconFont/style/index.js +0 -3
- package/es/IconSelect/index.js +0 -115
- package/es/IconSelect/style/index.js +0 -3
- package/es/ImageViewer/style/index.js +0 -3
- package/es/LeftTable/index.js +0 -184
- package/es/LeftTable/style/index.js +0 -3
- package/es/LmFilter/Controls/CheckboxTags.js +0 -53
- package/es/LmFilter/Controls/index.js +0 -78
- package/es/LmFilter/LmFilter.js +0 -69
- package/es/LmFilter/baseFilter/fuzzySearch.js +0 -69
- package/es/LmFilter/baseFilter/index.js +0 -33
- package/es/LmFilter/clearFilter/index.js +0 -31
- package/es/LmFilter/complexFilter/drawer.js +0 -381
- package/es/LmFilter/complexFilter/index.js +0 -64
- package/es/LmFilter/complexFilter/valueDrawer.js +0 -235
- package/es/LmFilter/components/CascaderFilter.js +0 -160
- package/es/LmFilter/components/CheckboxFilter.js +0 -189
- package/es/LmFilter/components/CustomSelectFilter.js +0 -139
- package/es/LmFilter/components/DateFilter.js +0 -163
- package/es/LmFilter/components/DropdownFIlter.js +0 -264
- package/es/LmFilter/components/EmptyFilter.js +0 -27
- package/es/LmFilter/components/InputFilter.js +0 -51
- package/es/LmFilter/components/InputSearchClose.js +0 -74
- package/es/LmFilter/components/SelectFilter.js +0 -121
- package/es/LmFilter/components/index.js +0 -93
- package/es/LmFilter/customFilter/drawer.js +0 -409
- package/es/LmFilter/customFilter/index.js +0 -136
- package/es/LmFilter/customFilter/saveModal.js +0 -185
- package/es/LmFilter/customFilter/valueDrawer.js +0 -232
- package/es/LmFilter/filterFns/index.js +0 -644
- package/es/LmFilter/hooks/index.js +0 -18
- package/es/LmFilter/hooks/useDelayedFn.js +0 -29
- package/es/LmFilter/index.js +0 -16
- package/es/LmFilter/style/index.js +0 -3
- package/es/LmFilter/utils.js +0 -173
- package/es/LmFilter/wrapper/Filter.js +0 -41
- package/es/LmFilter/wrapper/FilterContainer.js +0 -25
- package/es/LmFilter/wrapper/FilterRoot.js +0 -208
- package/es/LmFilter/wrapper/FilterWrapper.js +0 -25
- package/es/LmTable/Table.js +0 -1385
- package/es/LmTable/VList.js +0 -594
- package/es/LmTable/autosize.js +0 -167
- package/es/LmTable/components/sortableBoxCol.js +0 -24
- package/es/LmTable/components/sortableItemCol.js +0 -54
- package/es/LmTable/context.js +0 -12
- package/es/LmTable/detectElementResize.js +0 -225
- package/es/LmTable/index.js +0 -14
- package/es/LmTable/resetConfig.js +0 -39
- package/es/LmTable/style/index.js +0 -3
- package/es/LmTable/util.js +0 -211
- package/es/LmUpload/style/index.js +0 -3
- package/es/LoadingPage/index.js +0 -33
- package/es/LoadingPage/style/index.js +0 -3
- package/es/Radio/index.js +0 -50
- package/es/Radio/style/index.js +0 -3
- package/es/TestTable/style/index.js +0 -3
- package/es/UploadOss/index.js +0 -18
- package/es/UploadOss/style/index.js +0 -3
- package/es/UploadOss/uploadBtn.js +0 -141
- package/es/UploadOss/uploadImg.js +0 -282
- package/es/VirtualList/index.js +0 -85
- package/es/VirtualList/style/index.js +0 -3
- package/es/services/newRequest.js +0 -201
- package/es/services/utils.js +0 -72
- package/lib/Box/style/index.js +0 -3
- package/lib/ButtonTags/ButtonTags.js +0 -59
- package/lib/ButtonTags/index.js +0 -13
- package/lib/ButtonTags/style/index.js +0 -3
- package/lib/CardTable/LmCardTable.js +0 -63
- package/lib/CardTable/body/TableBody.js +0 -78
- package/lib/CardTable/body/TableBodyCell.js +0 -67
- package/lib/CardTable/body/TableBodyRow.js +0 -91
- package/lib/CardTable/card/PictureTextColumn.js +0 -132
- package/lib/CardTable/card/PictureTextRow.js +0 -153
- package/lib/CardTable/card/PictureTextRowOperate.js +0 -146
- package/lib/CardTable/context.js +0 -20
- package/lib/CardTable/empty.js +0 -24
- package/lib/CardTable/fns/index.js +0 -160
- package/lib/CardTable/footer.js +0 -59
- package/lib/CardTable/hooks/usePagination.js +0 -128
- package/lib/CardTable/index.js +0 -17
- package/lib/CardTable/pager/TablePagination.js +0 -62
- package/lib/CardTable/pager/index.js +0 -48
- package/lib/CardTable/style/index.js +0 -3
- package/lib/CardTable/table/Table.js +0 -27
- package/lib/CardTable/table/TableContainer.js +0 -97
- package/lib/CardTable/table/TableRoot.js +0 -210
- package/lib/CardTable/table/TableWrapper.js +0 -40
- package/lib/CardTable/toolbar/ToolBarBottom.js +0 -28
- package/lib/CardTable/utils.js +0 -31
- package/lib/Checkbox/index.js +0 -47
- package/lib/Checkbox/style/index.js +0 -3
- package/lib/ConfigProvider/style/index.js +0 -3
- package/lib/CustomerService/components/question.js +0 -120
- package/lib/CustomerService/index.js +0 -291
- package/lib/CustomerService/style/index.js +0 -3
- package/lib/EditTable/EditTable.js +0 -704
- package/lib/EditTable/index.js +0 -13
- package/lib/EditTable/style/index.js +0 -3
- package/lib/EnlargeImg/index.js +0 -109
- package/lib/EnlargeImg/style/index.js +0 -3
- package/lib/Filter/Popover.js +0 -199
- package/lib/Filter/baseFilter/Popover.js +0 -213
- package/lib/Filter/baseFilter/ToggleFilter.js +0 -111
- package/lib/Filter/baseFilter/index.js +0 -100
- package/lib/Filter/complex/ComplexFilter.js +0 -149
- package/lib/Filter/complex/ComplexItem.js +0 -157
- package/lib/Filter/components/Checkbox.js +0 -94
- package/lib/Filter/components/Date.js +0 -87
- package/lib/Filter/components/Input.js +0 -63
- package/lib/Filter/components/Select.js +0 -89
- package/lib/Filter/components/Tree.js +0 -64
- package/lib/Filter/components/header.js +0 -60
- package/lib/Filter/components/index.js +0 -47
- package/lib/Filter/context.js +0 -15
- package/lib/Filter/edit/editFilter.js +0 -273
- package/lib/Filter/index.js +0 -174
- package/lib/Filter/popContext.js +0 -15
- package/lib/Filter/remember.js +0 -136
- package/lib/Filter/style/index.js +0 -3
- package/lib/Icon/index.js +0 -20
- package/lib/Icon/style/index.js +0 -3
- package/lib/IconFont/font/iconfont.js +0 -48
- package/lib/IconFont/style/index.js +0 -3
- package/lib/IconSelect/index.js +0 -115
- package/lib/IconSelect/style/index.js +0 -3
- package/lib/ImageViewer/style/index.js +0 -3
- package/lib/LeftTable/index.js +0 -184
- package/lib/LeftTable/style/index.js +0 -3
- package/lib/LmFilter/Controls/CheckboxTags.js +0 -53
- package/lib/LmFilter/Controls/index.js +0 -78
- package/lib/LmFilter/LmFilter.js +0 -69
- package/lib/LmFilter/baseFilter/fuzzySearch.js +0 -69
- package/lib/LmFilter/baseFilter/index.js +0 -33
- package/lib/LmFilter/clearFilter/index.js +0 -31
- package/lib/LmFilter/complexFilter/drawer.js +0 -381
- package/lib/LmFilter/complexFilter/index.js +0 -64
- package/lib/LmFilter/complexFilter/valueDrawer.js +0 -235
- package/lib/LmFilter/components/CascaderFilter.js +0 -160
- package/lib/LmFilter/components/CheckboxFilter.js +0 -189
- package/lib/LmFilter/components/CustomSelectFilter.js +0 -139
- package/lib/LmFilter/components/DateFilter.js +0 -163
- package/lib/LmFilter/components/DropdownFIlter.js +0 -264
- package/lib/LmFilter/components/EmptyFilter.js +0 -27
- package/lib/LmFilter/components/InputFilter.js +0 -51
- package/lib/LmFilter/components/InputSearchClose.js +0 -74
- package/lib/LmFilter/components/SelectFilter.js +0 -121
- package/lib/LmFilter/components/index.js +0 -93
- package/lib/LmFilter/customFilter/drawer.js +0 -409
- package/lib/LmFilter/customFilter/index.js +0 -136
- package/lib/LmFilter/customFilter/saveModal.js +0 -185
- package/lib/LmFilter/customFilter/valueDrawer.js +0 -232
- package/lib/LmFilter/filterFns/index.js +0 -644
- package/lib/LmFilter/hooks/index.js +0 -18
- package/lib/LmFilter/hooks/useDelayedFn.js +0 -29
- package/lib/LmFilter/index.js +0 -16
- package/lib/LmFilter/style/index.js +0 -3
- package/lib/LmFilter/utils.js +0 -173
- package/lib/LmFilter/wrapper/Filter.js +0 -41
- package/lib/LmFilter/wrapper/FilterContainer.js +0 -25
- package/lib/LmFilter/wrapper/FilterRoot.js +0 -208
- package/lib/LmFilter/wrapper/FilterWrapper.js +0 -25
- package/lib/LmTable/Table.js +0 -1385
- package/lib/LmTable/VList.js +0 -594
- package/lib/LmTable/autosize.js +0 -167
- package/lib/LmTable/components/sortableBoxCol.js +0 -24
- package/lib/LmTable/components/sortableItemCol.js +0 -54
- package/lib/LmTable/context.js +0 -12
- package/lib/LmTable/detectElementResize.js +0 -225
- package/lib/LmTable/index.js +0 -14
- package/lib/LmTable/resetConfig.js +0 -39
- package/lib/LmTable/style/index.js +0 -3
- package/lib/LmTable/util.js +0 -211
- package/lib/LmUpload/style/index.js +0 -3
- package/lib/LoadingPage/index.js +0 -33
- package/lib/LoadingPage/style/index.js +0 -3
- package/lib/Radio/index.js +0 -50
- package/lib/Radio/style/index.js +0 -3
- package/lib/TestTable/style/index.js +0 -3
- package/lib/UploadOss/index.js +0 -18
- package/lib/UploadOss/style/index.js +0 -3
- package/lib/UploadOss/uploadBtn.js +0 -141
- package/lib/UploadOss/uploadImg.js +0 -282
- package/lib/VirtualList/index.js +0 -85
- package/lib/VirtualList/style/index.js +0 -3
- package/lib/services/newRequest.js +0 -201
- package/lib/services/utils.js +0 -72
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
-
|
|
14
|
-
require("antd/es/spin/style");
|
|
15
|
-
|
|
16
|
-
var _spin = _interopRequireDefault(require("antd/es/spin"));
|
|
17
|
-
|
|
18
|
-
require("antd/es/message/style");
|
|
19
|
-
|
|
20
|
-
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
21
|
-
|
|
22
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
23
|
-
|
|
24
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
25
|
-
|
|
26
|
-
require("antd/es/image/style");
|
|
27
|
-
|
|
28
|
-
var _image = _interopRequireDefault(require("antd/es/image"));
|
|
29
|
-
|
|
30
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
31
|
-
|
|
32
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
33
|
-
|
|
34
|
-
var _IconFont = _interopRequireDefault(require("../IconFont"));
|
|
35
|
-
|
|
36
|
-
var Context = /*#__PURE__*/(0, _react.createContext)(); // 视图展示
|
|
37
|
-
|
|
38
|
-
var ViewImgItem = function ViewImgItem(props) {
|
|
39
|
-
var _useContext = (0, _react.useContext)(Context),
|
|
40
|
-
value = _useContext.value,
|
|
41
|
-
isCheckOss = _useContext.isCheckOss,
|
|
42
|
-
size = _useContext.size,
|
|
43
|
-
length = _useContext.length,
|
|
44
|
-
onChange = _useContext.onChange,
|
|
45
|
-
previewChildren = _useContext.previewChildren;
|
|
46
|
-
|
|
47
|
-
var externalUrl = props.externalUrl,
|
|
48
|
-
filePath = props.filePath,
|
|
49
|
-
realFileName = props.realFileName; // 是否开启OSS配置不同小图预览
|
|
50
|
-
|
|
51
|
-
var thumbUrl = isCheckOss ? "".concat(externalUrl, "/").concat(filePath).concat(realFileName, "?x-oss-process=image/resize,w_").concat(size) : "".concat(externalUrl, "/").concat(filePath, "T").concat(size).concat(realFileName); // 重置尺寸大小
|
|
52
|
-
|
|
53
|
-
var resetSize = (0, _react.useMemo)(function () {
|
|
54
|
-
var gap = size > 60 ? 18 : 10;
|
|
55
|
-
var width = size - gap;
|
|
56
|
-
var padding = size > 60 ? 8 : 4;
|
|
57
|
-
var fontSize = size > 60 ? 16 : 14;
|
|
58
|
-
return {
|
|
59
|
-
width: width,
|
|
60
|
-
padding: padding,
|
|
61
|
-
fontSize: fontSize
|
|
62
|
-
};
|
|
63
|
-
}, [size]); // 受控的大图预览
|
|
64
|
-
|
|
65
|
-
var _useState = (0, _react.useState)(false),
|
|
66
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
67
|
-
visible = _useState2[0],
|
|
68
|
-
setVisible = _useState2[1]; // 预览
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var handlePreview = function handlePreview() {
|
|
72
|
-
return setVisible(true);
|
|
73
|
-
}; // 删除
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var handleDelete = function handleDelete() {
|
|
77
|
-
var nValue = length > 1 ? value.filter(function (v) {
|
|
78
|
-
return v.realFileName !== realFileName;
|
|
79
|
-
}) : null;
|
|
80
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nValue);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
-
className: "view_box",
|
|
85
|
-
style: {
|
|
86
|
-
padding: resetSize.padding
|
|
87
|
-
}
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
-
className: "view_item_thum",
|
|
90
|
-
style: {
|
|
91
|
-
width: resetSize.width,
|
|
92
|
-
height: resetSize.width
|
|
93
|
-
}
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
95
|
-
width: resetSize.width,
|
|
96
|
-
height: resetSize.width,
|
|
97
|
-
src: thumbUrl,
|
|
98
|
-
preview: {
|
|
99
|
-
visible: visible,
|
|
100
|
-
src: "".concat(externalUrl, "/").concat(filePath).concat(realFileName),
|
|
101
|
-
onVisibleChange: function onVisibleChange(val) {
|
|
102
|
-
return setVisible(val);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
106
|
-
className: "view_item_action"
|
|
107
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
-
className: "view_item_action_icon",
|
|
109
|
-
style: {
|
|
110
|
-
fontSize: resetSize.fontSize
|
|
111
|
-
}
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
className: "view_item_preview",
|
|
114
|
-
onClick: handlePreview
|
|
115
|
-
}, /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
116
|
-
type: "lmweb-eye"
|
|
117
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
118
|
-
className: "view_item_delete",
|
|
119
|
-
onClick: handleDelete
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
121
|
-
type: "lmweb-delete"
|
|
122
|
-
}))), previewChildren && previewChildren(props)))));
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var ViewImg = function ViewImg() {
|
|
126
|
-
var _useContext2 = (0, _react.useContext)(Context),
|
|
127
|
-
value = _useContext2.value;
|
|
128
|
-
|
|
129
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, value === null || value === void 0 ? void 0 : value.map(function (v, idx) {
|
|
130
|
-
return /*#__PURE__*/_react.default.createElement(ViewImgItem, (0, _extends2.default)({
|
|
131
|
-
key: v.realFileName || idx
|
|
132
|
-
}, v));
|
|
133
|
-
}));
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
var UploadCard = function UploadCard() {
|
|
137
|
-
var _useContext3 = (0, _react.useContext)(Context),
|
|
138
|
-
_useContext3$value = _useContext3.value,
|
|
139
|
-
value = _useContext3$value === void 0 ? [] : _useContext3$value,
|
|
140
|
-
onChange = _useContext3.onChange,
|
|
141
|
-
size = _useContext3.size,
|
|
142
|
-
length = _useContext3.length,
|
|
143
|
-
_useContext3$label = _useContext3.label,
|
|
144
|
-
label = _useContext3$label === void 0 ? '上传图片' : _useContext3$label,
|
|
145
|
-
required = _useContext3.required,
|
|
146
|
-
accept = _useContext3.accept,
|
|
147
|
-
_useContext3$type = _useContext3.type,
|
|
148
|
-
type = _useContext3$type === void 0 ? ['jpg', 'jpeg', 'png'] : _useContext3$type,
|
|
149
|
-
_useContext3$fileSize = _useContext3.fileSize,
|
|
150
|
-
fileSize = _useContext3$fileSize === void 0 ? 10 : _useContext3$fileSize,
|
|
151
|
-
children = _useContext3.children,
|
|
152
|
-
fileUpload = _useContext3.fileUpload,
|
|
153
|
-
isLoading = _useContext3.isLoading,
|
|
154
|
-
_useContext3$valueTyp = _useContext3.valueType,
|
|
155
|
-
valueType = _useContext3$valueTyp === void 0 ? 'object' : _useContext3$valueTyp;
|
|
156
|
-
|
|
157
|
-
var fielRef = (0, _react.useRef)(null);
|
|
158
|
-
|
|
159
|
-
var clearInput = function clearInput() {
|
|
160
|
-
var _fielRef$current;
|
|
161
|
-
|
|
162
|
-
if ((_fielRef$current = fielRef.current) === null || _fielRef$current === void 0 ? void 0 : _fielRef$current.value) {
|
|
163
|
-
fielRef.current.value = null;
|
|
164
|
-
}
|
|
165
|
-
}; // 触发外部OnChange事件
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
var handleUpload = function handleUpload(file) {
|
|
169
|
-
var nValue = length > 1 || valueType === 'array' ? [].concat((0, _toConsumableArray2.default)(value), [file]) : file;
|
|
170
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nValue);
|
|
171
|
-
clearInput();
|
|
172
|
-
}; // 上传前置处理
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
var beforeUpload = function beforeUpload(e) {
|
|
176
|
-
var file = e.target.files; // 循环文件检查是否存在不符合要求的文件
|
|
177
|
-
|
|
178
|
-
for (var i = 0, len = file.length; i < len; i += 1) {
|
|
179
|
-
var item = file[i];
|
|
180
|
-
|
|
181
|
-
if (!type.includes(item.name.replace(/.*\./, '').toLowerCase())) {
|
|
182
|
-
var content = type.join('、');
|
|
183
|
-
clearInput();
|
|
184
|
-
return _message2.default.warning("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u4EC5\u652F\u6301".concat(content, "\u7684\u6587\u4EF6\u7C7B\u578B\uFF01"), 1.5);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (item.size / 1024 / 1024 > fileSize) {
|
|
188
|
-
clearInput();
|
|
189
|
-
return _message2.default.warning("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01\u9644\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7".concat(fileSize, "M\uFF01"), 1.5);
|
|
190
|
-
} // 单个文件上传
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
fileUpload === null || fileUpload === void 0 ? void 0 : fileUpload({
|
|
194
|
-
file: item,
|
|
195
|
-
size: size,
|
|
196
|
-
value: value,
|
|
197
|
-
onChange: handleUpload,
|
|
198
|
-
isImg: true
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
return false;
|
|
203
|
-
}; // 未上传时的占位符
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
var UploadPlaceholder = function UploadPlaceholder() {
|
|
207
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
208
|
-
type: "lmweb-plus",
|
|
209
|
-
style: {
|
|
210
|
-
fontSize: size > 48 ? 24 : 16
|
|
211
|
-
}
|
|
212
|
-
}), label && /*#__PURE__*/_react.default.createElement("div", {
|
|
213
|
-
style: {
|
|
214
|
-
marginTop: 8
|
|
215
|
-
}
|
|
216
|
-
}, required && /*#__PURE__*/_react.default.createElement("span", {
|
|
217
|
-
style: {
|
|
218
|
-
color: '#FD4D4E'
|
|
219
|
-
}
|
|
220
|
-
}, "*"), label));
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
var config = {
|
|
224
|
-
type: 'file',
|
|
225
|
-
accept: accept,
|
|
226
|
-
title: '',
|
|
227
|
-
className: 'upload_input',
|
|
228
|
-
onChange: beforeUpload
|
|
229
|
-
};
|
|
230
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_spin.default, {
|
|
231
|
-
spinning: isLoading,
|
|
232
|
-
size: "small"
|
|
233
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
234
|
-
className: "upload_card_box",
|
|
235
|
-
style: {
|
|
236
|
-
height: size,
|
|
237
|
-
width: size
|
|
238
|
-
}
|
|
239
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
240
|
-
className: "upload_card_action"
|
|
241
|
-
}, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
|
|
242
|
-
ref: fielRef
|
|
243
|
-
}, config)), /*#__PURE__*/_react.default.createElement("div", null, children || /*#__PURE__*/_react.default.createElement(UploadPlaceholder, null))))));
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
var Index = function Index(props) {
|
|
247
|
-
var _props$value = props.value,
|
|
248
|
-
value = _props$value === void 0 ? [] : _props$value,
|
|
249
|
-
_props$length = props.length,
|
|
250
|
-
length = _props$length === void 0 ? 1 : _props$length,
|
|
251
|
-
_props$style = props.style,
|
|
252
|
-
style = _props$style === void 0 ? {
|
|
253
|
-
gap: 16
|
|
254
|
-
} : _props$style; // 默认参数
|
|
255
|
-
|
|
256
|
-
var defaultConfig = {
|
|
257
|
-
size: 104,
|
|
258
|
-
label: '上传图片',
|
|
259
|
-
type: ['jpg', 'jpeg', 'png'],
|
|
260
|
-
fileSize: 10
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
var Control = function Control() {
|
|
264
|
-
if (Array.isArray(value)) {
|
|
265
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ViewImg, null), value.length < length ? /*#__PURE__*/_react.default.createElement(UploadCard, null) : null);
|
|
266
|
-
} else {
|
|
267
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, value && /*#__PURE__*/_react.default.createElement(ViewImgItem, value), value ? null : /*#__PURE__*/_react.default.createElement(UploadCard, null));
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
272
|
-
className: "lm_upload_img"
|
|
273
|
-
}, /*#__PURE__*/_react.default.createElement(Context.Provider, {
|
|
274
|
-
value: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultConfig), props)
|
|
275
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
276
|
-
className: "upload_body",
|
|
277
|
-
style: style
|
|
278
|
-
}, Control())));
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
var _default = Index;
|
|
282
|
-
exports.default = _default;
|
package/es/VirtualList/index.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _reactVirtual = require("react-virtual");
|
|
13
|
-
|
|
14
|
-
var VirList = function VirList(_ref) {
|
|
15
|
-
var _ref$options = _ref.options,
|
|
16
|
-
options = _ref$options === void 0 ? [] : _ref$options,
|
|
17
|
-
children = _ref.children,
|
|
18
|
-
_ref$size = _ref.size,
|
|
19
|
-
size = _ref$size === void 0 ? 32 : _ref$size,
|
|
20
|
-
_ref$parentRef = _ref.parentRef,
|
|
21
|
-
parentRef = _ref$parentRef === void 0 ? null : _ref$parentRef,
|
|
22
|
-
className = _ref.className,
|
|
23
|
-
_ref$maxHeight = _ref.maxHeight,
|
|
24
|
-
maxHeight = _ref$maxHeight === void 0 ? 224 : _ref$maxHeight;
|
|
25
|
-
var bodyRef = (0, _react.useRef)(null);
|
|
26
|
-
|
|
27
|
-
var _useVirtual = (0, _reactVirtual.useVirtual)({
|
|
28
|
-
size: options.length,
|
|
29
|
-
parentRef: parentRef || bodyRef,
|
|
30
|
-
estimateSize: _react.default.useCallback(function () {
|
|
31
|
-
return size;
|
|
32
|
-
}, [size]),
|
|
33
|
-
overscan: 2
|
|
34
|
-
}),
|
|
35
|
-
totalSize = _useVirtual.totalSize,
|
|
36
|
-
virtualItems = _useVirtual.virtualItems;
|
|
37
|
-
|
|
38
|
-
var virScrollStyles = (0, _react.useMemo)(function () {
|
|
39
|
-
return {
|
|
40
|
-
height: "".concat(totalSize, "px"),
|
|
41
|
-
width: '100%',
|
|
42
|
-
position: 'relative'
|
|
43
|
-
};
|
|
44
|
-
}, [totalSize]);
|
|
45
|
-
|
|
46
|
-
if ((options === null || options === void 0 ? void 0 : options.length) < 50) {
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
-
className: "virtual_list ".concat(className)
|
|
49
|
-
}, options === null || options === void 0 ? void 0 : options.map(function (item, i) {
|
|
50
|
-
return children({
|
|
51
|
-
key: i,
|
|
52
|
-
item: item
|
|
53
|
-
});
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
-
ref: bodyRef,
|
|
59
|
-
className: "virtual_list ".concat(className),
|
|
60
|
-
style: {
|
|
61
|
-
overflow: 'auto',
|
|
62
|
-
minWidth: 160,
|
|
63
|
-
maxHeight: maxHeight
|
|
64
|
-
}
|
|
65
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
-
style: virScrollStyles
|
|
67
|
-
}, virtualItems.map(function (virtualRow) {
|
|
68
|
-
var style = {
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
top: 0,
|
|
71
|
-
left: 0,
|
|
72
|
-
minWidth: '100%',
|
|
73
|
-
height: "".concat(virtualRow.size, "px"),
|
|
74
|
-
transform: "translateY(".concat(virtualRow.start, "px)")
|
|
75
|
-
};
|
|
76
|
-
return children({
|
|
77
|
-
key: virtualRow.index,
|
|
78
|
-
item: options[virtualRow.index],
|
|
79
|
-
style: style
|
|
80
|
-
});
|
|
81
|
-
}))));
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
var _default = VirList;
|
|
85
|
-
exports.default = _default;
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
-
|
|
14
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
15
|
-
|
|
16
|
-
require("antd/es/message/style");
|
|
17
|
-
|
|
18
|
-
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
19
|
-
|
|
20
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
21
|
-
|
|
22
|
-
var _qs = _interopRequireDefault(require("qs"));
|
|
23
|
-
|
|
24
|
-
var _reactCookies = _interopRequireDefault(require("react-cookies"));
|
|
25
|
-
|
|
26
|
-
var _utils = require("./utils");
|
|
27
|
-
|
|
28
|
-
var _cookie$load;
|
|
29
|
-
|
|
30
|
-
// 附近处理函数
|
|
31
|
-
// cookie.save('UFXSCM_TokenId', 'Sfbw1SY/Rb2YNEGnoYlB7jiKG6mSznuGUXY5B6GNkHoHmU0IcH/d/A==');
|
|
32
|
-
// cookie.save('saas_gpid', '41mzTRAtm/XBGt2X4wrn+67+XGXNr10r6CJAsvv2iEHPwRa4hOXzCw==');
|
|
33
|
-
var inError = false; // 创建axios实例
|
|
34
|
-
|
|
35
|
-
var instance = _axios.default.create({
|
|
36
|
-
baseURL: process.env.BASE_API,
|
|
37
|
-
timeout: 15000,
|
|
38
|
-
// 请求超时时间
|
|
39
|
-
// `transformRequest` 允许在向服务器发送前,修改请求数据
|
|
40
|
-
transformRequest: [function (data) {
|
|
41
|
-
// 对 data 进行任意转换处理
|
|
42
|
-
return data;
|
|
43
|
-
}],
|
|
44
|
-
// `transformResponse` 在传递给 then/catch 前,允许修改响应数据
|
|
45
|
-
transformResponse: [function (data) {
|
|
46
|
-
// console.log(data);
|
|
47
|
-
// 对 data 进行任意转换处理
|
|
48
|
-
if (data && (data.type === 'application/octet-stream' || data.type === 'application/json')) {
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return JSON.parse(data);
|
|
53
|
-
}],
|
|
54
|
-
headers: {
|
|
55
|
-
'Cache-Control': 'no-cache',
|
|
56
|
-
Authorization: (_reactCookies.default === null || _reactCookies.default === void 0 ? void 0 : _reactCookies.default.load('UFXSCM_TokenId')) ? "Basic ".concat(_reactCookies.default.load('UFXSCM_TokenId')) : '',
|
|
57
|
-
TenantId: _reactCookies.default === null || _reactCookies.default === void 0 ? void 0 : _reactCookies.default.load('saas_gpid'),
|
|
58
|
-
SystemId: (_cookie$load = _reactCookies.default === null || _reactCookies.default === void 0 ? void 0 : _reactCookies.default.load('saas_sysid')) !== null && _cookie$load !== void 0 ? _cookie$load : ''
|
|
59
|
-
}
|
|
60
|
-
}); // 实例添加请求拦截器
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
instance.interceptors.request.use(function (config) {
|
|
64
|
-
// 在发送请求之前做处理...
|
|
65
|
-
config.headers = Object.assign(config.method === 'get' ? (config.data = true, {
|
|
66
|
-
Accept: 'application/json',
|
|
67
|
-
'Content-Type': 'application/json; charset=UTF-8'
|
|
68
|
-
}) : config.data ? '' : config.data = true, {
|
|
69
|
-
'Content-Type': 'application/json; charset=UTF-8' // 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
70
|
-
|
|
71
|
-
}, config.headers); // config.headers.token = sessionStorage.getItem(`${projectPrefix}_token_`);
|
|
72
|
-
|
|
73
|
-
if (!config.headers.Authorization) {
|
|
74
|
-
delete config.headers.Authorization;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (!config.headers.TenantId) {
|
|
78
|
-
delete config.headers.TenantId;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (['post', 'put'].includes(config.method)) {
|
|
82
|
-
var contentType = config.headers['Content-Type']; // 根据Content-Type转换data格式
|
|
83
|
-
|
|
84
|
-
if (contentType) {
|
|
85
|
-
if (contentType.includes('multipart')) {// 类型 'multipart/form-data;'
|
|
86
|
-
// config.data = data;
|
|
87
|
-
} else if (contentType.includes('json')) {
|
|
88
|
-
// 类型 'application/json;'
|
|
89
|
-
// 服务器收到的raw body(原始数据) "{name:"nowThen",age:"18"}"(普通字符串)
|
|
90
|
-
config.data = JSON.stringify(config.data);
|
|
91
|
-
} else {
|
|
92
|
-
// 类型 'application/x-www-form-urlencoded;'
|
|
93
|
-
// 服务器收到的raw body(原始数据) name=nowThen&age=18
|
|
94
|
-
config.data = _qs.default.stringify(config.data);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return Promise.resolve(config);
|
|
100
|
-
}, function (error) {
|
|
101
|
-
return (// 对请求错误做处理...
|
|
102
|
-
Promise.reject(error)
|
|
103
|
-
);
|
|
104
|
-
}); // 实例添加响应拦截器
|
|
105
|
-
|
|
106
|
-
instance.interceptors.response.use(function (response) {
|
|
107
|
-
// 对响应数据做处理,以下根据实际数据结构改动!!...
|
|
108
|
-
var _ref = response.data || {},
|
|
109
|
-
code = _ref.code;
|
|
110
|
-
|
|
111
|
-
if (code === 109 || code === 108) {
|
|
112
|
-
// 请求超时,跳转登录页
|
|
113
|
-
if (!inError) {
|
|
114
|
-
_message2.default.warning('登录超时,即将跳转到登录页面...');
|
|
115
|
-
|
|
116
|
-
inError = true;
|
|
117
|
-
setTimeout(function () {
|
|
118
|
-
_message2.default.destroy();
|
|
119
|
-
|
|
120
|
-
window.location.href = '/login';
|
|
121
|
-
inError = false;
|
|
122
|
-
}, 2000);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return Promise.resolve({});
|
|
126
|
-
} else if (response) {
|
|
127
|
-
return Promise.resolve((0, _utils.checkStatus)(response));
|
|
128
|
-
}
|
|
129
|
-
}, function (error) {
|
|
130
|
-
// 对响应错误做处理...
|
|
131
|
-
// console.log(error);
|
|
132
|
-
if (error.response) {
|
|
133
|
-
return Promise.reject((0, _utils.checkStatus)(error.response));
|
|
134
|
-
} else if (error.code === 'ECONNABORTED' && error.message.indexOf('timeout') !== -1) {
|
|
135
|
-
return Promise.reject({
|
|
136
|
-
msg: '请求超时'
|
|
137
|
-
});
|
|
138
|
-
} else {
|
|
139
|
-
return Promise.reject({});
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
var request = /*#__PURE__*/function () {
|
|
144
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(opt) {
|
|
145
|
-
var options, res;
|
|
146
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
147
|
-
while (1) {
|
|
148
|
-
switch (_context.prev = _context.next) {
|
|
149
|
-
case 0:
|
|
150
|
-
options = (0, _objectSpread2.default)({
|
|
151
|
-
method: 'get',
|
|
152
|
-
ifHandleError: true
|
|
153
|
-
}, opt); // 匹配接口前缀 开发环境则通过proxy配置转发请求; 生产环境根据实际配置
|
|
154
|
-
// options.baseURL = autoMatch(options.prefix);
|
|
155
|
-
|
|
156
|
-
_context.prev = 1;
|
|
157
|
-
_context.next = 4;
|
|
158
|
-
return instance(options);
|
|
159
|
-
|
|
160
|
-
case 4:
|
|
161
|
-
res = _context.sent;
|
|
162
|
-
|
|
163
|
-
if (!(res.code !== 200 && options.ifHandleError)) {
|
|
164
|
-
_context.next = 8;
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// 自定义参数,是否允许全局提示错误信息
|
|
169
|
-
_message2.default.error(res.message || '请求处理失败!');
|
|
170
|
-
|
|
171
|
-
return _context.abrupt("return", Promise.reject(options));
|
|
172
|
-
|
|
173
|
-
case 8:
|
|
174
|
-
return _context.abrupt("return", res);
|
|
175
|
-
|
|
176
|
-
case 11:
|
|
177
|
-
_context.prev = 11;
|
|
178
|
-
_context.t0 = _context["catch"](1);
|
|
179
|
-
|
|
180
|
-
if (options.ifHandleError) {
|
|
181
|
-
// 自定义参数,是否允许全局提示错误信息
|
|
182
|
-
_message2.default.error(_context.t0.message || _context.t0.msg || '请求处理失败!');
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return _context.abrupt("return", Promise.reject(options));
|
|
186
|
-
|
|
187
|
-
case 15:
|
|
188
|
-
case "end":
|
|
189
|
-
return _context.stop();
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}, _callee, null, [[1, 11]]);
|
|
193
|
-
}));
|
|
194
|
-
|
|
195
|
-
return function request(_x) {
|
|
196
|
-
return _ref2.apply(this, arguments);
|
|
197
|
-
};
|
|
198
|
-
}();
|
|
199
|
-
|
|
200
|
-
var _default = request;
|
|
201
|
-
exports.default = _default;
|
package/es/services/utils.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.checkStatus = checkStatus;
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
9
|
-
function checkStatus(response) {
|
|
10
|
-
var status = response.status || -1000; // -1000 自己定义,连接错误的status
|
|
11
|
-
|
|
12
|
-
if (status >= 200 && status < 300 || status === 304) {
|
|
13
|
-
// 如果http状态码正常,则直接返回数据
|
|
14
|
-
return response.data;
|
|
15
|
-
} else {
|
|
16
|
-
var errorInfo = '';
|
|
17
|
-
|
|
18
|
-
switch (status) {
|
|
19
|
-
case -1:
|
|
20
|
-
errorInfo = '远程服务响应失败,请稍后重试';
|
|
21
|
-
break;
|
|
22
|
-
|
|
23
|
-
case 400:
|
|
24
|
-
errorInfo = '400:错误请求';
|
|
25
|
-
break;
|
|
26
|
-
|
|
27
|
-
case 401:
|
|
28
|
-
errorInfo = '401:访问令牌无效或已过期';
|
|
29
|
-
break;
|
|
30
|
-
|
|
31
|
-
case 403:
|
|
32
|
-
errorInfo = '403:拒绝访问';
|
|
33
|
-
break;
|
|
34
|
-
|
|
35
|
-
case 404:
|
|
36
|
-
errorInfo = '404:资源不存在';
|
|
37
|
-
break;
|
|
38
|
-
|
|
39
|
-
case 405:
|
|
40
|
-
errorInfo = '405:请求方法未允许';
|
|
41
|
-
break;
|
|
42
|
-
|
|
43
|
-
case 408:
|
|
44
|
-
errorInfo = '408:请求超时';
|
|
45
|
-
break;
|
|
46
|
-
|
|
47
|
-
case 500:
|
|
48
|
-
errorInfo = '500:访问服务失败';
|
|
49
|
-
break;
|
|
50
|
-
|
|
51
|
-
case 501:
|
|
52
|
-
errorInfo = '501:未实现';
|
|
53
|
-
break;
|
|
54
|
-
|
|
55
|
-
case 502:
|
|
56
|
-
errorInfo = '502:无效网关';
|
|
57
|
-
break;
|
|
58
|
-
|
|
59
|
-
case 503:
|
|
60
|
-
errorInfo = '503:服务不可用';
|
|
61
|
-
break;
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
errorInfo = "\u8FDE\u63A5\u9519\u8BEF";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
status: status,
|
|
69
|
-
msg: errorInfo
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}
|
package/lib/Box/style/index.js
DELETED