linkmore-design 1.0.72 → 1.0.75
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/Approval/index.d.ts +1 -0
- package/dist/Approval/type.d.ts +1 -1
- package/dist/CardTable/utils.d.ts +1 -1
- package/dist/ConfigProvider/demos/basic.d.ts +2 -0
- package/dist/ConfigProvider/index.d.ts +2 -0
- package/dist/ConfigProvider/style/index.d.ts +1 -0
- package/dist/ImageViewer/components/Arrows.d.ts +4 -0
- package/dist/ImageViewer/components/Carousel.d.ts +4 -0
- package/dist/ImageViewer/components/Operate.d.ts +4 -0
- package/dist/ImageViewer/components/Thumb.d.ts +4 -0
- package/dist/ImageViewer/fns/index.d.ts +20 -0
- package/dist/ImageViewer/wrapeer/reducer.d.ts +10 -0
- package/dist/Locale/index.d.ts +6 -0
- package/dist/Locale/style/index.d.ts +1 -0
- package/dist/Row/index.d.ts +1 -1
- package/dist/index.d.ts +23 -2
- package/dist/index.umd.js +115051 -114155
- package/dist/index.umd.min.js +20 -20
- package/es/Approval/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +15 -0
- package/es/ConfigProvider/style/index.css +141 -0
- package/es/ConfigProvider/style/index.js +3 -0
- package/es/ImageViewer/LmImageViewer.js +7 -8
- package/es/ImageViewer/components/Arrows.d.ts +4 -0
- package/es/ImageViewer/components/Arrows.js +38 -0
- package/es/ImageViewer/components/Carousel.d.ts +4 -0
- package/es/ImageViewer/components/Carousel.js +71 -0
- package/es/ImageViewer/components/Operate.d.ts +4 -0
- package/es/ImageViewer/components/Operate.js +40 -0
- package/es/ImageViewer/components/Thumb.d.ts +4 -0
- package/es/ImageViewer/components/Thumb.js +37 -0
- package/es/ImageViewer/fns/index.d.ts +20 -0
- package/es/ImageViewer/fns/index.js +100 -0
- package/es/ImageViewer/style/index.css +104 -2
- package/es/ImageViewer/wrapeer/Container.js +22 -4
- package/es/ImageViewer/wrapeer/Root.js +30 -3
- package/es/ImageViewer/wrapeer/Wrapper.js +16 -2
- package/es/ImageViewer/wrapeer/reducer.d.ts +10 -0
- package/es/ImageViewer/wrapeer/reducer.js +52 -0
- package/es/LmFilter/Controls/index.js +6 -5
- package/es/LmFilter/customFilter/index.js +1 -1
- package/es/LmFilter/customFilter/saveModal.js +1 -1
- package/es/LmFilter/customFilter/valueDrawer.js +7 -10
- package/es/Locale/index.d.ts +6 -0
- package/es/Locale/index.js +9 -0
- package/es/Locale/style/index.css +141 -0
- package/es/Locale/style/index.js +3 -0
- package/es/Pagination/index.js +18 -5
- package/es/Row/index.d.ts +1 -1
- package/es/Timeline/style/index.css +3 -0
- package/es/index.d.ts +23 -2
- package/es/index.js +13 -2
- package/lib/Approval/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +15 -0
- package/lib/ConfigProvider/style/index.css +141 -0
- package/lib/ConfigProvider/style/index.js +3 -0
- package/lib/ImageViewer/LmImageViewer.js +7 -8
- package/lib/ImageViewer/components/Arrows.d.ts +4 -0
- package/lib/ImageViewer/components/Arrows.js +49 -0
- package/lib/ImageViewer/components/Carousel.d.ts +4 -0
- package/lib/ImageViewer/components/Carousel.js +82 -0
- package/lib/ImageViewer/components/Operate.d.ts +4 -0
- package/lib/ImageViewer/components/Operate.js +51 -0
- package/lib/ImageViewer/components/Thumb.d.ts +4 -0
- package/lib/ImageViewer/components/Thumb.js +50 -0
- package/lib/ImageViewer/fns/index.d.ts +20 -0
- package/lib/ImageViewer/fns/index.js +108 -0
- package/lib/ImageViewer/style/index.css +104 -2
- package/lib/ImageViewer/wrapeer/Container.js +26 -4
- package/lib/ImageViewer/wrapeer/Root.js +34 -4
- package/lib/ImageViewer/wrapeer/Wrapper.js +16 -2
- package/lib/ImageViewer/wrapeer/reducer.d.ts +10 -0
- package/lib/ImageViewer/wrapeer/reducer.js +64 -0
- package/lib/LmFilter/Controls/index.js +6 -5
- package/lib/LmFilter/customFilter/index.js +1 -1
- package/lib/LmFilter/customFilter/saveModal.js +1 -1
- package/lib/LmFilter/customFilter/valueDrawer.js +7 -10
- package/lib/Locale/index.d.ts +6 -0
- package/lib/Locale/index.js +22 -0
- package/lib/Locale/style/index.css +141 -0
- package/lib/Locale/style/index.js +3 -0
- package/lib/Pagination/index.js +20 -5
- package/lib/Row/index.d.ts +1 -1
- package/lib/Timeline/style/index.css +3 -0
- package/lib/index.d.ts +23 -2
- package/lib/index.js +91 -3
- package/package.json +1 -1
|
@@ -9,14 +9,36 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _Carousel = _interopRequireDefault(require("../components/Carousel"));
|
|
13
|
+
|
|
14
|
+
var _Thumb = _interopRequireDefault(require("../components/Thumb"));
|
|
15
|
+
|
|
16
|
+
var _Operate = _interopRequireDefault(require("../components/Operate"));
|
|
17
|
+
|
|
18
|
+
var _Arrows = _interopRequireDefault(require("../components/Arrows"));
|
|
19
|
+
|
|
12
20
|
// 根文件 => 参数聚合
|
|
13
21
|
var LmImageViewerContainer = function LmImageViewerContainer(_ref) {
|
|
14
22
|
var instance = _ref.instance;
|
|
15
|
-
var
|
|
16
|
-
|
|
23
|
+
var onClose = instance.onClose,
|
|
24
|
+
hideOnClickModal = instance.hideOnClickModal;
|
|
25
|
+
|
|
26
|
+
var handleClose = function handleClose() {
|
|
27
|
+
hideOnClickModal && onClose();
|
|
28
|
+
};
|
|
29
|
+
|
|
17
30
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
18
|
-
className: "lm_image_viewer_container"
|
|
19
|
-
|
|
31
|
+
className: "lm_image_viewer_container",
|
|
32
|
+
onClick: handleClose
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement(_Carousel.default, {
|
|
34
|
+
instance: instance
|
|
35
|
+
}), /*#__PURE__*/_react.default.createElement(_Thumb.default, {
|
|
36
|
+
instance: instance
|
|
37
|
+
}), /*#__PURE__*/_react.default.createElement(_Operate.default, {
|
|
38
|
+
instance: instance
|
|
39
|
+
}), /*#__PURE__*/_react.default.createElement(_Arrows.default, {
|
|
40
|
+
instance: instance
|
|
41
|
+
})));
|
|
20
42
|
};
|
|
21
43
|
|
|
22
44
|
var _default = LmImageViewerContainer;
|
|
@@ -1,22 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
4
|
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
|
|
12
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
15
|
|
|
16
|
+
var _reducer = _interopRequireWildcard(require("./reducer"));
|
|
17
|
+
|
|
18
|
+
var _fns = _interopRequireDefault(require("../fns"));
|
|
19
|
+
|
|
14
20
|
var _Wrapper = _interopRequireDefault(require("./Wrapper"));
|
|
15
21
|
|
|
16
22
|
// 根文件 => 参数聚合
|
|
17
23
|
var LmImageViewerRoot = function LmImageViewerRoot(props, ref) {
|
|
18
|
-
|
|
19
|
-
var
|
|
24
|
+
var previewRef = (0, _react.useRef)(null);
|
|
25
|
+
var initialState = (0, _react.useMemo)(function () {
|
|
26
|
+
return (0, _reducer.initialState)(props);
|
|
27
|
+
}, []);
|
|
28
|
+
|
|
29
|
+
var _useReducer = (0, _react.useReducer)(_reducer.default, initialState),
|
|
30
|
+
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
31
|
+
state = _useReducer2[0],
|
|
32
|
+
dispatch = _useReducer2[1]; // 获取核心Methods
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _useCoreOptions = (0, _fns.default)({
|
|
36
|
+
state: state,
|
|
37
|
+
dispatch: dispatch,
|
|
38
|
+
props: props,
|
|
39
|
+
previewRef: previewRef
|
|
40
|
+
}),
|
|
41
|
+
CoreMethods = _useCoreOptions.CoreMethods,
|
|
42
|
+
RefMethods = _useCoreOptions.RefMethods; // 组件实例
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var instance = Object.assign(Object.assign(Object.assign(Object.assign({}, props), CoreMethods), RefMethods), {
|
|
46
|
+
previewRef: previewRef,
|
|
47
|
+
state: state,
|
|
48
|
+
dispatch: dispatch
|
|
49
|
+
}); // 向外暴露出的方法
|
|
20
50
|
|
|
21
51
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
22
52
|
return {};
|
|
@@ -14,9 +14,23 @@ var _Container = _interopRequireDefault(require("./Container"));
|
|
|
14
14
|
// 根文件 => 参数聚合
|
|
15
15
|
var LmImageViewerWrapper = function LmImageViewerWrapper(_ref) {
|
|
16
16
|
var instance = _ref.instance;
|
|
17
|
+
var getVisible = instance.getVisible,
|
|
18
|
+
zIndex = instance.zIndex;
|
|
19
|
+
|
|
20
|
+
var handleClose = function handleClose() {
|
|
21
|
+
console.log('handleClose');
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
if (!getVisible()) return null;
|
|
17
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
18
|
-
className: "
|
|
19
|
-
|
|
26
|
+
className: "lm_image_viewer_wrapper",
|
|
27
|
+
style: {
|
|
28
|
+
zIndex: zIndex
|
|
29
|
+
}
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
+
className: "lm_image_viewer_mask",
|
|
32
|
+
onClick: handleClose
|
|
33
|
+
}), /*#__PURE__*/_react.default.createElement(_Container.default, {
|
|
20
34
|
instance: instance
|
|
21
35
|
}));
|
|
22
36
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.reducer = exports.initialState = exports.default = void 0;
|
|
7
|
+
// 初始化状态值
|
|
8
|
+
var defaultState = {
|
|
9
|
+
currentIndex: 0,
|
|
10
|
+
currentUrl: '',
|
|
11
|
+
transform: {
|
|
12
|
+
scale: 1,
|
|
13
|
+
rotateZ: 0 // Z轴旋转方向
|
|
14
|
+
|
|
15
|
+
} // 当前选中的图片变换
|
|
16
|
+
|
|
17
|
+
}; // 状态管理操作
|
|
18
|
+
|
|
19
|
+
var reducer = function reducer(state, action) {
|
|
20
|
+
var transform = action.transform,
|
|
21
|
+
current = action.current,
|
|
22
|
+
visible = action.visible;
|
|
23
|
+
|
|
24
|
+
switch (action.type) {
|
|
25
|
+
case 'changeVisible':
|
|
26
|
+
// 控制显示隐藏
|
|
27
|
+
return Object.assign(Object.assign({}, state), {
|
|
28
|
+
visible: visible
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
case 'changeTransform':
|
|
32
|
+
// 改变转换
|
|
33
|
+
return Object.assign(Object.assign({}, state), {
|
|
34
|
+
transform: Object.assign(Object.assign({}, state.transform), transform)
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
case 'changeCurrent':
|
|
38
|
+
// 改变当前选中的图片
|
|
39
|
+
return Object.assign(Object.assign(Object.assign({}, state), current), {
|
|
40
|
+
transform: defaultState.transform
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
case 'init':
|
|
44
|
+
// 改变当前选中的图片
|
|
45
|
+
return Object.assign(Object.assign({}, state), defaultState);
|
|
46
|
+
|
|
47
|
+
default:
|
|
48
|
+
throw new Error();
|
|
49
|
+
}
|
|
50
|
+
}; // 仅在初始化时触发一次
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
exports.reducer = reducer;
|
|
54
|
+
|
|
55
|
+
var initialState = function initialState(props) {
|
|
56
|
+
var initialIndex = props.initialIndex;
|
|
57
|
+
return Object.assign(Object.assign({}, defaultState), {
|
|
58
|
+
currentIndex: initialIndex
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.initialState = initialState;
|
|
63
|
+
var _default = reducer;
|
|
64
|
+
exports.default = _default;
|
|
@@ -29,6 +29,7 @@ var _DateFilter = _interopRequireDefault(require("../components/DateFilter"));
|
|
|
29
29
|
|
|
30
30
|
var _excluded = ["item", "options"];
|
|
31
31
|
|
|
32
|
+
// import Nested from './Nested';
|
|
32
33
|
var Controls = function Controls(props) {
|
|
33
34
|
var _props$item = props.item,
|
|
34
35
|
item = _props$item === void 0 ? {} : _props$item,
|
|
@@ -49,23 +50,23 @@ var Controls = function Controls(props) {
|
|
|
49
50
|
children: null
|
|
50
51
|
};
|
|
51
52
|
var obj = {
|
|
52
|
-
|
|
53
|
+
select: /*#__PURE__*/_react.default.createElement(_CheckboxTags.default, (0, _extends2.default)({
|
|
53
54
|
options: options
|
|
54
55
|
}, resetProps)),
|
|
55
|
-
|
|
56
|
+
checkbox: /*#__PURE__*/_react.default.createElement(_CheckboxTags.default, (0, _extends2.default)({
|
|
56
57
|
options: options
|
|
57
58
|
}, resetProps)),
|
|
58
|
-
|
|
59
|
+
cascader: /*#__PURE__*/_react.default.createElement(_CascaderFilter.default, {
|
|
59
60
|
instance: instance,
|
|
60
61
|
item: item,
|
|
61
62
|
options: options
|
|
62
63
|
}),
|
|
63
|
-
|
|
64
|
+
date: /*#__PURE__*/_react.default.createElement(_DateFilter.default, {
|
|
64
65
|
instance: instance,
|
|
65
66
|
item: item,
|
|
66
67
|
options: options
|
|
67
68
|
}),
|
|
68
|
-
|
|
69
|
+
input: /*#__PURE__*/_react.default.createElement(_input.default, (0, _extends2.default)({
|
|
69
70
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
70
71
|
}, resetProps)) // 'nested': <Nested options={options} {...resetProps} />,
|
|
71
72
|
|
|
@@ -75,7 +75,7 @@ var LmFilterCustom = function LmFilterCustom(_ref) {
|
|
|
75
75
|
});
|
|
76
76
|
setVisible(false);
|
|
77
77
|
},
|
|
78
|
-
setFilterValue: function setFilterValue(val
|
|
78
|
+
setFilterValue: function setFilterValue(val) {
|
|
79
79
|
setCustomFilter === null || setCustomFilter === void 0 ? void 0 : setCustomFilter(val);
|
|
80
80
|
setVisible(false);
|
|
81
81
|
},
|
|
@@ -27,8 +27,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
27
27
|
|
|
28
28
|
var _linkmoreDesign = require("linkmore-design");
|
|
29
29
|
|
|
30
|
-
var _utils = require("../utils");
|
|
31
|
-
|
|
32
30
|
var _Controls = _interopRequireDefault(require("../Controls"));
|
|
33
31
|
|
|
34
32
|
// 第二层抽屉,弹出数据选择
|
|
@@ -56,12 +54,12 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
56
54
|
/*
|
|
57
55
|
* customModal.data.type === 'nested' 时,处理不同
|
|
58
56
|
*
|
|
59
|
-
|
|
57
|
+
*/
|
|
60
58
|
|
|
61
59
|
|
|
62
60
|
var onSave = /*#__PURE__*/function () {
|
|
63
61
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
64
|
-
var _yield$form$validateF,
|
|
62
|
+
var _yield$form$validateF, mode, value, filterValues, currentItem, isNested, nField, nValue, _value$subValue;
|
|
65
63
|
|
|
66
64
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
67
65
|
while (1) {
|
|
@@ -73,7 +71,6 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
73
71
|
|
|
74
72
|
case 3:
|
|
75
73
|
_yield$form$validateF = _context.sent;
|
|
76
|
-
field = _yield$form$validateF.field;
|
|
77
74
|
mode = _yield$form$validateF.mode;
|
|
78
75
|
value = _yield$form$validateF.value;
|
|
79
76
|
// 选中的筛选数据
|
|
@@ -113,19 +110,19 @@ var ValueDrawer = function ValueDrawer(_ref) {
|
|
|
113
110
|
})
|
|
114
111
|
});
|
|
115
112
|
onClose();
|
|
116
|
-
_context.next =
|
|
113
|
+
_context.next = 19;
|
|
117
114
|
break;
|
|
118
115
|
|
|
119
|
-
case
|
|
120
|
-
_context.prev =
|
|
116
|
+
case 17:
|
|
117
|
+
_context.prev = 17;
|
|
121
118
|
_context.t0 = _context["catch"](0);
|
|
122
119
|
|
|
123
|
-
case
|
|
120
|
+
case 19:
|
|
124
121
|
case "end":
|
|
125
122
|
return _context.stop();
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
|
-
}, _callee, null, [[0,
|
|
125
|
+
}, _callee, null, [[0, 17]]);
|
|
129
126
|
}));
|
|
130
127
|
|
|
131
128
|
return function onSave() {
|
|
@@ -0,0 +1,22 @@
|
|
|
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 _en_US = _interopRequireDefault(require("antd/es/locale/en_US"));
|
|
11
|
+
|
|
12
|
+
var _zh_CN = _interopRequireDefault(require("antd/es/locale/zh_CN"));
|
|
13
|
+
|
|
14
|
+
var _ar_EG = _interopRequireDefault(require("antd/es/locale/ar_EG"));
|
|
15
|
+
|
|
16
|
+
var Locale = {
|
|
17
|
+
enUS: _en_US.default,
|
|
18
|
+
zhCN: _zh_CN.default,
|
|
19
|
+
arEG: _ar_EG.default
|
|
20
|
+
};
|
|
21
|
+
var _default = Locale;
|
|
22
|
+
exports.default = _default;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
.lm-radio {
|
|
2
|
+
font-size: 12px;
|
|
3
|
+
line-height: 20px;
|
|
4
|
+
color: var(--font-color);
|
|
5
|
+
}
|
|
6
|
+
.lm-radio > span:last-child {
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: 0 8px;
|
|
9
|
+
max-width: 96px;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
}
|
|
13
|
+
.lm-radio .ant-radio .ant-radio-inner {
|
|
14
|
+
border-color: var(--stroke-color);
|
|
15
|
+
}
|
|
16
|
+
.lm-radio .ant-radio:hover .ant-radio-inner {
|
|
17
|
+
border-color: var(--primary-color);
|
|
18
|
+
}
|
|
19
|
+
.lm-radio .ant-radio-disabled.ant-radio-checked .ant-radio-inner:after {
|
|
20
|
+
background-color: var(--tip-text-color);
|
|
21
|
+
}
|
|
22
|
+
.lm-radio .ant-radio-disabled .ant-radio-inner {
|
|
23
|
+
background-color: var(--background-color);
|
|
24
|
+
border-color: var(--stroke-color) !important;
|
|
25
|
+
}
|
|
26
|
+
.lm-radio .ant-radio-disabled + span {
|
|
27
|
+
color: var(--disabled-font-color);
|
|
28
|
+
}
|
|
29
|
+
.lm-radio-group .ant-radio-button-wrapper {
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
height: 32px;
|
|
32
|
+
padding: 0px 12px;
|
|
33
|
+
color: var(--font-color);
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
}
|
|
36
|
+
.lm-radio-group .ant-radio-button-wrapper .anticon {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
}
|
|
41
|
+
.lm-radio-group .ant-radio-button-wrapper:hover {
|
|
42
|
+
color: var(--primary-color);
|
|
43
|
+
}
|
|
44
|
+
.lm-radio-group .ant-radio-button-wrapper > span:last-child {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
max-width: 96px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']) .ant-radio-button-wrapper:first-child {
|
|
52
|
+
border-right-color: var(--primary-hover-color);
|
|
53
|
+
}
|
|
54
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
|
55
|
+
color: var(--primary-color);
|
|
56
|
+
border-color: var(--primary-color);
|
|
57
|
+
}
|
|
58
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {
|
|
59
|
+
border-color: var(--primary-color);
|
|
60
|
+
}
|
|
61
|
+
.lm-radio-group .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
|
|
62
|
+
color: var(--primary-hover-color);
|
|
63
|
+
border-color: var(--primary-hover-color);
|
|
64
|
+
}
|
|
65
|
+
.lm-radio-group.ant-radio-group-large .ant-radio-button-wrapper {
|
|
66
|
+
line-height: 38px;
|
|
67
|
+
height: 40px;
|
|
68
|
+
}
|
|
69
|
+
.lm-radio-group.ant-radio-group-large .ant-radio-button-wrapper > span:last-child {
|
|
70
|
+
line-height: 38px;
|
|
71
|
+
}
|
|
72
|
+
.lm-radio-group.ant-radio-group-small .ant-radio-button-wrapper {
|
|
73
|
+
line-height: 22px;
|
|
74
|
+
height: 24px;
|
|
75
|
+
padding: 0px 8px;
|
|
76
|
+
}
|
|
77
|
+
.lm-radio-group.ant-radio-group-small .ant-radio-button-wrapper > span:last-child {
|
|
78
|
+
line-height: 22px;
|
|
79
|
+
}
|
|
80
|
+
.lm-radio-group .ant-radio-wrapper {
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
line-height: 20px;
|
|
83
|
+
color: var(--font-color);
|
|
84
|
+
}
|
|
85
|
+
.lm-radio-group .ant-radio-wrapper > span:last-child {
|
|
86
|
+
padding: 0;
|
|
87
|
+
margin: 0 8px;
|
|
88
|
+
max-width: 96px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio .ant-radio-inner {
|
|
93
|
+
border-color: var(--stroke-color);
|
|
94
|
+
}
|
|
95
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio:hover .ant-radio-inner {
|
|
96
|
+
border-color: var(--primary-color);
|
|
97
|
+
}
|
|
98
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio-disabled.ant-radio-checked .ant-radio-inner:after {
|
|
99
|
+
background-color: var(--tip-text-color);
|
|
100
|
+
}
|
|
101
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio-disabled .ant-radio-inner {
|
|
102
|
+
background-color: var(--background-color);
|
|
103
|
+
border-color: var(--stroke-color) !important;
|
|
104
|
+
}
|
|
105
|
+
.lm-radio-group .ant-radio-wrapper .ant-radio-disabled + span {
|
|
106
|
+
color: var(--disabled-font-color);
|
|
107
|
+
}
|
|
108
|
+
.lm-radio-group .ant-radio-button-wrapper-disabled {
|
|
109
|
+
color: var(--disabled-font-color);
|
|
110
|
+
background-color: var(--disabled-bg-color);
|
|
111
|
+
border-color: var(--stroke-color);
|
|
112
|
+
}
|
|
113
|
+
.lm-radio-group .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
|
|
114
|
+
color: #b8b8b8 !important;
|
|
115
|
+
background-color: var(--background-color-hover);
|
|
116
|
+
border-color: var(--stroke-color);
|
|
117
|
+
}
|
|
118
|
+
.lm-radio-group .ant-radio-button-wrapper-disabled:hover {
|
|
119
|
+
color: var(--disabled-font-color);
|
|
120
|
+
}
|
|
121
|
+
.lm-radio-group.lm-radio-group-row {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
}
|
|
125
|
+
.lm-radio-group.lm-radio-group-column {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
}
|
|
129
|
+
.lm-radio-group.lm-radio-group-column .lm-radio {
|
|
130
|
+
margin-bottom: 12px;
|
|
131
|
+
}
|
|
132
|
+
.lm-radio-group.lm-radio-group-column .lm-radio > span:last-child {
|
|
133
|
+
max-width: 216px;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
padding: 0;
|
|
137
|
+
margin: 0 8px;
|
|
138
|
+
}
|
|
139
|
+
.lm-radio-group.lm-radio-group-column .lm-radio:last-child {
|
|
140
|
+
margin-bottom: 0;
|
|
141
|
+
}
|
package/lib/Pagination/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
+
var _ConfigProvider = _interopRequireDefault(require("../ConfigProvider"));
|
|
19
|
+
|
|
18
20
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
19
21
|
var t = {};
|
|
20
22
|
|
|
@@ -28,6 +30,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
28
30
|
return t;
|
|
29
31
|
};
|
|
30
32
|
|
|
33
|
+
var ConfigContext = _ConfigProvider.default.ConfigContext;
|
|
31
34
|
var prefixCls = 'lm_pagination';
|
|
32
35
|
|
|
33
36
|
var LMPagination = function LMPagination(props) {
|
|
@@ -35,15 +38,27 @@ var LMPagination = function LMPagination(props) {
|
|
|
35
38
|
className = props.className,
|
|
36
39
|
others = __rest(props, ["children", "className"]);
|
|
37
40
|
|
|
41
|
+
var _React$useContext = _react.default.useContext(ConfigContext),
|
|
42
|
+
locale = _React$useContext.locale; // 更改中文语言包内容显示
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var paginationLocale = _react.default.useMemo(function () {
|
|
46
|
+
if ((locale === null || locale === void 0 ? void 0 : locale.locale) === 'zh-cn') {
|
|
47
|
+
return {
|
|
48
|
+
items_per_page: '/条',
|
|
49
|
+
jump_to: '前往',
|
|
50
|
+
page: '页'
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return {};
|
|
55
|
+
}, [locale]);
|
|
56
|
+
|
|
38
57
|
return /*#__PURE__*/_react.default.createElement(_pagination.default, Object.assign({
|
|
39
58
|
className: (0, _classnames.default)(className, prefixCls),
|
|
40
59
|
size: "small"
|
|
41
60
|
}, others, {
|
|
42
|
-
locale:
|
|
43
|
-
items_per_page: '/条',
|
|
44
|
-
jump_to: '前往',
|
|
45
|
-
page: '页'
|
|
46
|
-
}
|
|
61
|
+
locale: paginationLocale
|
|
47
62
|
}));
|
|
48
63
|
};
|
|
49
64
|
|
package/lib/Row/index.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as ConfigProvider } from './ConfigProvider';
|
|
2
|
+
export { default as Locale } from './Locale';
|
|
1
3
|
export { default as Button } from './Button';
|
|
2
4
|
export { default as ButtonTags } from './ButtonTags';
|
|
3
5
|
export { default as Card } from './Card';
|
|
@@ -34,7 +36,6 @@ export { default as Radio } from './Radio';
|
|
|
34
36
|
export { default as Select } from './Select';
|
|
35
37
|
export { default as Space } from './Space';
|
|
36
38
|
export { default as TableRender } from './TableRender';
|
|
37
|
-
export { default as Tree } from './Tree';
|
|
38
39
|
export { default as UploadOss } from './UploadOss';
|
|
39
40
|
export { default as VirtualList } from './VirtualList';
|
|
40
41
|
export { default as Tag } from './Tag';
|
|
@@ -66,7 +67,7 @@ export { default as Grid } from './Grid';
|
|
|
66
67
|
export { default as Row } from './Row';
|
|
67
68
|
export type { RowProps } from './Row';
|
|
68
69
|
export { default as Col } from './Col';
|
|
69
|
-
export type { ColProps } from './Col';
|
|
70
|
+
export type { ColProps, ColSize } from './Col';
|
|
70
71
|
export { default as Layout } from './Layout';
|
|
71
72
|
export type { LayoutProps, SiderProps } from './Layout';
|
|
72
73
|
export { default as Steps } from './Steps';
|
|
@@ -86,3 +87,23 @@ export { default as Carousel } from './Carousel';
|
|
|
86
87
|
export type { CarouselProps } from './Carousel';
|
|
87
88
|
export { default as Alert } from './Alert';
|
|
88
89
|
export type { AlertProps } from './Alert';
|
|
90
|
+
export { default as Segmented } from './Segmented';
|
|
91
|
+
export type { SegmentedProps } from './Segmented';
|
|
92
|
+
export { default as Approval } from './Approval';
|
|
93
|
+
export type { ApprovalType, StatusType, IApprovalItemProps, IApprovalProps } from './Approval';
|
|
94
|
+
export { default as TimePicker } from './TimePicker';
|
|
95
|
+
export type { TimeRangePickerProps, TimePickerProps } from './TimePicker';
|
|
96
|
+
export { default as Collapse } from './Collapse';
|
|
97
|
+
export type { CollapseProps } from './Collapse';
|
|
98
|
+
export { default as Comment } from './Comment';
|
|
99
|
+
export type { CommentProps } from './Comment';
|
|
100
|
+
export { default as Statistic } from './Statistic';
|
|
101
|
+
export type { StatisticProps } from './Statistic';
|
|
102
|
+
export { default as Timeline } from './Timeline';
|
|
103
|
+
export type { TimelineProps } from './Timeline';
|
|
104
|
+
export { default as Tree } from './Tree';
|
|
105
|
+
export type { ITreeProps } from './Tree';
|
|
106
|
+
export { default as Popconfirm } from './Popconfirm';
|
|
107
|
+
export type { PopconfirmProps } from './Popconfirm';
|
|
108
|
+
export { default as Progress } from './Progress';
|
|
109
|
+
export type { ProgressProps } from './Progress';
|