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,160 +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
|
-
require("antd/es/cascader/style");
|
|
13
|
-
|
|
14
|
-
var _cascader = _interopRequireDefault(require("antd/es/cascader"));
|
|
15
|
-
|
|
16
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
17
|
-
|
|
18
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
23
|
-
|
|
24
|
-
var _InputSearchClose = _interopRequireDefault(require("./InputSearchClose"));
|
|
25
|
-
|
|
26
|
-
var _hooks = require("../hooks");
|
|
27
|
-
|
|
28
|
-
// 重置级联弹框
|
|
29
|
-
var DropdownRender = function DropdownRender(_ref) {
|
|
30
|
-
var dom = _ref.dom,
|
|
31
|
-
instance = _ref.instance,
|
|
32
|
-
item = _ref.item,
|
|
33
|
-
setOptions = _ref.setOptions,
|
|
34
|
-
checkedValues = _ref.checkedValues;
|
|
35
|
-
var _instance$filterValue = instance.filterValue,
|
|
36
|
-
filterValue = _instance$filterValue === void 0 ? [] : _instance$filterValue,
|
|
37
|
-
setFilterValue = instance.setFilterValue,
|
|
38
|
-
visible = instance.visible,
|
|
39
|
-
setVisible = instance.setVisible;
|
|
40
|
-
var _item$data = item.data,
|
|
41
|
-
filters = _item$data === void 0 ? [] : _item$data;
|
|
42
|
-
var inputRef = (0, _react.useRef)(null);
|
|
43
|
-
var delayedFn = (0, _hooks.useDelayedFn)();
|
|
44
|
-
var isShowFoot = (0, _react.useMemo)(function () {
|
|
45
|
-
var _item$props;
|
|
46
|
-
|
|
47
|
-
return item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.multiple;
|
|
48
|
-
}, [item]);
|
|
49
|
-
|
|
50
|
-
var handleFilter = function handleFilter(val) {
|
|
51
|
-
var serachValues = filters.filter(function (v) {
|
|
52
|
-
var _v, _item$props2, _item$props2$fieldNam;
|
|
53
|
-
|
|
54
|
-
return ((_v = v[(item === null || item === void 0 ? void 0 : (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : (_item$props2$fieldNam = _item$props2.fieldNames) === null || _item$props2$fieldNam === void 0 ? void 0 : _item$props2$fieldNam.label) || 'label']) === null || _v === void 0 ? void 0 : _v.indexOf(val)) > -1;
|
|
55
|
-
});
|
|
56
|
-
setOptions(serachValues);
|
|
57
|
-
}; // 确定
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var handleSure = function handleSure() {
|
|
61
|
-
setFilterValue(checkedValues);
|
|
62
|
-
setVisible === null || setVisible === void 0 ? void 0 : setVisible(false);
|
|
63
|
-
}; // 取消
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var handleReset = function handleReset() {
|
|
67
|
-
return setVisible === null || setVisible === void 0 ? void 0 : setVisible(false);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
(0, _react.useEffect)(function () {
|
|
71
|
-
if (visible) {
|
|
72
|
-
delayedFn(function () {
|
|
73
|
-
var _inputRef$current, _inputRef$current$foc;
|
|
74
|
-
|
|
75
|
-
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : (_inputRef$current$foc = _inputRef$current.focus) === null || _inputRef$current$foc === void 0 ? void 0 : _inputRef$current$foc.call(_inputRef$current, {
|
|
76
|
-
cursor: 'all'
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}, [visible]);
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
-
className: "filter_dropdown"
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
-
className: "filter_header"
|
|
85
|
-
}, /*#__PURE__*/_react.default.createElement(_InputSearchClose.default, {
|
|
86
|
-
ref: inputRef,
|
|
87
|
-
onSearch: handleFilter,
|
|
88
|
-
onChange: handleFilter
|
|
89
|
-
})), dom, isShowFoot && /*#__PURE__*/_react.default.createElement("div", {
|
|
90
|
-
className: "filter_footer"
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
92
|
-
className: "footer_clear",
|
|
93
|
-
onClick: handleReset
|
|
94
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
95
|
-
type: "primary",
|
|
96
|
-
size: "small",
|
|
97
|
-
onClick: handleSure
|
|
98
|
-
}, "\u786E\u5B9A")));
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
var CascaderFilter = function CascaderFilter(_ref2) {
|
|
102
|
-
var instance = _ref2.instance,
|
|
103
|
-
itemProps = _ref2.item;
|
|
104
|
-
var _instance$filterValue2 = instance.filterValue,
|
|
105
|
-
filterValue = _instance$filterValue2 === void 0 ? [] : _instance$filterValue2,
|
|
106
|
-
setFilterValue = instance.setFilterValue,
|
|
107
|
-
visible = instance.visible,
|
|
108
|
-
setVisible = instance.setVisible,
|
|
109
|
-
_instance$children = instance.children,
|
|
110
|
-
children = _instance$children === void 0 ? /*#__PURE__*/_react.default.createElement("div", null) : _instance$children;
|
|
111
|
-
var _itemProps$data = itemProps.data,
|
|
112
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data;
|
|
113
|
-
|
|
114
|
-
var _useState = (0, _react.useState)(filters),
|
|
115
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
116
|
-
options = _useState2[0],
|
|
117
|
-
setOptions = _useState2[1];
|
|
118
|
-
|
|
119
|
-
var _useState3 = (0, _react.useState)([]),
|
|
120
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
121
|
-
checkedValues = _useState4[0],
|
|
122
|
-
setCheckedValues = _useState4[1];
|
|
123
|
-
|
|
124
|
-
var defaultValue = (0, _react.useMemo)(function () {
|
|
125
|
-
return filterValue;
|
|
126
|
-
}, [filterValue]);
|
|
127
|
-
|
|
128
|
-
var onChange = function onChange(item, selectedOptions) {
|
|
129
|
-
var _itemProps$props;
|
|
130
|
-
|
|
131
|
-
setCheckedValues(item);
|
|
132
|
-
|
|
133
|
-
if (!(itemProps === null || itemProps === void 0 ? void 0 : (_itemProps$props = itemProps.props) === null || _itemProps$props === void 0 ? void 0 : _itemProps$props.multiple)) {
|
|
134
|
-
setFilterValue(item);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_cascader.default, (0, _extends2.default)({}, itemProps.props, {
|
|
139
|
-
options: options,
|
|
140
|
-
onChange: onChange,
|
|
141
|
-
defaultValue: defaultValue,
|
|
142
|
-
open: visible,
|
|
143
|
-
onDropdownVisibleChange: function onDropdownVisibleChange(vis) {
|
|
144
|
-
return setVisible(vis);
|
|
145
|
-
},
|
|
146
|
-
dropdownRender: function dropdownRender(dom) {
|
|
147
|
-
return /*#__PURE__*/_react.default.createElement(DropdownRender, {
|
|
148
|
-
dom: dom,
|
|
149
|
-
instance: instance,
|
|
150
|
-
item: itemProps,
|
|
151
|
-
checkedValues: checkedValues,
|
|
152
|
-
setCheckedValues: setCheckedValues,
|
|
153
|
-
setOptions: setOptions
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
}), children));
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
var _default = CascaderFilter;
|
|
160
|
-
exports.default = _default;
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
17
|
-
|
|
18
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
23
|
-
|
|
24
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
|
-
|
|
26
|
-
var _InputSearchClose = _interopRequireDefault(require("./InputSearchClose"));
|
|
27
|
-
|
|
28
|
-
var _EmptyFilter = _interopRequireDefault(require("./EmptyFilter"));
|
|
29
|
-
|
|
30
|
-
var _utils = require("../utils");
|
|
31
|
-
|
|
32
|
-
var _hooks = require("../hooks");
|
|
33
|
-
|
|
34
|
-
var _excluded = ["item"];
|
|
35
|
-
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? _react.useLayoutEffect : _react.useEffect;
|
|
36
|
-
|
|
37
|
-
var CheckboxFilter = function CheckboxFilter(_ref) {
|
|
38
|
-
var instance = _ref.instance,
|
|
39
|
-
itemProps = _ref.item;
|
|
40
|
-
var _instance$filterValue = instance.filterValue,
|
|
41
|
-
filterValue = _instance$filterValue === void 0 ? [] : _instance$filterValue,
|
|
42
|
-
setFilterValue = instance.setFilterValue,
|
|
43
|
-
visible = instance.visible,
|
|
44
|
-
setVisible = instance.setVisible;
|
|
45
|
-
var _itemProps$data = itemProps.data,
|
|
46
|
-
filters = _itemProps$data === void 0 ? [] : _itemProps$data;
|
|
47
|
-
var inputRef = (0, _react.useRef)(); // 选中的数据项: [key, key, ...];
|
|
48
|
-
|
|
49
|
-
var _useState = (0, _react.useState)(filterValue),
|
|
50
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
51
|
-
checkedValues = _useState2[0],
|
|
52
|
-
setCheckedValues = _useState2[1]; // 选中的数据的键
|
|
53
|
-
// const checkedKeys = useMemo(() => checkedValues.map(v => v), [checkedValues]);
|
|
54
|
-
// 搜索后的筛选项
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var _useState3 = (0, _react.useState)(filters),
|
|
58
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
59
|
-
options = _useState4[0],
|
|
60
|
-
setOptions = _useState4[1];
|
|
61
|
-
|
|
62
|
-
var delayedFn = (0, _hooks.useDelayedFn)(); // 是否存在搜索, 当数据大于8时存在搜索
|
|
63
|
-
|
|
64
|
-
var isSearch = (0, _react.useMemo)(function () {
|
|
65
|
-
return filters.length > 8;
|
|
66
|
-
}, [filters.length]); // 是否全选: 选中的数据大于等于筛选后的数据 && 筛选后的数据全部存在于选中的数据中
|
|
67
|
-
|
|
68
|
-
var checkAll = (0, _react.useMemo)(function () {
|
|
69
|
-
var isAll = checkedValues.length >= options.length;
|
|
70
|
-
return isAll && options.every(function (_ref2) {
|
|
71
|
-
var value = _ref2.value;
|
|
72
|
-
return checkedValues.some(function (v) {
|
|
73
|
-
return v === value;
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
}, [checkedValues, options]); // 是否半选: 存在选中的数据 && 未全选
|
|
77
|
-
|
|
78
|
-
var indeterminate = (0, _react.useMemo)(function () {
|
|
79
|
-
return checkedValues.length && !checkAll;
|
|
80
|
-
}, [checkedValues.length, checkAll]); // 搜索
|
|
81
|
-
|
|
82
|
-
var handleFilter = function handleFilter() {
|
|
83
|
-
var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
84
|
-
var serachValues = filters.filter(function (v) {
|
|
85
|
-
return v.label.indexOf(val) > -1;
|
|
86
|
-
});
|
|
87
|
-
setOptions(serachValues);
|
|
88
|
-
}; // 单选事件
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var onChange = function onChange(e, item) {
|
|
92
|
-
e.preventDefault();
|
|
93
|
-
var nValue = checkedValues.some(function (value) {
|
|
94
|
-
return value === item.value;
|
|
95
|
-
}) ? checkedValues.filter(function (value) {
|
|
96
|
-
return value !== item.value;
|
|
97
|
-
}) : (0, _utils.uniqueFunc)([].concat((0, _toConsumableArray2.default)(checkedValues), [item.value]), 'value');
|
|
98
|
-
setCheckedValues(nValue);
|
|
99
|
-
}; // 全选事件
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var onCheckAllChange = function onCheckAllChange() {
|
|
103
|
-
var nValue = checkAll ? checkedValues.filter(function (value) {
|
|
104
|
-
return !options.some(function (v) {
|
|
105
|
-
return v.value === value;
|
|
106
|
-
});
|
|
107
|
-
}) : (0, _utils.uniqueFunc)([].concat((0, _toConsumableArray2.default)(checkedValues), (0, _toConsumableArray2.default)(options)), 'value');
|
|
108
|
-
setCheckedValues(nValue);
|
|
109
|
-
}; // 取消 不执行查询操作 关闭下拉框
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
var handleCancel = function handleCancel() {
|
|
113
|
-
// 手动触发内容改变(不会触发onChange事件)
|
|
114
|
-
setVisible === null || setVisible === void 0 ? void 0 : setVisible(false);
|
|
115
|
-
}; // 确定 执行查询操作
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
var handleSure = function handleSure() {
|
|
119
|
-
setFilterValue(checkedValues);
|
|
120
|
-
}; // 展开下拉时触发: 赋值 && 聚焦 && 重置显示内容
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
useIsomorphicLayoutEffect(function () {
|
|
124
|
-
if (visible) {
|
|
125
|
-
delayedFn(function () {
|
|
126
|
-
var _inputRef$current;
|
|
127
|
-
|
|
128
|
-
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus({
|
|
129
|
-
cursor: 'all'
|
|
130
|
-
});
|
|
131
|
-
}); // 若开启了 Dropdown => destroyPopupOnHide=true 无需重置操作 反之需开启
|
|
132
|
-
// setCheckedValues(filterValue);
|
|
133
|
-
// inputRef.current?.setValue?.('');
|
|
134
|
-
// handleFilter('');
|
|
135
|
-
}
|
|
136
|
-
}, [visible]);
|
|
137
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
138
|
-
className: "filter_dropdown"
|
|
139
|
-
}, isSearch && /*#__PURE__*/_react.default.createElement("div", {
|
|
140
|
-
className: "filter_header"
|
|
141
|
-
}, /*#__PURE__*/_react.default.createElement(_InputSearchClose.default, {
|
|
142
|
-
ref: inputRef,
|
|
143
|
-
onSearch: handleFilter,
|
|
144
|
-
onChange: handleFilter
|
|
145
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
146
|
-
className: "filter_header_operate"
|
|
147
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
148
|
-
indeterminate: indeterminate,
|
|
149
|
-
onChange: onCheckAllChange,
|
|
150
|
-
checked: checkAll,
|
|
151
|
-
className: "filter_tip"
|
|
152
|
-
}, "\u5168\u90E8"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("span", {
|
|
153
|
-
className: "filter_tip"
|
|
154
|
-
}, "\u5DF2\u9009: ", checkedValues.length)))), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox.Group, {
|
|
155
|
-
value: checkedValues,
|
|
156
|
-
className: "filter_body"
|
|
157
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
|
|
158
|
-
options: options,
|
|
159
|
-
className: "filter_list"
|
|
160
|
-
}, function (_ref3) {
|
|
161
|
-
var item = _ref3.item,
|
|
162
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
|
|
163
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
|
|
164
|
-
className: (0, _classnames.default)('filter_item', {
|
|
165
|
-
checked: checkedValues.some(function (value) {
|
|
166
|
-
return value === item.value;
|
|
167
|
-
})
|
|
168
|
-
}),
|
|
169
|
-
onClick: function onClick(e) {
|
|
170
|
-
return onChange(e, item);
|
|
171
|
-
}
|
|
172
|
-
}), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
173
|
-
value: item.value,
|
|
174
|
-
className: "filter_item_content"
|
|
175
|
-
}, item.label));
|
|
176
|
-
}), !options.length && /*#__PURE__*/_react.default.createElement(_EmptyFilter.default, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
177
|
-
className: "filter_footer"
|
|
178
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
179
|
-
className: "footer_clear",
|
|
180
|
-
onClick: handleCancel
|
|
181
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Button, {
|
|
182
|
-
type: "primary",
|
|
183
|
-
size: "small",
|
|
184
|
-
onClick: handleSure
|
|
185
|
-
}, "\u786E\u5B9A")));
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
var _default = CheckboxFilter;
|
|
189
|
-
exports.default = _default;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
21
|
-
|
|
22
|
-
var _InputSearchClose = _interopRequireDefault(require("./InputSearchClose"));
|
|
23
|
-
|
|
24
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
|
-
|
|
26
|
-
var _hooks = require("../hooks");
|
|
27
|
-
|
|
28
|
-
var _excluded = ["item"];
|
|
29
|
-
|
|
30
|
-
// 自定义筛选使用
|
|
31
|
-
var CustomSelect = function CustomSelect(_ref) {
|
|
32
|
-
var instance = _ref.instance;
|
|
33
|
-
var dispatch = instance.dispatch,
|
|
34
|
-
_instance$filters = instance.filters,
|
|
35
|
-
filters = _instance$filters === void 0 ? [] : _instance$filters,
|
|
36
|
-
_instance$filterValue = instance.filterValue,
|
|
37
|
-
filterValue = _instance$filterValue === void 0 ? '' : _instance$filterValue,
|
|
38
|
-
setFilterValue = instance.setFilterValue,
|
|
39
|
-
visible = instance.visible,
|
|
40
|
-
setVisible = instance.setVisible,
|
|
41
|
-
onEdit = instance.onEdit,
|
|
42
|
-
onAdd = instance.onAdd;
|
|
43
|
-
var delayedFn = (0, _hooks.useDelayedFn)();
|
|
44
|
-
var inputRef = (0, _react.useRef)(null); // 搜索后的筛选项
|
|
45
|
-
|
|
46
|
-
var _useState = (0, _react.useState)(filters),
|
|
47
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
48
|
-
options = _useState2[0],
|
|
49
|
-
setOptions = _useState2[1]; // 是否存在搜索, 当数据大于8时存在搜索
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var isSearch = (0, _react.useMemo)(function () {
|
|
53
|
-
return filters.length > 8;
|
|
54
|
-
}, [filters.length]);
|
|
55
|
-
|
|
56
|
-
var handleFilter = function handleFilter() {
|
|
57
|
-
var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
58
|
-
var serachValues = filters.filter(function (v) {
|
|
59
|
-
return v.label.indexOf(val) > -1;
|
|
60
|
-
});
|
|
61
|
-
setOptions(serachValues);
|
|
62
|
-
}; // 单选事件
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var onChange = function onChange(e, obj) {
|
|
66
|
-
e.preventDefault();
|
|
67
|
-
setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue(obj.value, obj);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
var handleAdd = function handleAdd() {
|
|
71
|
-
onAdd();
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var handleEdit = function handleEdit(e, obj) {
|
|
75
|
-
e.stopPropagation();
|
|
76
|
-
onEdit(obj);
|
|
77
|
-
}; // 展开下拉时触发: 赋值 && 聚焦 && 重置显示内容
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
(0, _react.useEffect)(function () {
|
|
81
|
-
if (visible) {
|
|
82
|
-
delayedFn(function () {
|
|
83
|
-
var _inputRef$current, _inputRef$current$foc;
|
|
84
|
-
|
|
85
|
-
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : (_inputRef$current$foc = _inputRef$current.focus) === null || _inputRef$current$foc === void 0 ? void 0 : _inputRef$current$foc.call(_inputRef$current, {
|
|
86
|
-
cursor: 'all'
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
}, [visible]);
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
92
|
-
className: "filter_dropdown"
|
|
93
|
-
}, isSearch && /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
-
className: "filter_header"
|
|
95
|
-
}, /*#__PURE__*/_react.default.createElement(_InputSearchClose.default, {
|
|
96
|
-
ref: inputRef,
|
|
97
|
-
onSearch: handleFilter,
|
|
98
|
-
onChange: handleFilter
|
|
99
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
-
className: "filter_body"
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.VirtualList, {
|
|
102
|
-
options: options,
|
|
103
|
-
className: "filter_list"
|
|
104
|
-
}, function (_ref2) {
|
|
105
|
-
var item = _ref2.item,
|
|
106
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
107
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, resetProps, {
|
|
108
|
-
className: (0, _classnames.default)('filter_item', {
|
|
109
|
-
checked: item.value === filterValue
|
|
110
|
-
}),
|
|
111
|
-
onClick: function onClick(e) {
|
|
112
|
-
return onChange(e, item);
|
|
113
|
-
}
|
|
114
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
-
className: "filter_item_content"
|
|
116
|
-
}, item.label), /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className: "filter_item_operate"
|
|
118
|
-
}, item.value && /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
-
className: "icon_hover",
|
|
120
|
-
onClick: function onClick(e) {
|
|
121
|
-
return handleEdit(e, item);
|
|
122
|
-
}
|
|
123
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
124
|
-
type: "lmweb-edit"
|
|
125
|
-
})), item.default && /*#__PURE__*/_react.default.createElement("div", null, "\u9ED8\u8BA4")));
|
|
126
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className: "filter_item last_item",
|
|
128
|
-
onClick: function onClick(e) {
|
|
129
|
-
return handleAdd(e);
|
|
130
|
-
}
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
-
className: "filter_item-content"
|
|
133
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
134
|
-
type: "lmweb-plus"
|
|
135
|
-
}), "\u65B0\u589E\u81EA\u5B9A\u4E49\u67E5\u8BE2"))));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
var _default = CustomSelect;
|
|
139
|
-
exports.default = _default;
|
|
@@ -1,163 +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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
17
|
-
|
|
18
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
19
|
-
|
|
20
|
-
var _utils = require("../utils");
|
|
21
|
-
|
|
22
|
-
var RangePicker = function RangePicker(_ref) {
|
|
23
|
-
var instance = _ref.instance,
|
|
24
|
-
onChange = _ref.onChange,
|
|
25
|
-
itemProps = _ref.itemProps;
|
|
26
|
-
var filterValue = instance.filterValue,
|
|
27
|
-
setFilterValue = instance.setFilterValue,
|
|
28
|
-
visible = instance.visible,
|
|
29
|
-
setVisible = instance.setVisible;
|
|
30
|
-
var defaultValue = (0, _react.useMemo)(function () {
|
|
31
|
-
var nValue;
|
|
32
|
-
|
|
33
|
-
if ((0, _utils.getIsHas)(filterValue)) {
|
|
34
|
-
nValue = [(0, _moment.default)(filterValue[0]), (0, _moment.default)(filterValue[1])];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return nValue;
|
|
38
|
-
}, [filterValue]); // 最近的时间段, 值为JSON转换后的字符串
|
|
39
|
-
|
|
40
|
-
var ranges = (0, _react.useMemo)(function () {
|
|
41
|
-
return Object.entries((0, _utils.getRanges)()).map(function (item, i) {
|
|
42
|
-
return {
|
|
43
|
-
id: i,
|
|
44
|
-
label: item[0],
|
|
45
|
-
value: JSON.stringify(item[1])
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
}, []); // 选中时间段的触发
|
|
49
|
-
|
|
50
|
-
var handleOnChange = function handleOnChange(dates, dateStrings) {
|
|
51
|
-
onChange(dates, (0, _utils.getIsHas)(dateStrings.filter(function (v) {
|
|
52
|
-
return !!v;
|
|
53
|
-
})) ? dateStrings : null);
|
|
54
|
-
}; // 最近的时间触发事件
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var handleLastDateOnChange = function handleLastDateOnChange(e) {
|
|
58
|
-
var nValue = JSON.parse(e.target.value);
|
|
59
|
-
setFilterValue(nValue);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var panelRender = function panelRender(panelNode) {
|
|
63
|
-
var activeValue = JSON.stringify(filterValue);
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
className: "filter_picker_box"
|
|
66
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
67
|
-
className: "filter_picker_main"
|
|
68
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
-
className: "filter_picker_header"
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
-
className: "filter_picker_header_tip"
|
|
72
|
-
}, defaultValue && "".concat(filterValue[0], " - ").concat(filterValue[1])), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
-
className: "filter_picker_header_operate"
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio.Group, {
|
|
75
|
-
value: activeValue,
|
|
76
|
-
onChange: handleLastDateOnChange,
|
|
77
|
-
size: "small"
|
|
78
|
-
}, ranges.map(function (v) {
|
|
79
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Radio.Button, {
|
|
80
|
-
key: v.label,
|
|
81
|
-
value: v.value
|
|
82
|
-
}, v.label);
|
|
83
|
-
})))), panelNode));
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.DatePicker.RangePicker, (0, _extends2.default)({
|
|
87
|
-
picker: "date",
|
|
88
|
-
separator: /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
89
|
-
type: "lmweb-swap-right",
|
|
90
|
-
style: {
|
|
91
|
-
color: 'var(--text-color)'
|
|
92
|
-
}
|
|
93
|
-
}),
|
|
94
|
-
placeholder: ['开始日期', '结束日期']
|
|
95
|
-
}, itemProps, {
|
|
96
|
-
value: defaultValue,
|
|
97
|
-
onChange: handleOnChange,
|
|
98
|
-
open: visible,
|
|
99
|
-
onOpenChange: function onOpenChange(vis) {
|
|
100
|
-
return setVisible(vis);
|
|
101
|
-
},
|
|
102
|
-
panelRender: panelRender,
|
|
103
|
-
dropdownClassName: "lm_filter_dropdown_picker",
|
|
104
|
-
size: "middle",
|
|
105
|
-
inputReadOnly: true
|
|
106
|
-
})));
|
|
107
|
-
}; // 日期范围选择器
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var DatePickerFilter = function DatePickerFilter(_ref2) {
|
|
111
|
-
var instance = _ref2.instance,
|
|
112
|
-
itemProps = _ref2.item;
|
|
113
|
-
var filterValue = instance.filterValue,
|
|
114
|
-
setFilterValue = instance.setFilterValue,
|
|
115
|
-
visible = instance.visible,
|
|
116
|
-
setVisible = instance.setVisible;
|
|
117
|
-
var props = itemProps.props;
|
|
118
|
-
|
|
119
|
-
var _ref3 = props || {},
|
|
120
|
-
_ref3$picker = _ref3.picker,
|
|
121
|
-
picker = _ref3$picker === void 0 ? 'date' : _ref3$picker;
|
|
122
|
-
|
|
123
|
-
var defaultValue = (0, _react.useMemo)(function () {
|
|
124
|
-
var nValue; // 周/月/季/年 需要处理回显
|
|
125
|
-
|
|
126
|
-
if (picker !== 'date') return nValue;
|
|
127
|
-
|
|
128
|
-
if (filterValue) {
|
|
129
|
-
nValue = (0, _moment.default)(filterValue);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return nValue;
|
|
133
|
-
}, [filterValue]); // 选中时间段的触发
|
|
134
|
-
|
|
135
|
-
var onChange = function onChange(dates, dateStrings) {
|
|
136
|
-
setFilterValue((0, _utils.getIsHas)(dateStrings) ? dateStrings : null);
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
if (['range', 'rangePicker'].includes(itemProps.dateType || itemProps.datetype)) {
|
|
140
|
-
return /*#__PURE__*/_react.default.createElement(RangePicker, {
|
|
141
|
-
instance: instance,
|
|
142
|
-
onChange: onChange,
|
|
143
|
-
itemProps: props
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return /*#__PURE__*/_react.default.createElement(_linkmoreDesign.DatePicker, (0, _extends2.default)({
|
|
148
|
-
placeholder: "\u9009\u62E9\u65F6\u95F4"
|
|
149
|
-
}, props, {
|
|
150
|
-
defaultValue: defaultValue,
|
|
151
|
-
onChange: onChange,
|
|
152
|
-
open: visible,
|
|
153
|
-
onOpenChange: function onOpenChange(vis) {
|
|
154
|
-
return setVisible(vis);
|
|
155
|
-
},
|
|
156
|
-
size: "middle",
|
|
157
|
-
inputReadOnly: true,
|
|
158
|
-
dropdownClassName: "lm_filter_dropdown_picker"
|
|
159
|
-
}));
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
var _default = DatePickerFilter;
|
|
163
|
-
exports.default = _default;
|