linkmore-design 1.0.49 → 1.0.53
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/Button/style/index.d.ts +1 -1
- package/dist/CardTable/fns/index.d.ts +9 -0
- package/dist/CardTable/hooks/usePagination.d.ts +19 -0
- package/dist/CardTable/toolbar/TablePagination.d.ts +4 -0
- package/dist/CardTable/toolbar/ToolBarBottom.d.ts +3 -0
- package/dist/List/demos/basic.d.ts +2 -0
- package/dist/List/index.d.ts +2 -0
- package/dist/List/style/index.d.ts +1 -0
- package/dist/LmEditTable/DndContainer.d.ts +5 -0
- package/dist/LmEditTable/DragHandle.d.ts +4 -0
- package/dist/LmEditTable/EditTable.d.ts +31 -0
- package/dist/LmEditTable/demos/Editbasic.d.ts +2 -0
- package/dist/LmEditTable/demos/basic.d.ts +2 -0
- package/dist/LmEditTable/demos/formEditTable.d.ts +2 -0
- package/dist/LmEditTable/demos/hoverEdit.d.ts +2 -0
- package/dist/LmEditTable/index.d.ts +2 -0
- package/dist/LmEditTable/sortableBox.d.ts +5 -0
- package/dist/LmEditTable/sortableItem.d.ts +2 -0
- package/dist/LmEditTable/style/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.umd.js +3853 -689
- package/dist/index.umd.min.js +6 -6
- package/dist/message/hooks/useMessage.d.ts +7 -0
- package/dist/message/index.d.ts +63 -4
- package/es/Button/style/{style.css → index.css} +0 -0
- package/es/Button/style/index.d.ts +1 -1
- package/es/Button/style/index.js +1 -1
- package/es/ButtonTags/style/{style.css → index.css} +0 -0
- package/es/ButtonTags/style/index.js +1 -1
- package/es/CardTable/card/PictureTextColumn.js +11 -6
- package/es/CardTable/card/PictureTextRow.js +11 -6
- package/es/CardTable/fns/index.js +106 -0
- package/es/CardTable/hooks/usePagination.js +128 -0
- package/es/CardTable/index.js +3 -0
- package/{lib/CardTable/style/style.css → es/CardTable/style/index.css} +13 -1
- package/es/CardTable/style/index.js +1 -1
- package/es/CardTable/table/TableRoot.js +43 -64
- package/es/CardTable/table/TableWrapper.js +4 -0
- package/es/CardTable/toolbar/TablePagination.js +62 -0
- package/es/CardTable/toolbar/ToolBarBottom.js +47 -0
- package/es/Checkbox/style/{style.css → index.css} +0 -0
- package/es/Checkbox/style/index.js +1 -1
- package/es/CkFilter/style/{style.css → index.css} +0 -0
- package/es/CkFilter/style/index.js +1 -1
- package/es/CustomTableOption/columnsSort.js +5 -5
- package/es/CustomTableOption/filterSort.js +3 -3
- package/es/CustomTableOption/index.js +1 -2
- package/es/CustomerService/style/{style.css → index.css} +0 -0
- package/es/CustomerService/style/index.js +1 -1
- package/es/EditTable/style/{style.css → index.css} +0 -0
- package/es/EditTable/style/index.js +1 -1
- package/es/EnlargeImg/style/{style.css → index.css} +0 -0
- package/es/EnlargeImg/style/index.js +1 -1
- package/es/Filter/style/{style.css → index.css} +0 -0
- package/es/Filter/style/index.js +1 -1
- package/es/IconSelect/style/{style.css → index.css} +0 -0
- package/es/IconSelect/style/index.js +1 -1
- package/{lib/Input/style/style.css → es/Input/style/index.css} +21 -1
- package/es/Input/style/index.js +1 -1
- package/es/LeftTable/style/{style.css → index.css} +0 -0
- package/es/LeftTable/style/index.js +1 -1
- package/es/List/index.d.ts +2 -0
- package/es/List/index.js +3 -0
- package/es/List/style/index.css +505 -0
- package/es/List/style/index.d.ts +1 -0
- package/es/List/style/index.js +1 -0
- package/es/LmEditTable/DndContainer.d.ts +5 -0
- package/es/LmEditTable/DndContainer.js +35 -0
- package/es/LmEditTable/DragHandle.d.ts +4 -0
- package/es/LmEditTable/DragHandle.js +22 -0
- package/es/LmEditTable/EditTable.d.ts +31 -0
- package/es/LmEditTable/EditTable.js +892 -0
- package/es/LmEditTable/index.d.ts +2 -0
- package/es/LmEditTable/index.js +2 -0
- package/es/LmEditTable/sortableBox.d.ts +5 -0
- package/es/LmEditTable/sortableBox.js +13 -0
- package/es/LmEditTable/sortableItem.d.ts +2 -0
- package/es/LmEditTable/sortableItem.js +43 -0
- package/es/LmEditTable/style/index.css +574 -0
- package/es/LmEditTable/style/index.d.ts +1 -0
- package/es/LmEditTable/style/index.js +1 -0
- package/es/LmTable/Table.js +16 -6
- package/{lib/LmTable/style/style.css → es/LmTable/style/index.css} +6 -0
- package/es/LmTable/style/index.js +1 -1
- package/es/OldModal/style/{style.css → index.css} +0 -0
- package/es/OldModal/style/index.js +1 -1
- package/es/PopTable/style/{style.css → index.css} +0 -0
- package/es/PopTable/style/index.js +1 -1
- package/es/ProTable/style/{style.css → index.css} +0 -0
- package/es/ProTable/style/index.js +1 -1
- package/es/Radio/style/{style.css → index.css} +0 -0
- package/es/Radio/style/index.js +1 -1
- package/es/Select/style/index.css +3 -0
- package/es/TableRender/style/{style.css → index.css} +0 -0
- package/es/TableRender/style/index.js +1 -1
- package/es/UploadOss/style/{style.css → index.css} +0 -0
- package/es/UploadOss/style/index.js +1 -1
- package/es/VirtualList/style/{style.css → index.css} +0 -0
- package/es/VirtualList/style/index.js +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/message/hooks/useMessage.d.ts +7 -0
- package/es/message/hooks/useMessage.js +83 -0
- package/es/message/index.d.ts +63 -4
- package/es/message/index.js +241 -12
- package/es/message/style/index.css +27 -1
- package/lib/Button/style/{style.css → index.css} +0 -0
- package/lib/Button/style/index.d.ts +1 -1
- package/lib/Button/style/index.js +1 -1
- package/lib/ButtonTags/style/{style.css → index.css} +0 -0
- package/lib/ButtonTags/style/index.js +1 -1
- package/lib/CardTable/card/PictureTextColumn.js +11 -6
- package/lib/CardTable/card/PictureTextRow.js +11 -6
- package/lib/CardTable/fns/index.js +106 -0
- package/lib/CardTable/hooks/usePagination.js +128 -0
- package/lib/CardTable/index.js +3 -0
- package/{es/CardTable/style/style.css → lib/CardTable/style/index.css} +13 -1
- package/lib/CardTable/style/index.js +1 -1
- package/lib/CardTable/table/TableRoot.js +43 -64
- package/lib/CardTable/table/TableWrapper.js +4 -0
- package/lib/CardTable/toolbar/TablePagination.js +62 -0
- package/lib/CardTable/toolbar/ToolBarBottom.js +47 -0
- package/lib/Checkbox/style/{style.css → index.css} +0 -0
- package/lib/Checkbox/style/index.js +1 -1
- package/lib/CkFilter/style/{style.css → index.css} +0 -0
- package/lib/CkFilter/style/index.js +1 -1
- package/lib/CustomTableOption/columnsSort.js +5 -5
- package/lib/CustomTableOption/filterSort.js +3 -3
- package/lib/CustomTableOption/index.js +1 -2
- package/lib/CustomerService/style/{style.css → index.css} +0 -0
- package/lib/CustomerService/style/index.js +1 -1
- package/lib/EditTable/style/{style.css → index.css} +0 -0
- package/lib/EditTable/style/index.js +1 -1
- package/lib/EnlargeImg/style/{style.css → index.css} +0 -0
- package/lib/EnlargeImg/style/index.js +1 -1
- package/lib/Filter/style/{style.css → index.css} +0 -0
- package/lib/Filter/style/index.js +1 -1
- package/lib/IconSelect/style/{style.css → index.css} +0 -0
- package/lib/IconSelect/style/index.js +1 -1
- package/{es/Input/style/style.css → lib/Input/style/index.css} +21 -1
- package/lib/Input/style/index.js +1 -1
- package/lib/LeftTable/style/{style.css → index.css} +0 -0
- package/lib/LeftTable/style/index.js +1 -1
- package/lib/List/index.d.ts +2 -0
- package/lib/List/index.js +15 -0
- package/lib/List/style/index.css +505 -0
- package/lib/List/style/index.d.ts +1 -0
- package/lib/List/style/index.js +3 -0
- package/lib/LmEditTable/DndContainer.d.ts +5 -0
- package/lib/LmEditTable/DndContainer.js +49 -0
- package/lib/LmEditTable/DragHandle.d.ts +4 -0
- package/lib/LmEditTable/DragHandle.js +37 -0
- package/lib/LmEditTable/EditTable.d.ts +31 -0
- package/lib/LmEditTable/EditTable.js +925 -0
- package/lib/LmEditTable/index.d.ts +2 -0
- package/lib/LmEditTable/index.js +13 -0
- package/lib/LmEditTable/sortableBox.d.ts +5 -0
- package/lib/LmEditTable/sortableBox.js +24 -0
- package/lib/LmEditTable/sortableItem.d.ts +2 -0
- package/lib/LmEditTable/sortableItem.js +55 -0
- package/lib/LmEditTable/style/index.css +574 -0
- package/lib/LmEditTable/style/index.d.ts +1 -0
- package/lib/LmEditTable/style/index.js +3 -0
- package/lib/LmTable/Table.js +16 -6
- package/{es/LmTable/style/style.css → lib/LmTable/style/index.css} +6 -0
- package/lib/LmTable/style/index.js +1 -1
- package/lib/OldModal/style/{style.css → index.css} +0 -0
- package/lib/OldModal/style/index.js +1 -1
- package/lib/PopTable/style/{style.css → index.css} +0 -0
- package/lib/PopTable/style/index.js +1 -1
- package/lib/ProTable/style/{style.css → index.css} +0 -0
- package/lib/ProTable/style/index.js +1 -1
- package/lib/Radio/style/{style.css → index.css} +0 -0
- package/lib/Radio/style/index.js +1 -1
- package/lib/Select/style/index.css +3 -0
- package/lib/TableRender/style/{style.css → index.css} +0 -0
- package/lib/TableRender/style/index.js +1 -1
- package/lib/UploadOss/style/{style.css → index.css} +0 -0
- package/lib/UploadOss/style/index.js +1 -1
- package/lib/VirtualList/style/{style.css → index.css} +0 -0
- package/lib/VirtualList/style/index.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +17 -1
- package/lib/message/hooks/useMessage.d.ts +7 -0
- package/lib/message/hooks/useMessage.js +101 -0
- package/lib/message/index.d.ts +63 -4
- package/lib/message/index.js +262 -16
- package/lib/message/style/index.css +27 -1
- package/package.json +2 -1
|
@@ -9,19 +9,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
|
|
16
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
-
|
|
18
16
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
19
17
|
|
|
20
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
19
|
|
|
22
20
|
var _TableWrapper = _interopRequireDefault(require("./TableWrapper"));
|
|
23
21
|
|
|
24
|
-
var
|
|
22
|
+
var _fns = _interopRequireDefault(require("../fns"));
|
|
23
|
+
|
|
24
|
+
var _excluded = ["rowConfig", "cellConfig", "defaultConfig", "checkboxConfig"];
|
|
25
25
|
|
|
26
26
|
var reducer = function reducer(state, action) {
|
|
27
27
|
var page = action.page,
|
|
@@ -32,6 +32,7 @@ var reducer = function reducer(state, action) {
|
|
|
32
32
|
|
|
33
33
|
switch (action.type) {
|
|
34
34
|
case 'changePage':
|
|
35
|
+
// 分页改变
|
|
35
36
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
36
37
|
page: page
|
|
37
38
|
});
|
|
@@ -101,16 +102,9 @@ var getInitialState = function getInitialState(props) {
|
|
|
101
102
|
};
|
|
102
103
|
|
|
103
104
|
var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
104
|
-
var rowConfig = props.rowConfig,
|
|
105
|
-
cellConfig = props.cellConfig,
|
|
106
|
-
defaultConfig = props.defaultConfig,
|
|
107
|
-
checkboxChange = props.checkboxChange,
|
|
108
|
-
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
109
105
|
var initialState = (0, _react.useMemo)(function () {
|
|
110
|
-
return getInitialState(
|
|
111
|
-
|
|
112
|
-
}, resetProps));
|
|
113
|
-
}, [checkboxChange, resetProps]);
|
|
106
|
+
return getInitialState(props);
|
|
107
|
+
}, []);
|
|
114
108
|
|
|
115
109
|
var _useReducer = (0, _react.useReducer)(reducer, initialState),
|
|
116
110
|
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
@@ -124,66 +118,51 @@ var LmCardTableRoot = function LmCardTableRoot(props, ref) {
|
|
|
124
118
|
|
|
125
119
|
var _state$checkboxConfig = state.checkboxConfig,
|
|
126
120
|
checkKeys = _state$checkboxConfig.checkKeys,
|
|
127
|
-
checkValues = _state$checkboxConfig.checkValues; //
|
|
128
|
-
|
|
129
|
-
var
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
121
|
+
checkValues = _state$checkboxConfig.checkValues; // 配置对象收集
|
|
122
|
+
|
|
123
|
+
var configProps = (0, _react.useMemo)(function () {
|
|
124
|
+
var rowConfig = props.rowConfig,
|
|
125
|
+
cellConfig = props.cellConfig,
|
|
126
|
+
defaultConfig = props.defaultConfig,
|
|
127
|
+
checkboxConfig = props.checkboxConfig,
|
|
128
|
+
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
129
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), {}, {
|
|
130
|
+
rowConfig: (0, _objectSpread2.default)({
|
|
131
|
+
// 行配置
|
|
132
|
+
gap: 16
|
|
133
|
+
}, rowConfig),
|
|
134
|
+
cellConfig: (0, _objectSpread2.default)({
|
|
135
|
+
// 单元格配置对象
|
|
136
|
+
width: 192,
|
|
137
|
+
height: 282
|
|
138
|
+
}, cellConfig),
|
|
139
|
+
checkboxConfig: (0, _objectSpread2.default)({}, checkboxConfig),
|
|
140
|
+
toolbarConfig: {
|
|
141
|
+
pager: {},
|
|
142
|
+
toolbarBottom: {}
|
|
143
|
+
},
|
|
144
|
+
defaultConfig: defaultConfig
|
|
143
145
|
});
|
|
144
|
-
}; //
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
dispatch({
|
|
152
|
-
type: 'changeCheckboxConfig',
|
|
153
|
-
checkboxConfig: {
|
|
154
|
-
checkKeys: checkKeys,
|
|
155
|
-
checkValues: checkValues
|
|
156
|
-
}
|
|
146
|
+
}, [props]); // 方法收集
|
|
147
|
+
|
|
148
|
+
var EventProps = (0, _react.useMemo)(function () {
|
|
149
|
+
return (0, _fns.default)({
|
|
150
|
+
state: state,
|
|
151
|
+
dispatch: dispatch,
|
|
152
|
+
props: props
|
|
157
153
|
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
var config = {
|
|
162
|
-
rowConfig: (0, _objectSpread2.default)({
|
|
163
|
-
// 行配置
|
|
164
|
-
gap: 16
|
|
165
|
-
}, rowConfig),
|
|
166
|
-
cellConfig: (0, _objectSpread2.default)({
|
|
167
|
-
// 单元格配置对象
|
|
168
|
-
width: 192,
|
|
169
|
-
height: 282
|
|
170
|
-
}, cellConfig),
|
|
171
|
-
defaultConfig: defaultConfig
|
|
172
|
-
};
|
|
173
|
-
var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
154
|
+
}, [state, dispatch, props]);
|
|
155
|
+
var table = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, configProps), EventProps), {}, {
|
|
174
156
|
state: state,
|
|
175
157
|
dispatch: dispatch
|
|
176
|
-
}, config), resetProps), {}, {
|
|
177
|
-
setSelectCells: setSelectCells
|
|
178
158
|
}); // 向外暴露出的方法
|
|
179
159
|
|
|
180
160
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
181
|
-
return {
|
|
161
|
+
return (0, _objectSpread2.default)({
|
|
182
162
|
getCheckboxRecords: function getCheckboxRecords() {
|
|
183
163
|
return state.checkboxConfig.checkValues;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
};
|
|
164
|
+
}
|
|
165
|
+
}, EventProps);
|
|
187
166
|
});
|
|
188
167
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isFullScreen && /*#__PURE__*/_react.default.createElement(_TableWrapper.default, {
|
|
189
168
|
table: table
|
|
@@ -13,6 +13,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _TableContainer = _interopRequireDefault(require("./TableContainer"));
|
|
15
15
|
|
|
16
|
+
var _ToolBarBottom = _interopRequireDefault(require("../toolbar/ToolBarBottom"));
|
|
17
|
+
|
|
16
18
|
// 包裹表格外围区域: 工具栏操作区域/主体区域/工具栏底部区域
|
|
17
19
|
var LmCardTableWrapper = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
18
20
|
var table = _ref.table;
|
|
@@ -25,6 +27,8 @@ var LmCardTableWrapper = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
25
27
|
}, style)
|
|
26
28
|
}, /*#__PURE__*/_react.default.createElement(_TableContainer.default, {
|
|
27
29
|
table: table
|
|
30
|
+
}), /*#__PURE__*/_react.default.createElement(_ToolBarBottom.default, {
|
|
31
|
+
table: table
|
|
28
32
|
}));
|
|
29
33
|
});
|
|
30
34
|
|
|
@@ -0,0 +1,62 @@
|
|
|
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 _linkmoreDesign = require("linkmore-design");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["onChange"];
|
|
21
|
+
|
|
22
|
+
var LmCardTablePagination = function LmCardTablePagination(_ref) {
|
|
23
|
+
var table = _ref.table;
|
|
24
|
+
var dispatch = table.dispatch,
|
|
25
|
+
_table$dataSource = table.dataSource,
|
|
26
|
+
dataSource = _table$dataSource === void 0 ? [] : _table$dataSource,
|
|
27
|
+
_table$pagination = table.pagination,
|
|
28
|
+
onChange = _table$pagination.onChange,
|
|
29
|
+
paginationProps = (0, _objectWithoutProperties2.default)(_table$pagination, _excluded); // 分页改变事件
|
|
30
|
+
|
|
31
|
+
var onPageChange = function onPageChange(pageIndex, pageSize) {
|
|
32
|
+
dispatch({
|
|
33
|
+
type: 'changePage',
|
|
34
|
+
page: {
|
|
35
|
+
pageIndex: pageIndex,
|
|
36
|
+
pageSize: pageSize,
|
|
37
|
+
total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || 0
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(pageIndex, pageSize);
|
|
41
|
+
}; // 默认的配置
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
var defaultProps = {
|
|
45
|
+
size: 'small',
|
|
46
|
+
showSizeChanger: true,
|
|
47
|
+
showQuickJumper: true,
|
|
48
|
+
showTotal: function showTotal(total) {
|
|
49
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
50
|
+
},
|
|
51
|
+
total: (paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.total) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || 0,
|
|
52
|
+
defaultPageSize: 20,
|
|
53
|
+
pageSizeOptions: [20, 50, 100, 500],
|
|
54
|
+
onChange: onPageChange
|
|
55
|
+
};
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: "lm_card_table_pagination"
|
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Pagination, (0, _extends2.default)({}, defaultProps, paginationProps)));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var _default = LmCardTablePagination;
|
|
62
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _TablePagination = _interopRequireDefault(require("./TablePagination"));
|
|
13
|
+
|
|
14
|
+
var CardToolBarBottom = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
15
|
+
var table = _ref.table;
|
|
16
|
+
var pagination = table.pagination,
|
|
17
|
+
_table$toolbarConfig = table.toolbarConfig,
|
|
18
|
+
toolbarBottom = _table$toolbarConfig.toolbarBottom,
|
|
19
|
+
pager = _table$toolbarConfig.pager; // toolbarBottom与pager一致: 用于插槽
|
|
20
|
+
|
|
21
|
+
var _ref2 = toolbarBottom || pager,
|
|
22
|
+
left = _ref2.left,
|
|
23
|
+
right = _ref2.right;
|
|
24
|
+
|
|
25
|
+
var LeftSlot = function LeftSlot() {
|
|
26
|
+
return left;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var RighSlot = function RighSlot() {
|
|
30
|
+
if (!right) {
|
|
31
|
+
return pagination && /*#__PURE__*/_react.default.createElement(_TablePagination.default, {
|
|
32
|
+
table: table
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (right) {
|
|
37
|
+
typeof right === 'function' ? right(_TablePagination.default) : right;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
42
|
+
className: "lm_card_table_toolbar_bottom"
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement(RighSlot, null));
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _default = CardToolBarBottom;
|
|
47
|
+
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -126,11 +126,11 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
126
126
|
cloneCol.forEach(function (item, index) {
|
|
127
127
|
var _a, _b, _c;
|
|
128
128
|
|
|
129
|
-
if (
|
|
130
|
-
var order = (_a =
|
|
131
|
-
item.fixed = ((_b =
|
|
129
|
+
if (colStateValue === null || colStateValue === void 0 ? void 0 : colStateValue.hasOwnProperty(item.dataIndex)) {
|
|
130
|
+
var order = (_a = colStateValue[item.dataIndex]) === null || _a === void 0 ? void 0 : _a.order;
|
|
131
|
+
item.fixed = ((_b = colStateValue[item.dataIndex]) === null || _b === void 0 ? void 0 : _b.fixed) || undefined;
|
|
132
132
|
item.order = [undefined, null].includes(order) ? index : order;
|
|
133
|
-
item.show = ((_c =
|
|
133
|
+
item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) === false ? false : true;
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
var leftSortItem = [];
|
|
@@ -169,7 +169,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
169
169
|
(0, _react.useEffect)(function () {
|
|
170
170
|
setLocalColumns(columns);
|
|
171
171
|
setColStateValue(ColumnsStateValue);
|
|
172
|
-
}, []);
|
|
172
|
+
}, [columns]);
|
|
173
173
|
var leftSensors = (0, _core.useSensors)((0, _core.useSensor)(_core.PointerSensor), (0, _core.useSensor)(_core.KeyboardSensor, {
|
|
174
174
|
coordinateGetter: _sortable.sortableKeyboardCoordinates
|
|
175
175
|
}));
|
|
@@ -94,9 +94,9 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
94
94
|
cloneCol.forEach(function (item, index) {
|
|
95
95
|
var _a, _b;
|
|
96
96
|
|
|
97
|
-
var order = (_a =
|
|
97
|
+
var order = (_a = colStateValue[item.field]) === null || _a === void 0 ? void 0 : _a.order;
|
|
98
98
|
item.order = order !== undefined && order !== null ? order : UNLLVALUE.includes(item.order) ? index : item.order;
|
|
99
|
-
item.show = ((_b =
|
|
99
|
+
item.show = ((_b = colStateValue[item.field]) === null || _b === void 0 ? void 0 : _b.show) === false ? false : UNLLVALUE.includes(item.show) ? true : !!item.show;
|
|
100
100
|
});
|
|
101
101
|
return cloneCol.filter(function (item) {
|
|
102
102
|
var _a;
|
|
@@ -125,7 +125,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
125
125
|
(0, _react.useEffect)(function () {
|
|
126
126
|
setLocalFilter(filter);
|
|
127
127
|
setColStateValue(filterStateValue);
|
|
128
|
-
}, []);
|
|
128
|
+
}, [filter]);
|
|
129
129
|
var sensors = (0, _core.useSensors)((0, _core.useSensor)(_core.PointerSensor), (0, _core.useSensor)(_core.KeyboardSensor, {
|
|
130
130
|
coordinateGetter: _sortable.sortableKeyboardCoordinates
|
|
131
131
|
}));
|
|
@@ -133,8 +133,7 @@ var LMCustomTableOption = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
|
|
|
133
133
|
return setVisible(false);
|
|
134
134
|
}
|
|
135
135
|
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Tabs, {
|
|
136
|
-
defaultActiveKey: "1"
|
|
137
|
-
destroyInactiveTabPane: true
|
|
136
|
+
defaultActiveKey: "1"
|
|
138
137
|
}, /*#__PURE__*/_react.default.createElement(TabPane, {
|
|
139
138
|
tab: "\u4E2A\u6027\u5316\u7B5B\u9009",
|
|
140
139
|
key: "1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -660,8 +660,28 @@ html {
|
|
|
660
660
|
.ant-input-group-wrapper.lm_input .ant-input-group-addon {
|
|
661
661
|
padding: 0 8px;
|
|
662
662
|
}
|
|
663
|
+
.ant-input-group-wrapper.lm_input .ant-input-group-addon .lm_select {
|
|
664
|
+
margin: -5px -8px -4px -9px;
|
|
665
|
+
}
|
|
663
666
|
.ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon {
|
|
664
|
-
|
|
667
|
+
height: 26px;
|
|
668
|
+
}
|
|
669
|
+
.ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select {
|
|
670
|
+
height: 26px;
|
|
671
|
+
margin: -4px -8px -5px -9px;
|
|
672
|
+
}
|
|
673
|
+
.ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector {
|
|
674
|
+
height: 26px;
|
|
675
|
+
}
|
|
676
|
+
.ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector > span {
|
|
677
|
+
height: 26px;
|
|
678
|
+
line-height: 24px;
|
|
679
|
+
}
|
|
680
|
+
.ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector:after {
|
|
681
|
+
line-height: 26px;
|
|
682
|
+
}
|
|
683
|
+
.ant-input-group-wrapper.lm_input.ant-input-group-wrapper-sm .ant-input-group-addon .lm_select .ant-select-selector .ant-select-selection-search-input {
|
|
684
|
+
height: 24px;
|
|
665
685
|
}
|
|
666
686
|
.ant-input-group.ant-input-group-lg .lm_input {
|
|
667
687
|
height: 40px;
|
package/lib/Input/style/index.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
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/list/style");
|
|
11
|
+
|
|
12
|
+
var _list = _interopRequireDefault(require("antd/es/list"));
|
|
13
|
+
|
|
14
|
+
var _default = _list.default;
|
|
15
|
+
exports.default = _default;
|