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,381 +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/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
|
|
18
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
|
-
|
|
20
|
-
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
21
|
-
|
|
22
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
23
|
-
|
|
24
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
25
|
-
|
|
26
|
-
var _utils = require("../utils");
|
|
27
|
-
|
|
28
|
-
var _valueDrawer = _interopRequireDefault(require("./valueDrawer"));
|
|
29
|
-
|
|
30
|
-
var _excluded = ["item"],
|
|
31
|
-
_excluded2 = ["item"];
|
|
32
|
-
|
|
33
|
-
// 选中的筛选项
|
|
34
|
-
var ListItemChecked = function ListItemChecked(_ref) {
|
|
35
|
-
var instance = _ref.instance,
|
|
36
|
-
itemProps = _ref.item;
|
|
37
|
-
var state = instance.state,
|
|
38
|
-
dispatch = instance.dispatch,
|
|
39
|
-
dataSource = instance.dataSource;
|
|
40
|
-
var complexDrawer = state.complexDrawer;
|
|
41
|
-
var field = itemProps.field,
|
|
42
|
-
_itemProps$value = itemProps.value,
|
|
43
|
-
valueObj = _itemProps$value === void 0 ? {} : _itemProps$value; // 单项匹配数据, 根据字段名查找, 嵌套筛选时查询父级
|
|
44
|
-
|
|
45
|
-
var getItem = (0, _react.useMemo)(function () {
|
|
46
|
-
return dataSource.find(function (v) {
|
|
47
|
-
return [field, valueObj.originField].includes(v.field);
|
|
48
|
-
});
|
|
49
|
-
}, [field, valueObj.originField, dataSource]); // 选中值的处理
|
|
50
|
-
|
|
51
|
-
var resetValue = (0, _react.useMemo)(function () {
|
|
52
|
-
return valueObj.value;
|
|
53
|
-
}, [valueObj.value]); // 选中的数据
|
|
54
|
-
|
|
55
|
-
var checkedValues = (0, _react.useMemo)(function () {
|
|
56
|
-
var checkedValue = valueObj.value;
|
|
57
|
-
|
|
58
|
-
if (Array.isArray(checkedValue)) {
|
|
59
|
-
var _getItem$data;
|
|
60
|
-
|
|
61
|
-
if (['date'].includes(getItem.type)) {
|
|
62
|
-
return [{
|
|
63
|
-
value: resetValue,
|
|
64
|
-
label: "".concat(resetValue[0], " ~ ").concat(resetValue[1])
|
|
65
|
-
}];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (getItem.type === 'nested') {
|
|
69
|
-
return checkedValue;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (getItem.type === 'cascader') {
|
|
73
|
-
return (0, _utils.getFlatItem)(getItem, checkedValue, 'parent');
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return (_getItem$data = getItem.data) === null || _getItem$data === void 0 ? void 0 : _getItem$data.filter(function (v) {
|
|
77
|
-
return checkedValue.includes(v.value);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (['input', 'date'].includes(getItem.type)) {
|
|
82
|
-
return resetValue ? [{
|
|
83
|
-
value: resetValue,
|
|
84
|
-
label: resetValue
|
|
85
|
-
}] : [];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
var filterValue = getItem.data.find(function (v) {
|
|
89
|
-
return v.value === checkedValue;
|
|
90
|
-
});
|
|
91
|
-
return filterValue ? [filterValue] : [];
|
|
92
|
-
}, [getItem, valueObj.value]); // 编辑
|
|
93
|
-
|
|
94
|
-
var handleEdit = function handleEdit() {
|
|
95
|
-
dispatch({
|
|
96
|
-
type: 'changeValueDrawer',
|
|
97
|
-
valueDrawer: {
|
|
98
|
-
visible: true,
|
|
99
|
-
data: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, getItem), valueObj)
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}; // 删除
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var handleDelete = function handleDelete(e) {
|
|
106
|
-
e.stopPropagation();
|
|
107
|
-
var filterValues = (0, _objectSpread3.default)({}, complexDrawer.data);
|
|
108
|
-
delete filterValues[field];
|
|
109
|
-
dispatch({
|
|
110
|
-
type: 'changeComplexDrawer',
|
|
111
|
-
complexDrawer: {
|
|
112
|
-
visible: true,
|
|
113
|
-
data: filterValues
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}; // 删除Tag
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
var onTagClose = function onTagClose(val) {
|
|
120
|
-
var originData = (0, _objectSpread3.default)({}, complexDrawer.data);
|
|
121
|
-
var nValue = '';
|
|
122
|
-
|
|
123
|
-
if (['select', 'checkbox'].includes(getItem.type)) {
|
|
124
|
-
nValue = originData[field].value.filter(function (v) {
|
|
125
|
-
return !v.includes(val);
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (['input'].includes(getItem.type)) {
|
|
130
|
-
nValue = '';
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (['cascader'].includes(getItem.type)) {
|
|
134
|
-
nValue = [];
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
var filterValues = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, originData), {}, (0, _defineProperty2.default)({}, field, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, originData[field]), {}, {
|
|
138
|
-
value: nValue
|
|
139
|
-
})));
|
|
140
|
-
dispatch({
|
|
141
|
-
type: 'changeComplexDrawer',
|
|
142
|
-
complexDrawer: {
|
|
143
|
-
visible: true,
|
|
144
|
-
data: filterValues
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}; // Tags显示
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
var tagElem = function tagElem() {
|
|
151
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Tag, {
|
|
152
|
-
className: "add_tags"
|
|
153
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
154
|
-
type: "lmweb-plus"
|
|
155
|
-
}), " \u65B0\u589E"), checkedValues === null || checkedValues === void 0 ? void 0 : checkedValues.map(function (v) {
|
|
156
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Tag, {
|
|
157
|
-
key: v.value,
|
|
158
|
-
closable: true,
|
|
159
|
-
onClose: function onClose() {
|
|
160
|
-
return onTagClose(v.value);
|
|
161
|
-
}
|
|
162
|
-
}, v.label);
|
|
163
|
-
}));
|
|
164
|
-
}; // 模式
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
var modeLabel = (0, _react.useMemo)(function () {
|
|
168
|
-
return valueObj.mode === 'and' ? '且' : '或';
|
|
169
|
-
}, [valueObj.mode]);
|
|
170
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
171
|
-
className: "item_box",
|
|
172
|
-
onClick: handleEdit
|
|
173
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
-
className: "item_header"
|
|
175
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
-
className: "item_header_title"
|
|
177
|
-
}, "".concat(getItem.title, "\uFF08").concat(modeLabel, "\uFF09")), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
178
|
-
type: "lmweb-close1",
|
|
179
|
-
onClick: handleDelete,
|
|
180
|
-
className: "item_header_icon"
|
|
181
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
182
|
-
className: "item_tags"
|
|
183
|
-
}, tagElem())));
|
|
184
|
-
}; // 全部筛选项
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
var ListGroup = function ListGroup(_ref2) {
|
|
188
|
-
var instance = _ref2.instance,
|
|
189
|
-
filterItemData = _ref2.filterItemData;
|
|
190
|
-
var state = instance.state,
|
|
191
|
-
dispatch = instance.dispatch,
|
|
192
|
-
dataSource = instance.dataSource;
|
|
193
|
-
var inputRef = (0, _react.useRef)(null);
|
|
194
|
-
|
|
195
|
-
var _useState = (0, _react.useState)(function () {
|
|
196
|
-
return dataSource;
|
|
197
|
-
}),
|
|
198
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
199
|
-
options = _useState2[0],
|
|
200
|
-
setOptions = _useState2[1]; // 未过滤的筛选项
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
var getNotFilters = (0, _react.useCallback)(function () {
|
|
204
|
-
return dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (v) {
|
|
205
|
-
return !(filterItemData === null || filterItemData === void 0 ? void 0 : filterItemData.some(function (s) {
|
|
206
|
-
return s.field === v.field;
|
|
207
|
-
}));
|
|
208
|
-
});
|
|
209
|
-
}, [dataSource, filterItemData]);
|
|
210
|
-
|
|
211
|
-
var handleSearch = function handleSearch(val) {
|
|
212
|
-
var arr = getNotFilters();
|
|
213
|
-
setOptions(arr.filter(function (v) {
|
|
214
|
-
var _v$title;
|
|
215
|
-
|
|
216
|
-
return ((_v$title = v.title) === null || _v$title === void 0 ? void 0 : _v$title.indexOf(val)) > -1;
|
|
217
|
-
}));
|
|
218
|
-
}; // 编辑
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
var handleEdit = function handleEdit(_ref3) {
|
|
222
|
-
var field = _ref3.field;
|
|
223
|
-
// 单项匹配数据, 根据字段名查找
|
|
224
|
-
var getItem = dataSource.find(function (v) {
|
|
225
|
-
return v.field === field;
|
|
226
|
-
}); // 编辑
|
|
227
|
-
|
|
228
|
-
dispatch({
|
|
229
|
-
type: 'changeValueDrawer',
|
|
230
|
-
valueDrawer: {
|
|
231
|
-
visible: true,
|
|
232
|
-
type: 'complex',
|
|
233
|
-
data: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, getItem), {}, {
|
|
234
|
-
value: []
|
|
235
|
-
})
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
(0, _react.useEffect)(function () {
|
|
241
|
-
var _inputRef$current, _inputRef$current$inp;
|
|
242
|
-
|
|
243
|
-
var val = ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : (_inputRef$current$inp = _inputRef$current.input) === null || _inputRef$current$inp === void 0 ? void 0 : _inputRef$current$inp.value) || '';
|
|
244
|
-
handleSearch(val);
|
|
245
|
-
}, [filterItemData]);
|
|
246
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
247
|
-
className: "list_group"
|
|
248
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
249
|
-
className: "list_group_title"
|
|
250
|
-
}, "\u9009\u62E9\u67E5\u8BE2\u9879"), /*#__PURE__*/_react.default.createElement("div", {
|
|
251
|
-
className: "list_group_search"
|
|
252
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Input.Search, {
|
|
253
|
-
ref: inputRef,
|
|
254
|
-
allowClear: true,
|
|
255
|
-
size: "default",
|
|
256
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
257
|
-
onSearch: handleSearch
|
|
258
|
-
})), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
|
|
259
|
-
options: options,
|
|
260
|
-
className: "filter_drawer_group_list"
|
|
261
|
-
}, function (_ref4) {
|
|
262
|
-
var item = _ref4.item,
|
|
263
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
264
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
|
|
265
|
-
className: "filter_drawer_group_item"
|
|
266
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
267
|
-
className: "item_box",
|
|
268
|
-
onClick: function onClick() {
|
|
269
|
-
return handleEdit(item);
|
|
270
|
-
}
|
|
271
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
272
|
-
className: "item_header"
|
|
273
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
274
|
-
className: "item_header_title"
|
|
275
|
-
}, item.title), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
276
|
-
type: "lmweb-plus",
|
|
277
|
-
className: "item_header_icon icon_plus"
|
|
278
|
-
}))));
|
|
279
|
-
})));
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
var ComplexDrawer = function ComplexDrawer(_ref5) {
|
|
283
|
-
var instance = _ref5.instance;
|
|
284
|
-
var state = instance.state,
|
|
285
|
-
dispatch = instance.dispatch,
|
|
286
|
-
onQuery = instance.onQuery,
|
|
287
|
-
dataSource = instance.dataSource;
|
|
288
|
-
var complexDrawer = state.complexDrawer;
|
|
289
|
-
var isHas = (0, _react.useMemo)(function () {
|
|
290
|
-
return (0, _utils.getIsHas)(complexDrawer.data);
|
|
291
|
-
}, [complexDrawer.data]); // 过滤的内容转数组
|
|
292
|
-
|
|
293
|
-
var filterItemData = (0, _react.useMemo)(function () {
|
|
294
|
-
return isHas ? Object.entries(complexDrawer.data).map(function (v) {
|
|
295
|
-
return {
|
|
296
|
-
field: v[0],
|
|
297
|
-
value: v[1]
|
|
298
|
-
};
|
|
299
|
-
}) : [];
|
|
300
|
-
}, [complexDrawer.data, isHas]);
|
|
301
|
-
|
|
302
|
-
var onClose = function onClose() {
|
|
303
|
-
dispatch({
|
|
304
|
-
type: 'changeComplexDrawer',
|
|
305
|
-
complexDrawer: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, complexDrawer), {}, {
|
|
306
|
-
visible: false
|
|
307
|
-
})
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var onSearch = function onSearch() {
|
|
312
|
-
var complexFilter = complexDrawer.data;
|
|
313
|
-
onQuery === null || onQuery === void 0 ? void 0 : onQuery({
|
|
314
|
-
complexFilter: complexFilter,
|
|
315
|
-
type: 'complex'
|
|
316
|
-
});
|
|
317
|
-
}; // 初始化筛选
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
(0, _react.useEffect)(function () {
|
|
321
|
-
if (complexDrawer.visible) {
|
|
322
|
-
dispatch({
|
|
323
|
-
type: 'changeComplexDrawer',
|
|
324
|
-
complexDrawer: {
|
|
325
|
-
data: state.complexFilter,
|
|
326
|
-
visible: complexDrawer.visible
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
}, [dispatch, complexDrawer.visible]);
|
|
331
|
-
|
|
332
|
-
var Tit = function Tit() {
|
|
333
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
334
|
-
onClick: function onClick() {}
|
|
335
|
-
}, "\u9AD8\u7EA7\u67E5\u8BE2");
|
|
336
|
-
}; // 弹窗配置项
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
var config = {
|
|
340
|
-
title: /*#__PURE__*/_react.default.createElement(Tit, null),
|
|
341
|
-
visible: complexDrawer.visible,
|
|
342
|
-
onClose: onClose,
|
|
343
|
-
width: 440,
|
|
344
|
-
placement: 'right',
|
|
345
|
-
destroyOnClose: true,
|
|
346
|
-
className: 'lm_filter_drawer',
|
|
347
|
-
extra: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Space, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
348
|
-
onClick: onClose,
|
|
349
|
-
size: "small"
|
|
350
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
351
|
-
type: "primary",
|
|
352
|
-
onClick: onSearch,
|
|
353
|
-
size: "small"
|
|
354
|
-
}, "\u67E5\u8BE2"))
|
|
355
|
-
};
|
|
356
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Drawer, config, /*#__PURE__*/_react.default.createElement("div", {
|
|
357
|
-
className: "complex_filter_body"
|
|
358
|
-
}, isHas && /*#__PURE__*/_react.default.createElement("div", {
|
|
359
|
-
className: "checked_group"
|
|
360
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
|
|
361
|
-
options: filterItemData,
|
|
362
|
-
className: "filter_drawer_group_list"
|
|
363
|
-
}, function (_ref6) {
|
|
364
|
-
var item = _ref6.item,
|
|
365
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref6, _excluded2);
|
|
366
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
|
|
367
|
-
className: "filter_drawer_group_item"
|
|
368
|
-
}), /*#__PURE__*/_react.default.createElement(ListItemChecked, {
|
|
369
|
-
instance: instance,
|
|
370
|
-
item: item
|
|
371
|
-
}));
|
|
372
|
-
})), /*#__PURE__*/_react.default.createElement(ListGroup, {
|
|
373
|
-
instance: instance,
|
|
374
|
-
filterItemData: filterItemData
|
|
375
|
-
})), /*#__PURE__*/_react.default.createElement(_valueDrawer.default, {
|
|
376
|
-
instance: instance
|
|
377
|
-
})));
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
var _default = ComplexDrawer;
|
|
381
|
-
exports.default = _default;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
|
|
18
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
19
|
-
|
|
20
|
-
var _drawer = _interopRequireDefault(require("./drawer"));
|
|
21
|
-
|
|
22
|
-
var _utils = require("../utils");
|
|
23
|
-
|
|
24
|
-
var LmFilterComplex = function LmFilterComplex(_ref) {
|
|
25
|
-
var instance = _ref.instance;
|
|
26
|
-
var state = instance.state,
|
|
27
|
-
dispatch = instance.dispatch;
|
|
28
|
-
var expand = (0, _react.useMemo)(function () {
|
|
29
|
-
return state.complexDrawer.visible;
|
|
30
|
-
}, [state.complexDrawer.visible]);
|
|
31
|
-
var active = (0, _react.useMemo)(function () {
|
|
32
|
-
return (0, _utils.getIsHas)(state.complexFilter);
|
|
33
|
-
}, [state.complexFilter]);
|
|
34
|
-
|
|
35
|
-
var handleClick = function handleClick() {
|
|
36
|
-
dispatch({
|
|
37
|
-
type: 'changeComplexDrawer',
|
|
38
|
-
complexDrawer: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.complexDrawer), {}, {
|
|
39
|
-
visible: true
|
|
40
|
-
})
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
-
className: "lm_filter_complex"
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
className: (0, _classnames.default)('lm_filter_basic_item lm_filter_complex_item', {
|
|
48
|
-
expand: expand,
|
|
49
|
-
active: active
|
|
50
|
-
}),
|
|
51
|
-
onClick: handleClick
|
|
52
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
-
className: "filter_item_icon addon_before"
|
|
54
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
55
|
-
type: "lmweb-filter"
|
|
56
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
-
className: "filter_item_label"
|
|
58
|
-
}, "\u9AD8\u7EA7\u7B5B\u9009")), /*#__PURE__*/_react.default.createElement(_drawer.default, {
|
|
59
|
-
instance: instance
|
|
60
|
-
}));
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
var _default = LmFilterComplex;
|
|
64
|
-
exports.default = _default;
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
-
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
|
|
16
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
-
|
|
18
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
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/slicedToArray"));
|
|
25
|
-
|
|
26
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
27
|
-
|
|
28
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
29
|
-
|
|
30
|
-
var _utils = require("../utils");
|
|
31
|
-
|
|
32
|
-
var _Controls = _interopRequireDefault(require("../Controls"));
|
|
33
|
-
|
|
34
|
-
// 第二层抽屉,弹出数据选择
|
|
35
|
-
var ValueDrawer = function ValueDrawer(_ref) {
|
|
36
|
-
var instance = _ref.instance;
|
|
37
|
-
var state = instance.state,
|
|
38
|
-
dispatch = instance.dispatch,
|
|
39
|
-
dataSource = instance.dataSource;
|
|
40
|
-
var valueDrawer = state.valueDrawer,
|
|
41
|
-
complexDrawer = state.complexDrawer;
|
|
42
|
-
|
|
43
|
-
var _Form$useForm = _form.default.useForm(),
|
|
44
|
-
_Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
|
|
45
|
-
form = _Form$useForm2[0];
|
|
46
|
-
|
|
47
|
-
var onClose = function onClose() {
|
|
48
|
-
dispatch({
|
|
49
|
-
type: 'changeValueDrawer',
|
|
50
|
-
valueDrawer: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, valueDrawer), {}, {
|
|
51
|
-
visible: false
|
|
52
|
-
})
|
|
53
|
-
});
|
|
54
|
-
form.resetFields();
|
|
55
|
-
};
|
|
56
|
-
/*
|
|
57
|
-
* customModal.data.type === 'nested' 时,处理不同(未增加)
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var onSave = /*#__PURE__*/function () {
|
|
63
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
64
|
-
var _yield$form$validateF, field, mode, value, filterValues, currentItem, isNested, nField, nValue, _value$subValue;
|
|
65
|
-
|
|
66
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
67
|
-
while (1) {
|
|
68
|
-
switch (_context.prev = _context.next) {
|
|
69
|
-
case 0:
|
|
70
|
-
_context.prev = 0;
|
|
71
|
-
_context.next = 3;
|
|
72
|
-
return form.validateFields();
|
|
73
|
-
|
|
74
|
-
case 3:
|
|
75
|
-
_yield$form$validateF = _context.sent;
|
|
76
|
-
field = _yield$form$validateF.field;
|
|
77
|
-
mode = _yield$form$validateF.mode;
|
|
78
|
-
value = _yield$form$validateF.value;
|
|
79
|
-
// 选中的筛选数据
|
|
80
|
-
filterValues = (0, _objectSpread2.default)({}, complexDrawer.data); // 查找当前筛选的值
|
|
81
|
-
|
|
82
|
-
currentItem = valueDrawer.data; // 是否嵌套筛选
|
|
83
|
-
|
|
84
|
-
isNested = currentItem.type === 'nested'; // 嵌套筛选的键值不同
|
|
85
|
-
|
|
86
|
-
nField = valueDrawer.data.field;
|
|
87
|
-
nValue = value;
|
|
88
|
-
|
|
89
|
-
if (isNested) {
|
|
90
|
-
// 删除原有筛选
|
|
91
|
-
delete filterValues[currentItem.field];
|
|
92
|
-
currentItem.data.forEach(function (element) {
|
|
93
|
-
delete filterValues[element.value];
|
|
94
|
-
}); // 存在子级嵌套时,改变键值
|
|
95
|
-
|
|
96
|
-
if (value === null || value === void 0 ? void 0 : (_value$subValue = value.subValue) === null || _value$subValue === void 0 ? void 0 : _value$subValue.children) {
|
|
97
|
-
nField = value.subValue.value;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
nValue = (value === null || value === void 0 ? void 0 : value.value) || [];
|
|
101
|
-
} // 判断是新增还是编辑
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
Object.assign(filterValues, (0, _defineProperty2.default)({}, nField, {
|
|
105
|
-
mode: mode,
|
|
106
|
-
value: nValue,
|
|
107
|
-
originField: currentItem.field
|
|
108
|
-
}));
|
|
109
|
-
dispatch({
|
|
110
|
-
type: 'changeComplexDrawer',
|
|
111
|
-
complexDrawer: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, complexDrawer), {}, {
|
|
112
|
-
data: filterValues
|
|
113
|
-
})
|
|
114
|
-
});
|
|
115
|
-
onClose();
|
|
116
|
-
_context.next = 20;
|
|
117
|
-
break;
|
|
118
|
-
|
|
119
|
-
case 18:
|
|
120
|
-
_context.prev = 18;
|
|
121
|
-
_context.t0 = _context["catch"](0);
|
|
122
|
-
|
|
123
|
-
case 20:
|
|
124
|
-
case "end":
|
|
125
|
-
return _context.stop();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}, _callee, null, [[0, 18]]);
|
|
129
|
-
}));
|
|
130
|
-
|
|
131
|
-
return function onSave() {
|
|
132
|
-
return _ref2.apply(this, arguments);
|
|
133
|
-
};
|
|
134
|
-
}();
|
|
135
|
-
|
|
136
|
-
var onValuesChange = function onValuesChange(values) {
|
|
137
|
-
if (values.field) {
|
|
138
|
-
form.setFieldsValue({
|
|
139
|
-
value: []
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (values.value) {
|
|
144
|
-
var _values$value;
|
|
145
|
-
|
|
146
|
-
// 嵌套筛选双击触发
|
|
147
|
-
if ((values === null || values === void 0 ? void 0 : (_values$value = values.value) === null || _values$value === void 0 ? void 0 : _values$value.type) === 'dbclick') {
|
|
148
|
-
onSave();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}; // 动态展示选择框
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
var DynamicSelect = (0, _react.useCallback)(function (_ref3) {
|
|
155
|
-
var getFieldValue = _ref3.getFieldValue;
|
|
156
|
-
var field = getFieldValue('field');
|
|
157
|
-
var findItem = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.find(function (v) {
|
|
158
|
-
return v.field === field;
|
|
159
|
-
})) || {};
|
|
160
|
-
var options = (findItem === null || findItem === void 0 ? void 0 : findItem.data) || [];
|
|
161
|
-
|
|
162
|
-
if (field) {
|
|
163
|
-
return /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
164
|
-
name: "value",
|
|
165
|
-
label: "\u9009\u62E9\u5B57\u6BB5\u503C",
|
|
166
|
-
noStyle: true
|
|
167
|
-
}, /*#__PURE__*/_react.default.createElement(_Controls.default, {
|
|
168
|
-
item: findItem,
|
|
169
|
-
options: options
|
|
170
|
-
}));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return false;
|
|
174
|
-
}, [dataSource]);
|
|
175
|
-
var config = {
|
|
176
|
-
title: valueDrawer.data.title,
|
|
177
|
-
visible: valueDrawer.visible,
|
|
178
|
-
onClose: onClose,
|
|
179
|
-
className: 'lm_det_drawer',
|
|
180
|
-
extra: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Space, {
|
|
181
|
-
size: 8
|
|
182
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
183
|
-
key: "cancel",
|
|
184
|
-
onClick: onClose,
|
|
185
|
-
size: "small"
|
|
186
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
187
|
-
type: "primary",
|
|
188
|
-
key: "back",
|
|
189
|
-
onClick: onSave,
|
|
190
|
-
size: "small"
|
|
191
|
-
}, "\u786E\u5B9A"))
|
|
192
|
-
}; // 初始化重置数据
|
|
193
|
-
|
|
194
|
-
(0, _react.useEffect)(function () {
|
|
195
|
-
if (valueDrawer.visible) {
|
|
196
|
-
form.setFieldsValue(valueDrawer.data);
|
|
197
|
-
}
|
|
198
|
-
}, [form, valueDrawer]);
|
|
199
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Drawer, config, /*#__PURE__*/_react.default.createElement(_form.default, {
|
|
200
|
-
form: form,
|
|
201
|
-
initialValues: {
|
|
202
|
-
mode: 'or'
|
|
203
|
-
},
|
|
204
|
-
onValuesChange: onValuesChange,
|
|
205
|
-
layout: "vertical",
|
|
206
|
-
size: "default",
|
|
207
|
-
className: "custom_form"
|
|
208
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
209
|
-
className: "custom_group"
|
|
210
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
211
|
-
className: "custom_label"
|
|
212
|
-
}, "\u67E5\u8BE2\u65B9\u5F0F"), /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
213
|
-
name: "mode",
|
|
214
|
-
label: "\u67E5\u8BE2\u65B9\u5F0F",
|
|
215
|
-
noStyle: true
|
|
216
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio.Group, {
|
|
217
|
-
direction: "column"
|
|
218
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio, {
|
|
219
|
-
value: "and"
|
|
220
|
-
}, "\u4E14,\u67E5\u8BE2\u540C\u65F6\u6EE1\u8DB3\u6B64\u9009\u9879\u6761\u4EF6"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio, {
|
|
221
|
-
value: "or"
|
|
222
|
-
}, "\u6216,\u67E5\u8BE2\u5305\u542B\u6B64\u9009\u9879\u6761\u4EF6")))), /*#__PURE__*/_react.default.createElement("div", {
|
|
223
|
-
className: "custom_group custom_full"
|
|
224
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
225
|
-
className: "custom_label"
|
|
226
|
-
}, "\u9009\u62E9\u5B57\u6BB5\u503C"), /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
227
|
-
noStyle: true,
|
|
228
|
-
shouldUpdate: function shouldUpdate(prevValues, currentValues) {
|
|
229
|
-
return prevValues.field !== currentValues.field;
|
|
230
|
-
}
|
|
231
|
-
}, DynamicSelect))));
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
var _default = ValueDrawer;
|
|
235
|
-
exports.default = _default;
|