linkmore-design 1.0.29 → 1.0.32
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/index.umd.js +112 -22
- package/dist/index.umd.min.js +7 -7
- package/es/ButtonTags/style/style.css +3 -0
- package/es/Card/style/index.css +3 -0
- package/es/CkFilter/style/style.css +6 -1
- package/es/CustomerService/style/style.css +3 -0
- package/es/Drawer/style/index.css +3 -0
- package/es/Dropdown/style/index.css +3 -0
- package/es/EditTable/style/style.css +3 -0
- package/es/Empty/style/index.css +3 -0
- package/es/Filter/style/style.css +3 -0
- package/es/Image/index.d.ts +2 -0
- package/es/Image/index.js +3 -0
- package/es/Image/style/index.css +505 -0
- package/es/Image/style/index.d.ts +1 -0
- package/es/Image/style/index.js +1 -0
- package/es/Input/index.js +3 -4
- package/es/Input/style/style.css +18 -4
- package/es/InputNumber/style/index.css +3 -0
- package/es/LeftTable/style/style.css +4 -1
- package/es/LmTable/Table.js +31 -10
- package/es/LmTable/style/style.css +298 -1
- package/es/Menu/style/index.css +3 -0
- package/es/Modal/style/index.css +3 -0
- package/es/Notification/style/index.css +3 -0
- package/es/Pagination/style/index.css +3 -0
- package/es/PopTable/style/style.css +3 -0
- package/es/ProTable/style/style.css +3 -0
- package/es/Select/index.js +6 -7
- package/es/Select/style/index.css +3 -0
- package/es/Space/style/index.css +3 -0
- package/es/Switch/index.d.ts +2 -0
- package/es/Switch/index.js +3 -0
- package/es/Switch/style/index.css +505 -0
- package/es/Switch/style/index.d.ts +1 -0
- package/es/Switch/style/index.js +1 -0
- package/es/Table/index.d.ts +2 -0
- package/es/Table/index.js +3 -0
- package/es/Table/style/index.css +505 -0
- package/es/Table/style/index.d.ts +1 -0
- package/es/Table/style/index.js +1 -0
- package/es/Tabs/index.d.ts +12 -0
- package/es/Tabs/index.js +33 -0
- package/es/Tabs/style/index.css +511 -0
- package/es/Tabs/style/index.d.ts +1 -0
- package/es/Tabs/style/index.js +1 -0
- package/es/Tag/index.d.ts +12 -0
- package/es/Tag/index.js +36 -0
- package/es/Tag/style/index.css +562 -0
- package/es/Tag/style/index.d.ts +1 -0
- package/es/Tag/style/index.js +1 -0
- package/es/Tree/index.d.ts +6 -1
- package/es/Tree/index.js +30 -1
- package/es/Tree/style/index.css +15 -0
- package/es/index.js +49 -1
- package/es/message/index.d.ts +7 -0
- package/es/message/index.js +12 -0
- package/es/message/style/index.css +509 -0
- package/es/message/style/index.d.ts +1 -0
- package/es/message/style/index.js +1 -0
- package/es/styles/main.css +3 -0
- package/lib/ButtonTags/style/style.css +3 -0
- package/lib/Card/style/index.css +3 -0
- package/lib/CkFilter/style/style.css +6 -1
- package/lib/CustomerService/style/style.css +3 -0
- package/lib/Drawer/style/index.css +3 -0
- package/lib/Dropdown/style/index.css +3 -0
- package/lib/EditTable/style/style.css +3 -0
- package/lib/Empty/style/index.css +3 -0
- package/lib/Filter/style/style.css +3 -0
- package/lib/Image/index.d.ts +2 -0
- package/lib/Image/index.js +15 -0
- package/lib/Image/style/index.css +505 -0
- package/lib/Image/style/index.d.ts +1 -0
- package/lib/Image/style/index.js +3 -0
- package/lib/Input/index.js +3 -4
- package/lib/Input/style/style.css +18 -4
- package/lib/InputNumber/style/index.css +3 -0
- package/lib/LeftTable/style/style.css +4 -1
- package/lib/LmTable/Table.js +31 -10
- package/lib/LmTable/style/style.css +298 -1
- package/lib/Menu/style/index.css +3 -0
- package/lib/Modal/style/index.css +3 -0
- package/lib/Notification/style/index.css +3 -0
- package/lib/Pagination/style/index.css +3 -0
- package/lib/PopTable/style/style.css +3 -0
- package/lib/ProTable/style/style.css +3 -0
- package/lib/Select/index.js +8 -7
- package/lib/Select/style/index.css +3 -0
- package/lib/Space/style/index.css +3 -0
- package/lib/Switch/index.d.ts +2 -0
- package/lib/Switch/index.js +15 -0
- package/lib/Switch/style/index.css +505 -0
- package/lib/Switch/style/index.d.ts +1 -0
- package/lib/Switch/style/index.js +3 -0
- package/lib/Table/index.d.ts +2 -0
- package/lib/Table/index.js +15 -0
- package/lib/Table/style/index.css +505 -0
- package/lib/Table/style/index.d.ts +1 -0
- package/lib/Table/style/index.js +3 -0
- package/lib/Tabs/index.d.ts +12 -0
- package/lib/Tabs/index.js +46 -0
- package/lib/Tabs/style/index.css +511 -0
- package/lib/Tabs/style/index.d.ts +1 -0
- package/lib/Tabs/style/index.js +3 -0
- package/lib/Tag/index.d.ts +12 -0
- package/lib/Tag/index.js +52 -0
- package/lib/Tag/style/index.css +562 -0
- package/lib/Tag/style/index.d.ts +1 -0
- package/lib/Tag/style/index.js +3 -0
- package/lib/Tree/index.d.ts +6 -1
- package/lib/Tree/index.js +33 -1
- package/lib/Tree/style/index.css +15 -0
- package/lib/index.js +49 -1
- package/lib/message/index.d.ts +7 -0
- package/lib/message/index.js +24 -0
- package/lib/message/style/index.css +509 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/message/style/index.js +3 -0
- package/lib/styles/main.css +3 -0
- package/package.json +1 -1
package/lib/LmTable/Table.js
CHANGED
|
@@ -27,7 +27,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
27
27
|
|
|
28
28
|
var _resetConfig = _interopRequireDefault(require("./resetConfig"));
|
|
29
29
|
|
|
30
|
-
var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck"];
|
|
30
|
+
var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "customCheck", "rowSelection"];
|
|
31
31
|
var Summary = _proTable.default.Summary;
|
|
32
32
|
exports.Summary = Summary;
|
|
33
33
|
var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -44,8 +44,8 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
44
44
|
_props$virtual = props.virtual,
|
|
45
45
|
virtual = _props$virtual === void 0 ? false : _props$virtual,
|
|
46
46
|
customCheck = props.customCheck,
|
|
47
|
+
rowSelection = props.rowSelection,
|
|
47
48
|
resetProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
48
|
-
console.log(virtual, '--virtual', autoSize);
|
|
49
49
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
50
50
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
51
51
|
|
|
@@ -139,6 +139,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
var config = (0, _react.useMemo)(function () {
|
|
142
|
+
console.log(resetProps, 'resetPropsresetProps');
|
|
142
143
|
return (0, _objectSpread2.default)({
|
|
143
144
|
defaultSize: 'small',
|
|
144
145
|
tableLayout: 'fixed',
|
|
@@ -146,7 +147,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
146
147
|
debounceTime: 300,
|
|
147
148
|
revalidateOnFocus: false,
|
|
148
149
|
options: {
|
|
149
|
-
setting:
|
|
150
|
+
setting: false,
|
|
150
151
|
density: false,
|
|
151
152
|
fullScreen: false,
|
|
152
153
|
reload: false
|
|
@@ -161,9 +162,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
161
162
|
tableAlertRender: false,
|
|
162
163
|
checkConfig: checkConfig,
|
|
163
164
|
// components: vComponents,
|
|
164
|
-
scroll: (0, _objectSpread2.default)({
|
|
165
|
+
scroll: resetProps.autoSizer || resetProps.scroll ? (0, _objectSpread2.default)({
|
|
165
166
|
y: autoSize.height
|
|
166
|
-
},
|
|
167
|
+
}, resetProps.scroll) : null,
|
|
167
168
|
pagination: !hiddenPage && (0, _objectSpread2.default)({
|
|
168
169
|
showSizeChanger: true,
|
|
169
170
|
showQuickJumper: true,
|
|
@@ -171,7 +172,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
171
172
|
return "\u5171 ".concat(total, " \u6761");
|
|
172
173
|
}
|
|
173
174
|
}, pagination),
|
|
174
|
-
rowSelection: {
|
|
175
|
+
rowSelection: rowSelection === false ? null : (0, _objectSpread2.default)({
|
|
175
176
|
fixed: true,
|
|
176
177
|
type: 'checkbox',
|
|
177
178
|
columnWidth: 36,
|
|
@@ -184,7 +185,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
184
185
|
});
|
|
185
186
|
rowClick === null || rowClick === void 0 ? void 0 : rowClick(selectedRows);
|
|
186
187
|
}
|
|
187
|
-
},
|
|
188
|
+
}, rowSelection),
|
|
188
189
|
onRow: function onRow(record) {
|
|
189
190
|
return {
|
|
190
191
|
onClick: function onClick(e) {
|
|
@@ -292,6 +293,27 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
292
293
|
/** 1: 使用scroll.x y 来控制宽高 默认都是100% */
|
|
293
294
|
|
|
294
295
|
var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
296
|
+
var _props$autoSizer = props.autoSizer,
|
|
297
|
+
autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
|
|
298
|
+
|
|
299
|
+
if (!autoSizer) {
|
|
300
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
301
|
+
ref: tableWarpRef,
|
|
302
|
+
id: "lm_protable_warp",
|
|
303
|
+
style: {
|
|
304
|
+
width: '100%',
|
|
305
|
+
height: '100%'
|
|
306
|
+
}
|
|
307
|
+
}, /*#__PURE__*/_react.default.createElement(ResetTable, (0, _extends2.default)({
|
|
308
|
+
ref: defaultRef
|
|
309
|
+
}, props, {
|
|
310
|
+
autoSize: {
|
|
311
|
+
height: '100%',
|
|
312
|
+
width: '100%'
|
|
313
|
+
}
|
|
314
|
+
})));
|
|
315
|
+
}
|
|
316
|
+
|
|
295
317
|
var _useState9 = (0, _react.useState)({
|
|
296
318
|
width: '100%',
|
|
297
319
|
height: '100%'
|
|
@@ -305,11 +327,10 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
305
327
|
var resizeRef = (0, _react.useRef)(null);
|
|
306
328
|
var resetHeight = (0, _react.useMemo)(function () {
|
|
307
329
|
var height = tableSize.height;
|
|
308
|
-
|
|
309
|
-
var h = height - 48;
|
|
330
|
+
var h = height - 32;
|
|
310
331
|
|
|
311
332
|
if (!props.hiddenPage || props.customCheck) {
|
|
312
|
-
h -=
|
|
333
|
+
h -= 48;
|
|
313
334
|
}
|
|
314
335
|
|
|
315
336
|
if (props.columns.some(function (v) {
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -612,6 +615,36 @@ html {
|
|
|
612
615
|
height: var(--basic-height);
|
|
613
616
|
border-right: 1px solid #eee;
|
|
614
617
|
}
|
|
618
|
+
.lm_operate .ant-spin-container {
|
|
619
|
+
display: flex;
|
|
620
|
+
flex-flow: column;
|
|
621
|
+
}
|
|
622
|
+
.lm_operate .ant-spin-container .ant-table {
|
|
623
|
+
position: relative;
|
|
624
|
+
flex: 1;
|
|
625
|
+
border-left: 1px solid var(--border-color);
|
|
626
|
+
border-right: 1px solid var(--border-color);
|
|
627
|
+
}
|
|
628
|
+
.lm_operate .ant-spin-container .ant-table::before {
|
|
629
|
+
content: '';
|
|
630
|
+
position: absolute;
|
|
631
|
+
left: 0;
|
|
632
|
+
right: 0;
|
|
633
|
+
top: 0;
|
|
634
|
+
height: 1px;
|
|
635
|
+
background-color: var(--border-color);
|
|
636
|
+
z-index: 4;
|
|
637
|
+
}
|
|
638
|
+
.lm_operate .ant-spin-container .ant-table::after {
|
|
639
|
+
content: '';
|
|
640
|
+
position: absolute;
|
|
641
|
+
left: 0;
|
|
642
|
+
right: 0;
|
|
643
|
+
bottom: 0;
|
|
644
|
+
height: 1px;
|
|
645
|
+
background-color: var(--border-color);
|
|
646
|
+
z-index: 4;
|
|
647
|
+
}
|
|
615
648
|
.lm_grid {
|
|
616
649
|
position: relative;
|
|
617
650
|
flex: 1;
|
|
@@ -1067,10 +1100,274 @@ html {
|
|
|
1067
1100
|
.lm_pro_component_img_table .lm_card_cell_content:hover .card_cell_body .card_cell_checkbox {
|
|
1068
1101
|
opacity: 1;
|
|
1069
1102
|
}
|
|
1070
|
-
.
|
|
1103
|
+
#lm_protable_warp .ant-tabs,
|
|
1104
|
+
#lm_protable_warp .ant-tabs-content,
|
|
1105
|
+
#lm_protable_warp .ant-pro-table,
|
|
1106
|
+
#lm_protable_warp .ant-card,
|
|
1107
|
+
#lm_protable_warp .ant-card-body,
|
|
1108
|
+
#lm_protable_warp .ant-pro-card,
|
|
1109
|
+
#lm_protable_warp .ant-pro-card-body,
|
|
1110
|
+
#lm_protable_warp .ant-table-wrapper,
|
|
1111
|
+
#lm_protable_warp .ant-spin-nested-loading,
|
|
1112
|
+
#lm_protable_warp .ant-spin-container,
|
|
1113
|
+
#lm_protable_warp .ant-table-container,
|
|
1114
|
+
#lm_protable_warp .ant-table-body {
|
|
1115
|
+
height: 100%;
|
|
1116
|
+
}
|
|
1117
|
+
#lm_protable_warp .ant-card-body,
|
|
1118
|
+
#lm_protable_warp .ant-pro-card-body {
|
|
1119
|
+
padding: 0;
|
|
1120
|
+
}
|
|
1121
|
+
#lm_protable_warp .lm_protable .ant-card-body,
|
|
1122
|
+
#lm_protable_warp .lm_protable .ant-pro-card-body {
|
|
1123
|
+
padding: 0;
|
|
1124
|
+
}
|
|
1125
|
+
#lm_protable_warp .lm_protable .ant-spin-container {
|
|
1126
|
+
display: flex;
|
|
1127
|
+
flex-flow: column;
|
|
1128
|
+
}
|
|
1129
|
+
#lm_protable_warp .lm_protable .ant-spin-container .ant-table {
|
|
1130
|
+
position: relative;
|
|
1131
|
+
flex: 1;
|
|
1132
|
+
border-left: 1px solid var(--border-color);
|
|
1133
|
+
border-right: 1px solid var(--border-color);
|
|
1134
|
+
}
|
|
1135
|
+
#lm_protable_warp .lm_protable .ant-spin-container .ant-table::before {
|
|
1136
|
+
content: '';
|
|
1071
1137
|
position: absolute;
|
|
1138
|
+
left: 0;
|
|
1139
|
+
right: 0;
|
|
1140
|
+
top: 0;
|
|
1141
|
+
height: 1px;
|
|
1142
|
+
background-color: var(--border-color);
|
|
1143
|
+
z-index: 4;
|
|
1144
|
+
}
|
|
1145
|
+
#lm_protable_warp .lm_protable .ant-spin-container .ant-table::after {
|
|
1146
|
+
content: '';
|
|
1147
|
+
position: absolute;
|
|
1148
|
+
left: 0;
|
|
1149
|
+
right: 0;
|
|
1072
1150
|
bottom: 0;
|
|
1151
|
+
height: 1px;
|
|
1152
|
+
background-color: var(--border-color);
|
|
1153
|
+
z-index: 4;
|
|
1154
|
+
}
|
|
1155
|
+
#lm_protable_warp .lm_protable .ant-table-thead {
|
|
1156
|
+
height: 40px;
|
|
1157
|
+
}
|
|
1158
|
+
#lm_protable_warp .lm_protable .ant-table-thead .text-overflow,
|
|
1159
|
+
#lm_protable_warp .lm_protable .ant-table-thead .text-overflow .ant-table-column-title {
|
|
1160
|
+
overflow: hidden;
|
|
1161
|
+
text-overflow: ellipsis;
|
|
1162
|
+
white-space: nowrap;
|
|
1163
|
+
}
|
|
1164
|
+
#lm_protable_warp .lm_protable .ant-table-thead .ant-table-filter-trigger {
|
|
1165
|
+
margin-right: 0;
|
|
1166
|
+
}
|
|
1167
|
+
#lm_protable_warp .lm_protable .ant-table-thead > tr > th {
|
|
1168
|
+
background: var(--color-4);
|
|
1169
|
+
font-size: 12px;
|
|
1170
|
+
}
|
|
1171
|
+
#lm_protable_warp .lm_protable .ant-table.ant-table-small {
|
|
1172
|
+
font-size: 12px;
|
|
1173
|
+
}
|
|
1174
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-table-cell {
|
|
1175
|
+
padding: 8px;
|
|
1176
|
+
}
|
|
1177
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-table-cell.number {
|
|
1178
|
+
border-left: 1px solid #eee;
|
|
1179
|
+
border-right: 1px solid #eee;
|
|
1180
|
+
}
|
|
1181
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-table-cell.money {
|
|
1182
|
+
border-left: 1px solid #eee;
|
|
1183
|
+
border-right: 1px solid #eee;
|
|
1184
|
+
color: var(--error-color);
|
|
1185
|
+
}
|
|
1186
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-table-cell.money-color {
|
|
1187
|
+
color: var(--error-color);
|
|
1188
|
+
}
|
|
1189
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-typography {
|
|
1190
|
+
margin: 0;
|
|
1191
|
+
}
|
|
1192
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-typography .ant-typography-copy {
|
|
1193
|
+
color: var(--text-color);
|
|
1194
|
+
}
|
|
1195
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-typography .ant-typography-copy-success {
|
|
1196
|
+
color: var(--success-color);
|
|
1197
|
+
}
|
|
1198
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-typography.ant-typography-ellipsis .ant-typography-edit {
|
|
1199
|
+
opacity: 0;
|
|
1200
|
+
color: var(--primary-color);
|
|
1201
|
+
transition: 0.3s;
|
|
1202
|
+
}
|
|
1203
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-tbody .ant-typography.ant-typography-ellipsis:hover .ant-typography-edit {
|
|
1204
|
+
opacity: 1;
|
|
1205
|
+
}
|
|
1206
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary {
|
|
1207
|
+
height: 48px;
|
|
1208
|
+
}
|
|
1209
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td {
|
|
1210
|
+
text-align: right;
|
|
1211
|
+
background-color: var(--table-background-color);
|
|
1212
|
+
padding: 0 8px;
|
|
1213
|
+
}
|
|
1214
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td:first-of-type {
|
|
1215
|
+
text-align: left;
|
|
1216
|
+
padding: 0 0 0 8px;
|
|
1217
|
+
}
|
|
1218
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td.number {
|
|
1219
|
+
border-left: 1px solid #eee;
|
|
1220
|
+
border-right: 1px solid #eee;
|
|
1221
|
+
}
|
|
1222
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td.money {
|
|
1223
|
+
border-left: 1px solid #eee;
|
|
1224
|
+
border-right: 1px solid #eee;
|
|
1225
|
+
color: var(--error-color);
|
|
1226
|
+
}
|
|
1227
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td.money-color {
|
|
1228
|
+
color: var(--error-color);
|
|
1229
|
+
}
|
|
1230
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td > div {
|
|
1231
|
+
white-space: nowrap;
|
|
1232
|
+
overflow: hidden;
|
|
1233
|
+
text-overflow: ellipsis;
|
|
1234
|
+
}
|
|
1235
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary td > div:last-of-type {
|
|
1236
|
+
font-weight: bold;
|
|
1237
|
+
}
|
|
1238
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-summary .total_title {
|
|
1239
|
+
position: relative;
|
|
1240
|
+
white-space: nowrap;
|
|
1241
|
+
}
|
|
1242
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-pro-table-list-toolbar-container {
|
|
1243
|
+
padding: 0;
|
|
1244
|
+
}
|
|
1245
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-pro-table-list-toolbar-container .ant-pro-table-list-toolbar-right {
|
|
1246
|
+
position: absolute;
|
|
1247
|
+
right: 1px;
|
|
1248
|
+
top: 1px;
|
|
1249
|
+
z-index: 4;
|
|
1250
|
+
font-size: 16px;
|
|
1251
|
+
width: 48px;
|
|
1252
|
+
height: 38px;
|
|
1253
|
+
justify-content: center;
|
|
1254
|
+
background-color: #fafafa;
|
|
1255
|
+
}
|
|
1256
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-pro-table-list-toolbar-container .ant-pro-table-list-toolbar-right::after {
|
|
1257
|
+
content: '';
|
|
1258
|
+
position: absolute;
|
|
1259
|
+
left: 0;
|
|
1260
|
+
top: 50%;
|
|
1261
|
+
transform: translateY(-50%);
|
|
1262
|
+
height: 1.6em;
|
|
1263
|
+
width: 1px;
|
|
1264
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
1265
|
+
}
|
|
1266
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-row {
|
|
1267
|
+
position: relative;
|
|
1268
|
+
}
|
|
1269
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-row .operate_fixed_right .operate_btn {
|
|
1270
|
+
font-size: 12px;
|
|
1271
|
+
color: var(--primary-color);
|
|
1272
|
+
}
|
|
1273
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-row .operate_fixed_right .operate_btn .ant-space-item {
|
|
1274
|
+
cursor: pointer;
|
|
1275
|
+
}
|
|
1276
|
+
#lm_protable_warp .lm_protable .ant-pro-table .ant-table-row .operate_fixed_right .ant-btn {
|
|
1277
|
+
font-size: 12px;
|
|
1278
|
+
}
|
|
1279
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row > td {
|
|
1280
|
+
padding: 0px;
|
|
1281
|
+
background: var(--color-4);
|
|
1282
|
+
}
|
|
1283
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row > td .ant-pro-card {
|
|
1284
|
+
background: var(--color-4);
|
|
1285
|
+
}
|
|
1286
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row > td .ant-pro-card .ant-table {
|
|
1287
|
+
background: var(--color-4);
|
|
1288
|
+
border: 0;
|
|
1289
|
+
}
|
|
1290
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row > td .ant-pro-card .ant-table .ant-table-cell-fix-left,
|
|
1291
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row > td .ant-pro-card .ant-table .ant-table-cell-fix-right {
|
|
1292
|
+
background: var(--color-4);
|
|
1293
|
+
}
|
|
1294
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row > td .ant-table-content {
|
|
1295
|
+
padding-left: 30px;
|
|
1296
|
+
}
|
|
1297
|
+
#lm_protable_warp .lm_protable .ant-table-expanded-row .ant-pagination {
|
|
1298
|
+
margin-right: 16px !important;
|
|
1299
|
+
}
|
|
1300
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination {
|
|
1301
|
+
height: 48px;
|
|
1302
|
+
display: flex;
|
|
1303
|
+
align-items: center;
|
|
1304
|
+
font-size: 12px;
|
|
1305
|
+
margin: 0;
|
|
1306
|
+
padding: 0;
|
|
1307
|
+
flex: none;
|
|
1308
|
+
}
|
|
1309
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination .ant-select {
|
|
1310
|
+
font-size: inherit;
|
|
1311
|
+
}
|
|
1312
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li {
|
|
1313
|
+
font-size: 12px;
|
|
1314
|
+
line-height: 24px;
|
|
1315
|
+
height: 24px;
|
|
1316
|
+
color: var(--color-65);
|
|
1317
|
+
}
|
|
1318
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-total-text {
|
|
1319
|
+
color: var(--color-65);
|
|
1320
|
+
}
|
|
1321
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-item {
|
|
1322
|
+
border: 0;
|
|
1323
|
+
transition: all 0s !important;
|
|
1324
|
+
}
|
|
1325
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-item:focus-visible {
|
|
1326
|
+
transition: all 0s;
|
|
1327
|
+
}
|
|
1328
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li .ant-pagination-item-link {
|
|
1329
|
+
border: 0;
|
|
1330
|
+
}
|
|
1331
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li .ant-pagination-item-link .anticon {
|
|
1332
|
+
color: var(--color-85);
|
|
1333
|
+
}
|
|
1334
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li > a {
|
|
1335
|
+
color: var(--color-65);
|
|
1336
|
+
}
|
|
1337
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-options .ant-select-selection-item {
|
|
1338
|
+
color: var(--color-65);
|
|
1339
|
+
font-size: 12px;
|
|
1340
|
+
}
|
|
1341
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-item-active {
|
|
1342
|
+
background-color: var(--primary-color);
|
|
1343
|
+
color: #fff;
|
|
1344
|
+
}
|
|
1345
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-item-active > a {
|
|
1346
|
+
color: #fff;
|
|
1347
|
+
}
|
|
1348
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li .ant-pagination-options-quick-jumper input {
|
|
1349
|
+
width: 38px;
|
|
1350
|
+
font-size: 12px;
|
|
1351
|
+
color: var(--color-65);
|
|
1352
|
+
}
|
|
1353
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-simple-pager input {
|
|
1354
|
+
width: 48px;
|
|
1355
|
+
font-size: 12px;
|
|
1356
|
+
color: var(--color-65);
|
|
1357
|
+
height: 22px;
|
|
1358
|
+
}
|
|
1359
|
+
#lm_protable_warp .lm_protable .ant-table-pagination.ant-pagination li.ant-pagination-simple-pager .ant-pagination-slash {
|
|
1360
|
+
margin-right: 14px;
|
|
1361
|
+
}
|
|
1362
|
+
#lm_protable_warp .ant-table-expand-icon-col {
|
|
1363
|
+
width: 32px;
|
|
1364
|
+
}
|
|
1365
|
+
#lm_protable_warp .lm_customCheck {
|
|
1366
|
+
position: absolute;
|
|
1367
|
+
bottom: -8px;
|
|
1073
1368
|
left: 0;
|
|
1074
1369
|
max-width: 50%;
|
|
1075
1370
|
font-size: 12px;
|
|
1371
|
+
height: 48px;
|
|
1372
|
+
display: flex;
|
|
1076
1373
|
}
|
package/lib/Menu/style/index.css
CHANGED
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
package/lib/Select/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
|
|
3
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -11,7 +13,7 @@ require("antd/es/select/style");
|
|
|
11
13
|
|
|
12
14
|
var _select = _interopRequireDefault(require("antd/es/select"));
|
|
13
15
|
|
|
14
|
-
var _react =
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
17
|
|
|
16
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
19
|
|
|
@@ -29,23 +31,22 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
29
31
|
};
|
|
30
32
|
|
|
31
33
|
var prefixCls = 'lm_select';
|
|
32
|
-
|
|
33
|
-
var CLMSelect = function CLMSelect(props) {
|
|
34
|
+
var CLMSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
34
35
|
var children = props.children,
|
|
35
36
|
className = props.className,
|
|
36
37
|
_props$size = props.size,
|
|
37
|
-
size = _props$size === void 0 ? '
|
|
38
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
38
39
|
dropdownClassName = props.dropdownClassName,
|
|
39
40
|
others = __rest(props, ["children", "className", "size", "dropdownClassName"]);
|
|
40
41
|
|
|
41
42
|
return /*#__PURE__*/_react.default.createElement(_select.default, Object.assign({
|
|
42
43
|
className: (0, _classnames.default)(className, prefixCls),
|
|
43
|
-
size: size
|
|
44
|
+
size: size,
|
|
45
|
+
ref: ref
|
|
44
46
|
}, others, {
|
|
45
47
|
dropdownClassName: (0, _classnames.default)('lm_select_dropdown', dropdownClassName)
|
|
46
48
|
}), children);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
+
});
|
|
49
50
|
var LMSelect = CLMSelect;
|
|
50
51
|
LMSelect.Option = _select.default.Option;
|
|
51
52
|
LMSelect.OptGroup = _select.default.OptGroup;
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
--color-6: #f0f0f0;
|
|
206
206
|
--color-4: #f5f5f5;
|
|
207
207
|
--color-2: #fafafa;
|
|
208
|
+
/** tree */
|
|
209
|
+
--tree-select-bg: #EDF6FF;
|
|
208
210
|
}
|
|
211
|
+
/** tag */
|
|
209
212
|
:root[theme='dark'] {
|
|
210
213
|
--font-color: rgba(255, 255, 255, 0.85);
|
|
211
214
|
--text-color: rgba(255, 255, 255, 0.45);
|
|
@@ -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/switch/style");
|
|
11
|
+
|
|
12
|
+
var _switch = _interopRequireDefault(require("antd/es/switch"));
|
|
13
|
+
|
|
14
|
+
var _default = _switch.default;
|
|
15
|
+
exports.default = _default;
|