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,644 +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.initLocalization = exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
13
|
-
|
|
14
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
15
|
-
|
|
16
|
-
var _objectSpread4 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _utils = require("../utils");
|
|
21
|
-
|
|
22
|
-
// 初始化查询结构
|
|
23
|
-
var initLocalization = function initLocalization(props) {
|
|
24
|
-
var _globalQuery$filters, _globalQuery$filters$, _fuzzyQuery$filters, _fuzzyQuery$filters$, _filterQuery$filters, _filterQuery$filters$;
|
|
25
|
-
|
|
26
|
-
var localization = props.localization,
|
|
27
|
-
dataSource = props.dataSource,
|
|
28
|
-
searchKey = props.searchKey,
|
|
29
|
-
searchConfig = props.searchConfig,
|
|
30
|
-
customOptions = props.customOptions;
|
|
31
|
-
var globalQuery = localization.globalQuery,
|
|
32
|
-
filterQuery = localization.filterQuery,
|
|
33
|
-
fuzzyQuery = localization.fuzzyQuery;
|
|
34
|
-
var basicFilter = (localization === null || localization === void 0 ? void 0 : localization.basicFilter) || {};
|
|
35
|
-
var basicQuery = {}; // 存储查询结构
|
|
36
|
-
|
|
37
|
-
var isFuzzy = Array.isArray(searchKey); // 数组时为模糊搜索结构
|
|
38
|
-
|
|
39
|
-
var searchFilter = (localization === null || localization === void 0 ? void 0 : localization.fuzzyFilter) || {};
|
|
40
|
-
var searchQuery = {}; // 模糊查询结构
|
|
41
|
-
|
|
42
|
-
var customFilter = (customOptions === null || customOptions === void 0 ? void 0 : customOptions.find(function (v) {
|
|
43
|
-
var _localization$customF;
|
|
44
|
-
|
|
45
|
-
return (v === null || v === void 0 ? void 0 : v.value) === (localization === null || localization === void 0 ? void 0 : (_localization$customF = localization.customFilter) === null || _localization$customF === void 0 ? void 0 : _localization$customF.value);
|
|
46
|
-
})) || {};
|
|
47
|
-
var customQuery = {}; // 自定义筛选存储结构
|
|
48
|
-
// 一级查询
|
|
49
|
-
|
|
50
|
-
if (globalQuery === null || globalQuery === void 0 ? void 0 : (_globalQuery$filters = globalQuery.filters) === null || _globalQuery$filters === void 0 ? void 0 : (_globalQuery$filters$ = _globalQuery$filters[0]) === null || _globalQuery$filters$ === void 0 ? void 0 : _globalQuery$filters$.conditions) {
|
|
51
|
-
var _globalQuery$filters2, _globalQuery$filters3;
|
|
52
|
-
|
|
53
|
-
var globalQueryArr = (globalQuery === null || globalQuery === void 0 ? void 0 : (_globalQuery$filters2 = globalQuery.filters) === null || _globalQuery$filters2 === void 0 ? void 0 : (_globalQuery$filters3 = _globalQuery$filters2[0]) === null || _globalQuery$filters3 === void 0 ? void 0 : _globalQuery$filters3.conditions) || [];
|
|
54
|
-
customQuery = globalQueryArr.reduce(function (pre, cur) {
|
|
55
|
-
var checkedValue = cur.value; // 选中的数据
|
|
56
|
-
// 查找该数据是否展示
|
|
57
|
-
|
|
58
|
-
if ((0, _utils.getIsHas)(checkedValue)) {
|
|
59
|
-
pre[cur.fieldName] = cur;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return pre;
|
|
63
|
-
}, {});
|
|
64
|
-
} // 模糊查询
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if ((0, _utils.getIsHas)(searchFilter)) {
|
|
68
|
-
var _Object$keys;
|
|
69
|
-
|
|
70
|
-
searchQuery = (_Object$keys = Object.keys(searchFilter)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.reduce(function (pre, cur) {
|
|
71
|
-
if ((0, _utils.getIsHas)(searchFilter[cur])) {
|
|
72
|
-
pre[cur] = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, searchConfig), {}, {
|
|
73
|
-
fieldName: cur,
|
|
74
|
-
value: [searchFilter[cur]]
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return pre;
|
|
79
|
-
}, {});
|
|
80
|
-
} else if (fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : (_fuzzyQuery$filters = fuzzyQuery.filters) === null || _fuzzyQuery$filters === void 0 ? void 0 : (_fuzzyQuery$filters$ = _fuzzyQuery$filters[0]) === null || _fuzzyQuery$filters$ === void 0 ? void 0 : _fuzzyQuery$filters$.conditions) {
|
|
81
|
-
var _fuzzyQuery$filters2, _fuzzyQuery$filters2$;
|
|
82
|
-
|
|
83
|
-
var fuzzyQueryArr = (fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : (_fuzzyQuery$filters2 = fuzzyQuery.filters) === null || _fuzzyQuery$filters2 === void 0 ? void 0 : (_fuzzyQuery$filters2$ = _fuzzyQuery$filters2[0]) === null || _fuzzyQuery$filters2$ === void 0 ? void 0 : _fuzzyQuery$filters2$.conditions) || []; // 初始化基础查询缓存
|
|
84
|
-
|
|
85
|
-
searchFilter = fuzzyQueryArr.reduce(function (pre, cur) {
|
|
86
|
-
var checkedValue = cur.value; // 选中的数据
|
|
87
|
-
|
|
88
|
-
if ((0, _utils.getIsHas)(checkedValue)) {
|
|
89
|
-
searchQuery[cur.fieldName] = cur;
|
|
90
|
-
pre[cur.fieldName] = checkedValue[0];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return pre;
|
|
94
|
-
}, {});
|
|
95
|
-
} // 二级查询
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if ((0, _utils.getIsHas)(basicFilter)) {
|
|
99
|
-
var _Object$keys2;
|
|
100
|
-
|
|
101
|
-
basicQuery = (_Object$keys2 = Object.keys(basicFilter)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.reduce(function (pre, cur) {
|
|
102
|
-
var item = dataSource.find(function (v) {
|
|
103
|
-
if (cur === v.field) {
|
|
104
|
-
return v.show || typeof v.show !== 'boolean';
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return false;
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
if (!isFuzzy && cur === searchKey) {
|
|
111
|
-
item = {
|
|
112
|
-
field: searchKey,
|
|
113
|
-
operator: 'contains',
|
|
114
|
-
fieldType: 'string'
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if ((0, _utils.getIsHas)(basicFilter[cur]) && !!item) {
|
|
119
|
-
var _item, _item2;
|
|
120
|
-
|
|
121
|
-
pre[cur] = {
|
|
122
|
-
fieldName: cur,
|
|
123
|
-
fieldType: ((_item = item) === null || _item === void 0 ? void 0 : _item.valueType) || 'string',
|
|
124
|
-
value: Array.isArray(basicFilter[cur]) ? basicFilter[cur] : [basicFilter[cur]],
|
|
125
|
-
operator: ((_item2 = item) === null || _item2 === void 0 ? void 0 : _item2.operator) || 'equal'
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return pre;
|
|
130
|
-
}, {});
|
|
131
|
-
} else if (filterQuery === null || filterQuery === void 0 ? void 0 : (_filterQuery$filters = filterQuery.filters) === null || _filterQuery$filters === void 0 ? void 0 : (_filterQuery$filters$ = _filterQuery$filters[0]) === null || _filterQuery$filters$ === void 0 ? void 0 : _filterQuery$filters$.conditions) {
|
|
132
|
-
var _filterQuery$filters2, _filterQuery$filters3;
|
|
133
|
-
|
|
134
|
-
var filterQueryArr = (filterQuery === null || filterQuery === void 0 ? void 0 : (_filterQuery$filters2 = filterQuery.filters) === null || _filterQuery$filters2 === void 0 ? void 0 : (_filterQuery$filters3 = _filterQuery$filters2[0]) === null || _filterQuery$filters3 === void 0 ? void 0 : _filterQuery$filters3.conditions) || []; // 初始化基础查询缓存
|
|
135
|
-
|
|
136
|
-
basicFilter = filterQueryArr.reduce(function (pre, cur) {
|
|
137
|
-
var checkedValue = cur.value; // 选中的数据
|
|
138
|
-
// 是否搜索框
|
|
139
|
-
|
|
140
|
-
var isSearchInput = cur.fieldName === searchKey; // 查找该数据是否展示
|
|
141
|
-
|
|
142
|
-
var someData = dataSource.some(function (v) {
|
|
143
|
-
if (cur.fieldName === v.field) {
|
|
144
|
-
return v.show || typeof v.show !== 'boolean';
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return false;
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
if ((0, _utils.getIsHas)(checkedValue) && someData || isSearchInput) {
|
|
151
|
-
basicQuery[cur.fieldName] = cur; // 复选/级联/日期区间
|
|
152
|
-
|
|
153
|
-
if (!['checkbox', 'cascader'].includes(cur.type) && checkedValue.length < 2) {
|
|
154
|
-
checkedValue = checkedValue[0];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
pre[cur.fieldName] = checkedValue;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return pre;
|
|
161
|
-
}, {});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
return {
|
|
165
|
-
searchFilter: searchFilter,
|
|
166
|
-
searchQuery: searchQuery,
|
|
167
|
-
basicFilter: basicFilter,
|
|
168
|
-
basicQuery: basicQuery,
|
|
169
|
-
customFilter: customFilter,
|
|
170
|
-
customQuery: customQuery
|
|
171
|
-
};
|
|
172
|
-
}; // 核心参数集合
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
exports.initLocalization = initLocalization;
|
|
176
|
-
|
|
177
|
-
var useCoreOptions = function useCoreOptions(_ref) {
|
|
178
|
-
var state = _ref.state,
|
|
179
|
-
dispatch = _ref.dispatch,
|
|
180
|
-
props = _ref.props;
|
|
181
|
-
var onChange = props.onChange,
|
|
182
|
-
dataSource = props.dataSource,
|
|
183
|
-
searchKey = props.searchKey,
|
|
184
|
-
searchConfig = props.searchConfig,
|
|
185
|
-
customOptions = props.customOptions; // 转换一级查询结构 object => array
|
|
186
|
-
|
|
187
|
-
var tranformGlobalQuery = (0, _react.useCallback)(function (obj) {
|
|
188
|
-
var _Object$keys3;
|
|
189
|
-
|
|
190
|
-
var nArr = ((_Object$keys3 = Object.keys(obj)) === null || _Object$keys3 === void 0 ? void 0 : _Object$keys3.reduce(function (pre, cur) {
|
|
191
|
-
var item = dataSource.find(function (v) {
|
|
192
|
-
return cur === v.field;
|
|
193
|
-
});
|
|
194
|
-
var itemValue = obj[cur].value;
|
|
195
|
-
|
|
196
|
-
if ((0, _utils.getIsHas)(itemValue) && !!item) {
|
|
197
|
-
return [].concat((0, _toConsumableArray2.default)(pre), [{
|
|
198
|
-
fieldName: cur,
|
|
199
|
-
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
200
|
-
type: item.type,
|
|
201
|
-
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
202
|
-
operator: obj[cur].mode === 'and' ? 'equal' : 'contains'
|
|
203
|
-
}]);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return pre;
|
|
207
|
-
}, [])) || [];
|
|
208
|
-
return nArr;
|
|
209
|
-
}, [dataSource]); // 转行查询结构
|
|
210
|
-
|
|
211
|
-
var tranformQuery = (0, _react.useCallback)(function (_ref2) {
|
|
212
|
-
var _Object$keys4, _Object$keys5;
|
|
213
|
-
|
|
214
|
-
var _ref2$customFilter = _ref2.customFilter,
|
|
215
|
-
customFilter = _ref2$customFilter === void 0 ? {} : _ref2$customFilter,
|
|
216
|
-
_ref2$searchQuery = _ref2.searchQuery,
|
|
217
|
-
searchQuery = _ref2$searchQuery === void 0 ? {} : _ref2$searchQuery,
|
|
218
|
-
_ref2$basicQuery = _ref2.basicQuery,
|
|
219
|
-
basicQuery = _ref2$basicQuery === void 0 ? {} : _ref2$basicQuery;
|
|
220
|
-
var globalQuery = {
|
|
221
|
-
filters: [{
|
|
222
|
-
conditions: tranformGlobalQuery(customFilter === null || customFilter === void 0 ? void 0 : customFilter.data)
|
|
223
|
-
}]
|
|
224
|
-
};
|
|
225
|
-
var fuzzyQuery = {
|
|
226
|
-
filters: [{
|
|
227
|
-
conditions: (_Object$keys4 = Object.keys(searchQuery)) === null || _Object$keys4 === void 0 ? void 0 : _Object$keys4.map(function (k) {
|
|
228
|
-
return searchQuery[k];
|
|
229
|
-
})
|
|
230
|
-
}]
|
|
231
|
-
};
|
|
232
|
-
var filterQuery = {
|
|
233
|
-
filters: [{
|
|
234
|
-
conditions: (_Object$keys5 = Object.keys(basicQuery)) === null || _Object$keys5 === void 0 ? void 0 : _Object$keys5.map(function (k) {
|
|
235
|
-
return basicQuery[k];
|
|
236
|
-
})
|
|
237
|
-
}]
|
|
238
|
-
};
|
|
239
|
-
return {
|
|
240
|
-
globalQuery: globalQuery,
|
|
241
|
-
fuzzyQuery: fuzzyQuery,
|
|
242
|
-
filterQuery: filterQuery
|
|
243
|
-
};
|
|
244
|
-
}, [tranformGlobalQuery]); // 触发查询 type basic基础筛选 | complex高级筛选
|
|
245
|
-
|
|
246
|
-
var onQuery = (0, _react.useCallback)(function () {
|
|
247
|
-
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
248
|
-
_ref3$complexFilter = _ref3.complexFilter,
|
|
249
|
-
complexFilter = _ref3$complexFilter === void 0 ? {} : _ref3$complexFilter,
|
|
250
|
-
_ref3$type = _ref3.type,
|
|
251
|
-
type = _ref3$type === void 0 ? 'basic' : _ref3$type,
|
|
252
|
-
_ref3$basicFilter = _ref3.basicFilter,
|
|
253
|
-
basicFilter = _ref3$basicFilter === void 0 ? state.basicFilter || {} : _ref3$basicFilter,
|
|
254
|
-
_ref3$basicQuery = _ref3.basicQuery,
|
|
255
|
-
basicQuery = _ref3$basicQuery === void 0 ? state.basicQuery || {} : _ref3$basicQuery,
|
|
256
|
-
_ref3$searchFilter = _ref3.searchFilter,
|
|
257
|
-
searchFilter = _ref3$searchFilter === void 0 ? state.searchFilter || {} : _ref3$searchFilter,
|
|
258
|
-
_ref3$searchQuery = _ref3.searchQuery,
|
|
259
|
-
searchQuery = _ref3$searchQuery === void 0 ? state.searchQuery || {} : _ref3$searchQuery,
|
|
260
|
-
_ref3$customFilter = _ref3.customFilter,
|
|
261
|
-
customFilter = _ref3$customFilter === void 0 ? state.customFilter || {} : _ref3$customFilter;
|
|
262
|
-
|
|
263
|
-
if (type === 'custom') {
|
|
264
|
-
dispatch({
|
|
265
|
-
type: 'changeCustomFilter',
|
|
266
|
-
customFilter: customFilter
|
|
267
|
-
});
|
|
268
|
-
|
|
269
|
-
var _tranformQuery = tranformQuery({
|
|
270
|
-
customFilter: customFilter,
|
|
271
|
-
searchQuery: searchQuery,
|
|
272
|
-
basicQuery: basicQuery
|
|
273
|
-
}),
|
|
274
|
-
globalQuery = _tranformQuery.globalQuery,
|
|
275
|
-
fuzzyQuery = _tranformQuery.fuzzyQuery,
|
|
276
|
-
filterQuery = _tranformQuery.filterQuery;
|
|
277
|
-
|
|
278
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
279
|
-
fuzzyFilter: searchFilter,
|
|
280
|
-
fuzzyQuery: fuzzyQuery,
|
|
281
|
-
basicFilter: basicFilter,
|
|
282
|
-
globalQuery: globalQuery,
|
|
283
|
-
filterQuery: filterQuery,
|
|
284
|
-
type: 'custom'
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (type === 'search') {
|
|
289
|
-
dispatch({
|
|
290
|
-
type: 'changeSearchFilter',
|
|
291
|
-
searchFilter: searchFilter
|
|
292
|
-
});
|
|
293
|
-
dispatch({
|
|
294
|
-
type: 'changeSearchQuery',
|
|
295
|
-
searchQuery: searchQuery
|
|
296
|
-
});
|
|
297
|
-
dispatch({
|
|
298
|
-
type: 'changeComplexFilter',
|
|
299
|
-
complexFilter: {}
|
|
300
|
-
}); // 基础筛选清空高级筛选
|
|
301
|
-
// 抛出给外部查询
|
|
302
|
-
|
|
303
|
-
var _tranformQuery2 = tranformQuery({
|
|
304
|
-
customFilter: customFilter,
|
|
305
|
-
searchQuery: searchQuery,
|
|
306
|
-
basicQuery: basicQuery
|
|
307
|
-
}),
|
|
308
|
-
_globalQuery = _tranformQuery2.globalQuery,
|
|
309
|
-
_fuzzyQuery = _tranformQuery2.fuzzyQuery,
|
|
310
|
-
_filterQuery = _tranformQuery2.filterQuery;
|
|
311
|
-
|
|
312
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
313
|
-
fuzzyFilter: searchFilter,
|
|
314
|
-
basicFilter: basicFilter,
|
|
315
|
-
fuzzyQuery: _fuzzyQuery,
|
|
316
|
-
globalQuery: _globalQuery,
|
|
317
|
-
filterQuery: _filterQuery,
|
|
318
|
-
type: 'search'
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
if (type === 'basic') {
|
|
323
|
-
dispatch({
|
|
324
|
-
type: 'changeBasicFilter',
|
|
325
|
-
basicFilter: basicFilter
|
|
326
|
-
});
|
|
327
|
-
dispatch({
|
|
328
|
-
type: 'changeBasicQuery',
|
|
329
|
-
basicQuery: basicQuery
|
|
330
|
-
});
|
|
331
|
-
dispatch({
|
|
332
|
-
type: 'changeComplexFilter',
|
|
333
|
-
complexFilter: {}
|
|
334
|
-
}); // 基础筛选清空高级筛选
|
|
335
|
-
// 抛出给外部查询
|
|
336
|
-
|
|
337
|
-
var _tranformQuery3 = tranformQuery({
|
|
338
|
-
customFilter: customFilter,
|
|
339
|
-
searchQuery: searchQuery,
|
|
340
|
-
basicQuery: basicQuery
|
|
341
|
-
}),
|
|
342
|
-
_globalQuery2 = _tranformQuery3.globalQuery,
|
|
343
|
-
_fuzzyQuery2 = _tranformQuery3.fuzzyQuery,
|
|
344
|
-
_filterQuery2 = _tranformQuery3.filterQuery;
|
|
345
|
-
|
|
346
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
347
|
-
fuzzyFilter: searchFilter,
|
|
348
|
-
basicFilter: basicFilter,
|
|
349
|
-
fuzzyQuery: _fuzzyQuery2,
|
|
350
|
-
globalQuery: _globalQuery2,
|
|
351
|
-
filterQuery: _filterQuery2,
|
|
352
|
-
type: 'basic'
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
if (type === 'complex') {
|
|
357
|
-
var _Object$keys6;
|
|
358
|
-
|
|
359
|
-
// eslint-disable-next-line no-shadow
|
|
360
|
-
var _basicQuery = (_Object$keys6 = Object.keys(complexFilter)) === null || _Object$keys6 === void 0 ? void 0 : _Object$keys6.reduce(function (pre, cur) {
|
|
361
|
-
var item = dataSource.find(function (v) {
|
|
362
|
-
return cur === v.field;
|
|
363
|
-
});
|
|
364
|
-
var itemValue = complexFilter[cur].value;
|
|
365
|
-
|
|
366
|
-
if ((0, _utils.getIsHas)(itemValue) && !!item) {
|
|
367
|
-
// eslint-disable-next-line no-param-reassign
|
|
368
|
-
pre[cur] = {
|
|
369
|
-
fieldName: cur,
|
|
370
|
-
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
371
|
-
type: item.type,
|
|
372
|
-
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
373
|
-
operator: complexFilter[cur].mode === 'and' ? 'equal' : 'contains'
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
return pre;
|
|
378
|
-
}, {});
|
|
379
|
-
|
|
380
|
-
dispatch({
|
|
381
|
-
type: 'changeSearchFilter',
|
|
382
|
-
searchFilter: {}
|
|
383
|
-
});
|
|
384
|
-
dispatch({
|
|
385
|
-
type: 'changeSearchQuery',
|
|
386
|
-
searchQuery: {}
|
|
387
|
-
});
|
|
388
|
-
dispatch({
|
|
389
|
-
type: 'changeBasicFilter',
|
|
390
|
-
basicFilter: {}
|
|
391
|
-
});
|
|
392
|
-
dispatch({
|
|
393
|
-
type: 'changeComplexFilter',
|
|
394
|
-
complexFilter: complexFilter
|
|
395
|
-
});
|
|
396
|
-
dispatch({
|
|
397
|
-
type: 'changeComplexDrawer',
|
|
398
|
-
complexDrawer: {
|
|
399
|
-
data: {},
|
|
400
|
-
visible: false
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
dispatch({
|
|
404
|
-
type: 'changeBasicQuery',
|
|
405
|
-
basicQuery: _basicQuery
|
|
406
|
-
});
|
|
407
|
-
|
|
408
|
-
var _tranformQuery4 = tranformQuery({
|
|
409
|
-
customFilter: customFilter,
|
|
410
|
-
basicQuery: _basicQuery
|
|
411
|
-
}),
|
|
412
|
-
_globalQuery3 = _tranformQuery4.globalQuery,
|
|
413
|
-
_filterQuery3 = _tranformQuery4.filterQuery;
|
|
414
|
-
|
|
415
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
416
|
-
complexFilter: complexFilter,
|
|
417
|
-
globalQuery: _globalQuery3,
|
|
418
|
-
filterQuery: _filterQuery3,
|
|
419
|
-
type: type
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
if (type === 'clear') {
|
|
424
|
-
dispatch({
|
|
425
|
-
type: 'reset'
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
var _tranformQuery5 = tranformQuery({
|
|
429
|
-
customFilter: customFilter,
|
|
430
|
-
searchQuery: searchQuery,
|
|
431
|
-
basicQuery: basicQuery
|
|
432
|
-
}),
|
|
433
|
-
_globalQuery4 = _tranformQuery5.globalQuery,
|
|
434
|
-
_fuzzyQuery3 = _tranformQuery5.fuzzyQuery,
|
|
435
|
-
_filterQuery4 = _tranformQuery5.filterQuery;
|
|
436
|
-
|
|
437
|
-
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
438
|
-
fuzzyFilter: searchFilter,
|
|
439
|
-
basicFilter: basicFilter,
|
|
440
|
-
fuzzyQuery: _fuzzyQuery3,
|
|
441
|
-
globalQuery: _globalQuery4,
|
|
442
|
-
filterQuery: _filterQuery4,
|
|
443
|
-
type: 'clear'
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
}, [tranformQuery, state]); // 清除事件
|
|
447
|
-
|
|
448
|
-
var onClearChange = (0, _react.useCallback)(function () {
|
|
449
|
-
var _props$onClearChange;
|
|
450
|
-
|
|
451
|
-
var params = {
|
|
452
|
-
searchFilter: {},
|
|
453
|
-
searchQuery: {},
|
|
454
|
-
basicFilter: {},
|
|
455
|
-
complexFilter: {},
|
|
456
|
-
basicQuery: {},
|
|
457
|
-
type: 'clear'
|
|
458
|
-
};
|
|
459
|
-
(_props$onClearChange = props.onClearChange) === null || _props$onClearChange === void 0 ? void 0 : _props$onClearChange.call(props, params);
|
|
460
|
-
onQuery(params);
|
|
461
|
-
}, [onQuery]); // 根据字段查找过滤的数据, 不存在时返回默认值
|
|
462
|
-
|
|
463
|
-
var getFilterValue = (0, _react.useCallback)(function (_ref4) {
|
|
464
|
-
var field = _ref4.field,
|
|
465
|
-
type = _ref4.type;
|
|
466
|
-
|
|
467
|
-
if ((0, _utils.getIsHas)(state.basicFilter[field])) {
|
|
468
|
-
return state.basicFilter[field];
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
var defaultValue = (0, _utils.getValueForType)(type);
|
|
472
|
-
return state.basicFilter[field] || defaultValue;
|
|
473
|
-
}, [state.basicFilter]); // 获取查询结构
|
|
474
|
-
|
|
475
|
-
var getFilterQuery = (0, _react.useCallback)(function () {
|
|
476
|
-
var originData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : dataSource;
|
|
477
|
-
var basicFilter = (0, _utils.getFilterShow)(state.basicFilter, originData);
|
|
478
|
-
var basicQuery = (0, _utils.getFilterShow)(state.basicQuery, originData);
|
|
479
|
-
dispatch({
|
|
480
|
-
type: 'changeBasicFilter',
|
|
481
|
-
basicFilter: basicFilter
|
|
482
|
-
});
|
|
483
|
-
dispatch({
|
|
484
|
-
type: 'changeBasicQuery',
|
|
485
|
-
basicQuery: basicQuery
|
|
486
|
-
});
|
|
487
|
-
|
|
488
|
-
var _tranformQuery6 = tranformQuery({
|
|
489
|
-
customFilter: state.customFilter,
|
|
490
|
-
searchQuery: state.searchQuery,
|
|
491
|
-
basicQuery: basicQuery
|
|
492
|
-
}),
|
|
493
|
-
globalQuery = _tranformQuery6.globalQuery,
|
|
494
|
-
fuzzyQuery = _tranformQuery6.fuzzyQuery,
|
|
495
|
-
filterQuery = _tranformQuery6.filterQuery;
|
|
496
|
-
|
|
497
|
-
return {
|
|
498
|
-
fuzzyFilter: state.searchFilter,
|
|
499
|
-
basicFilter: basicFilter,
|
|
500
|
-
fuzzyQuery: fuzzyQuery,
|
|
501
|
-
globalQuery: globalQuery,
|
|
502
|
-
filterQuery: filterQuery,
|
|
503
|
-
type: 'basic'
|
|
504
|
-
};
|
|
505
|
-
}, [state, dataSource]); // 设置筛选的值 itemValue => String || Array => ['', '', ...]
|
|
506
|
-
|
|
507
|
-
var setFilterValue = (0, _react.useCallback)(function (itemValue, item) {
|
|
508
|
-
var field = item.field;
|
|
509
|
-
|
|
510
|
-
if (field) {
|
|
511
|
-
// 基础查询数据(受控数据)
|
|
512
|
-
var basicFilter = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.basicFilter), {}, (0, _defineProperty2.default)({}, field, itemValue)); // 外部查询数据结构
|
|
513
|
-
|
|
514
|
-
var basicQuery = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.basicQuery), {}, (0, _defineProperty2.default)({}, field, {
|
|
515
|
-
fieldName: field,
|
|
516
|
-
fieldType: item.valueType || 'string',
|
|
517
|
-
type: item.type,
|
|
518
|
-
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
519
|
-
operator: item.operator || 'equal'
|
|
520
|
-
})); // 数据清除时不返回结构体
|
|
521
|
-
|
|
522
|
-
if (!(0, _utils.getIsHas)(itemValue)) {
|
|
523
|
-
delete basicFilter[field];
|
|
524
|
-
delete basicQuery[field];
|
|
525
|
-
} // 触发外部事件
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
onQuery === null || onQuery === void 0 ? void 0 : onQuery({
|
|
529
|
-
basicFilter: basicFilter,
|
|
530
|
-
basicQuery: basicQuery,
|
|
531
|
-
type: 'basic'
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
}, [state]); // 单个设置过滤字段值, 会触发onChange事件, 多个字段时使用setLocalization
|
|
535
|
-
|
|
536
|
-
var setFilterFieldValue = (0, _react.useCallback)(function (field, value) {
|
|
537
|
-
var item = dataSource.find(function (v) {
|
|
538
|
-
return v.fidld === field;
|
|
539
|
-
}) || {};
|
|
540
|
-
setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue(value, item);
|
|
541
|
-
}, [dataSource]); // 读取缓存
|
|
542
|
-
|
|
543
|
-
var setLocalization = (0, _react.useCallback)(function () {
|
|
544
|
-
var localization = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : props.localization;
|
|
545
|
-
|
|
546
|
-
var _initLocalization = initLocalization((0, _objectSpread4.default)((0, _objectSpread4.default)({}, props), {}, {
|
|
547
|
-
localization: localization
|
|
548
|
-
})),
|
|
549
|
-
searchFilter = _initLocalization.searchFilter,
|
|
550
|
-
searchQuery = _initLocalization.searchQuery,
|
|
551
|
-
basicFilter = _initLocalization.basicFilter,
|
|
552
|
-
basicQuery = _initLocalization.basicQuery,
|
|
553
|
-
customFilter = _initLocalization.customFilter,
|
|
554
|
-
customQuery = _initLocalization.customQuery;
|
|
555
|
-
|
|
556
|
-
dispatch({
|
|
557
|
-
type: 'changeSearchFilter',
|
|
558
|
-
searchFilter: searchFilter
|
|
559
|
-
});
|
|
560
|
-
dispatch({
|
|
561
|
-
type: 'changeSearchQuery',
|
|
562
|
-
searchQuery: searchQuery
|
|
563
|
-
});
|
|
564
|
-
dispatch({
|
|
565
|
-
type: 'changeBasicFilter',
|
|
566
|
-
basicFilter: basicFilter
|
|
567
|
-
});
|
|
568
|
-
dispatch({
|
|
569
|
-
type: 'changeBasicQuery',
|
|
570
|
-
basicQuery: basicQuery
|
|
571
|
-
});
|
|
572
|
-
dispatch({
|
|
573
|
-
type: 'changeCustomFilter',
|
|
574
|
-
customFilter: customFilter
|
|
575
|
-
});
|
|
576
|
-
dispatch({
|
|
577
|
-
type: 'changeCustomQuery',
|
|
578
|
-
customQuery: customQuery
|
|
579
|
-
});
|
|
580
|
-
}, [props]); // 模糊查询结构
|
|
581
|
-
|
|
582
|
-
var setSearchFilter = (0, _react.useCallback)(function (itemValue, item) {
|
|
583
|
-
var searchFilter = searchKey === null || searchKey === void 0 ? void 0 : searchKey.reduce(function (pre, cur) {
|
|
584
|
-
pre[cur] = itemValue;
|
|
585
|
-
return pre;
|
|
586
|
-
}, (0, _objectSpread4.default)({}, state.searchFilter));
|
|
587
|
-
var searchQuery = searchKey === null || searchKey === void 0 ? void 0 : searchKey.reduce(function (pre, cur) {
|
|
588
|
-
pre[cur] = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, searchConfig), {}, {
|
|
589
|
-
fieldName: cur,
|
|
590
|
-
value: [itemValue]
|
|
591
|
-
});
|
|
592
|
-
return pre;
|
|
593
|
-
}, (0, _objectSpread4.default)({}, state.searchQuery)); // 数据清除时不返回结构体
|
|
594
|
-
|
|
595
|
-
if (!(0, _utils.getIsHas)(itemValue)) {
|
|
596
|
-
searchFilter = {};
|
|
597
|
-
searchQuery = {};
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
onQuery({
|
|
601
|
-
searchFilter: searchFilter,
|
|
602
|
-
searchQuery: searchQuery,
|
|
603
|
-
type: 'search'
|
|
604
|
-
});
|
|
605
|
-
}, [searchKey, state]); // 自定义筛选查询
|
|
606
|
-
|
|
607
|
-
var setCustomFilter = (0, _react.useCallback)(function (val) {
|
|
608
|
-
var customFilter = customOptions.find(function (v) {
|
|
609
|
-
return v.value === val;
|
|
610
|
-
});
|
|
611
|
-
onQuery({
|
|
612
|
-
customFilter: customFilter,
|
|
613
|
-
type: 'custom'
|
|
614
|
-
});
|
|
615
|
-
}, [customOptions, state.basicFilter]); // 组件内部使用
|
|
616
|
-
|
|
617
|
-
var CoreMethods = {
|
|
618
|
-
onQuery: onQuery,
|
|
619
|
-
setCustomFilter: setCustomFilter,
|
|
620
|
-
setSearchFilter: setSearchFilter
|
|
621
|
-
}; // 参与Ref转发
|
|
622
|
-
|
|
623
|
-
var RefMethods = {
|
|
624
|
-
getState: function getState() {
|
|
625
|
-
return state;
|
|
626
|
-
},
|
|
627
|
-
getBasicFilter: function getBasicFilter() {
|
|
628
|
-
return state.basicFilter;
|
|
629
|
-
},
|
|
630
|
-
getFilterValue: getFilterValue,
|
|
631
|
-
getFilterQuery: getFilterQuery,
|
|
632
|
-
setFilterValue: setFilterValue,
|
|
633
|
-
setFilterFieldValue: setFilterFieldValue,
|
|
634
|
-
setLocalization: setLocalization,
|
|
635
|
-
onClearChange: onClearChange
|
|
636
|
-
};
|
|
637
|
-
return {
|
|
638
|
-
CoreMethods: CoreMethods,
|
|
639
|
-
RefMethods: RefMethods
|
|
640
|
-
};
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
var _default = useCoreOptions;
|
|
644
|
-
exports.default = _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _useDelayedFn = require("./useDelayedFn");
|
|
8
|
-
|
|
9
|
-
Object.keys(_useDelayedFn).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] === _useDelayedFn[key]) return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _useDelayedFn[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useDelayedFn = exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _lodash = require("lodash");
|
|
11
|
-
|
|
12
|
-
// 延迟/防抖加载函数, 默认延迟200ms
|
|
13
|
-
var useDelayedFn = function useDelayedFn() {
|
|
14
|
-
var wait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
|
|
15
|
-
var delayedQuery = (0, _react.useCallback)((0, _lodash.debounce)(function (fn) {
|
|
16
|
-
typeof fn === 'function' ? fn === null || fn === void 0 ? void 0 : fn() : fn;
|
|
17
|
-
}, wait), []); // 防止异步任务数导致的内存泄漏
|
|
18
|
-
|
|
19
|
-
(0, _react.useEffect)(function () {
|
|
20
|
-
return function () {
|
|
21
|
-
delayedQuery.cancel();
|
|
22
|
-
};
|
|
23
|
-
}, []);
|
|
24
|
-
return delayedQuery;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.useDelayedFn = useDelayedFn;
|
|
28
|
-
var _default = useDelayedFn;
|
|
29
|
-
exports.default = _default;
|