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,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
options: 展示的标签项
|
|
16
|
-
type: 'radio' / 'checkbox'
|
|
17
|
-
value: 选中的值
|
|
18
|
-
onChang: 选中时触发事件
|
|
19
|
-
*/
|
|
20
|
-
var ButtonTags = function ButtonTags(props) {
|
|
21
|
-
var value = props.value,
|
|
22
|
-
onChange = props.onChange,
|
|
23
|
-
disabled = props.disabled,
|
|
24
|
-
_props$type = props.type,
|
|
25
|
-
type = _props$type === void 0 ? 'checkbox' : _props$type,
|
|
26
|
-
options = props.options,
|
|
27
|
-
size = props.size;
|
|
28
|
-
|
|
29
|
-
var handleClick = function handleClick(item) {
|
|
30
|
-
if (type === 'radio') {
|
|
31
|
-
var nValue = value === item.value ? '' : item.value;
|
|
32
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nValue);
|
|
33
|
-
} else {
|
|
34
|
-
var oriValue = value || [];
|
|
35
|
-
var has = oriValue === null || oriValue === void 0 ? void 0 : oriValue.includes(item.value);
|
|
36
|
-
|
|
37
|
-
var _nValue = has ? oriValue.filter(function (v) {
|
|
38
|
-
return v !== item.value;
|
|
39
|
-
}) : [].concat((0, _toConsumableArray2.default)(oriValue), [item.value]);
|
|
40
|
-
|
|
41
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_nValue);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
-
className: "lm_base_button_tag_Group ".concat(size === 'small' ? 'small' : '', " ").concat(disabled ? 'disabled' : '')
|
|
47
|
-
}, options === null || options === void 0 ? void 0 : options.map(function (item) {
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
-
key: item.value,
|
|
50
|
-
className: "button_tag_item ".concat((value === null || value === void 0 ? void 0 : value.indexOf(item.value)) > -1 ? 'active' : ''),
|
|
51
|
-
onClick: function onClick() {
|
|
52
|
-
return handleClick(item);
|
|
53
|
-
}
|
|
54
|
-
}, item.label);
|
|
55
|
-
}));
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var _default = ButtonTags;
|
|
59
|
-
exports.default = _default;
|
package/lib/ButtonTags/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _ButtonTags = _interopRequireDefault(require("./ButtonTags"));
|
|
11
|
-
|
|
12
|
-
var _default = _ButtonTags.default;
|
|
13
|
-
exports.default = _default;
|
|
@@ -1,63 +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 _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
var _TableRoot = _interopRequireDefault(require("./table/TableRoot"));
|
|
19
|
-
|
|
20
|
-
var _excluded = ["cellKey", "type", "height", "virtual", "ellipsis", "components", "dataSource", "cellConfig", "checkboxConfig"];
|
|
21
|
-
|
|
22
|
-
// export type LmCardTableProps<TData extends Record<string, any> = {}> {
|
|
23
|
-
// rows: LM_Row<TData>[];
|
|
24
|
-
// }
|
|
25
|
-
// 默认抛出
|
|
26
|
-
var LmCardTable = function LmCardTable(_ref, ref) {
|
|
27
|
-
var _ref$cellKey = _ref.cellKey,
|
|
28
|
-
cellKey = _ref$cellKey === void 0 ? 'id' : _ref$cellKey,
|
|
29
|
-
_ref$type = _ref.type,
|
|
30
|
-
type = _ref$type === void 0 ? 'PTC' : _ref$type,
|
|
31
|
-
_ref$height = _ref.height,
|
|
32
|
-
height = _ref$height === void 0 ? '100%' : _ref$height,
|
|
33
|
-
_ref$virtual = _ref.virtual,
|
|
34
|
-
virtual = _ref$virtual === void 0 ? true : _ref$virtual,
|
|
35
|
-
_ref$ellipsis = _ref.ellipsis,
|
|
36
|
-
ellipsis = _ref$ellipsis === void 0 ? true : _ref$ellipsis,
|
|
37
|
-
_ref$components = _ref.components,
|
|
38
|
-
components = _ref$components === void 0 ? {} : _ref$components,
|
|
39
|
-
_ref$dataSource = _ref.dataSource,
|
|
40
|
-
dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
|
|
41
|
-
_ref$cellConfig = _ref.cellConfig,
|
|
42
|
-
cellConfig = _ref$cellConfig === void 0 ? {} : _ref$cellConfig,
|
|
43
|
-
_ref$checkboxConfig = _ref.checkboxConfig,
|
|
44
|
-
checkboxConfig = _ref$checkboxConfig === void 0 ? {} : _ref$checkboxConfig,
|
|
45
|
-
resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
46
|
-
var defaultRef = (0, _react.useRef)(null);
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(_TableRoot.default, (0, _extends2.default)({
|
|
48
|
-
cellKey: cellKey,
|
|
49
|
-
type: type,
|
|
50
|
-
height: height,
|
|
51
|
-
virtual: virtual,
|
|
52
|
-
ellipsis: ellipsis,
|
|
53
|
-
components: components,
|
|
54
|
-
dataSource: dataSource,
|
|
55
|
-
cellConfig: cellConfig,
|
|
56
|
-
checkboxConfig: checkboxConfig,
|
|
57
|
-
ref: ref || defaultRef
|
|
58
|
-
}, resetProps));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
var _default = /*#__PURE__*/(0, _react.forwardRef)(LmCardTable);
|
|
62
|
-
|
|
63
|
-
exports.default = _default;
|
|
@@ -1,78 +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 _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
var _TableBodyRow = _interopRequireWildcard(require("./TableBodyRow"));
|
|
17
|
-
|
|
18
|
-
var _reactVirtual = require("react-virtual");
|
|
19
|
-
|
|
20
|
-
var TableBody = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
21
|
-
var table = _ref.table,
|
|
22
|
-
tableContainerRef = _ref.tableContainerRef;
|
|
23
|
-
var _table$state = table.state,
|
|
24
|
-
rows = _table$state.rows,
|
|
25
|
-
checkboxConfig = _table$state.checkboxConfig,
|
|
26
|
-
rowConfig = table.rowConfig,
|
|
27
|
-
height = table.cellConfig.height,
|
|
28
|
-
virtual = table.virtual; // 是否存在选中
|
|
29
|
-
|
|
30
|
-
var hasChecked = (0, _react.useMemo)(function () {
|
|
31
|
-
return checkboxConfig.checkKeys.length;
|
|
32
|
-
}, [checkboxConfig.checkKeys.length]);
|
|
33
|
-
|
|
34
|
-
var _useVirtual = (0, _reactVirtual.useVirtual)({
|
|
35
|
-
size: rows.length,
|
|
36
|
-
parentRef: tableContainerRef,
|
|
37
|
-
estimateSize: _react.default.useCallback(function () {
|
|
38
|
-
return height + rowConfig.gap;
|
|
39
|
-
}, [height]),
|
|
40
|
-
overscan: 2
|
|
41
|
-
}),
|
|
42
|
-
totalSize = _useVirtual.totalSize,
|
|
43
|
-
virtualItems = _useVirtual.virtualItems;
|
|
44
|
-
|
|
45
|
-
var virScrollStyles = (0, _react.useMemo)(function () {
|
|
46
|
-
return {
|
|
47
|
-
height: "".concat(totalSize - rowConfig.gap, "px"),
|
|
48
|
-
width: '100%',
|
|
49
|
-
position: "relative"
|
|
50
|
-
};
|
|
51
|
-
}, [totalSize]);
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
-
className: (0, _classnames.default)('lm_card_table_body', hasChecked && 'hasChecked')
|
|
54
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
-
className: "lm_card_table_body_scroll",
|
|
56
|
-
style: virScrollStyles
|
|
57
|
-
}, virtual && rows.length > 10 ? virtualItems.map(function (_ref2) {
|
|
58
|
-
var index = _ref2.index,
|
|
59
|
-
start = _ref2.start;
|
|
60
|
-
return /*#__PURE__*/_react.default.createElement(_TableBodyRow.LmCardTableBodyRowVirtual, {
|
|
61
|
-
key: index,
|
|
62
|
-
rowIndex: index,
|
|
63
|
-
start: start,
|
|
64
|
-
row: rows[index],
|
|
65
|
-
table: table
|
|
66
|
-
});
|
|
67
|
-
}) : rows.map(function (row, index) {
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement(_TableBodyRow.default, {
|
|
69
|
-
key: index,
|
|
70
|
-
rowIndex: index,
|
|
71
|
-
row: row,
|
|
72
|
-
table: table
|
|
73
|
-
});
|
|
74
|
-
})));
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
var _default = TableBody;
|
|
78
|
-
exports.default = _default;
|
|
@@ -1,67 +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/extends"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
|
|
18
|
-
var _PictureTextColumn = _interopRequireDefault(require("../card/PictureTextColumn"));
|
|
19
|
-
|
|
20
|
-
var _PictureTextRow = _interopRequireDefault(require("../card/PictureTextRow"));
|
|
21
|
-
|
|
22
|
-
var _PictureTextRowOperate = _interopRequireDefault(require("../card/PictureTextRowOperate"));
|
|
23
|
-
|
|
24
|
-
var LmCardTableBodyCell = function LmCardTableBodyCell(_ref) {
|
|
25
|
-
var index = _ref.index,
|
|
26
|
-
cell = _ref.cell,
|
|
27
|
-
table = _ref.table;
|
|
28
|
-
var state = table.state,
|
|
29
|
-
type = table.type,
|
|
30
|
-
components = table.components,
|
|
31
|
-
cellKey = table.cellKey;
|
|
32
|
-
var checkKeys = state.checkboxConfig.checkKeys,
|
|
33
|
-
radioConfig = state.radioConfig; // 渲染的单元格
|
|
34
|
-
|
|
35
|
-
var RenderCell = (0, _react.useMemo)(function () {
|
|
36
|
-
var types = {
|
|
37
|
-
'PTC': _PictureTextColumn.default,
|
|
38
|
-
'PTR': _PictureTextRow.default,
|
|
39
|
-
'PTRO': _PictureTextRowOperate.default
|
|
40
|
-
};
|
|
41
|
-
return components.Cell || types[type] || _PictureTextColumn.default;
|
|
42
|
-
}, [components.Cell, type]); // 是否选中
|
|
43
|
-
|
|
44
|
-
var isCheckboxChecked = (0, _react.useMemo)(function () {
|
|
45
|
-
return checkKeys.some(function (v) {
|
|
46
|
-
return v === cell[cellKey];
|
|
47
|
-
});
|
|
48
|
-
}, [checkKeys, cellKey]);
|
|
49
|
-
var isRadioChecked = (0, _react.useMemo)(function () {
|
|
50
|
-
return radioConfig.checkKey === cell[cellKey];
|
|
51
|
-
}, [cellKey, radioConfig.checkKey]);
|
|
52
|
-
var stateConfig = {
|
|
53
|
-
checked: isCheckboxChecked
|
|
54
|
-
};
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: (0, _classnames.default)('lm_card_table_body_cell', {
|
|
57
|
-
'cell_checked': isCheckboxChecked || isRadioChecked
|
|
58
|
-
})
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(RenderCell, (0, _extends2.default)({
|
|
60
|
-
index: index,
|
|
61
|
-
cell: cell,
|
|
62
|
-
table: table
|
|
63
|
-
}, stateConfig)));
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
var _default = LmCardTableBodyCell;
|
|
67
|
-
exports.default = _default;
|
|
@@ -1,91 +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 = exports.LmCardTableBodyRowVirtual = void 0;
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
var _TableBodyCell = _interopRequireDefault(require("./TableBodyCell"));
|
|
17
|
-
|
|
18
|
-
var LmCardTableBodyRow = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
19
|
-
var row = _ref.row,
|
|
20
|
-
rowIndex = _ref.rowIndex,
|
|
21
|
-
table = _ref.table;
|
|
22
|
-
var state = table.state,
|
|
23
|
-
rowConfig = table.rowConfig,
|
|
24
|
-
height = table.cellConfig.height,
|
|
25
|
-
cellKey = table.cellKey; // 检测是否最后末行
|
|
26
|
-
|
|
27
|
-
var isLastRow = (0, _react.useMemo)(function () {
|
|
28
|
-
return state.rows.length === rowIndex + 1;
|
|
29
|
-
}, [state.rows, rowIndex]);
|
|
30
|
-
var style = {
|
|
31
|
-
height: isLastRow ? height : height + rowConfig.gap,
|
|
32
|
-
width: '100%',
|
|
33
|
-
minWidth: '100%',
|
|
34
|
-
gridGap: rowConfig.gap,
|
|
35
|
-
gridTemplateColumns: "repeat(".concat(state.columnCount, ", 1fr)"),
|
|
36
|
-
paddingBottom: isLastRow ? 0 : rowConfig.gap
|
|
37
|
-
};
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
-
className: (0, _classnames.default)('lm_card_table_body_row', isLastRow && 'last_row'),
|
|
40
|
-
style: style
|
|
41
|
-
}, row.map(function (cell, index) {
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_TableBodyCell.default, {
|
|
43
|
-
key: (cell === null || cell === void 0 ? void 0 : cell[cellKey]) || index,
|
|
44
|
-
index: index,
|
|
45
|
-
cell: cell,
|
|
46
|
-
table: table
|
|
47
|
-
});
|
|
48
|
-
}));
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
var LmCardTableBodyRowVirtual = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
52
|
-
var row = _ref2.row,
|
|
53
|
-
start = _ref2.start,
|
|
54
|
-
rowIndex = _ref2.rowIndex,
|
|
55
|
-
table = _ref2.table;
|
|
56
|
-
var state = table.state,
|
|
57
|
-
rowConfig = table.rowConfig,
|
|
58
|
-
height = table.cellConfig.height,
|
|
59
|
-
cellKey = table.cellKey; // 检测是否最后末行
|
|
60
|
-
|
|
61
|
-
var isLastRow = (0, _react.useMemo)(function () {
|
|
62
|
-
return state.rows.length === rowIndex + 1;
|
|
63
|
-
});
|
|
64
|
-
var style = {
|
|
65
|
-
position: "absolute",
|
|
66
|
-
top: 0,
|
|
67
|
-
left: 0,
|
|
68
|
-
height: isLastRow ? height : height + rowConfig.gap,
|
|
69
|
-
width: '100%',
|
|
70
|
-
minWidth: '100%',
|
|
71
|
-
transform: "translateY(".concat(start, "px)"),
|
|
72
|
-
gridGap: rowConfig.gap,
|
|
73
|
-
gridTemplateColumns: "repeat(".concat(state.columnCount, ", 1fr)"),
|
|
74
|
-
paddingBottom: isLastRow ? 0 : rowConfig.gap
|
|
75
|
-
};
|
|
76
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
-
className: (0, _classnames.default)('lm_card_table_body_row', isLastRow && 'last_row'),
|
|
78
|
-
style: style
|
|
79
|
-
}, row.map(function (cell, index) {
|
|
80
|
-
return /*#__PURE__*/_react.default.createElement(_TableBodyCell.default, {
|
|
81
|
-
key: (cell === null || cell === void 0 ? void 0 : cell[cellKey]) || index,
|
|
82
|
-
index: index,
|
|
83
|
-
cell: cell,
|
|
84
|
-
table: table
|
|
85
|
-
});
|
|
86
|
-
}));
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
exports.LmCardTableBodyRowVirtual = LmCardTableBodyRowVirtual;
|
|
90
|
-
var _default = LmCardTableBodyRow;
|
|
91
|
-
exports.default = _default;
|
|
@@ -1,132 +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
|
-
require("antd/es/typography/style");
|
|
15
|
-
|
|
16
|
-
var _typography = _interopRequireDefault(require("antd/es/typography"));
|
|
17
|
-
|
|
18
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
-
|
|
22
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
23
|
-
|
|
24
|
-
var Paragraph = _typography.default.Paragraph; // 上图下文
|
|
25
|
-
|
|
26
|
-
var PictureTextColumn = function PictureTextColumn(_ref) {
|
|
27
|
-
var index = _ref.index,
|
|
28
|
-
cell = _ref.cell,
|
|
29
|
-
table = _ref.table,
|
|
30
|
-
checked = _ref.checked;
|
|
31
|
-
var cellKey = table.cellKey,
|
|
32
|
-
state = table.state,
|
|
33
|
-
defaultConfig = table.defaultConfig,
|
|
34
|
-
cellClick = table.cellClick,
|
|
35
|
-
cellDoubleClick = table.cellDoubleClick,
|
|
36
|
-
toggleCheckboxKey = table.toggleCheckboxKey;
|
|
37
|
-
var trigger = state.checkboxConfig.trigger;
|
|
38
|
-
var clickFlag = (0, _react.useRef)(null);
|
|
39
|
-
var resetDefaultConfig = (0, _objectSpread2.default)({
|
|
40
|
-
checkbox: true,
|
|
41
|
-
imgurl: 'imgurl',
|
|
42
|
-
title: function title() {
|
|
43
|
-
return '物料名称';
|
|
44
|
-
},
|
|
45
|
-
code: 'code',
|
|
46
|
-
operate: null,
|
|
47
|
-
extend: null,
|
|
48
|
-
extra: null
|
|
49
|
-
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
50
|
-
|
|
51
|
-
var onSelectChange = function onSelectChange(val, trigger) {
|
|
52
|
-
toggleCheckboxKey(cell[cellKey], {
|
|
53
|
-
cell: cell,
|
|
54
|
-
cellIndex: index,
|
|
55
|
-
trigger: trigger
|
|
56
|
-
});
|
|
57
|
-
}; // 单元格单击事件
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var onClick = function onClick() {
|
|
61
|
-
// clearTimeout(clickFlag.current); // 清除第一个单击事件
|
|
62
|
-
// clickFlag.current = setTimeout(() => {
|
|
63
|
-
// 触发区域为单元格时仅触发复选事件
|
|
64
|
-
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
65
|
-
|
|
66
|
-
if (trigger === 'cell') {
|
|
67
|
-
onSelectChange === null || onSelectChange === void 0 ? void 0 : onSelectChange(!checked, trigger);
|
|
68
|
-
} // }, 200)
|
|
69
|
-
|
|
70
|
-
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var onDoubleClick = function onDoubleClick() {
|
|
74
|
-
// clearTimeout(clickFlag.current); // 清除第一个单击事件
|
|
75
|
-
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
-
className: "card_PTC"
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
81
|
-
className: (0, _classnames.default)('card_PTC_container', checked && 'checked'),
|
|
82
|
-
onClick: onClick,
|
|
83
|
-
onDoubleClick: onDoubleClick
|
|
84
|
-
}, resetDefaultConfig.checkbox && /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
className: "card_checkbox",
|
|
86
|
-
onClick: function onClick(e) {
|
|
87
|
-
return e.stopPropagation();
|
|
88
|
-
}
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
90
|
-
checked: checked,
|
|
91
|
-
onChange: function onChange(e) {
|
|
92
|
-
return onSelectChange(e.target.checked);
|
|
93
|
-
}
|
|
94
|
-
})), resetDefaultConfig.operate || resetDefaultConfig.extra ? /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
-
className: "card_extra",
|
|
96
|
-
onClick: function onClick(e) {
|
|
97
|
-
return e.stopPropagation();
|
|
98
|
-
}
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Dropdown, {
|
|
100
|
-
placement: "bottomRight",
|
|
101
|
-
trigger: "click",
|
|
102
|
-
overlay: function overlay() {
|
|
103
|
-
return (resetDefaultConfig.operate || resetDefaultConfig.extra)(cell, table);
|
|
104
|
-
}
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
106
|
-
type: "lmweb-gengduotianchong"
|
|
107
|
-
}))) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
-
className: "card_PTC_top"
|
|
109
|
-
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Image, {
|
|
110
|
-
src: cell[resetDefaultConfig.imgurl],
|
|
111
|
-
fallback: ""
|
|
112
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
className: "card_PTC_center"
|
|
114
|
-
}, resetDefaultConfig.title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
-
className: "card_title lm-font-middle-bold"
|
|
116
|
-
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className: "card_copy_text"
|
|
118
|
-
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/_react.default.createElement(Paragraph, {
|
|
119
|
-
copyable: {
|
|
120
|
-
tooltips: false,
|
|
121
|
-
onCopy: function onCopy() {
|
|
122
|
-
return _linkmoreDesign.message.success('复制成功!', 1.5);
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
ellipsis: true
|
|
126
|
-
}, cell[resetDefaultConfig.code])) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className: "card_PTC_bottom"
|
|
128
|
-
}, resetDefaultConfig.extend ? resetDefaultConfig.extend(cell, table) : null)));
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
var _default = PictureTextColumn;
|
|
132
|
-
exports.default = _default;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("antd/es/message/style");
|
|
11
|
-
|
|
12
|
-
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
13
|
-
|
|
14
|
-
require("antd/es/image/style");
|
|
15
|
-
|
|
16
|
-
var _image = _interopRequireDefault(require("antd/es/image"));
|
|
17
|
-
|
|
18
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
19
|
-
|
|
20
|
-
require("antd/es/typography/style");
|
|
21
|
-
|
|
22
|
-
var _typography = _interopRequireDefault(require("antd/es/typography"));
|
|
23
|
-
|
|
24
|
-
var _react = _interopRequireDefault(require("react"));
|
|
25
|
-
|
|
26
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
|
-
|
|
28
|
-
var _linkmoreDesign = require("linkmore-design");
|
|
29
|
-
|
|
30
|
-
var Paragraph = _typography.default.Paragraph; // 左图右文
|
|
31
|
-
|
|
32
|
-
var PictureTextRow = function PictureTextRow(_ref) {
|
|
33
|
-
var index = _ref.index,
|
|
34
|
-
cell = _ref.cell,
|
|
35
|
-
table = _ref.table,
|
|
36
|
-
checked = _ref.checked;
|
|
37
|
-
var cellKey = table.cellKey,
|
|
38
|
-
state = table.state,
|
|
39
|
-
defaultConfig = table.defaultConfig,
|
|
40
|
-
cellClick = table.cellClick,
|
|
41
|
-
cellDoubleClick = table.cellDoubleClick,
|
|
42
|
-
toggleCheckboxKey = table.toggleCheckboxKey,
|
|
43
|
-
checkboxChange = table.checkboxChange,
|
|
44
|
-
ellipsis = table.ellipsis;
|
|
45
|
-
var trigger = state.checkboxConfig.trigger;
|
|
46
|
-
var resetDefaultConfig = (0, _objectSpread2.default)({
|
|
47
|
-
checkbox: true,
|
|
48
|
-
imgurl: 'imgurl',
|
|
49
|
-
title: function title() {
|
|
50
|
-
return '物料名称';
|
|
51
|
-
},
|
|
52
|
-
code: 'code',
|
|
53
|
-
operate: null,
|
|
54
|
-
extend: null,
|
|
55
|
-
columns: null,
|
|
56
|
-
footer: null,
|
|
57
|
-
// 底部区域
|
|
58
|
-
extra: null
|
|
59
|
-
}, defaultConfig); // 复选框改变事件, 将复选数据保存到缓存中
|
|
60
|
-
|
|
61
|
-
var onSelctChange = function onSelctChange(val) {
|
|
62
|
-
toggleCheckboxKey(cell[cellKey]);
|
|
63
|
-
checkboxChange === null || checkboxChange === void 0 ? void 0 : checkboxChange(val, cell, index);
|
|
64
|
-
}; // 单元格单击事件
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
var onClick = function onClick() {
|
|
68
|
-
cellClick === null || cellClick === void 0 ? void 0 : cellClick(cell, index);
|
|
69
|
-
|
|
70
|
-
if (trigger === 'cell') {
|
|
71
|
-
onSelctChange === null || onSelctChange === void 0 ? void 0 : onSelctChange(!checked);
|
|
72
|
-
}
|
|
73
|
-
}; // 单元格双击事件: 双击时避免单击事件触发自己实现
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var onDoubleClick = function onDoubleClick() {
|
|
77
|
-
cellDoubleClick === null || cellDoubleClick === void 0 ? void 0 : cellDoubleClick(cell, index);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
81
|
-
className: "card_PTR"
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
-
className: (0, _classnames.default)('card_PTR_container', checked && 'checked')
|
|
84
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
className: "card_PTR_body",
|
|
86
|
-
onClick: onClick,
|
|
87
|
-
onDoubleClick: onDoubleClick
|
|
88
|
-
}, resetDefaultConfig.checkbox && /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
-
className: "card_checkbox",
|
|
90
|
-
onClick: function onClick(e) {
|
|
91
|
-
return e.stopPropagation();
|
|
92
|
-
}
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
94
|
-
checked: checked,
|
|
95
|
-
onChange: function onChange(e) {
|
|
96
|
-
return onSelctChange(e.target.checked);
|
|
97
|
-
}
|
|
98
|
-
})), resetDefaultConfig.extra ? /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
-
className: "card_extra",
|
|
100
|
-
onClick: function onClick(e) {
|
|
101
|
-
return e.stopPropagation();
|
|
102
|
-
}
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Dropdown, {
|
|
104
|
-
placement: "bottomRight",
|
|
105
|
-
trigger: "click",
|
|
106
|
-
overlay: function overlay() {
|
|
107
|
-
return resetDefaultConfig.extra(cell, table);
|
|
108
|
-
}
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
110
|
-
type: "lmweb-gengduotianchong"
|
|
111
|
-
}))) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
112
|
-
className: "card_PTR_left"
|
|
113
|
-
}, typeof resetDefaultConfig.imgurl === 'function' ? resetDefaultConfig.imgurl(cell, table) : /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
114
|
-
src: cell[resetDefaultConfig.imgurl],
|
|
115
|
-
fallback: ""
|
|
116
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
className: "card_PTR_right"
|
|
118
|
-
}, resetDefaultConfig.title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
-
className: "card_title lm-font-middle-bold"
|
|
120
|
-
}, typeof resetDefaultConfig.title === 'function' ? resetDefaultConfig.title(cell, table) : cell[resetDefaultConfig.title]) : null, resetDefaultConfig.code ? /*#__PURE__*/_react.default.createElement("div", {
|
|
121
|
-
className: "card_copy_text"
|
|
122
|
-
}, typeof resetDefaultConfig.code === 'function' ? resetDefaultConfig.code(cell, table) : /*#__PURE__*/_react.default.createElement(Paragraph, {
|
|
123
|
-
copyable: {
|
|
124
|
-
tooltips: false,
|
|
125
|
-
onCopy: function onCopy() {
|
|
126
|
-
return _message2.default.success('复制成功!', 1.5);
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
ellipsis: true
|
|
130
|
-
}, cell[resetDefaultConfig.code])) : null, resetDefaultConfig.columns ? /*#__PURE__*/_react.default.createElement("div", {
|
|
131
|
-
className: "PTR_column"
|
|
132
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
133
|
-
className: "PTR_column_box"
|
|
134
|
-
}, resetDefaultConfig.columns.map(function (v, idx) {
|
|
135
|
-
var isVisible = v.show || typeof v.show !== 'boolean';
|
|
136
|
-
return isVisible ? /*#__PURE__*/_react.default.createElement("div", {
|
|
137
|
-
key: (v === null || v === void 0 ? void 0 : v.dataIndex) || idx
|
|
138
|
-
}, v.title, "\uFF1A", /*#__PURE__*/_react.default.createElement("div", {
|
|
139
|
-
className: (0, _classnames.default)({
|
|
140
|
-
ellipsis: ellipsis
|
|
141
|
-
})
|
|
142
|
-
}, typeof v.render === 'function' ? v.render(cell[v.dataIndex], cell, table) : cell[v.dataIndex])) : null;
|
|
143
|
-
}))) : null, resetDefaultConfig.extend ? /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className: "PTR_extend"
|
|
145
|
-
}, resetDefaultConfig.extend(cell, table)) : null, resetDefaultConfig.desc ? /*#__PURE__*/_react.default.createElement("div", {
|
|
146
|
-
className: "PTR_desc"
|
|
147
|
-
}, typeof resetDefaultConfig.desc === 'function' ? resetDefaultConfig.desc(cell, table) : cell[resetDefaultConfig.desc]) : null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
148
|
-
className: "card_PTR_footer"
|
|
149
|
-
}, resetDefaultConfig.footer || resetDefaultConfig.operate ? (resetDefaultConfig.footer || resetDefaultConfig.operate)(cell, table) : null)));
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
var _default = PictureTextRow;
|
|
153
|
-
exports.default = _default;
|