@teamias/rex-design 0.0.1 → 0.0.2

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.
Files changed (78) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +3 -3
  3. package/dist/components/action-buttons/action-buttons.d.ts +1 -1
  4. package/dist/components/action-buttons/action-buttons.js +86 -76
  5. package/dist/components/action-buttons/demo/index.js +61 -58
  6. package/dist/components/base-form/base-form.js +218 -215
  7. package/dist/components/base-form/demo/index.js +147 -135
  8. package/dist/components/base-form/modules/renderComponentNode.d.ts +2 -2
  9. package/dist/components/base-form/modules/renderComponentNode.js +135 -130
  10. package/dist/components/base-form/types.d.ts +1 -1
  11. package/dist/components/base-form/types.js +0 -9
  12. package/dist/components/base-list-table/base-list-table.d.ts +2 -2
  13. package/dist/components/base-list-table/base-list-table.js +156 -135
  14. package/dist/components/base-list-table/demo/BasicBaseListTable.js +22 -13
  15. package/dist/components/base-list-table/demo/NoData.js +2 -1
  16. package/dist/components/base-list-table/demo/TableMaxRowCount.js +1669 -1663
  17. package/dist/components/base-list-table/demo/VirtualDemo.js +22 -13
  18. package/dist/components/base-table/base-table.d.ts +2 -2
  19. package/dist/components/base-table/base-table.js +60 -55
  20. package/dist/components/base-table/components/BaseTableRow.js +79 -66
  21. package/dist/components/base-table/demo/BaseTableAll.js +6 -2
  22. package/dist/components/base-table/demo/BaseTableBasic.js +5 -2
  23. package/dist/components/base-table/demo/BaseTableIndex.js +48 -50
  24. package/dist/components/base-table/demo/BaseTableRowSelect.js +2 -1
  25. package/dist/components/data-cell/data-cell.js +5 -4
  26. package/dist/components/data-cell/demo/index.js +327 -309
  27. package/dist/components/data-cell/modules/cellItemMap.d.ts +2 -2
  28. package/dist/components/data-cell/modules/cellItemMap.js +184 -157
  29. package/dist/components/data-cell/types.d.ts +9 -9
  30. package/dist/components/icons/demo/index.js +44 -40
  31. package/dist/components/icons/icons.d.ts +1 -1
  32. package/dist/components/icons/icons.js +36 -26
  33. package/dist/components/index.d.ts +7 -0
  34. package/dist/components/index.js +7 -0
  35. package/dist/components/media-viewer/demo/index.js +24 -20
  36. package/dist/components/media-viewer/media-viewer.d.ts +1 -1
  37. package/dist/components/media-viewer/media-viewer.js +13 -12
  38. package/dist/context/index.d.ts +2 -0
  39. package/dist/context/index.js +2 -0
  40. package/dist/{hooks → context}/request-fields-container/demo/index.js +10 -5
  41. package/dist/{hooks → context}/request-fields-container/index.js +2 -2
  42. package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.js +17 -12
  43. package/dist/context/request-fields-container/request-fields-container-hoc.d.ts +4 -0
  44. package/dist/{hooks → context}/request-fields-container/request-fields-container-hoc.js +0 -1
  45. package/dist/{hooks → context}/request-fields-container/use-request-fields-container.js +2 -2
  46. package/dist/{hooks → context}/rex-pro-config-provider/demo/index.js +9 -5
  47. package/dist/{hooks → context}/rex-pro-config-provider/index.js +2 -2
  48. package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.js +0 -1
  49. package/dist/context/rex-pro-config-provider/rex-pro-config-provider.d.ts +5 -0
  50. package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-provider.js +8 -6
  51. package/dist/hooks/index.d.ts +1 -0
  52. package/dist/hooks/index.js +1 -0
  53. package/dist/hooks/use-state-data/use-state-data.js +4 -4
  54. package/dist/index.d.ts +3 -10
  55. package/dist/index.js +3 -10
  56. package/dist/{components/base-form/locales → locales}/en-US.json +30 -21
  57. package/dist/{components/base-form/locales → locales}/zh-CN.json +30 -21
  58. package/dist/types/svg.d.ts +3 -3
  59. package/package.json +38 -33
  60. package/dist/components/base-form/locales.index.d.ts +0 -42
  61. package/dist/components/base-form/locales.index.js +0 -4
  62. package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +0 -4
  63. package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +0 -6
  64. package/dist/utils/locales/en-US.json +0 -13
  65. package/dist/utils/locales/index.d.ts +0 -26
  66. package/dist/utils/locales/index.js +0 -4
  67. package/dist/utils/locales/zh-CN.json +0 -13
  68. package/dist/{hooks → context}/request-fields-container/demo/index.d.ts +0 -0
  69. package/dist/{hooks → context}/request-fields-container/index.d.ts +2 -2
  70. package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.d.ts +0 -0
  71. package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts +0 -0
  72. package/dist/{hooks → context}/request-fields-container/request-fields-container-context.js +0 -0
  73. package/dist/{hooks → context}/request-fields-container/use-request-fields-container.d.ts +0 -0
  74. package/dist/{hooks → context}/rex-pro-config-provider/demo/index.d.ts +0 -0
  75. package/dist/{hooks → context}/rex-pro-config-provider/index.d.ts +1 -1
  76. /package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.d.ts +0 -0
  77. /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +0 -0
  78. /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.js +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) cloudovo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) cloudovo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # @ias/rex-design
1
+ # @teamias/rex-design
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/@ias/rex-design.svg?style=flat)](https://npmjs.org/package/@ias/rex-design)
4
- [![NPM downloads](http://img.shields.io/npm/dm/@ias/rex-design.svg?style=flat)](https://npmjs.org/package/@ias/rex-design)
3
+ [![NPM version](https://img.shields.io/npm/v/@teamias/rex-design.svg?style=flat)](https://npmjs.org/package/@teamias/rex-design)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/@teamias/rex-design.svg?style=flat)](https://npmjs.org/package/@teamias/rex-design)
5
5
 
6
6
  A react library developed with dumi
7
7
 
@@ -1,2 +1,2 @@
1
- import { IActionButtonsProps } from "./types";
1
+ import { IActionButtonsProps } from './types';
2
2
  export declare const ActionButtons: ({ requestFields, requestFieldsUrl, requestFieldsParams, fieldsConfig, items, dropdownProps, size, record, onHasButtons, onClick, labelRender, }: IActionButtonsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +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
  var _excluded = ["leftIcon", "rightIcon"],
3
3
  _excluded2 = ["leftIcon", "rightIcon"];
4
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -19,10 +18,13 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
19
18
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
20
19
  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; }
21
20
  import { useRequestFields, useRexProConfigProvider } from "../..";
22
- import { Button, Dropdown, Skeleton, Space } from "antd";
23
- import { useMemo } from "react";
21
+ import { Button, Dropdown, Skeleton, Space } from 'antd';
22
+ import { useMemo } from 'react';
24
23
  import { handlerFilter } from "./modules/handlerFilter";
25
- import React from "react";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx } from "react/jsx-runtime";
26
+ import { createElement as _createElement } from "react";
27
+ import { Fragment as _Fragment } from "react/jsx-runtime";
26
28
  export var ActionButtons = function ActionButtons(_ref) {
27
29
  var requestFields = _ref.requestFields,
28
30
  requestFieldsUrl = _ref.requestFieldsUrl,
@@ -65,9 +67,10 @@ export var ActionButtons = function ActionButtons(_ref) {
65
67
  /** 渲染label */
66
68
  var inlineLabelRender = function inlineLabelRender(item) {
67
69
  var _item$buttonProps, _item$buttonProps2;
68
- var oldNode = /*#__PURE__*/React.createElement(Space, {
69
- size: 4
70
- }, (_item$buttonProps = item.buttonProps) === null || _item$buttonProps === void 0 ? void 0 : _item$buttonProps.leftIcon, item.label, (_item$buttonProps2 = item.buttonProps) === null || _item$buttonProps2 === void 0 ? void 0 : _item$buttonProps2.rightIcon);
70
+ var oldNode = /*#__PURE__*/_jsxs(Space, {
71
+ size: 4,
72
+ children: [(_item$buttonProps = item.buttonProps) === null || _item$buttonProps === void 0 ? void 0 : _item$buttonProps.leftIcon, item.label, (_item$buttonProps2 = item.buttonProps) === null || _item$buttonProps2 === void 0 ? void 0 : _item$buttonProps2.rightIcon]
73
+ });
71
74
  return labelRender ? labelRender(oldNode, item) : oldNode;
72
75
  };
73
76
  var handler = function handler(item, type) {
@@ -106,77 +109,84 @@ export var ActionButtons = function ActionButtons(_ref) {
106
109
  return config;
107
110
  };
108
111
  if (loading) {
109
- return /*#__PURE__*/React.createElement(Space, {
112
+ return /*#__PURE__*/_jsx(Space, {
110
113
  size: [8, 16],
111
- wrap: true
112
- }, /*#__PURE__*/React.createElement(Skeleton.Button, {
113
- active: true,
114
- size: size === 'middle' ? undefined : size
115
- }));
114
+ wrap: true,
115
+ children: /*#__PURE__*/_jsx(Skeleton.Button, {
116
+ active: true,
117
+ size: size === 'middle' ? undefined : size
118
+ })
119
+ });
116
120
  }
117
121
  onHasButtons === null || onHasButtons === void 0 || onHasButtons(hasButtons);
118
- return /*#__PURE__*/React.createElement(React.Fragment, null, inlineItems.map(function (groupItem, index) {
119
- var arr = [];
120
- if (groupItem.hidden) return [];
121
- if (operationPermission && !operationPermission(groupItem.permissionKey)) return [];
122
- if (groupItem.type === 'button_items') {
123
- var _groupItem$items;
124
- var els = ((_groupItem$items = groupItem.items) === null || _groupItem$items === void 0 ? void 0 : _groupItem$items.map(function (rawItem, subIndex) {
125
- var _item$label;
126
- if (rawItem.hidden) return;
127
- if (operationPermission && !operationPermission(rawItem.permissionKey)) return;
128
- var item = handler(rawItem, 'button');
129
- if (!item) return;
130
- var _ref2 = item.buttonProps || {},
131
- leftIcon = _ref2.leftIcon,
132
- rightIcon = _ref2.rightIcon,
133
- otherButtonProps = _objectWithoutProperties(_ref2, _excluded);
134
- return /*#__PURE__*/React.createElement(Button, _extends({
135
- size: size
136
- }, otherButtonProps, {
137
- key: "".concat(index, "-").concat(item.key, "-").concat(subIndex),
138
- onClick: item.onClick
139
- }), /*#__PURE__*/React.createElement(Space, {
140
- size: 4
141
- }, inlineLabelRender(_objectSpread(_objectSpread({}, item), {}, {
142
- label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : formatMessage({
143
- id: 'bit.common.action-buttons.item-label',
144
- defaultMessage: '未配置 button label'
145
- })
146
- }))));
147
- })) || [];
148
- arr.push.apply(arr, _toConsumableArray(els));
149
- } else if (groupItem.type === 'button_group') {
150
- var groupItems = (groupItem.items || []).map(function (item) {
151
- if (item.hidden) return;
152
- if (operationPermission && !operationPermission(item.permissionKey)) return;
153
- return handler(item, 'dropdown');
154
- }).filter(Boolean);
155
- if (groupItems.length) {
156
- var _groupItem$label;
157
- var _ref3 = groupItem.buttonProps || {},
158
- leftIcon = _ref3.leftIcon,
159
- rightIcon = _ref3.rightIcon,
160
- otherButtonProps = _objectWithoutProperties(_ref3, _excluded2);
161
- arr.push( /*#__PURE__*/React.createElement(Dropdown, _extends({
162
- key: index,
163
- arrow: true
164
- }, dropdownProps, {
165
- menu: _objectSpread(_objectSpread({}, dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.menu), {}, {
166
- items: groupItems
167
- })
168
- }), /*#__PURE__*/React.createElement(Button, _extends({
169
- size: size
170
- }, otherButtonProps), /*#__PURE__*/React.createElement(Space, {
171
- size: 4
172
- }, inlineLabelRender(_objectSpread(_objectSpread({}, groupItem), {}, {
173
- label: (_groupItem$label = groupItem.label) !== null && _groupItem$label !== void 0 ? _groupItem$label : formatMessage({
174
- id: 'bit.common.action-buttons.group-label',
175
- defaultMessage: '未配置 group label'
176
- })
177
- }))))));
122
+ return /*#__PURE__*/_jsx(_Fragment, {
123
+ children: inlineItems.map(function (groupItem, index) {
124
+ var arr = [];
125
+ if (groupItem.hidden) return [];
126
+ if (operationPermission && !operationPermission(groupItem.permissionKey)) return [];
127
+ if (groupItem.type === 'button_items') {
128
+ var _groupItem$items;
129
+ var els = ((_groupItem$items = groupItem.items) === null || _groupItem$items === void 0 ? void 0 : _groupItem$items.map(function (rawItem, subIndex) {
130
+ var _item$label;
131
+ if (rawItem.hidden) return;
132
+ if (operationPermission && !operationPermission(rawItem.permissionKey)) return;
133
+ var item = handler(rawItem, 'button');
134
+ if (!item) return;
135
+ var _ref2 = item.buttonProps || {},
136
+ leftIcon = _ref2.leftIcon,
137
+ rightIcon = _ref2.rightIcon,
138
+ otherButtonProps = _objectWithoutProperties(_ref2, _excluded);
139
+ return /*#__PURE__*/_createElement(Button, _objectSpread(_objectSpread({
140
+ size: size
141
+ }, otherButtonProps), {}, {
142
+ key: "".concat(index, "-").concat(item.key, "-").concat(subIndex),
143
+ onClick: item.onClick
144
+ }), /*#__PURE__*/_jsx(Space, {
145
+ size: 4,
146
+ children: inlineLabelRender(_objectSpread(_objectSpread({}, item), {}, {
147
+ label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : formatMessage({
148
+ id: 'bit.common.action-buttons.item-label',
149
+ defaultMessage: '未配置 button label'
150
+ })
151
+ }))
152
+ }));
153
+ })) || [];
154
+ arr.push.apply(arr, _toConsumableArray(els));
155
+ } else if (groupItem.type === 'button_group') {
156
+ var groupItems = (groupItem.items || []).map(function (item) {
157
+ if (item.hidden) return;
158
+ if (operationPermission && !operationPermission(item.permissionKey)) return;
159
+ return handler(item, 'dropdown');
160
+ }).filter(Boolean);
161
+ if (groupItems.length) {
162
+ var _groupItem$label;
163
+ var _ref3 = groupItem.buttonProps || {},
164
+ leftIcon = _ref3.leftIcon,
165
+ rightIcon = _ref3.rightIcon,
166
+ otherButtonProps = _objectWithoutProperties(_ref3, _excluded2);
167
+ arr.push( /*#__PURE__*/_jsx(Dropdown, _objectSpread(_objectSpread({
168
+ arrow: true
169
+ }, dropdownProps), {}, {
170
+ menu: _objectSpread(_objectSpread({}, dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.menu), {}, {
171
+ items: groupItems
172
+ }),
173
+ children: /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
174
+ size: size
175
+ }, otherButtonProps), {}, {
176
+ children: /*#__PURE__*/_jsx(Space, {
177
+ size: 4,
178
+ children: inlineLabelRender(_objectSpread(_objectSpread({}, groupItem), {}, {
179
+ label: (_groupItem$label = groupItem.label) !== null && _groupItem$label !== void 0 ? _groupItem$label : formatMessage({
180
+ id: 'bit.common.action-buttons.group-label',
181
+ defaultMessage: '未配置 group label'
182
+ })
183
+ }))
184
+ })
185
+ }))
186
+ }), index));
187
+ }
178
188
  }
179
- }
180
- return arr;
181
- }));
189
+ return arr;
190
+ })
191
+ });
182
192
  };
@@ -1,69 +1,72 @@
1
1
  import { StepBackwardOutlined } from '@ant-design/icons';
2
- import React from 'react';
3
2
  import { ActionButtons } from "../../..";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
4
5
  export default (function () {
5
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionButtons, {
6
- items: [{
7
- type: 'button_items',
8
- value: '1',
9
- hidden: false,
6
+ return /*#__PURE__*/_jsx(_Fragment, {
7
+ children: /*#__PURE__*/_jsx(ActionButtons, {
10
8
  items: [{
11
- label: '按钮1111',
9
+ type: 'button_items',
12
10
  value: '1',
13
- buttonProps: {
14
- leftIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null),
15
- rightIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null)
16
- }
11
+ hidden: false,
12
+ items: [{
13
+ label: '按钮1111',
14
+ value: '1',
15
+ buttonProps: {
16
+ leftIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {}),
17
+ rightIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {})
18
+ }
19
+ }, {
20
+ label: '按钮2',
21
+ value: '2',
22
+ hidden: false
23
+ }]
17
24
  }, {
18
- label: '按钮2',
25
+ type: 'button_items',
19
26
  value: '2',
20
- hidden: false
21
- }]
22
- }, {
23
- type: 'button_items',
24
- value: '2',
25
- items: [{
26
- label: '按钮3',
27
- value: '3'
27
+ items: [{
28
+ label: '按钮3',
29
+ value: '3'
30
+ }, {
31
+ label: '按钮4',
32
+ value: '4'
33
+ }]
28
34
  }, {
29
- label: '按钮4',
30
- value: '4'
31
- }]
32
- }, {
33
- type: 'button_group',
34
- value: '3',
35
- hidden: false,
36
- buttonProps: {
37
- leftIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null),
38
- rightIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null)
39
- },
40
- items: [{
41
- label: '按钮5',
42
- value: '5',
35
+ type: 'button_group',
36
+ value: '3',
37
+ hidden: false,
43
38
  buttonProps: {
44
- leftIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null),
45
- rightIcon: /*#__PURE__*/React.createElement(StepBackwardOutlined, null)
46
- }
47
- }, {
48
- label: '按钮6',
49
- value: '6'
50
- }]
51
- }, {
52
- type: 'button_group',
53
- value: '4',
54
- items: [{
55
- label: '按钮7',
56
- value: '7',
57
- hidden: false
39
+ leftIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {}),
40
+ rightIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {})
41
+ },
42
+ items: [{
43
+ label: '按钮5',
44
+ value: '5',
45
+ buttonProps: {
46
+ leftIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {}),
47
+ rightIcon: /*#__PURE__*/_jsx(StepBackwardOutlined, {})
48
+ }
49
+ }, {
50
+ label: '按钮6',
51
+ value: '6'
52
+ }]
58
53
  }, {
59
- label: '按钮8',
60
- value: '8',
61
- hidden: false
62
- }]
63
- }],
64
- onClick: function onClick(_ref) {
65
- var value = _ref.value;
66
- console.log(value);
67
- }
68
- }));
54
+ type: 'button_group',
55
+ value: '4',
56
+ items: [{
57
+ label: '按钮7',
58
+ value: '7',
59
+ hidden: false
60
+ }, {
61
+ label: '按钮8',
62
+ value: '8',
63
+ hidden: false
64
+ }]
65
+ }],
66
+ onClick: function onClick(_ref) {
67
+ var value = _ref.value;
68
+ console.log(value);
69
+ }
70
+ })
71
+ });
69
72
  });