@arim-aisdc/public-components 0.0.73 → 0.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.
@@ -17,7 +17,7 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
17
17
  value: any;
18
18
  field: string;
19
19
  label?: string;
20
- text: string | Element | JSX.Element;
20
+ text: string | JSX.Element | Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './ColorSelector.less';
3
+ export interface ColorSelectorProps {
4
+ /**
5
+ * 默认颜色值
6
+ */
7
+ defaultValue?: string;
8
+ /**
9
+ * 颜色值
10
+ */
11
+ value?: string;
12
+ /**
13
+ * 修改时的回调函数
14
+ * @param color 修改后的颜色
15
+ * @returns
16
+ */
17
+ onChange?: (color: string) => void;
18
+ }
19
+ declare const ColorSelector: React.FC<ColorSelectorProps>;
20
+ export default ColorSelector;
@@ -0,0 +1,54 @@
1
+ import "antd/es/popover/style";
2
+ import _Popover from "antd/es/popover";
3
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
+ 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."); }
5
+ 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); }
6
+ 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; }
7
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
+ import React, { useCallback, useEffect, useState } from 'react';
10
+ import { SketchPicker } from 'react-color';
11
+ import "./ColorSelector.less";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ var ColorSelector = function ColorSelector(props) {
14
+ var value = props.value,
15
+ defaultValue = props.defaultValue,
16
+ onChange = props.onChange;
17
+ var _useState = useState(value || defaultValue || '#ffffff'),
18
+ _useState2 = _slicedToArray(_useState, 2),
19
+ color = _useState2[0],
20
+ setColor = _useState2[1];
21
+ useEffect(function () {
22
+ if (value && color !== value) {
23
+ setColor(value);
24
+ }
25
+ }, [value]);
26
+ var handleChange = useCallback(function (color) {
27
+ // console.log('color :>> ', color);
28
+ var hex = color.hex || '';
29
+ var hexUpperCase = hex.toLocaleUpperCase();
30
+ setColor(hexUpperCase);
31
+ onChange === null || onChange === void 0 || onChange(hexUpperCase);
32
+ }, []);
33
+ return /*#__PURE__*/_jsx(_Popover, {
34
+ content: /*#__PURE__*/_jsx(SketchPicker, {
35
+ color: color,
36
+ disableAlpha: true,
37
+ onChangeComplete: handleChange,
38
+ width: 220,
39
+ presetColors: []
40
+ }),
41
+ title: null,
42
+ overlayClassName: "colorSelectorPopover",
43
+ children: /*#__PURE__*/_jsx("div", {
44
+ className: 'colorSelectorContent',
45
+ children: /*#__PURE__*/_jsx("div", {
46
+ className: 'colorBox',
47
+ style: {
48
+ backgroundColor: color
49
+ }
50
+ })
51
+ })
52
+ });
53
+ };
54
+ export default ColorSelector;
@@ -0,0 +1,33 @@
1
+ .colorSelectorContent {
2
+ width: 100%;
3
+ height: 32px;
4
+ padding: 4px;
5
+ background: @global-curd-input-background-color;
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ cursor: pointer;
10
+
11
+ .colorBox {
12
+ width: 100%;
13
+ height: 100%;
14
+ }
15
+ }
16
+
17
+ .colorSelectorPopover {
18
+ .sketch-picker {
19
+ background: transparent !important;
20
+
21
+ input {
22
+ background-color: @global-curd-input-background-color;
23
+ border: 1px solid @tableColor2 !important;
24
+ box-shadow: none;
25
+ border-radius: 2px;
26
+ color: @tableColor1 !important;
27
+ }
28
+
29
+ label {
30
+ color: @tableColor1 !important;
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,3 @@
1
+ import ColorSelector from './ColorSelector';
2
+ export type { ColorSelectorProps } from './ColorSelector';
3
+ export default ColorSelector;
@@ -0,0 +1,2 @@
1
+ import ColorSelector from "./ColorSelector";
2
+ export default ColorSelector;
@@ -45,6 +45,7 @@ import TextArea from 'antd/lib/input/TextArea';
45
45
  import { debounce } from 'lodash';
46
46
  import moment from 'moment';
47
47
  import React, { useEffect, useMemo, useRef, useState } from 'react';
48
+ import ColorSelector from "../ColorSelector";
48
49
  import "./index.less";
49
50
  import { CustomFormItemType } from "./type";
50
51
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -122,7 +123,10 @@ var CustomForm = function CustomForm(_ref) {
122
123
  _ref$submitLoading = _ref.submitLoading,
123
124
  submitLoading = _ref$submitLoading === void 0 ? false : _ref$submitLoading,
124
125
  _ref$buttonRender = _ref.buttonRender,
125
- buttonRender = _ref$buttonRender === void 0 ? null : _ref$buttonRender;
126
+ buttonRender = _ref$buttonRender === void 0 ? null : _ref$buttonRender,
127
+ _ref$labelAlign = _ref.labelAlign,
128
+ labelAlign = _ref$labelAlign === void 0 ? 'left' : _ref$labelAlign,
129
+ btnSpan = _ref.btnSpan;
126
130
  var _Form$useForm = _Form.useForm(),
127
131
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
128
132
  form = _Form$useForm2[0];
@@ -599,6 +603,8 @@ var CustomForm = function CustomForm(_ref) {
599
603
  defaultValue: item.defaultValue
600
604
  });
601
605
  break;
606
+ case CustomFormItemType.Color:
607
+ element = /*#__PURE__*/_jsx(ColorSelector, {});
602
608
  }
603
609
  return element;
604
610
  };
@@ -613,7 +619,7 @@ var CustomForm = function CustomForm(_ref) {
613
619
  span: labelCol
614
620
  },
615
621
  initialValues: initialValues,
616
- labelAlign: "left",
622
+ labelAlign: labelAlign,
617
623
  autoComplete: "off",
618
624
  onFinish: onFinish,
619
625
  children: /*#__PURE__*/_jsxs(_Row, {
@@ -626,6 +632,7 @@ var CustomForm = function CustomForm(_ref) {
626
632
  // justify="space-between"
627
633
  ,
628
634
  children: [data.map(function (item, index) {
635
+ var _item$required;
629
636
  var _elementData = getElement(item);
630
637
  return /*#__PURE__*/_jsx(_Col, {
631
638
  span: (item === null || item === void 0 ? void 0 : item.span) || spanSize.span,
@@ -635,20 +642,17 @@ var CustomForm = function CustomForm(_ref) {
635
642
  colon: false,
636
643
  initialValue: item.defaultValue,
637
644
  rules: [{
638
- required: item.is_null === 1 ? true : false,
639
- message: "".concat(item.inputTips)
645
+ required: ((_item$required = item.required) !== null && _item$required !== void 0 ? _item$required : item.is_null === 1) ? true : false,
646
+ message: "".concat(item.inputTips || '此项不可为空')
640
647
  }],
641
648
  labelCol: {
642
649
  span: (item === null || item === void 0 ? void 0 : item.labelCol) || labelCol
643
- }
644
- // required={item.is_null == 1}
645
- // labelCol={{ span: "auto" }}
646
- ,
650
+ },
647
651
  children: _elementData
648
652
  }, "".concat(index, "Row"))
649
653
  }, "".concat(index, "-Col"));
650
654
  }), /*#__PURE__*/_jsx(_Col, {
651
- span: spanSize.span,
655
+ span: btnSpan !== null && btnSpan !== void 0 ? btnSpan : spanSize.span,
652
656
  offset: offset,
653
657
  children: /*#__PURE__*/_jsx(_Form.Item, {
654
658
  children: showButton ? /*#__PURE__*/_jsxs("div", {
@@ -1,4 +1,5 @@
1
1
  import { FormProps } from 'antd';
2
+ import { FormLabelAlign } from 'antd/es/form/interface';
2
3
  import { MouseEventHandler, ReactNode } from 'react';
3
4
  export interface fieldType {
4
5
  field: string;
@@ -34,7 +35,8 @@ export declare enum CustomFormItemType {
34
35
  StartEnd = "start-end",
35
36
  AutoComplete = "autoComplete",
36
37
  MinMax = "min-max",
37
- CheckBox = "checkbox"
38
+ CheckBox = "checkbox",
39
+ Color = "color"
38
40
  }
39
41
  export type SpanConfig = number | {
40
42
  xs: number;
@@ -83,6 +85,7 @@ export type CustomSearchFieldType = {
83
85
  maxTagCount?: number | 'responsive';
84
86
  span?: number;
85
87
  is_null?: number;
88
+ required?: boolean;
86
89
  labelCol?: number;
87
90
  };
88
91
  export interface CustomFormProps {
@@ -115,4 +118,9 @@ export interface CustomFormProps {
115
118
  usage?: string;
116
119
  submitLoading?: boolean;
117
120
  buttonRender?: any;
121
+ /** label位置
122
+ * @default 'left'
123
+ */
124
+ labelAlign?: FormLabelAlign;
125
+ btnSpan?: number;
118
126
  }
@@ -13,6 +13,7 @@ export var CustomFormItemType = /*#__PURE__*/function (CustomFormItemType) {
13
13
  CustomFormItemType["AutoComplete"] = "autoComplete";
14
14
  CustomFormItemType["MinMax"] = "min-max";
15
15
  CustomFormItemType["CheckBox"] = "checkbox";
16
+ CustomFormItemType["Color"] = "color";
16
17
  return CustomFormItemType;
17
18
  }({});
18
19
  export var PickerType = /*#__PURE__*/function (PickerType) {
@@ -12,7 +12,7 @@ export interface ModalTipTypes extends ModalTipType {
12
12
  }
13
13
  export type ModalDeleteType = {
14
14
  handlerConfirm: () => void;
15
- handlerCancel: () => void;
15
+ handlerCancel?: () => void;
16
16
  title?: string;
17
17
  icon?: string;
18
18
  content?: string;
@@ -172,7 +172,9 @@ var TableMax = function TableMax(_ref) {
172
172
  getRowHoverTipConfig = _ref.getRowHoverTipConfig,
173
173
  defaultHighLightRowId = _ref.defaultHighLightRowId,
174
174
  _ref$tooltip = _ref.tooltip,
175
- tableTooltip = _ref$tooltip === void 0 ? true : _ref$tooltip;
175
+ tableTooltip = _ref$tooltip === void 0 ? true : _ref$tooltip,
176
+ _ref$showLessItems = _ref.showLessItems,
177
+ showLessItems = _ref$showLessItems === void 0 ? false : _ref$showLessItems;
176
178
  var columns = useMemo(function () {
177
179
  // 给columns配置默认的过滤函数、排序函数
178
180
  return operationColumnNoTooltips(setDefaultSortFn(setDefaultFilterFn(cloneDeep(originColumns))));
@@ -209,6 +211,9 @@ var TableMax = function TableMax(_ref) {
209
211
  _useState4 = _slicedToArray(_useState3, 2),
210
212
  tableColumns = _useState4[0],
211
213
  setTableColumns = _useState4[1];
214
+ // useEffect(() => {
215
+ // console.log('tableColumns :>> ', tableColumns);
216
+ // }, [tableColumns]);
212
217
  // const [initTableSizeColumns, setInitTableSizeColumns] = useState([...columns]);
213
218
  /**列显隐 */
214
219
  var _useState5 = useState(),
@@ -299,6 +304,7 @@ var TableMax = function TableMax(_ref) {
299
304
  var _Form$useForm = _Form.useForm(),
300
305
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
301
306
  form = _Form$useForm2[0];
307
+
302
308
  /**正在编辑的行id*/
303
309
  var _useState33 = useState(''),
304
310
  _useState34 = _slicedToArray(_useState33, 2),
@@ -326,6 +332,7 @@ var TableMax = function TableMax(_ref) {
326
332
  columns: tableColumns,
327
333
  // 自定义的过滤函数
328
334
  filterFns: customFilterFns,
335
+ // 自定义的排序函数
329
336
  sortingFns: customSortFns,
330
337
  // 自定义Row.id
331
338
  getRowId: function getRowId(originalRow, index) {
@@ -408,7 +415,7 @@ var TableMax = function TableMax(_ref) {
408
415
  table.toggleAllRowsExpanded(false);
409
416
  }, [datas]);
410
417
 
411
- // 单选多选-控制选中行
418
+ // 设置默认选中行
412
419
  useEffect(function () {
413
420
  if (canSelection) {
414
421
  setRowSelection(defaultSelectedRowIds.reduce(function (accumulator, currentValue) {
@@ -601,7 +608,7 @@ var TableMax = function TableMax(_ref) {
601
608
  setColumnSizing(columnsWidthMap);
602
609
  }, [columnSizeInfo]);
603
610
 
604
- // // 添加空白列
611
+ // 添加 or 删除 空白列
605
612
  useEffect(function () {
606
613
  if ((tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.length) <= 0 || !tableContainerWidth) return;
607
614
  var placeholderColumn = table.getAllColumns().some(function (item) {
@@ -1155,7 +1162,7 @@ var TableMax = function TableMax(_ref) {
1155
1162
  children: tableMaxNewPagination ? /*#__PURE__*/_jsx(PaginationV2, {
1156
1163
  total: totalCount,
1157
1164
  pageSize: pageSize,
1158
- defaultPageSize: pageSize,
1165
+ showLessItems: showLessItems,
1159
1166
  showSizeChanger: showSizeChanger,
1160
1167
  curPageDataNum: tableDatas.length,
1161
1168
  current: (skipCount || skipCount === 0) && pageSize ? skipCount / pageSize + 1 : 0,
@@ -9,7 +9,7 @@
9
9
  border-radius: 4px;
10
10
  width: 240px;
11
11
  box-shadow: 0 4px 10px 0 rgba(1, 3, 5, 9%);
12
- background: @globalColor7;
12
+ background: @tableSettingModalBgc;
13
13
 
14
14
  .column-filtering {
15
15
  display: flex;
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
2
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
4
- export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
2
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
3
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
4
+ export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
5
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
6
6
  declare const customSortFns: {
7
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
8
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
9
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
10
- numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
7
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
8
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
9
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
10
+ numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
@@ -1,8 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  import "antd/es/pagination/style";
3
3
  import _Pagination from "antd/es/pagination";
4
- import "antd/es/button/style";
5
- import _Button from "antd/es/button";
6
4
  import "antd/es/select/style";
7
5
  import _Select from "antd/es/select";
8
6
  var _excluded = ["showSizeChanger", "curPageDataNum"];
@@ -35,11 +33,11 @@ var PaginationV2 = function PaginationV2(props) {
35
33
  className: "table-max-pagination-wrapper",
36
34
  children: [/*#__PURE__*/_jsx("div", {
37
35
  className: "total-info",
38
- children: "\u5F53\u524D\u663E\u793A".concat(curPageDataNum, "\u6761/\u5171").concat(rest.total, "\u6761")
36
+ children: "".concat(curPageDataNum, "\u6761/\u5171").concat(rest.total, "\u6761")
39
37
  }), showSizeChanger && /*#__PURE__*/_jsxs("div", {
40
38
  className: "size-changer-wrapper",
41
39
  children: [/*#__PURE__*/_jsx("span", {
42
- children: "\u6BCF\u9875\u663E\u793A"
40
+ children: "\u6BCF\u9875"
43
41
  }), /*#__PURE__*/_jsx(_Select, {
44
42
  className: "size-changer",
45
43
  options: pageSizeOptions,
@@ -47,41 +45,12 @@ var PaginationV2 = function PaginationV2(props) {
47
45
  onChange: handleChangePageSize,
48
46
  value: rest.pageSize
49
47
  }), /*#__PURE__*/_jsx("span", {
50
- children: "\u884C"
48
+ children: "\u6761"
51
49
  })]
52
50
  }), /*#__PURE__*/_jsx(_Pagination, _objectSpread(_objectSpread({
53
51
  className: "table-max-pagination"
54
52
  }, rest), {}, {
55
- showSizeChanger: false,
56
- itemRender: function itemRender(page, type, originalElement) {
57
- if (type === 'prev') {
58
- return /*#__PURE__*/_jsxs(_Button, {
59
- style: {
60
- display: 'flex',
61
- alignItems: 'center'
62
- },
63
- children: [/*#__PURE__*/_jsx("span", {
64
- className: "iconfont-other icon-other-back prev-btn-icon"
65
- }), /*#__PURE__*/_jsx("span", {
66
- children: "\u4E0A\u4E00\u9875"
67
- })]
68
- });
69
- }
70
- if (type === 'next') {
71
- return /*#__PURE__*/_jsxs(_Button, {
72
- style: {
73
- display: 'flex',
74
- alignItems: 'center'
75
- },
76
- children: [/*#__PURE__*/_jsx("span", {
77
- children: "\u4E0B\u4E00\u9875"
78
- }), /*#__PURE__*/_jsx("span", {
79
- className: "iconfont-other icon-other-back next-btn-icon"
80
- })]
81
- });
82
- }
83
- return originalElement;
84
- }
53
+ showSizeChanger: false
85
54
  }))]
86
55
  });
87
56
  };
@@ -5,10 +5,13 @@
5
5
 
6
6
  .total-info {
7
7
  flex: 1;
8
+ white-space: nowrap;
9
+ margin-right: 12px;
8
10
  }
9
11
 
10
12
  .size-changer-wrapper {
11
13
  margin-right: 16px;
14
+ white-space: nowrap;
12
15
 
13
16
  .size-changer {
14
17
  display: inline-block;
@@ -23,14 +26,14 @@
23
26
  align-items: center;
24
27
 
25
28
  .prev-btn-icon {
26
- margin-right: 4px;
27
29
  transform: rotate(180deg);
28
30
  font-size: 12px;
31
+ margin-right: 4px;
29
32
  }
30
33
 
31
34
  .next-btn-icon {
32
- margin-left: 4px;
33
35
  font-size: 12px;
36
+ margin-left: 4px;
34
37
  }
35
38
 
36
39
  .custom-dark-pagination-item,
@@ -49,6 +52,10 @@
49
52
  }
50
53
  }
51
54
 
55
+ li:not(:last-child) {
56
+ margin-right: 4px;
57
+ }
58
+
52
59
  .custom-dark-pagination-prev,
53
60
  .custom-dark-pagination-next,
54
61
  .custom-light-pagination-prev,
@@ -57,6 +64,7 @@
57
64
  .ant-pagination-next {
58
65
  button {
59
66
  border-color: @global-desc-text-disabled-color;
67
+ background-color: transparent;
60
68
  }
61
69
 
62
70
  button[disabled],
@@ -72,6 +80,7 @@
72
80
  button:not([disabled]) {
73
81
  border-color: @tableColor8;
74
82
  background-color: @tableColor8;
83
+ color: @globalColor1;
75
84
  }
76
85
  }
77
86
  }
@@ -15,7 +15,6 @@
15
15
  justify-content: space-between;
16
16
  align-items: center;
17
17
  margin-bottom: 12px;
18
- // background: @globalColor7;
19
18
 
20
19
  .tableTitle {
21
20
  font-size: 16px;
@@ -221,6 +221,8 @@ export type TableMaxProps = {
221
221
  };
222
222
  /**所有的单元格是否展示tooltip,优先级小于列配置中的tooltip.默认值:true */
223
223
  tooltip?: boolean;
224
+ /** 翻页组件配置:是否显示更少的页码,table宽度较小翻页组件显示不下时可配置 */
225
+ showLessItems?: boolean;
224
226
  };
225
227
  export type TableContextType = {
226
228
  table: any;
package/dist/index.d.ts CHANGED
@@ -27,6 +27,8 @@ export { default as TableMax } from './components/TableMax';
27
27
  export * from './components/ConfigProvider';
28
28
  export * from './components/Filter';
29
29
  export { default as SchemaForm } from './components/SchemaForm';
30
+ export * from './components/ColorSelector';
31
+ export { default as ColorSelector } from './components/ColorSelector';
30
32
  export * from './hooks/useEventBus';
31
33
  export { default as useEventBus } from './hooks/useEventBus';
32
34
  export { default as usePageCacheState } from './hooks/usePageCacheState';
package/dist/index.js CHANGED
@@ -28,6 +28,8 @@ export { default as TableMax } from "./components/TableMax";
28
28
  export * from "./components/ConfigProvider";
29
29
  export * from "./components/Filter";
30
30
  export { default as SchemaForm } from "./components/SchemaForm";
31
+ export * from "./components/ColorSelector";
32
+ export { default as ColorSelector } from "./components/ColorSelector";
31
33
 
32
34
  // hooks
33
35
  export * from "./hooks/useEventBus";
@@ -43,3 +43,4 @@
43
43
  @tableColor7: var(--tableColor7, #1a1d2eff); // 表格列设置区-【显示筛选】下边框颜色
44
44
  @tableColor8: var(--tableColor8, #f5f6f7); // 表格列设置区-列表元素hover背景色
45
45
  @tableTooltipBgc: var(--tableTooltipBgc, #f5f6f7); // 表格tooltip背景色
46
+ @tableSettingModalBgc: var(--tableSettingModalBgc, #ffffff); // 表格的body的背景底色
@@ -59,7 +59,9 @@ export var PublicThemeVariablesConfig = {
59
59
  // 表格列设置区列表元素-hover背景色
60
60
  '--tableTooltipBgc': '#000000bf',
61
61
  // 表格tooltip背景色
62
- '--global-desc-text-disabled-color': '#d3e7fa3f' // 全局默认 禁用/选中 字体颜色
62
+ '--global-desc-text-disabled-color': '#d3e7fa3f',
63
+ // 全局默认 禁用/选中 字体颜色
64
+ '--tableSettingModalBgc': '#FFFFFF' // 表格的body的背景底色
63
65
  },
64
66
  dark: {
65
67
  '--global-curd-input-background-color': '#494c5dff',
@@ -122,6 +124,8 @@ export var PublicThemeVariablesConfig = {
122
124
  // 表格列设置区列表元素-hover背景色
123
125
  '--tableTooltipBgc': '#5e6175',
124
126
  // 表格tooltip背景色
125
- '--global-desc-text-disabled-color': '#d3e7fa3f' // 全局默认 禁用/选中 字体颜色
127
+ '--global-desc-text-disabled-color': '#d3e7fa3f',
128
+ // 全局默认 禁用/选中 字体颜色
129
+ '--tableSettingModalBgc': '#05081A' // 表格的body的背景底色
126
130
  }
127
131
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",