linkmore-design 1.0.89 → 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/index.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/index.d.ts +2 -9
- 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/TabPane.d.ts +5 -0
- package/dist/Tabs/hooks/useAnimateConfig.d.ts +3 -0
- package/dist/Tabs/hooks/useLegacyItems.d.ts +4 -0
- package/dist/Tabs/index.d.ts +21 -10
- package/dist/Tabs/index.old.d.ts +12 -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/{es/InputRange/style/index.css → dist/base.css} +0 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.umd.js +32852 -30078
- package/dist/index.umd.min.js +21 -21
- 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/{lib/InputRange/style/index.css → es/Input/style/variables.css} +262 -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/EditTable.js +10 -3
- 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/index.d.ts +1 -0
- package/es/Modal/index.js +8 -3
- 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/index.d.ts +2 -9
- 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/TabPane.d.ts +5 -0
- package/es/Tabs/TabPane.js +9 -0
- package/es/Tabs/hooks/useAnimateConfig.d.ts +3 -0
- package/es/Tabs/hooks/useAnimateConfig.js +38 -0
- package/es/Tabs/hooks/useLegacyItems.d.ts +4 -0
- package/es/Tabs/hooks/useLegacyItems.js +50 -0
- package/es/Tabs/index.d.ts +21 -10
- package/es/Tabs/index.js +73 -19
- package/es/Tabs/index.old.d.ts +12 -0
- package/es/Tabs/index.old.js +38 -0
- package/es/Tabs/style/index.css +40 -0
- 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/index.d.ts +0 -2
- package/es/index.js +0 -1
- 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/EditTable.js +10 -3
- 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/index.d.ts +1 -0
- package/lib/Modal/index.js +9 -3
- 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/index.d.ts +2 -9
- 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/TabPane.d.ts +5 -0
- package/lib/Tabs/TabPane.js +17 -0
- package/lib/Tabs/hooks/useAnimateConfig.d.ts +3 -0
- package/lib/Tabs/hooks/useAnimateConfig.js +50 -0
- package/lib/Tabs/hooks/useLegacyItems.d.ts +4 -0
- package/lib/Tabs/hooks/useLegacyItems.js +63 -0
- package/lib/Tabs/index.d.ts +21 -10
- package/lib/Tabs/index.js +84 -19
- package/lib/Tabs/index.old.d.ts +12 -0
- package/lib/Tabs/index.old.js +52 -0
- package/lib/Tabs/style/index.css +40 -0
- 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/index.d.ts +0 -2
- package/lib/index.js +0 -8
- 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 +7 -3
- package/dist/InputRange/demos/basic.d.ts +0 -2
- package/dist/InputRange/index.d.ts +0 -8
- package/dist/InputRange/style/index.d.ts +0 -1
- 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/InputRange/index.d.ts +0 -8
- package/es/InputRange/index.js +0 -67
- package/es/InputRange/style/index.d.ts +0 -1
- package/es/InputRange/style/index.js +0 -1
- 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 -162
- 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/InputRange/index.d.ts +0 -8
- package/lib/InputRange/index.js +0 -79
- package/lib/InputRange/style/index.d.ts +0 -1
- package/lib/InputRange/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 -162
- 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,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
15
|
-
|
|
16
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
17
|
-
|
|
18
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
23
|
-
|
|
24
|
-
var _hooks = require("../hooks");
|
|
25
|
-
|
|
26
|
-
var _excluded = ["value", "onChange", "onSearch"];
|
|
27
|
-
// 搜索输入框, 增加Ref关闭功能
|
|
28
|
-
var InputSearchClose = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
29
|
-
var inputRef = (0, _react.useRef)(null);
|
|
30
|
-
var value = props.value,
|
|
31
|
-
onChange = props.onChange,
|
|
32
|
-
onSearch = props.onSearch,
|
|
33
|
-
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
34
|
-
|
|
35
|
-
var _useState = (0, _react.useState)(value),
|
|
36
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
-
aliveValue = _useState2[0],
|
|
38
|
-
setAliveValue = _useState2[1];
|
|
39
|
-
|
|
40
|
-
var delayedQuery = (0, _hooks.useDelayedFn)(500); // 内容改变触发 => 延迟触发
|
|
41
|
-
|
|
42
|
-
var handleChange = function handleChange(e) {
|
|
43
|
-
e === null || e === void 0 ? void 0 : e.persist();
|
|
44
|
-
setAliveValue === null || setAliveValue === void 0 ? void 0 : setAliveValue(e.target.value);
|
|
45
|
-
delayedQuery(function () {
|
|
46
|
-
return onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value);
|
|
47
|
-
});
|
|
48
|
-
}; // 搜索触发 => 立即触发 & 解除上一次的延迟触发
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var handleSearch = function handleSearch(val) {
|
|
52
|
-
onSearch === null || onSearch === void 0 ? void 0 : onSearch(val);
|
|
53
|
-
delayedQuery.cancel();
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
(0, _react.useImperativeHandle)(ref, function () {
|
|
57
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, inputRef.current), {}, {
|
|
58
|
-
setValue: function setValue(val) {
|
|
59
|
-
return setAliveValue(val);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Input.Search, (0, _extends2.default)({
|
|
64
|
-
ref: inputRef,
|
|
65
|
-
allowClear: true,
|
|
66
|
-
size: "small",
|
|
67
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
68
|
-
value: aliveValue,
|
|
69
|
-
onSearch: handleSearch,
|
|
70
|
-
onChange: handleChange
|
|
71
|
-
}, resetProps));
|
|
72
|
-
});
|
|
73
|
-
var _default = InputSearchClose;
|
|
74
|
-
exports.default = _default;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
17
|
-
|
|
18
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
23
|
-
|
|
24
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
|
-
|
|
26
|
-
var _InputSearchClose = _interopRequireDefault(require("./InputSearchClose"));
|
|
27
|
-
|
|
28
|
-
var _EmptyFilter = _interopRequireDefault(require("./EmptyFilter"));
|
|
29
|
-
|
|
30
|
-
var _hooks = require("../hooks");
|
|
31
|
-
|
|
32
|
-
var _excluded = ["item"];
|
|
33
|
-
|
|
34
|
-
var SelectFilter = function SelectFilter(_ref) {
|
|
35
|
-
var instance = _ref.instance,
|
|
36
|
-
itemProps = _ref.item;
|
|
37
|
-
var _instance$filterValue = instance.filterValue,
|
|
38
|
-
filterValue = _instance$filterValue === void 0 ? '' : _instance$filterValue,
|
|
39
|
-
setFilterValue = instance.setFilterValue,
|
|
40
|
-
visible = instance.visible;
|
|
41
|
-
var _itemProps$data = itemProps.data,
|
|
42
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data;
|
|
43
|
-
var delayedFn = (0, _hooks.useDelayedFn)();
|
|
44
|
-
var inputRef = (0, _react.useRef)(null); // 搜索后的筛选项
|
|
45
|
-
|
|
46
|
-
var _useState = (0, _react.useState)(filters),
|
|
47
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
48
|
-
options = _useState2[0],
|
|
49
|
-
setOptions = _useState2[1]; // 是否存在搜索, 当数据大于8时存在搜索
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var isSearch = (0, _react.useMemo)(function () {
|
|
53
|
-
return filters.length > 8;
|
|
54
|
-
}, [filters.length]); // 自定义节点字段
|
|
55
|
-
|
|
56
|
-
var fieldNames = (0, _react.useMemo)(function () {
|
|
57
|
-
return (0, _objectSpread2.default)({
|
|
58
|
-
label: 'label',
|
|
59
|
-
value: 'value'
|
|
60
|
-
}, itemProps.fieldNames);
|
|
61
|
-
}, [itemProps.fieldNames]);
|
|
62
|
-
|
|
63
|
-
var handleFilter = function handleFilter() {
|
|
64
|
-
var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
65
|
-
var serachValues = filters.filter(function (v) {
|
|
66
|
-
return v[fieldNames.label].indexOf(val) > -1;
|
|
67
|
-
});
|
|
68
|
-
setOptions(serachValues);
|
|
69
|
-
}; // 单选事件
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var onChange = function onChange(e, obj) {
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue(obj[fieldNames.value], obj);
|
|
75
|
-
}; // 展开下拉时触发: 赋值 && 聚焦 && 重置显示内容
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
(0, _react.useEffect)(function () {
|
|
79
|
-
if (visible) {
|
|
80
|
-
delayedFn(function () {
|
|
81
|
-
var _inputRef$current, _inputRef$current$foc;
|
|
82
|
-
|
|
83
|
-
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : (_inputRef$current$foc = _inputRef$current.focus) === null || _inputRef$current$foc === void 0 ? void 0 : _inputRef$current$foc.call(_inputRef$current, {
|
|
84
|
-
cursor: 'all'
|
|
85
|
-
});
|
|
86
|
-
}); // 若开启了 Dropdown => destroyPopupOnHide=true 无需重置操作 反之需开启
|
|
87
|
-
// inputRef.current?.setValue?.('');
|
|
88
|
-
// handleFilter('');
|
|
89
|
-
}
|
|
90
|
-
}, [visible]);
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
92
|
-
className: "filter_dropdown"
|
|
93
|
-
}, isSearch && /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
-
className: "filter_header"
|
|
95
|
-
}, /*#__PURE__*/_react.default.createElement(_InputSearchClose.default, {
|
|
96
|
-
ref: inputRef,
|
|
97
|
-
onSearch: handleFilter,
|
|
98
|
-
onChange: handleFilter
|
|
99
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
-
className: "filter_body"
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
|
|
102
|
-
options: options,
|
|
103
|
-
className: "filter_list"
|
|
104
|
-
}, function (_ref2) {
|
|
105
|
-
var item = _ref2.item,
|
|
106
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
107
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
|
|
108
|
-
className: (0, _classnames.default)('filter_item', {
|
|
109
|
-
checked: item[fieldNames.value] === filterValue
|
|
110
|
-
}),
|
|
111
|
-
onClick: function onClick(e) {
|
|
112
|
-
return onChange(e, item);
|
|
113
|
-
}
|
|
114
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
-
className: "filter_item_content"
|
|
116
|
-
}, item[fieldNames.label]));
|
|
117
|
-
}), !options.length && /*#__PURE__*/_react.default.createElement(_EmptyFilter.default, null)));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
var _default = SelectFilter;
|
|
121
|
-
exports.default = _default;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
|
-
|
|
14
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
15
|
-
|
|
16
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _DropdownFIlter = _interopRequireDefault(require("./DropdownFIlter"));
|
|
21
|
-
|
|
22
|
-
var _utils = require("../utils");
|
|
23
|
-
|
|
24
|
-
var _excluded = ["instance", "item", "value", "onChange", "options"],
|
|
25
|
-
_excluded2 = ["getFilterValue", "setFilterValue"];
|
|
26
|
-
|
|
27
|
-
// 下拉筛选组件
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
* 筛选组件使用时只传入 instance, item
|
|
31
|
-
* 其余参数皆为单独使用时传入
|
|
32
|
-
*/
|
|
33
|
-
var FilterControl = /*#__PURE__*/_react.default.memo(function (props) {
|
|
34
|
-
var _props$instance = props.instance,
|
|
35
|
-
instance = _props$instance === void 0 ? {} : _props$instance,
|
|
36
|
-
_props$item = props.item,
|
|
37
|
-
item = _props$item === void 0 ? {} : _props$item,
|
|
38
|
-
value = props.value,
|
|
39
|
-
onChange = props.onChange,
|
|
40
|
-
options = props.options,
|
|
41
|
-
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
42
|
-
var getFilterValue = instance.getFilterValue,
|
|
43
|
-
_setFilterValue = instance.setFilterValue,
|
|
44
|
-
resetInstanceProps = (0, _objectWithoutProperties2.default)(instance, _excluded2); // 重组item值
|
|
45
|
-
|
|
46
|
-
var resetItem = (0, _react.useMemo)(function () {
|
|
47
|
-
var data = item.data;
|
|
48
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), resetProps), {}, {
|
|
49
|
-
data: data || options
|
|
50
|
-
});
|
|
51
|
-
}, [item, resetProps, options]); // 单独使用时的缓存数据(非受控模式) 默认值: [] || ''
|
|
52
|
-
|
|
53
|
-
var _useState = (0, _react.useState)(function () {
|
|
54
|
-
return (0, _utils.getValueForType)(resetItem.type);
|
|
55
|
-
}),
|
|
56
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
57
|
-
aliveValue = _useState2[0],
|
|
58
|
-
setAliveValue = _useState2[1]; // 单独使用 检查是否受控模式
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var transformFilterValue = (0, _react.useMemo)(function () {
|
|
62
|
-
return value || aliveValue;
|
|
63
|
-
}, [value, aliveValue]);
|
|
64
|
-
var filterValue = (0, _react.useMemo)(function () {
|
|
65
|
-
var val = getFilterValue === null || getFilterValue === void 0 ? void 0 : getFilterValue(resetItem);
|
|
66
|
-
|
|
67
|
-
if ((0, _utils.getIsHas)(val)) {
|
|
68
|
-
return val;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return val || transformFilterValue;
|
|
72
|
-
}, [getFilterValue, resetItem, transformFilterValue]); // 单独使用时抛出选中的值
|
|
73
|
-
|
|
74
|
-
var handleChange = function handleChange(val) {
|
|
75
|
-
setAliveValue === null || setAliveValue === void 0 ? void 0 : setAliveValue(val);
|
|
76
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
77
|
-
}; // 重组instance
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var resetInstance = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetInstanceProps), {}, {
|
|
81
|
-
filterValue: filterValue,
|
|
82
|
-
setFilterValue: function setFilterValue(val) {
|
|
83
|
-
return (_setFilterValue || handleChange)(val, resetItem);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
return /*#__PURE__*/_react.default.createElement(_DropdownFIlter.default, {
|
|
87
|
-
instance: resetInstance,
|
|
88
|
-
item: resetItem
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
var _default = FilterControl;
|
|
93
|
-
exports.default = _default;
|
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
17
|
-
|
|
18
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
19
|
-
|
|
20
|
-
require("antd/es/form/style");
|
|
21
|
-
|
|
22
|
-
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
23
|
-
|
|
24
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
25
|
-
|
|
26
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
27
|
-
|
|
28
|
-
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
29
|
-
|
|
30
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
31
|
-
|
|
32
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
33
|
-
|
|
34
|
-
var _utils = require("../utils");
|
|
35
|
-
|
|
36
|
-
var _SelectFilter = _interopRequireDefault(require("../components/SelectFilter"));
|
|
37
|
-
|
|
38
|
-
var _valueDrawer = _interopRequireDefault(require("./valueDrawer"));
|
|
39
|
-
|
|
40
|
-
var _excluded = ["item"];
|
|
41
|
-
|
|
42
|
-
// 选中的筛选项
|
|
43
|
-
var ListItemChecked = function ListItemChecked(_ref) {
|
|
44
|
-
var instance = _ref.instance,
|
|
45
|
-
itemProps = _ref.item;
|
|
46
|
-
var state = instance.state,
|
|
47
|
-
dispatch = instance.dispatch,
|
|
48
|
-
dataSource = instance.dataSource;
|
|
49
|
-
var complexDrawer = state.complexDrawer;
|
|
50
|
-
var field = itemProps.field,
|
|
51
|
-
_itemProps$value = itemProps.value,
|
|
52
|
-
valueObj = _itemProps$value === void 0 ? {} : _itemProps$value; // 单项匹配数据, 根据字段名查找, 嵌套筛选时查询父级
|
|
53
|
-
|
|
54
|
-
var getItem = (0, _react.useMemo)(function () {
|
|
55
|
-
return dataSource.find(function (v) {
|
|
56
|
-
return [field, valueObj.originField].includes(v.field);
|
|
57
|
-
});
|
|
58
|
-
}, [field, valueObj.originField, dataSource]); // 选中值的处理
|
|
59
|
-
|
|
60
|
-
var resetValue = (0, _react.useMemo)(function () {
|
|
61
|
-
return valueObj.value;
|
|
62
|
-
}, [valueObj.value]); // 选中的数据
|
|
63
|
-
|
|
64
|
-
var checkedValues = (0, _react.useMemo)(function () {
|
|
65
|
-
var checkedValue = valueObj.value;
|
|
66
|
-
|
|
67
|
-
if (Array.isArray(checkedValue)) {
|
|
68
|
-
var _getItem$data;
|
|
69
|
-
|
|
70
|
-
if (['date'].includes(getItem.type)) {
|
|
71
|
-
return [{
|
|
72
|
-
value: resetValue,
|
|
73
|
-
label: "".concat(resetValue[0], " ~ ").concat(resetValue[1])
|
|
74
|
-
}];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (getItem.type === 'nested') {
|
|
78
|
-
return checkedValue;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (getItem.type === 'cascader') {
|
|
82
|
-
return (0, _utils.getFlatItem)(getItem, checkedValue, 'parent');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return (_getItem$data = getItem.data) === null || _getItem$data === void 0 ? void 0 : _getItem$data.filter(function (v) {
|
|
86
|
-
return checkedValue.includes(v.value);
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (['input', 'date'].includes(getItem.type)) {
|
|
91
|
-
return resetValue ? [{
|
|
92
|
-
value: resetValue,
|
|
93
|
-
label: resetValue
|
|
94
|
-
}] : [];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var filterValue = getItem.data.find(function (v) {
|
|
98
|
-
return v.value === checkedValue;
|
|
99
|
-
});
|
|
100
|
-
return filterValue ? [filterValue] : [];
|
|
101
|
-
}, [getItem, valueObj.value]); // 编辑
|
|
102
|
-
|
|
103
|
-
var handleEdit = function handleEdit() {
|
|
104
|
-
dispatch({
|
|
105
|
-
type: 'changeValueDrawer',
|
|
106
|
-
valueDrawer: {
|
|
107
|
-
visible: true,
|
|
108
|
-
data: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, getItem), valueObj)
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}; // 删除
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
var handleDelete = function handleDelete(e) {
|
|
115
|
-
e.stopPropagation();
|
|
116
|
-
var filterValues = (0, _objectSpread3.default)({}, complexDrawer.data);
|
|
117
|
-
delete filterValues[field];
|
|
118
|
-
dispatch({
|
|
119
|
-
type: 'changeComplexDrawer',
|
|
120
|
-
complexDrawer: {
|
|
121
|
-
visible: true,
|
|
122
|
-
data: filterValues
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
}; // 删除Tag
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var onTagClose = function onTagClose(val) {
|
|
129
|
-
var originData = (0, _objectSpread3.default)({}, complexDrawer.data);
|
|
130
|
-
var nValue = '';
|
|
131
|
-
|
|
132
|
-
if (['select', 'checkbox'].includes(getItem.type)) {
|
|
133
|
-
nValue = originData[field].value.filter(function (v) {
|
|
134
|
-
return !v.includes(val);
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (['input'].includes(getItem.type)) {
|
|
139
|
-
nValue = '';
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (['cascader'].includes(getItem.type)) {
|
|
143
|
-
nValue = [];
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
var filterValues = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, originData), {}, (0, _defineProperty2.default)({}, field, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, originData[field]), {}, {
|
|
147
|
-
value: nValue
|
|
148
|
-
})));
|
|
149
|
-
dispatch({
|
|
150
|
-
type: 'changeComplexDrawer',
|
|
151
|
-
complexDrawer: {
|
|
152
|
-
visible: true,
|
|
153
|
-
data: filterValues
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
}; // Tags显示
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
var tagElem = function tagElem() {
|
|
160
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Tag, {
|
|
161
|
-
className: "add_tags"
|
|
162
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
163
|
-
type: "lmweb-plus"
|
|
164
|
-
}), " \u65B0\u589E"), checkedValues === null || checkedValues === void 0 ? void 0 : checkedValues.map(function (v) {
|
|
165
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Tag, {
|
|
166
|
-
key: v.value,
|
|
167
|
-
closable: true,
|
|
168
|
-
onClose: function onClose() {
|
|
169
|
-
return onTagClose(v.value);
|
|
170
|
-
}
|
|
171
|
-
}, v.label);
|
|
172
|
-
}));
|
|
173
|
-
}; // 模式
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
var modeLabel = (0, _react.useMemo)(function () {
|
|
177
|
-
return valueObj.mode === 'and' ? '且' : '或';
|
|
178
|
-
}, [valueObj.mode]);
|
|
179
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
180
|
-
className: "item_box",
|
|
181
|
-
onClick: handleEdit
|
|
182
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
183
|
-
className: "item_header"
|
|
184
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
185
|
-
className: "item_header_title"
|
|
186
|
-
}, "".concat(getItem.title, "\uFF08").concat(modeLabel, "\uFF09")), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
187
|
-
type: "lmweb-close1",
|
|
188
|
-
onClick: handleDelete,
|
|
189
|
-
className: "item_header_icon"
|
|
190
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
191
|
-
className: "item_tags"
|
|
192
|
-
}, tagElem())));
|
|
193
|
-
}; // 新增筛选项按钮
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var DropdownBtn = function DropdownBtn(_ref2) {
|
|
197
|
-
var instance = _ref2.instance;
|
|
198
|
-
var dispatch = instance.dispatch,
|
|
199
|
-
dataSource = instance.dataSource;
|
|
200
|
-
|
|
201
|
-
var _useState = (0, _react.useState)(false),
|
|
202
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
203
|
-
visible = _useState2[0],
|
|
204
|
-
setVisible = _useState2[1];
|
|
205
|
-
|
|
206
|
-
var selectInstance = {
|
|
207
|
-
filterValue: '',
|
|
208
|
-
setFilterValue: function setFilterValue(_, valObj) {
|
|
209
|
-
setVisible(false);
|
|
210
|
-
dispatch({
|
|
211
|
-
type: 'changeValueDrawer',
|
|
212
|
-
valueDrawer: {
|
|
213
|
-
visible: true,
|
|
214
|
-
type: 'custom',
|
|
215
|
-
data: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, valObj), {}, {
|
|
216
|
-
value: []
|
|
217
|
-
})
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
var itemProps = {
|
|
223
|
-
data: dataSource,
|
|
224
|
-
fieldNames: {
|
|
225
|
-
label: 'title',
|
|
226
|
-
value: 'field'
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Dropdown, {
|
|
230
|
-
trigger: ['click'],
|
|
231
|
-
placement: "bottomLeft",
|
|
232
|
-
visible: visible,
|
|
233
|
-
onVisibleChange: function onVisibleChange(v) {
|
|
234
|
-
return setVisible(v);
|
|
235
|
-
},
|
|
236
|
-
overlay: /*#__PURE__*/_react.default.createElement(_SelectFilter.default, {
|
|
237
|
-
instance: selectInstance,
|
|
238
|
-
item: itemProps
|
|
239
|
-
}),
|
|
240
|
-
overlayClassName: "filter_dropdown_container_btn"
|
|
241
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
242
|
-
block: true,
|
|
243
|
-
type: "dashed",
|
|
244
|
-
icon: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
245
|
-
type: "lmweb-plus"
|
|
246
|
-
}),
|
|
247
|
-
size: "middle"
|
|
248
|
-
}, "\u65B0\u589E\u7B5B\u9009\u9879"));
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
var Index = function Index(_ref3) {
|
|
252
|
-
var instance = _ref3.instance;
|
|
253
|
-
var state = instance.state,
|
|
254
|
-
dispatch = instance.dispatch;
|
|
255
|
-
var customDrawer = state.customDrawer;
|
|
256
|
-
|
|
257
|
-
var _Form$useForm = _form.default.useForm(),
|
|
258
|
-
_Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
|
|
259
|
-
form = _Form$useForm2[0]; // 过滤的内容转数组
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
var filterItemData = (0, _react.useMemo)(function () {
|
|
263
|
-
return (0, _utils.getIsHas)(customDrawer.data) ? Object.entries(customDrawer.data).map(function (v) {
|
|
264
|
-
return {
|
|
265
|
-
field: v[0],
|
|
266
|
-
value: v[1]
|
|
267
|
-
};
|
|
268
|
-
}) : [];
|
|
269
|
-
}, [customDrawer.data]); // 关闭抽屉
|
|
270
|
-
|
|
271
|
-
var onClose = function onClose() {
|
|
272
|
-
dispatch({
|
|
273
|
-
type: 'changeCustomDrawer',
|
|
274
|
-
customDrawer: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, customDrawer), {}, {
|
|
275
|
-
visible: false
|
|
276
|
-
})
|
|
277
|
-
});
|
|
278
|
-
}; // 保存数据
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
var onSave = /*#__PURE__*/function () {
|
|
282
|
-
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
283
|
-
var val, nValue;
|
|
284
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
285
|
-
while (1) {
|
|
286
|
-
switch (_context.prev = _context.next) {
|
|
287
|
-
case 0:
|
|
288
|
-
_context.prev = 0;
|
|
289
|
-
_context.next = 3;
|
|
290
|
-
return form.validateFields();
|
|
291
|
-
|
|
292
|
-
case 3:
|
|
293
|
-
val = _context.sent;
|
|
294
|
-
nValue = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, customDrawer), val);
|
|
295
|
-
|
|
296
|
-
if (!nValue.value) {
|
|
297
|
-
Object.assign(nValue, {
|
|
298
|
-
value: "diy".concat(Date.now())
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
dispatch({
|
|
303
|
-
type: 'changeSaveModal',
|
|
304
|
-
saveModal: {
|
|
305
|
-
visible: true,
|
|
306
|
-
data: nValue
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
_context.next = 11;
|
|
310
|
-
break;
|
|
311
|
-
|
|
312
|
-
case 9:
|
|
313
|
-
_context.prev = 9;
|
|
314
|
-
_context.t0 = _context["catch"](0);
|
|
315
|
-
|
|
316
|
-
case 11:
|
|
317
|
-
case "end":
|
|
318
|
-
return _context.stop();
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}, _callee, null, [[0, 9]]);
|
|
322
|
-
}));
|
|
323
|
-
|
|
324
|
-
return function onSave() {
|
|
325
|
-
return _ref4.apply(this, arguments);
|
|
326
|
-
};
|
|
327
|
-
}(); // 弹窗配置项
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
var config = {
|
|
331
|
-
title: customDrawer.type === 'edit' ? "\u7F16\u8F91".concat(customDrawer.label) : '创建自定义查询',
|
|
332
|
-
visible: customDrawer.visible,
|
|
333
|
-
onClose: onClose,
|
|
334
|
-
width: 440,
|
|
335
|
-
placement: 'right',
|
|
336
|
-
destroyOnClose: true,
|
|
337
|
-
className: 'lm_filter_drawer',
|
|
338
|
-
extra: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Space, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
339
|
-
onClick: onClose,
|
|
340
|
-
size: "small"
|
|
341
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
342
|
-
type: "primary",
|
|
343
|
-
onClick: onSave,
|
|
344
|
-
size: "small"
|
|
345
|
-
}, "\u786E\u5B9A"))
|
|
346
|
-
};
|
|
347
|
-
(0, _react.useEffect)(function () {
|
|
348
|
-
if (customDrawer.visible) {
|
|
349
|
-
form.resetFields();
|
|
350
|
-
}
|
|
351
|
-
}, [customDrawer.visible, form]);
|
|
352
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Drawer, config, /*#__PURE__*/_react.default.createElement("div", {
|
|
353
|
-
className: "custom_filter_body"
|
|
354
|
-
}, /*#__PURE__*/_react.default.createElement(_form.default, {
|
|
355
|
-
form: form,
|
|
356
|
-
initialValues: {
|
|
357
|
-
label: customDrawer.label,
|
|
358
|
-
default: !!customDrawer.default
|
|
359
|
-
},
|
|
360
|
-
layout: "vertical",
|
|
361
|
-
size: "default"
|
|
362
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
363
|
-
className: "filter_drawer_group"
|
|
364
|
-
}, /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
365
|
-
name: "label",
|
|
366
|
-
label: "\u540D\u79F0",
|
|
367
|
-
rules: [{
|
|
368
|
-
required: true,
|
|
369
|
-
message: '请输入名称'
|
|
370
|
-
}]
|
|
371
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Input, {
|
|
372
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
373
|
-
size: "middle"
|
|
374
|
-
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
375
|
-
className: "filter_drawer_group"
|
|
376
|
-
}, /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
377
|
-
name: "default",
|
|
378
|
-
label: "\u8BBE\u4E3A\u9ED8\u8BA4"
|
|
379
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio.Group, {
|
|
380
|
-
size: "small"
|
|
381
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio, {
|
|
382
|
-
value: true
|
|
383
|
-
}, "\u662F"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio, {
|
|
384
|
-
value: false
|
|
385
|
-
}, "\u5426"))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
386
|
-
className: "filter_drawer_group"
|
|
387
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
388
|
-
className: "filter_drawer_group_add"
|
|
389
|
-
}, /*#__PURE__*/_react.default.createElement(DropdownBtn, {
|
|
390
|
-
instance: instance
|
|
391
|
-
})), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
|
|
392
|
-
options: filterItemData,
|
|
393
|
-
className: "filter_drawer_group_list"
|
|
394
|
-
}, function (_ref5) {
|
|
395
|
-
var item = _ref5.item,
|
|
396
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref5, _excluded);
|
|
397
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
|
|
398
|
-
className: "filter_drawer_group_item"
|
|
399
|
-
}), /*#__PURE__*/_react.default.createElement(ListItemChecked, {
|
|
400
|
-
instance: instance,
|
|
401
|
-
item: item
|
|
402
|
-
}));
|
|
403
|
-
}))), /*#__PURE__*/_react.default.createElement(_valueDrawer.default, {
|
|
404
|
-
instance: instance
|
|
405
|
-
})));
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
var _default = Index;
|
|
409
|
-
exports.default = _default;
|