@arim-aisdc/public-components 2.3.68 → 2.3.69

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.
@@ -20,6 +20,7 @@ import MultipleSelect from "./MultipleSelect";
20
20
  import NumberRange from "./NumberRange";
21
21
  import SingleSelect from "./SingleSelect";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
23
24
  var Filter = function Filter(_ref) {
24
25
  var getDynamicFilterOptionsFn = _ref.getDynamicFilterOptionsFn,
25
26
  column = _ref.column,
@@ -295,9 +296,9 @@ var Filter = function Filter(_ref) {
295
296
  })
296
297
  });
297
298
  case FilterType.AutoComplete:
298
- return /*#__PURE__*/_jsx("div", {
299
+ return /*#__PURE__*/_jsxs("div", {
299
300
  className: "single-com-wrapper",
300
- children: /*#__PURE__*/_jsx(AutoComplete, {
301
+ children: [/*#__PURE__*/_jsx(AutoComplete, {
301
302
  options: options,
302
303
  placeholder: "",
303
304
  filterOption: !!getFilterOptionsFn ? false : function (inputValue, option) {
@@ -314,12 +315,28 @@ var Filter = function Filter(_ref) {
314
315
  },
315
316
  allowClear: true,
316
317
  value: columnFilterValue
317
- })
318
+ }), /*#__PURE__*/_jsxs("div", {
319
+ className: "quickly-input",
320
+ children: [/*#__PURE__*/_jsx("p", {
321
+ className: "quickly-input-title",
322
+ children: "\u5FEB\u6377\u8F93\u5165"
323
+ }), /*#__PURE__*/_jsx("p", {
324
+ onClick: function onClick() {
325
+ handleChangeFilterValueWithDebounce('NULL');
326
+ },
327
+ children: "\u7A7A\u503C(NULL)"
328
+ }), /*#__PURE__*/_jsx("p", {
329
+ onClick: function onClick() {
330
+ handleChangeFilterValueWithDebounce('NOT NULL');
331
+ },
332
+ children: "\u975E\u7A7A\u503C(NOT NULL)"
333
+ })]
334
+ })]
318
335
  });
319
336
  case FilterType.Input:
320
- return /*#__PURE__*/_jsx("div", {
337
+ return /*#__PURE__*/_jsxs("div", {
321
338
  className: "single-com-wrapper",
322
- children: /*#__PURE__*/_jsx(Input, {
339
+ children: [/*#__PURE__*/_jsx(Input, {
323
340
  onChange: function onChange(e) {
324
341
  return handleChangeFilterValueWithDebounce(e.target.value);
325
342
  },
@@ -329,7 +346,23 @@ var Filter = function Filter(_ref) {
329
346
  allowClear: true,
330
347
  value: columnFilterValue,
331
348
  placeholder: t('global.placeholder.input')
332
- })
349
+ }), /*#__PURE__*/_jsxs("div", {
350
+ className: "quickly-input",
351
+ children: [/*#__PURE__*/_jsx("p", {
352
+ className: "quickly-input-title",
353
+ children: "\u5FEB\u6377\u8F93\u5165"
354
+ }), /*#__PURE__*/_jsx("p", {
355
+ onClick: function onClick() {
356
+ handleChangeFilterValueWithDebounce('NULL');
357
+ },
358
+ children: "\u7A7A\u503C(NULL)"
359
+ }), /*#__PURE__*/_jsx("p", {
360
+ onClick: function onClick() {
361
+ handleChangeFilterValueWithDebounce('NOT NULL');
362
+ },
363
+ children: "\u975E\u7A7A\u503C(NOT NULL)"
364
+ })]
365
+ })]
333
366
  });
334
367
  case FilterType.SingleSelect:
335
368
  return /*#__PURE__*/_jsx(SingleSelect, {
@@ -158,7 +158,7 @@ var MultipleSelect = function MultipleSelect(_ref) {
158
158
  setInnerValue([]);
159
159
  }
160
160
  },
161
- children: "NULL"
161
+ children: "\u7A7A\u503C(NULL)"
162
162
  }), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx(Checkbox, {
163
163
  indeterminate: indeterminate,
164
164
  onChange: onCheckAllChange,
@@ -107,11 +107,11 @@ var SingleSelect = function SingleSelect(_ref) {
107
107
  // 最终的可选值
108
108
  var finalOptions = useMemo(function () {
109
109
  var nullValueOptions = [{
110
- label: 'NULL',
110
+ label: '空值(NULL)',
111
111
  value: 'NULL',
112
112
  children: []
113
113
  }, {
114
- label: 'NOT NULL',
114
+ label: '非空值(NOT NULL)',
115
115
  value: 'NOT NULL',
116
116
  children: []
117
117
  }].concat(options);
@@ -37,3 +37,10 @@
37
37
  line-height: 32px;
38
38
  height: 32px;
39
39
  }
40
+
41
+ .quickly-input {
42
+ font-size: 12px;
43
+ .quickly-input-title {
44
+ color: @global-desc-text-disabled-color;
45
+ }
46
+ }
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
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;
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;
6
6
  declare const customSortFns: {
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;
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;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.3.68",
3
+ "version": "2.3.69",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",