@nokecy/qc-ui 0.8.3 → 0.8.5
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/dist/cjs/array-table/index.js +3 -3
- package/dist/cjs/array-table/preview.js +5 -5
- package/dist/cjs/card/index.d.ts +3 -0
- package/dist/cjs/card/index.js +28 -0
- package/dist/cjs/dialogSelect/index.d.ts +15 -3
- package/dist/cjs/dialogSelect/index.js +144 -33
- package/dist/cjs/draggableModal/index.d.ts +10 -0
- package/dist/cjs/draggableModal/index.js +113 -0
- package/dist/cjs/draggableModal/style.less +16 -0
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +14 -0
- package/dist/cjs/toolBar/index.d.ts +4 -0
- package/dist/cjs/toolBar/index.js +38 -0
- package/dist/cjs/toolBar/index.less +25 -0
- package/dist/esm/ag-grid-plus/_utils/boolSelect.js +15 -26
- package/dist/esm/ag-grid-plus/setting/index.js +119 -136
- package/dist/esm/array-table/index.js +3 -3
- package/dist/esm/array-table/preview.js +5 -5
- package/dist/esm/card/index.d.ts +3 -0
- package/dist/esm/card/index.js +21 -0
- package/dist/esm/dialogSelect/index.d.ts +15 -3
- package/dist/esm/dialogSelect/index.js +145 -35
- package/dist/esm/draggableModal/index.d.ts +10 -0
- package/dist/esm/draggableModal/index.js +104 -0
- package/dist/esm/draggableModal/style.less +16 -0
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -2
- package/dist/esm/toolBar/index.d.ts +4 -0
- package/dist/esm/toolBar/index.js +31 -0
- package/dist/esm/toolBar/index.less +25 -0
- package/dist/umd/qc-ui.min.css +1 -1
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +21 -20
- package/dist/cjs/dialogSelect/interface.d.ts +0 -11
- package/dist/cjs/dialogSelect/interface.js +0 -1
- package/dist/cjs/dialogSelect/selectModal.d.ts +0 -6
- package/dist/cjs/dialogSelect/selectModal.js +0 -146
- package/dist/esm/dialogSelect/interface.d.ts +0 -11
- package/dist/esm/dialogSelect/interface.js +0 -0
- package/dist/esm/dialogSelect/selectModal.d.ts +0 -6
- package/dist/esm/dialogSelect/selectModal.js +0 -138
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
|
+
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); }
|
|
7
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
3
|
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."); }
|
|
9
4
|
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); }
|
|
@@ -20,30 +15,24 @@ import React from "react";
|
|
|
20
15
|
* @param ref
|
|
21
16
|
* @returns
|
|
22
17
|
*/
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
18
|
var BoolSelect = function BoolSelect(props, ref) {
|
|
26
19
|
var _useControllableValue = useControllableValue(props),
|
|
27
20
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
28
21
|
state = _useControllableValue2[0],
|
|
29
22
|
setState = _useControllableValue2[1];
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
ref: ref
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
children: "\u5426"
|
|
45
|
-
})]
|
|
46
|
-
}))
|
|
47
|
-
});
|
|
23
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
24
|
+
ref: ref
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Select, _extends({}, props, {
|
|
26
|
+
value: state,
|
|
27
|
+
onChange: function onChange(value, option) {
|
|
28
|
+
var _props$onChange;
|
|
29
|
+
setState(value);
|
|
30
|
+
props === null || props === void 0 || (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value, option);
|
|
31
|
+
}
|
|
32
|
+
}), /*#__PURE__*/React.createElement(Select.Option, {
|
|
33
|
+
value: true
|
|
34
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select.Option, {
|
|
35
|
+
value: false
|
|
36
|
+
}, "\u5426")));
|
|
48
37
|
};
|
|
49
38
|
export default /*#__PURE__*/React.forwardRef(BoolSelect);
|
|
@@ -13,8 +13,6 @@ import { createSchemaField } from '@formily/react';
|
|
|
13
13
|
import { onFormInit } from '@formily/core';
|
|
14
14
|
import React, { useMemo } from "react";
|
|
15
15
|
import { SettingOutlined } from '@ant-design/icons';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
16
|
var Setting = function Setting(props) {
|
|
19
17
|
var gridKey = props.gridKey,
|
|
20
18
|
gridApi = props.gridApi,
|
|
@@ -59,140 +57,125 @@ var Setting = function Setting(props) {
|
|
|
59
57
|
if (!gridKey) {
|
|
60
58
|
return null;
|
|
61
59
|
}
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
-
id: portalId
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
})
|
|
172
|
-
})]
|
|
173
|
-
})
|
|
174
|
-
})
|
|
175
|
-
})
|
|
176
|
-
})
|
|
177
|
-
});
|
|
60
|
+
return /*#__PURE__*/React.createElement(FormDialog.Portal, {
|
|
61
|
+
id: portalId
|
|
62
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
style: {
|
|
64
|
+
margin: "0 4px",
|
|
65
|
+
color: "#000",
|
|
66
|
+
fontSize: 16,
|
|
67
|
+
cursor: "pointer"
|
|
68
|
+
},
|
|
69
|
+
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
70
|
+
var formDialog;
|
|
71
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
72
|
+
while (1) switch (_context.prev = _context.next) {
|
|
73
|
+
case 0:
|
|
74
|
+
formDialog = FormDialog({
|
|
75
|
+
title: "个性化设置",
|
|
76
|
+
width: 960
|
|
77
|
+
}, portalId, function () {
|
|
78
|
+
return /*#__PURE__*/React.createElement(FormLayout, null, /*#__PURE__*/React.createElement(SchemaField, null, /*#__PURE__*/React.createElement(SchemaField.Void, {
|
|
79
|
+
"x-component": "FormGrid",
|
|
80
|
+
"x-component-props": {
|
|
81
|
+
maxColumns: [1, 3],
|
|
82
|
+
strictAutoFit: true
|
|
83
|
+
}
|
|
84
|
+
}, /*#__PURE__*/React.createElement(SchemaField.Array, {
|
|
85
|
+
name: "items",
|
|
86
|
+
title: "",
|
|
87
|
+
"x-component": "ArrayTable",
|
|
88
|
+
"x-validator": [{
|
|
89
|
+
message: ""
|
|
90
|
+
}],
|
|
91
|
+
"x-decorator": "FormItem",
|
|
92
|
+
"x-decorator-props": {
|
|
93
|
+
gridSpan: 3
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/React.createElement(SchemaField.Object, null, /*#__PURE__*/React.createElement(SchemaField.Void, {
|
|
96
|
+
"x-component": "ArrayTable.Column",
|
|
97
|
+
"x-component-props": {
|
|
98
|
+
width: 100,
|
|
99
|
+
title: "列名"
|
|
100
|
+
}
|
|
101
|
+
}, /*#__PURE__*/React.createElement(SchemaField.String, {
|
|
102
|
+
name: "headerName",
|
|
103
|
+
"x-decorator": "FormItem",
|
|
104
|
+
"x-component": "Input",
|
|
105
|
+
"x-read-pretty": true
|
|
106
|
+
})), /*#__PURE__*/React.createElement(SchemaField.Void, {
|
|
107
|
+
"x-component": "ArrayTable.Column",
|
|
108
|
+
"x-component-props": {
|
|
109
|
+
width: 100,
|
|
110
|
+
title: "宽度"
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/React.createElement(SchemaField.String, {
|
|
113
|
+
name: "width",
|
|
114
|
+
"x-decorator": "FormItem",
|
|
115
|
+
"x-component": "NumberPicker"
|
|
116
|
+
})), /*#__PURE__*/React.createElement(SchemaField.Void, {
|
|
117
|
+
"x-component": "ArrayTable.Column",
|
|
118
|
+
"x-component-props": {
|
|
119
|
+
width: 100,
|
|
120
|
+
title: "占满"
|
|
121
|
+
}
|
|
122
|
+
}, /*#__PURE__*/React.createElement(SchemaField.String, {
|
|
123
|
+
name: "flex",
|
|
124
|
+
"x-decorator": "FormItem",
|
|
125
|
+
"x-component": "Select",
|
|
126
|
+
enum: [{
|
|
127
|
+
value: 1,
|
|
128
|
+
label: "占满"
|
|
129
|
+
}, {
|
|
130
|
+
value: 0,
|
|
131
|
+
label: "不占满"
|
|
132
|
+
}]
|
|
133
|
+
})), /*#__PURE__*/React.createElement(SchemaField.Void, {
|
|
134
|
+
"x-component": "ArrayTable.Column",
|
|
135
|
+
"x-component-props": {
|
|
136
|
+
width: 100,
|
|
137
|
+
title: '固定位置'
|
|
138
|
+
}
|
|
139
|
+
}, /*#__PURE__*/React.createElement(SchemaField.String, {
|
|
140
|
+
name: "pinned",
|
|
141
|
+
"x-decorator": "FormItem",
|
|
142
|
+
"x-component": "Select",
|
|
143
|
+
enum: [{
|
|
144
|
+
value: "left",
|
|
145
|
+
label: "左固定"
|
|
146
|
+
}, {
|
|
147
|
+
value: "right",
|
|
148
|
+
label: "右固定"
|
|
149
|
+
}, {
|
|
150
|
+
value: undefined,
|
|
151
|
+
label: "不固定"
|
|
152
|
+
}]
|
|
153
|
+
})), /*#__PURE__*/React.createElement(SchemaField.Void, {
|
|
154
|
+
"x-component": "ArrayTable.Column",
|
|
155
|
+
"x-component-props": {
|
|
156
|
+
title: '隐藏'
|
|
157
|
+
}
|
|
158
|
+
}, /*#__PURE__*/React.createElement(SchemaField.String, {
|
|
159
|
+
name: "hide",
|
|
160
|
+
"x-decorator": "FormItem",
|
|
161
|
+
"x-component": "Switch"
|
|
162
|
+
})))))));
|
|
163
|
+
});
|
|
164
|
+
formDialog.forConfirm(function (payload, next) {
|
|
165
|
+
var values = payload.values;
|
|
166
|
+
var falg = gridApi.applyColumnState({
|
|
167
|
+
state: values.items,
|
|
168
|
+
applyOrder: true
|
|
178
169
|
});
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
case "end":
|
|
190
|
-
return _context.stop();
|
|
191
|
-
}
|
|
192
|
-
}, _callee);
|
|
193
|
-
})),
|
|
194
|
-
children: /*#__PURE__*/_jsx(SettingOutlined, {})
|
|
195
|
-
})
|
|
196
|
-
});
|
|
170
|
+
onSaveColumnState && onSaveColumnState(values.items);
|
|
171
|
+
next(payload);
|
|
172
|
+
}).open(formProps);
|
|
173
|
+
case 2:
|
|
174
|
+
case "end":
|
|
175
|
+
return _context.stop();
|
|
176
|
+
}
|
|
177
|
+
}, _callee);
|
|
178
|
+
}))
|
|
179
|
+
}, /*#__PURE__*/React.createElement(SettingOutlined, null)));
|
|
197
180
|
};
|
|
198
181
|
export default Setting;
|
|
@@ -96,10 +96,10 @@ var ArrayTable = observer(function (props) {
|
|
|
96
96
|
resizable: true,
|
|
97
97
|
headerComponentParams: {
|
|
98
98
|
template: '<div class="ag-cell-label-container" role="presentation">' +
|
|
99
|
-
// ' <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>' +
|
|
99
|
+
// ' <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>' +
|
|
100
100
|
' <div data-ref="eLabel" class="ag-header-cell-label" role="presentation">' + ' <span data-ref="eText" class="ag-header-cell-text"> </span>' +
|
|
101
|
-
// ' <span ref="eFilter" class="ag-header-icon ag-filter-icon"></span>' +
|
|
102
|
-
// ' <span ref="eSortOrder" class="ag-header-icon ag-sort-order"></span>' +
|
|
101
|
+
// ' <span data-ref="eFilter" class="ag-header-icon ag-filter-icon"></span>' +
|
|
102
|
+
// ' <span data-ref="eSortOrder" class="ag-header-icon ag-sort-order"></span>' +
|
|
103
103
|
' <span data-ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span>' + ' <span data-ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon"></span>' + ' <span data-ref="eSortNone" class="ag-header-icon ag-sort-none-icon"></span>' + " </div>" + "</div>"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
@@ -29,11 +29,11 @@ var ArrayTable = function ArrayTable(props) {
|
|
|
29
29
|
resizable: true,
|
|
30
30
|
headerComponentParams: {
|
|
31
31
|
template: '<div class="ag-cell-label-container" role="presentation">' +
|
|
32
|
-
// ' <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>' +
|
|
33
|
-
' <div ref="eLabel" class="ag-header-cell-label" role="presentation">' + ' <span ref="eText" class="ag-header-cell-text"></span>' +
|
|
34
|
-
// ' <span ref="eFilter" class="ag-header-icon ag-filter-icon"></span>' +
|
|
35
|
-
// ' <span ref="eSortOrder" class="ag-header-icon ag-sort-order"></span>' +
|
|
36
|
-
' <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span>' + ' <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon"></span>' + ' <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon"></span>' + " </div>" + "</div>"
|
|
32
|
+
// ' <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>' +
|
|
33
|
+
' <div data-ref="eLabel" class="ag-header-cell-label" role="presentation">' + ' <span data-ref="eText" class="ag-header-cell-text"></span>' + ' <span data-ref="eSortNone" class="ag-header-icon ag-sort-none-icon"></span>' +
|
|
34
|
+
// ' <span data-ref="eFilter" class="ag-header-icon ag-filter-icon"></span>' +
|
|
35
|
+
// ' <span data-ref="eSortOrder" class="ag-header-icon ag-sort-order"></span>' +
|
|
36
|
+
' <span data-ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span>' + ' <span data-ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon"></span>' + ' <span data-ref="eSortNone" class="ag-header-icon ag-sort-none-icon"></span>' + " </div>" + "</div>"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
getRowId: function getRowId(_ref) {
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import ProCard from '@ant-design/pro-card';
|
|
10
|
+
var Card = function Card(props) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(ProCard, _extends({
|
|
12
|
+
headerBordered: false,
|
|
13
|
+
collapsible: true
|
|
14
|
+
}, props, {
|
|
15
|
+
headStyle: _objectSpread({
|
|
16
|
+
paddingTop: 8,
|
|
17
|
+
paddingBottom: 8
|
|
18
|
+
}, props.headStyle)
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
export default Card;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { SelectProps } from 'antd/lib/select';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ColDef, ColGroupDef } from 'ag-grid-community';
|
|
4
|
+
interface IDialogSelectProps extends SelectProps<any> {
|
|
5
|
+
hideBtn: boolean;
|
|
6
|
+
request?: any;
|
|
7
|
+
columnDefs?: (ColDef | ColGroupDef)[] | null;
|
|
8
|
+
labelField?: any;
|
|
9
|
+
valueField?: any;
|
|
10
|
+
queryFun?: (item: any) => void;
|
|
11
|
+
onChangeItem?: (item: any) => void;
|
|
12
|
+
useAutoComplete?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const DialogSelect: (props: IDialogSelectProps) => React.JSX.Element;
|
|
15
|
+
export { IDialogSelectProps };
|
|
4
16
|
export default DialogSelect;
|