@pointcloud/pcloud-components 0.0.1 → 0.1.1
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/README.md +47 -47
- package/dist/esm/AdvancedFilter/FormFilter.d.ts +1 -0
- package/dist/esm/AdvancedFilter/styles/index.less +2 -1
- package/dist/esm/DCascader/index.d.ts +28 -0
- package/dist/esm/DCascader/index.js +231 -0
- package/dist/esm/DCascader/index.less +20 -0
- package/dist/esm/DInput/index.d.ts +19 -0
- package/dist/esm/DInput/index.js +128 -0
- package/dist/esm/DSelect/index.d.ts +25 -0
- package/dist/esm/DSelect/index.js +187 -0
- package/dist/esm/DTable/index.d.ts +39 -0
- package/dist/esm/DTable/index.js +246 -0
- package/dist/esm/DTable/index.less +62 -0
- package/dist/esm/DTreeSelect/index.d.ts +26 -0
- package/dist/esm/DTreeSelect/index.js +209 -0
- package/dist/esm/DTreeSelect/index.less +9 -0
- package/dist/esm/ErrorBoundary/index.d.ts +1 -0
- package/dist/esm/ErrorBoundary/index.less +2 -1
- package/dist/esm/LabelValue/styles/index.less +2 -1
- package/dist/esm/Loading/index.d.ts +1 -1
- package/dist/esm/Loading/loading.d.ts +1 -0
- package/dist/esm/Loading/styles/index.less +2 -1
- package/dist/esm/NoData/index.d.ts +1 -0
- package/dist/esm/NoData/styles/index.less +2 -1
- package/dist/esm/commonStyle/index.less +1 -0
- package/dist/esm/index.d.ts +10 -0
- package/dist/esm/index.js +6 -1
- package/dist/umd/pcloud-components.min.css +1 -1
- package/dist/umd/pcloud-components.min.js +1 -114
- package/package.json +4 -4
- package/dist/cjs/AdvancedFilter/FormFilter.d.ts +0 -5
- package/dist/cjs/AdvancedFilter/FormFilter.js +0 -158
- package/dist/cjs/AdvancedFilter/demos/demo1.d.ts +0 -3
- package/dist/cjs/AdvancedFilter/demos/demo1.js +0 -56
- package/dist/cjs/AdvancedFilter/demos/demo2.d.ts +0 -3
- package/dist/cjs/AdvancedFilter/demos/demo2.js +0 -63
- package/dist/cjs/AdvancedFilter/demos/demo3.d.ts +0 -3
- package/dist/cjs/AdvancedFilter/demos/demo3.js +0 -113
- package/dist/cjs/AdvancedFilter/index.d.ts +0 -5
- package/dist/cjs/AdvancedFilter/index.js +0 -114
- package/dist/cjs/AdvancedFilter/interface.d.ts +0 -97
- package/dist/cjs/AdvancedFilter/interface.js +0 -17
- package/dist/cjs/AdvancedFilter/styles/index.less +0 -115
- package/dist/cjs/ErrorBoundary/index.d.ts +0 -6
- package/dist/cjs/ErrorBoundary/index.js +0 -45
- package/dist/cjs/ErrorBoundary/index.less +0 -42
- package/dist/cjs/LabelValue/demos/demo1.d.ts +0 -3
- package/dist/cjs/LabelValue/demos/demo1.js +0 -35
- package/dist/cjs/LabelValue/demos/demo2.d.ts +0 -3
- package/dist/cjs/LabelValue/demos/demo2.js +0 -36
- package/dist/cjs/LabelValue/demos/demo3.d.ts +0 -3
- package/dist/cjs/LabelValue/demos/demo3.js +0 -36
- package/dist/cjs/LabelValue/index.d.ts +0 -16
- package/dist/cjs/LabelValue/index.js +0 -50
- package/dist/cjs/LabelValue/interface.d.ts +0 -29
- package/dist/cjs/LabelValue/interface.js +0 -17
- package/dist/cjs/LabelValue/styles/index.less +0 -18
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/index.js +0 -38
- package/dist/esm/AdvancedFilter/demos/demo1.d.ts +0 -2
- package/dist/esm/AdvancedFilter/demos/demo1.js +0 -25
- package/dist/esm/AdvancedFilter/demos/demo2.d.ts +0 -2
- package/dist/esm/AdvancedFilter/demos/demo2.js +0 -39
- package/dist/esm/AdvancedFilter/demos/demo3.d.ts +0 -2
- package/dist/esm/AdvancedFilter/demos/demo3.js +0 -86
- package/dist/esm/LabelValue/demos/demo1.d.ts +0 -2
- package/dist/esm/LabelValue/demos/demo1.js +0 -9
- package/dist/esm/LabelValue/demos/demo2.d.ts +0 -2
- package/dist/esm/LabelValue/demos/demo2.js +0 -10
- package/dist/esm/LabelValue/demos/demo3.d.ts +0 -2
- package/dist/esm/LabelValue/demos/demo3.js +0 -10
- package/dist/esm/Loading/demos/demo1.d.ts +0 -2
- package/dist/esm/Loading/demos/demo1.js +0 -17
- package/dist/esm/Loading/demos/demo2.d.ts +0 -2
- package/dist/esm/Loading/demos/demo2.js +0 -18
- package/dist/esm/NoData/demos/demo1.d.ts +0 -2
- package/dist/esm/NoData/demos/demo1.js +0 -12
- package/dist/esm/NoData/demos/demo2.d.ts +0 -2
- package/dist/esm/NoData/demos/demo2.js +0 -14
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
var _excluded = ["className", "popupClassName", "treeData", "fieldNames", "treeNodeFilterProp", "loadData", "onLoadData", "loading"];
|
|
2
|
+
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
|
|
5
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
+
|
|
9
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
+
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
|
|
13
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
+
|
|
15
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
|
|
23
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
|
+
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
26
|
+
|
|
27
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
+
|
|
29
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30
|
+
|
|
31
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* @Author : wangfeihu
|
|
35
|
+
* @Date : 2023-05-22 10:38:17
|
|
36
|
+
* @LastEditors : wangfeihu
|
|
37
|
+
* @LastEditTime : 2023-05-26 17:51:19
|
|
38
|
+
* @Description : 基于antd的TreeSelect组件
|
|
39
|
+
*/
|
|
40
|
+
import React, { useRef, forwardRef, useState, useEffect, useMemo, useContext } from 'react';
|
|
41
|
+
import { TreeSelect } from 'antd';
|
|
42
|
+
import { ConfigContext } from "../ConfigProvider";
|
|
43
|
+
import "./index.less";
|
|
44
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* loading相关代码
|
|
49
|
+
*/
|
|
50
|
+
function InternalTreeSelect(props, ref) {
|
|
51
|
+
var _props$className = props.className,
|
|
52
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
53
|
+
popupClassName = props.popupClassName,
|
|
54
|
+
initOptions = props.treeData,
|
|
55
|
+
fieldNames = props.fieldNames,
|
|
56
|
+
treeNodeFilterProp = props.treeNodeFilterProp,
|
|
57
|
+
loadData = props.loadData,
|
|
58
|
+
onLoadData = props.onLoadData,
|
|
59
|
+
initLoading = props.loading,
|
|
60
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
61
|
+
|
|
62
|
+
var _useContext = useContext(ConfigContext),
|
|
63
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
64
|
+
|
|
65
|
+
var _useState = useState([]),
|
|
66
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
67
|
+
treeData = _useState2[0],
|
|
68
|
+
setTreeData = _useState2[1];
|
|
69
|
+
|
|
70
|
+
var _useState3 = useState(typeof initLoading === 'boolean' ? initLoading : true),
|
|
71
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
72
|
+
loading = _useState4[0],
|
|
73
|
+
setLoading = _useState4[1];
|
|
74
|
+
|
|
75
|
+
var loadingParamsRef = useRef(null); // 数据加载同步处理引用
|
|
76
|
+
|
|
77
|
+
var loadingRef = useRef({
|
|
78
|
+
timer: null,
|
|
79
|
+
status: 'done'
|
|
80
|
+
}); // treeData加载状态引用
|
|
81
|
+
|
|
82
|
+
var _className = "".concat(getPrefixCls('tree-select'), " ").concat(className);
|
|
83
|
+
|
|
84
|
+
var _popupClassName = "".concat(getPrefixCls('tree-select-dropdown'), " ").concat(popupClassName);
|
|
85
|
+
|
|
86
|
+
var _fieldNames = _objectSpread({
|
|
87
|
+
label: 'label',
|
|
88
|
+
value: 'value',
|
|
89
|
+
children: 'children'
|
|
90
|
+
}, fieldNames);
|
|
91
|
+
|
|
92
|
+
var _treeNodeFilterProp = _fieldNames.label;
|
|
93
|
+
|
|
94
|
+
var _loadingState = getDelayTime(loading, 600); // loading: 默认600ms,false或0表示不开启
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
var _loading = typeof initLoading === 'boolean' ? initLoading : loading; // 将外部传入的options转化为统一的异步请求方法
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
var getOptionsFun = useMemo(function () {
|
|
101
|
+
return typeof initOptions === 'function' ? initOptions : function (params) {
|
|
102
|
+
return Promise.resolve(initOptions || []);
|
|
103
|
+
};
|
|
104
|
+
}, [initOptions]);
|
|
105
|
+
|
|
106
|
+
var updateOptions = function updateOptions(fun, value) {
|
|
107
|
+
// 设置加载中状态
|
|
108
|
+
if (_loadingState > 0) {
|
|
109
|
+
loadingRef.current.status = 'loading';
|
|
110
|
+
clearTimeout(loadingRef.current.timer);
|
|
111
|
+
loadingRef.current.timer = setTimeout(function () {
|
|
112
|
+
loadingRef.current.status === 'loading' && setLoading(true);
|
|
113
|
+
}, _loadingState);
|
|
114
|
+
} // 发起请求
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
loadingParamsRef.current = value;
|
|
118
|
+
fun === null || fun === void 0 ? void 0 : fun(value).then(function (response) {
|
|
119
|
+
if (loadingParamsRef.current === value) {
|
|
120
|
+
setTreeData(response);
|
|
121
|
+
setLoading(false);
|
|
122
|
+
loadingRef.current.status = 'done';
|
|
123
|
+
}
|
|
124
|
+
}).catch(function () {
|
|
125
|
+
if (loadingParamsRef.current === value) {
|
|
126
|
+
setLoading(false);
|
|
127
|
+
loadingRef.current.status = 'done';
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var _loadData = function _loadData(selectedOption) {
|
|
133
|
+
onLoadData && onLoadData(selectedOption);
|
|
134
|
+
|
|
135
|
+
var _getOptions = typeof initOptions === 'function' ? initOptions : null;
|
|
136
|
+
|
|
137
|
+
var loadFn = loadData === null ? loadData : loadData || _getOptions;
|
|
138
|
+
|
|
139
|
+
if (typeof loadFn === 'function') {
|
|
140
|
+
var loadFnPromise = loadFn === null || loadFn === void 0 ? void 0 : loadFn(selectedOption);
|
|
141
|
+
|
|
142
|
+
if (typeof loadFnPromise['then'] === 'function') {
|
|
143
|
+
loadFnPromise.then(function (response) {
|
|
144
|
+
var list = treeData || [];
|
|
145
|
+
var node = deepFind(list, function (item) {
|
|
146
|
+
return item[_fieldNames.value] === selectedOption[_fieldNames.value];
|
|
147
|
+
}, _fieldNames.children);
|
|
148
|
+
node && (node[_fieldNames.children] = response);
|
|
149
|
+
setTreeData(_toConsumableArray(list));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return loadFnPromise;
|
|
154
|
+
} else {
|
|
155
|
+
return Promise.resolve();
|
|
156
|
+
}
|
|
157
|
+
}; // 初始加载数据
|
|
158
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
useEffect(function () {
|
|
162
|
+
return updateOptions(getOptionsFun);
|
|
163
|
+
}, [getOptionsFun]);
|
|
164
|
+
return /*#__PURE__*/_jsx(TreeSelect, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
165
|
+
ref: ref,
|
|
166
|
+
className: _className,
|
|
167
|
+
popupClassName: _popupClassName,
|
|
168
|
+
fieldNames: _fieldNames,
|
|
169
|
+
treeNodeFilterProp: _treeNodeFilterProp,
|
|
170
|
+
treeData: treeData,
|
|
171
|
+
loadData: _loadData,
|
|
172
|
+
loading: _loading
|
|
173
|
+
}));
|
|
174
|
+
} // 获取延时时间,默认800ms,true代表默认时间,false代表0
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
function getDelayTime(value) {
|
|
178
|
+
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 800;
|
|
179
|
+
|
|
180
|
+
if (value === true) {
|
|
181
|
+
return defaultValue;
|
|
182
|
+
} else if (value === false) {
|
|
183
|
+
return 0;
|
|
184
|
+
} else {
|
|
185
|
+
return typeof value === 'number' ? Number(value) || 0 : defaultValue;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function deepFind(node, fn) {
|
|
190
|
+
var childrenName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
|
|
191
|
+
|
|
192
|
+
if (fn instanceof Function) {
|
|
193
|
+
var treelist = node instanceof Array ? node : [node];
|
|
194
|
+
|
|
195
|
+
for (var i = 0; i < treelist.length; i++) {
|
|
196
|
+
if (fn(treelist[i], i)) {
|
|
197
|
+
return treelist[i];
|
|
198
|
+
} else {
|
|
199
|
+
var target = deepFind(treelist[i][childrenName] || [], fn, childrenName);
|
|
200
|
+
if (target) return target;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
return undefined;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
var DTreeSelect = /*#__PURE__*/forwardRef(InternalTreeSelect);
|
|
209
|
+
export default DTreeSelect;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import '../commonStyle/index.less';
|
|
2
|
+
.@{prefix}-tree-select-dropdown .ant-select-tree-node-content-wrapper {
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
text-overflow: ellipsis;
|
|
6
|
+
}
|
|
7
|
+
.@{prefix}-tree-select-dropdown .ant-select-tree-node-content-wrapper .ant-select-tree-title {
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@prefix: pui;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -5,3 +5,13 @@ export { default as ErrorBoundary } from './ErrorBoundary';
|
|
|
5
5
|
export { default as ConfigProvider } from './ConfigProvider';
|
|
6
6
|
export { default as Loading } from './Loading';
|
|
7
7
|
export { default as NoData } from './NoData';
|
|
8
|
+
export type { DInputProps } from './DInput';
|
|
9
|
+
export { default as DInput } from './DInput';
|
|
10
|
+
export type { DSelectProps } from './DSelect';
|
|
11
|
+
export { default as DSelect } from './DSelect';
|
|
12
|
+
export type { DCascaderProps } from './DCascader';
|
|
13
|
+
export { default as DCascader } from './DCascader';
|
|
14
|
+
export type { DTreeSelectProps } from './DTreeSelect';
|
|
15
|
+
export { default as DTreeSelect } from './DTreeSelect';
|
|
16
|
+
export type { DTableProps, DTableSourceProps, TableParamsProps } from './DTable';
|
|
17
|
+
export { default as DTable } from './DTable';
|
package/dist/esm/index.js
CHANGED
|
@@ -3,4 +3,9 @@ export { default as AdvancedFilter } from "./AdvancedFilter";
|
|
|
3
3
|
export { default as ErrorBoundary } from "./ErrorBoundary";
|
|
4
4
|
export { default as ConfigProvider } from "./ConfigProvider";
|
|
5
5
|
export { default as Loading } from "./Loading";
|
|
6
|
-
export { default as NoData } from "./NoData";
|
|
6
|
+
export { default as NoData } from "./NoData";
|
|
7
|
+
export { default as DInput } from "./DInput";
|
|
8
|
+
export { default as DSelect } from "./DSelect";
|
|
9
|
+
export { default as DCascader } from "./DCascader";
|
|
10
|
+
export { default as DTreeSelect } from "./DTreeSelect";
|
|
11
|
+
export { default as DTable } from "./DTable";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pui-label-value{display:inline-flex}.pui-label-value span:first-child{max-width:120px;padding-right:4px;white-space:nowrap}.pui-label-value span:last-child{flex:1 1}.pui-label-value span:last-child.no-wrap{overflow:hidden;white-space:nowrap
|
|
1
|
+
.pui-label-value{display:inline-flex}.pui-label-value span:first-child{max-width:120px;padding-right:4px;white-space:nowrap}.pui-label-value span:last-child{flex:1 1}.pui-label-value span:last-child.no-wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pui-search-filter{align-items:center;background-color:#fff;margin-top:10px;width:100%}.pui-search-filter span.ant-collapse-header-text{cursor:auto!important;display:inline-block;width:100%}.pui-search-filter .ant-collapse-content-box{padding:0}.pui-search-filter .search-header{display:flex;width:100%}.pui-search-filter .search-header .left{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:no-wrap}.pui-search-filter .search-header .left :global .ant-radio-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:5px 0 0 5px}.pui-search-filter .search-header .left :global .ant-radio-wrapper:last-child{border-radius:0 5px 5px 0}.pui-search-filter .search-header .left :global .ant-radio-wrapper{border:1px solid #d9d9d9;border-left-color:#fff;margin-right:0;padding:4px 6px}.pui-search-filter .search-header .left :global .ant-radio-wrapper .ant-radio{display:none}.pui-search-filter .search-header .left :global .ant-radio-wrapper:hover{color:#1890ff}.pui-search-filter .search-header .left :global .ant-radio-wrapper-checked{background:#fff;border:1px solid #1890ff;border-left:1px solid #1890ff!important;color:#1890ff;z-index:1}.pui-search-filter .search-header .right{display:flex;justify-content:center}.pui-search-filter .search-header .right .input{border-radius:4px;width:200px}.pui-search-filter .search-header .right .button{background-color:#ff7e00;border-radius:4px;color:#fff;margin-left:10px}.pui-search-filter .search-header .right .button:active,.pui-search-filter .search-header .right .button:focus,.pui-search-filter .search-header .right .button:hover{border-color:transparent}.pui-search-filter .search-header .right .button .icon{margin-left:8px}.pui-search-filter .title{align-items:center;border-bottom:1px solid #f0f0f0;display:flex;font-weight:700;margin:0 10px;padding-bottom:10px}.pui-search-filter .title span.icon{background-color:#ff7e00;border-radius:2px;height:16px;margin-right:6px;width:4px}.pui-search-filter .search-content .filter-row{display:flex;flex-wrap:wrap;padding:10px;width:100%}.pui-search-filter .search-content .filter-col{height:30px;line-height:30px;margin-bottom:10px}.pui-search-filter .search-content .filter-col .ant-picker{width:100%}.pui-search-filter .search-content .search-btn{justify-content:center}.pui-search-filter .search-content .search-btn>button{margin:0 5px}.pui-error-boundary{align-items:center;background-color:#dd7f7f;border-radius:10px;display:flex;flex-direction:column;justify-content:center;margin:20px;padding:15px;width:auto}.pui-error-boundary .error-text{margin-top:20px}.pui-error-boundary .error-refresh{background-color:#4593ef;border-radius:5px;color:#fff;cursor:pointer;font-weight:700;height:40px;line-height:40px;text-align:center;width:140px}.pui-error-boundary .errorDetiles .detilesLink{color:blue}.pui-error-boundary .errorDetiles .errordetails{background-color:#ccc6be;border:1px solid #777;border-radius:5px;color:#777;font-size:80%;padding:10px}.pui-loading .mask{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:100000}.pui-loading .loading{background:#fff;border-radius:10px;box-shadow:3px 3px 3px rgba(0,0,0,.2);padding:20px;z-index:100001}.pui-loading .loading,.pui-nodata{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.pui-nodata .not-data-image{display:block;height:100px}.pui-nodata .noData-text{color:#000;display:inline-block;font-size:14px;font-weight:400;margin-top:5px;opacity:.65;text-align:center;width:100%}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar{height:8px;width:8px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:8px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-track{border-radius:2px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-corner{background-color:#f1f1f1}.pui-tree-select-dropdown .ant-select-tree-node-content-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pui-tree-select-dropdown .ant-select-tree-node-content-wrapper .ant-select-tree-title{overflow:hidden}.pui-table .ant-spin-container,.pui-table .ant-spin-nested-loading,.pui-table .ant-table,.pui-table .ant-table-container{height:100%;width:100%}.pui-table .ant-table-body{max-height:calc(100% - 56px);max-width:100%;min-height:calc(100% - 56px);min-width:100%;position:absolute}.pui-table .ant-table-body .ant-table-tbody>tr>td.ant-table-cell.ant-table-cell-ellipsis{white-space:normal}.pui-table .ant-table-body::-webkit-scrollbar{height:8px;width:4px}.pui-table .ant-table-body::-webkit-scrollbar-thumb{background-color:#0084ff}.pui-table .ant-table-body::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:2px}.pui-table .ant-table-body::-webkit-scrollbar-corner{background-color:#f1f1f1}.pui-table .ant-spin-nested-loading>div>.ant-spin{max-height:none}.pui-table .ant-pagination-total-text span{color:#40a9ff;font-weight:700}.pui-table.height-on-page .ant-table{height:calc(100% - 56px)}
|