@teamias/rex-design 0.1.18 → 0.1.20

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.
@@ -49,6 +49,8 @@ export var handlerFilter = function handlerFilter(data, filter) {
49
49
  }));
50
50
  return intersection.size > 0;
51
51
  }
52
+ case 'notInt':
53
+ return !judgeValue('int', targetValue, dynamicValue);
52
54
  case 'empty':
53
55
  if (typeof dynamicValue === 'undefined' || dynamicValue === null) return true;
54
56
  if (Array.isArray(dynamicValue)) return dynamicValue.length === 0;
@@ -92,7 +92,8 @@ export interface TButtonFilterItem {
92
92
  * - empty 空
93
93
  * - notEmpty 非空
94
94
  * - int 交集
95
+ * - notInt 没有交集
95
96
  * - diff 差集
96
97
  */
97
- op: 'eq' | 'ne' | 'gt' | 'lt' | 'in' | 'notIn' | 'empty' | 'notEmpty' | 'int';
98
+ op: 'eq' | 'ne' | 'gt' | 'lt' | 'in' | 'notIn' | 'notInt' | 'empty' | 'notEmpty' | 'int';
98
99
  }
@@ -201,7 +201,7 @@ export var BaseTable = function BaseTable(_ref) {
201
201
  inlineColumns: each(fields),
202
202
  columnCount: inlineColumnCount
203
203
  };
204
- }, [fields, topHeaderStyle]),
204
+ }, [fields, topHeaderStyle, fieldPropsFn, outFieldProps]),
205
205
  inlineColumns = _useMemo.inlineColumns,
206
206
  columnCount = _useMemo.columnCount;
207
207
  var beforeInlineColumn = [indexColumn && _objectSpread(_objectSpread({
@@ -162,7 +162,7 @@ export default (function () {
162
162
  defaultValue: item.data.priority,
163
163
  size: "small",
164
164
  onBlur: function onBlur(e) {
165
- item.data.priority = e.target.value;
165
+ item.data.priority = e.target.value || undefined;
166
166
  actions.editItem(item);
167
167
  }
168
168
  })
@@ -54,12 +54,13 @@ var Drawer11111 = function Drawer11111(_ref2) {
54
54
  var _useStateData2 = useStateData(function () {
55
55
  return {
56
56
  open: true,
57
+ testOpen: false,
57
58
  state: 1
58
59
  };
59
60
  }),
60
61
  state = _useStateData2.state,
61
62
  setState = _useStateData2.setState;
62
- return /*#__PURE__*/_jsx(RexDrawer, {
63
+ return /*#__PURE__*/_jsxs(RexDrawer, {
63
64
  open: state.open,
64
65
  title: title,
65
66
  onClose: function onClose() {
@@ -67,12 +68,31 @@ var Drawer11111 = function Drawer11111(_ref2) {
67
68
  setState('open', false);
68
69
  },
69
70
  width: 600,
70
- children: /*#__PURE__*/_jsxs("div", {
71
+ children: [/*#__PURE__*/_jsxs("div", {
71
72
  onClick: function onClick() {
72
73
  return setState('state', ++state.state);
73
74
  },
74
75
  children: ["123-", state.state]
75
- })
76
+ }), /*#__PURE__*/_jsx(Button, {
77
+ onClick: function onClick() {
78
+ showSimpleModal(Drawer11111, {
79
+ title: '下一层窗口'
80
+ });
81
+ },
82
+ children: "\u4E0B\u4E00\u5C42\u7A97\u53E3"
83
+ }), /*#__PURE__*/_jsx(Button, {
84
+ onClick: function onClick() {
85
+ showSimpleModal(Modal1111, {
86
+ title: '下一层弹窗'
87
+ });
88
+ },
89
+ children: "\u4E0B\u4E00\u5C42\u5F39\u7A97"
90
+ }), /*#__PURE__*/_jsx(Button, {
91
+ onClick: function onClick() {
92
+ setState('testOpen', true);
93
+ },
94
+ children: "testOpen"
95
+ })]
76
96
  });
77
97
  };
78
98
  export default function Demo() {
@@ -141,6 +161,21 @@ export default function Demo() {
141
161
  }, _callee3);
142
162
  })),
143
163
  children: "\u540C\u6B65\u8C03\u7528"
164
+ }), /*#__PURE__*/_jsx(Button, {
165
+ onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
166
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
167
+ while (1) switch (_context4.prev = _context4.next) {
168
+ case 0:
169
+ showSimpleModal(Drawer11111, {
170
+ title: '多层窗口'
171
+ });
172
+ case 1:
173
+ case "end":
174
+ return _context4.stop();
175
+ }
176
+ }, _callee4);
177
+ })),
178
+ children: "\u591A\u5C42\u7A97\u53E3"
144
179
  })]
145
180
  })]
146
181
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-design",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",