venus-design 0.1.8 → 0.2.0
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/Approval/index.js +6 -2
- package/dist/AuthButton/index.js +26 -10
- package/dist/CheckBoxInput/index.js +6 -2
- package/dist/DataView/resizable/index.js +5 -1
- package/dist/Descriptions/index.js +10 -3
- package/dist/DownLoad/index.js +6 -2
- package/dist/DownLoadFile/index.js +7 -2
- package/dist/Drawer/index.js +6 -2
- package/dist/Error/index.js +6 -2
- package/dist/NumberPercent/index.js +5 -1
- package/dist/NumberUnits/index.js +5 -1
- package/dist/ProForm/index.js +5 -1
- package/dist/RadioAndInput/index.js +5 -1
- package/dist/Search/index.js +6 -2
- package/dist/SearchHight/index.js +28 -9
- package/dist/SelectCompoments/SelectApp/index.js +6 -2
- package/dist/SelectCompoments/SelectKYSeclevel/index.js +6 -2
- package/dist/SelectCompoments/SelectOrg/index.js +6 -2
- package/dist/SelectCompoments/SelectRoleDataPremission/index.js +6 -2
- package/dist/SelectCompoments/SelectUserBySecLevelId/chooseBox.js +6 -2
- package/dist/SelectCompoments/SelectUserBySecLevelId/index.js +11 -4
- package/dist/SelectCompoments/SelectUserBySecLevelId/modalFiles/index.js +6 -2
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/expression.js +15 -5
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/org.js +15 -5
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/role.js +15 -5
- package/dist/SelectCompoments/SelectUserBySecLevelId/search/user.js +15 -5
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/index.js +6 -2
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/model/index.js +6 -2
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/dept.js +5 -1
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/role.js +5 -1
- package/dist/SelectCompoments/SelectUserOrDeptBySeclevel/selectPanel/user.js +5 -1
- package/dist/TreeSelect/index.js +6 -2
- package/dist/Upload/index.js +6 -2
- package/dist/UploadImage/index.js +6 -2
- package/dist/VenusAdjust/index.js +6 -2
- package/dist/VenusAdjustDetail/index.js +6 -2
- package/dist/VenusDetail/index.js +5 -1
- package/dist/VenusDetail/staticAttr.js +6 -1
- package/dist/VenusDownloadExcel/index.js +6 -2
- package/dist/VenusDownloadWord/index.js +6 -2
- package/dist/VenusEditTable/index.js +10 -3
- package/dist/VenusEditTable/tableStaticAttr.js +6 -2
- package/dist/VenusUpload/index.js +6 -2
- package/dist/VenusWorkDetail/index.js +11 -7
- package/package.json +2 -1
package/dist/Approval/index.js
CHANGED
|
@@ -29,6 +29,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
29
29
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
30
30
|
import React, { useState, useImperativeHandle } from 'react';
|
|
31
31
|
import SelectRoleAndUser from "./components/SelectRoleAndUser";
|
|
32
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
32
33
|
import { startData, findByOptionCode, findByUserid, SubmitDataStatus, findTableByFormid, updateProcessInstance } from "./service";
|
|
33
34
|
import moment from 'moment';
|
|
34
35
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -352,7 +353,10 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
352
353
|
return _ref3.apply(this, arguments);
|
|
353
354
|
};
|
|
354
355
|
}();
|
|
355
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
356
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
357
|
+
hashPriority: "high",
|
|
358
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
359
|
+
}, /*#__PURE__*/React.createElement(_Modal, {
|
|
356
360
|
destroyOnClose: true,
|
|
357
361
|
title: "\u9001\u5BA1",
|
|
358
362
|
confirmLoading: okload,
|
|
@@ -411,5 +415,5 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
411
415
|
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
412
416
|
name: "memo",
|
|
413
417
|
label: "\u9644\u8A00"
|
|
414
|
-
}, /*#__PURE__*/React.createElement(TextArea, null))))))));
|
|
418
|
+
}, /*#__PURE__*/React.createElement(TextArea, null)))))))));
|
|
415
419
|
});
|
package/dist/AuthButton/index.js
CHANGED
|
@@ -10,6 +10,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { getUmi } from "./..";
|
|
12
12
|
import { PlusOutlined } from '@ant-design/icons';
|
|
13
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
13
14
|
var _getUmi = getUmi(),
|
|
14
15
|
getDvaApp = _getUmi.getDvaApp,
|
|
15
16
|
Link = _getUmi.Link;
|
|
@@ -45,7 +46,10 @@ export var AddButtonNew = function AddButtonNew(props) {
|
|
|
45
46
|
callback = props.callback,
|
|
46
47
|
others = _objectWithoutProperties(props, _excluded);
|
|
47
48
|
if (!checkPathname(pathname)) return null;
|
|
48
|
-
var buttonNode = /*#__PURE__*/React.createElement(
|
|
49
|
+
var buttonNode = /*#__PURE__*/React.createElement(StyleProvider, {
|
|
50
|
+
hashPriority: "high",
|
|
51
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
52
|
+
}, /*#__PURE__*/React.createElement(_Button, _extends({
|
|
49
53
|
key: "button",
|
|
50
54
|
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
51
55
|
type: "primary",
|
|
@@ -53,7 +57,7 @@ export var AddButtonNew = function AddButtonNew(props) {
|
|
|
53
57
|
onClick: function onClick() {
|
|
54
58
|
return callback && callback();
|
|
55
59
|
}
|
|
56
|
-
}, others), props.children || '新增');
|
|
60
|
+
}, others), props.children || '新增'));
|
|
57
61
|
if (!callback) {
|
|
58
62
|
var searchParams = "?";
|
|
59
63
|
// 如果others不为空,则将others中参数转变为url参数赋值给searchParams
|
|
@@ -124,7 +128,10 @@ export var CommonButton = function CommonButton(props) {
|
|
|
124
128
|
callback = props.callback,
|
|
125
129
|
others = _objectWithoutProperties(props, _excluded3);
|
|
126
130
|
if (!checkPathname('/models/platform/codegen/import')) return null;
|
|
127
|
-
var buttonNode = /*#__PURE__*/React.createElement(
|
|
131
|
+
var buttonNode = /*#__PURE__*/React.createElement(StyleProvider, {
|
|
132
|
+
hashPriority: "high",
|
|
133
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
134
|
+
}, /*#__PURE__*/React.createElement(_Button, _extends({
|
|
128
135
|
key: "button",
|
|
129
136
|
icon: btnicon,
|
|
130
137
|
size: "small",
|
|
@@ -132,7 +139,7 @@ export var CommonButton = function CommonButton(props) {
|
|
|
132
139
|
onClick: function onClick() {
|
|
133
140
|
return callback && callback();
|
|
134
141
|
}
|
|
135
|
-
}, others), props.children || btnname);
|
|
142
|
+
}, others), props.children || btnname));
|
|
136
143
|
if (!callback) {
|
|
137
144
|
return /*#__PURE__*/React.createElement(Link, {
|
|
138
145
|
to: pathname
|
|
@@ -144,20 +151,26 @@ export var ButtonPath = function ButtonPath(props) {
|
|
|
144
151
|
var pathname = props.pathname,
|
|
145
152
|
onClick = props.onClick;
|
|
146
153
|
if (!checkPathname(pathname || "/2023")) return null;
|
|
147
|
-
return /*#__PURE__*/React.createElement(
|
|
154
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
155
|
+
hashPriority: "high",
|
|
156
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
157
|
+
}, /*#__PURE__*/React.createElement(_Button, _extends({
|
|
148
158
|
size: props.size || "small",
|
|
149
159
|
type: props.type || "primary"
|
|
150
|
-
}, props), props.children || '导出 ');
|
|
160
|
+
}, props), props.children || '导出 '));
|
|
151
161
|
};
|
|
152
162
|
//默认的按钮
|
|
153
163
|
export var VenusButton = function VenusButton(props) {
|
|
154
|
-
return /*#__PURE__*/React.createElement(
|
|
164
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
165
|
+
hashPriority: "high",
|
|
166
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
167
|
+
}, /*#__PURE__*/React.createElement(_Button, _extends({
|
|
155
168
|
size: props.size || "small",
|
|
156
169
|
style: {
|
|
157
170
|
marginRight: 5
|
|
158
171
|
},
|
|
159
172
|
type: props.type || "primary"
|
|
160
|
-
}, props), props.children);
|
|
173
|
+
}, props), props.children));
|
|
161
174
|
};
|
|
162
175
|
/*
|
|
163
176
|
* 控制按钮权限
|
|
@@ -176,7 +189,10 @@ export var AddButton = function AddButton(props) {
|
|
|
176
189
|
callback = props.callback,
|
|
177
190
|
others = _objectWithoutProperties(props, _excluded4);
|
|
178
191
|
if (!checkPathname(pathname)) return null;
|
|
179
|
-
var buttonNode = /*#__PURE__*/React.createElement(
|
|
192
|
+
var buttonNode = /*#__PURE__*/React.createElement(StyleProvider, {
|
|
193
|
+
hashPriority: "high",
|
|
194
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
195
|
+
}, /*#__PURE__*/React.createElement(_Button, _extends({
|
|
180
196
|
key: "button",
|
|
181
197
|
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
182
198
|
type: "primary",
|
|
@@ -184,7 +200,7 @@ export var AddButton = function AddButton(props) {
|
|
|
184
200
|
onClick: function onClick() {
|
|
185
201
|
return callback && callback();
|
|
186
202
|
}
|
|
187
|
-
}, others), props.children || '新增');
|
|
203
|
+
}, others), props.children || '新增'));
|
|
188
204
|
if (!callback) {
|
|
189
205
|
return /*#__PURE__*/React.createElement(Link, {
|
|
190
206
|
to: pathname
|
|
@@ -18,6 +18,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
18
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
19
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
20
|
import React, { useState, useEffect } from 'react';
|
|
21
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
21
22
|
var CheckBoxInput = function CheckBoxInput(props) {
|
|
22
23
|
var _props$comAttr = props.comAttr,
|
|
23
24
|
comAttr = _props$comAttr === void 0 ? {} : _props$comAttr,
|
|
@@ -48,7 +49,10 @@ var CheckBoxInput = function CheckBoxInput(props) {
|
|
|
48
49
|
return _objectSpread(_objectSpread({}, prevInputValues), {}, _defineProperty({}, checkboxValue, e.target.value));
|
|
49
50
|
});
|
|
50
51
|
};
|
|
51
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
52
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
53
|
+
hashPriority: "high",
|
|
54
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
55
|
+
}, /*#__PURE__*/React.createElement(_Checkbox.Group, {
|
|
52
56
|
disabled: disabled,
|
|
53
57
|
onChange: handleCheckboxChange
|
|
54
58
|
}, Object.keys(valueEnum).map(function (ls) {
|
|
@@ -72,6 +76,6 @@ var CheckBoxInput = function CheckBoxInput(props) {
|
|
|
72
76
|
return handleInputChange(e, ls);
|
|
73
77
|
}
|
|
74
78
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
75
|
-
})));
|
|
79
|
+
}))));
|
|
76
80
|
};
|
|
77
81
|
export default CheckBoxInput;
|
|
@@ -29,6 +29,7 @@ import * as ExcelJs from 'exceljs';
|
|
|
29
29
|
import { saveAs } from "file-saver";
|
|
30
30
|
import "./App.css";
|
|
31
31
|
import moment from 'moment';
|
|
32
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
32
33
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
33
34
|
var onResize = props.onResize,
|
|
34
35
|
width = props.width,
|
|
@@ -255,6 +256,9 @@ var ResizableTabel = function ResizableTabel(props) {
|
|
|
255
256
|
};
|
|
256
257
|
return /*#__PURE__*/React.createElement("div", {
|
|
257
258
|
id: "VenusProTable"
|
|
259
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
260
|
+
hashPriority: "high",
|
|
261
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
258
262
|
}, /*#__PURE__*/React.createElement(ProTable, _extends({
|
|
259
263
|
scroll: scroll
|
|
260
264
|
}, props, {
|
|
@@ -281,6 +285,6 @@ var ResizableTabel = function ResizableTabel(props) {
|
|
|
281
285
|
//loading={true}
|
|
282
286
|
,
|
|
283
287
|
request: props.request
|
|
284
|
-
})));
|
|
288
|
+
}))));
|
|
285
289
|
};
|
|
286
290
|
export default ResizableTabel;
|
|
@@ -7,20 +7,27 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import "./styles.less";
|
|
10
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
10
11
|
var PageDescriptions = function PageDescriptions(props) {
|
|
11
12
|
var children = props.children,
|
|
12
13
|
others = _objectWithoutProperties(props, _excluded);
|
|
13
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
14
15
|
className: "pageDescriptions"
|
|
16
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
17
|
+
hashPriority: "high",
|
|
18
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
15
19
|
}, /*#__PURE__*/React.createElement(_Descriptions, _extends({
|
|
16
20
|
column: 3
|
|
17
|
-
}, others), children));
|
|
21
|
+
}, others), children)));
|
|
18
22
|
};
|
|
19
23
|
PageDescriptions.Item = function (props) {
|
|
20
24
|
var children = props.children,
|
|
21
25
|
others = _objectWithoutProperties(props, _excluded2);
|
|
22
|
-
return /*#__PURE__*/React.createElement(
|
|
26
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
27
|
+
hashPriority: "high",
|
|
28
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
29
|
+
}, /*#__PURE__*/React.createElement(_Descriptions.Item, _extends({
|
|
23
30
|
span: 8
|
|
24
|
-
}, others), children);
|
|
31
|
+
}, others), children));
|
|
25
32
|
};
|
|
26
33
|
export default PageDescriptions;
|
package/dist/DownLoad/index.js
CHANGED
|
@@ -19,6 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
import React, { Component } from 'react';
|
|
20
20
|
// import PropTypes from 'prop-types';
|
|
21
21
|
|
|
22
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
22
23
|
import { storage } from "./..";
|
|
23
24
|
/* eslint-disable react/forbid-prop-types */
|
|
24
25
|
|
|
@@ -173,7 +174,10 @@ var DownLoad = /*#__PURE__*/function (_Component) {
|
|
|
173
174
|
}
|
|
174
175
|
});
|
|
175
176
|
_defineProperty(_assertThisInitialized(_this), "renderProgress", function (percent) {
|
|
176
|
-
return _this.props.progress || /*#__PURE__*/React.createElement(
|
|
177
|
+
return _this.props.progress || /*#__PURE__*/React.createElement(StyleProvider, {
|
|
178
|
+
hashPriority: "high",
|
|
179
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
180
|
+
}, /*#__PURE__*/React.createElement(_Progress, {
|
|
177
181
|
showInfo: false,
|
|
178
182
|
percent: percent,
|
|
179
183
|
status: "active",
|
|
@@ -181,7 +185,7 @@ var DownLoad = /*#__PURE__*/function (_Component) {
|
|
|
181
185
|
from: '#2E61F2',
|
|
182
186
|
to: '#ffffff'
|
|
183
187
|
}
|
|
184
|
-
});
|
|
188
|
+
}));
|
|
185
189
|
});
|
|
186
190
|
_defineProperty(_assertThisInitialized(_this), "renderText", function () {
|
|
187
191
|
return _this.props.text || '下载';
|
|
@@ -20,6 +20,8 @@ import React, { Component } from 'react';
|
|
|
20
20
|
// import PropTypes from 'prop-types';
|
|
21
21
|
|
|
22
22
|
import { storage } from "./..";
|
|
23
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
24
|
+
|
|
23
25
|
/* eslint-disable react/forbid-prop-types */
|
|
24
26
|
|
|
25
27
|
;
|
|
@@ -146,7 +148,10 @@ var DownLoad = /*#__PURE__*/function (_Component) {
|
|
|
146
148
|
}
|
|
147
149
|
});
|
|
148
150
|
_defineProperty(_assertThisInitialized(_this), "renderProgress", function (percent) {
|
|
149
|
-
return _this.props.progress || /*#__PURE__*/React.createElement(
|
|
151
|
+
return _this.props.progress || /*#__PURE__*/React.createElement(StyleProvider, {
|
|
152
|
+
hashPriority: "high",
|
|
153
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
154
|
+
}, /*#__PURE__*/React.createElement(_Progress, {
|
|
150
155
|
showInfo: false,
|
|
151
156
|
percent: percent,
|
|
152
157
|
status: "active",
|
|
@@ -154,7 +159,7 @@ var DownLoad = /*#__PURE__*/function (_Component) {
|
|
|
154
159
|
from: '#2E61F2',
|
|
155
160
|
to: '#ffffff'
|
|
156
161
|
}
|
|
157
|
-
});
|
|
162
|
+
}));
|
|
158
163
|
});
|
|
159
164
|
_defineProperty(_assertThisInitialized(_this), "renderText", function () {
|
|
160
165
|
return _this.props.text || '下载';
|
package/dist/Drawer/index.js
CHANGED
|
@@ -25,6 +25,7 @@ import { getDataPrivilege, saveDataPrivilege, updateDataPrivilege } from "./serv
|
|
|
25
25
|
import "./style.less";
|
|
26
26
|
import { SelectOrg, SelectRoleDataPremission } from "./..";
|
|
27
27
|
import { getMenuId } from "../VenusTable/handleVenusTableFunctions";
|
|
28
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* 表单回显
|
|
@@ -188,7 +189,10 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
188
189
|
return _ref2.apply(this, arguments);
|
|
189
190
|
};
|
|
190
191
|
}();
|
|
191
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
192
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
193
|
+
hashPriority: "high",
|
|
194
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
195
|
+
}, /*#__PURE__*/React.createElement(DrawerForm, {
|
|
192
196
|
form: form,
|
|
193
197
|
onFinish: onFinish,
|
|
194
198
|
title: "\u6743\u9650\u63A7\u5236",
|
|
@@ -242,5 +246,5 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
242
246
|
required: false,
|
|
243
247
|
message: '请选择部门!'
|
|
244
248
|
}]
|
|
245
|
-
}, /*#__PURE__*/React.createElement(SelectOrg, null))))));
|
|
249
|
+
}, /*#__PURE__*/React.createElement(SelectOrg, null)))))));
|
|
246
250
|
});
|
package/dist/Error/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import _Result from "antd/es/result";
|
|
|
3
3
|
import "antd/es/button/style";
|
|
4
4
|
import _Button from "antd/es/button";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
6
7
|
import { getUmi } from "./..";
|
|
7
8
|
var _getUmi = getUmi(),
|
|
8
9
|
history = _getUmi.history;
|
|
@@ -10,7 +11,10 @@ var App = function App(props) {
|
|
|
10
11
|
var onHome = function onHome() {
|
|
11
12
|
history.push("/loginLayout/login");
|
|
12
13
|
};
|
|
13
|
-
return /*#__PURE__*/React.createElement(
|
|
14
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
15
|
+
hashPriority: "high",
|
|
16
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
17
|
+
}, /*#__PURE__*/React.createElement(_Result, {
|
|
14
18
|
status: "403",
|
|
15
19
|
title: "403",
|
|
16
20
|
subTitle: "\u5BF9\u4E0D\u8D77\uFF0C\u6CA1\u6709\u6743\u9650\u8BBF\u95EE",
|
|
@@ -18,6 +22,6 @@ var App = function App(props) {
|
|
|
18
22
|
type: "primary",
|
|
19
23
|
onClick: onHome
|
|
20
24
|
}, "\u8FD4\u56DE\u9996\u9875")
|
|
21
|
-
});
|
|
25
|
+
}));
|
|
22
26
|
};
|
|
23
27
|
export default App;
|
|
@@ -6,6 +6,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import "./styles.less";
|
|
9
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
9
10
|
var NumberUnits = function NumberUnits(props) {
|
|
10
11
|
var value = props.value,
|
|
11
12
|
unitName = props.unitName,
|
|
@@ -19,12 +20,15 @@ var NumberUnits = function NumberUnits(props) {
|
|
|
19
20
|
};
|
|
20
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
22
|
className: "numberContainer"
|
|
23
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
24
|
+
hashPriority: "high",
|
|
25
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
22
26
|
}, /*#__PURE__*/React.createElement(_InputNumber, _extends({}, others, {
|
|
23
27
|
value: unitObj ? unitObj.get(value) : value,
|
|
24
28
|
onChange: onChange
|
|
25
29
|
})), /*#__PURE__*/React.createElement("span", {
|
|
26
30
|
className: "unit"
|
|
27
|
-
}, " %"));
|
|
31
|
+
}, " %")));
|
|
28
32
|
};
|
|
29
33
|
export var unitConfig = {
|
|
30
34
|
percent: {
|
|
@@ -6,6 +6,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import "./styles.less";
|
|
9
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
9
10
|
var NumberUnits = function NumberUnits(props) {
|
|
10
11
|
var value = props.value,
|
|
11
12
|
unitName = props.unitName,
|
|
@@ -25,12 +26,15 @@ var NumberUnits = function NumberUnits(props) {
|
|
|
25
26
|
};
|
|
26
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
28
|
className: "numberUnitContainer"
|
|
29
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
30
|
+
hashPriority: "high",
|
|
31
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
28
32
|
}, /*#__PURE__*/React.createElement(_InputNumber, _extends({}, others, {
|
|
29
33
|
value: unitObj ? unitObj.get(value) : value,
|
|
30
34
|
onChange: onChange
|
|
31
35
|
})), /*#__PURE__*/React.createElement("span", {
|
|
32
36
|
className: "numberUnit"
|
|
33
|
-
}, " ", renderUnit()));
|
|
37
|
+
}, " ", renderUnit())));
|
|
34
38
|
};
|
|
35
39
|
export var unitConfig = {
|
|
36
40
|
million: {
|
package/dist/ProForm/index.js
CHANGED
|
@@ -67,6 +67,7 @@ import React from 'react';
|
|
|
67
67
|
import classnames from 'classnames';
|
|
68
68
|
import { CheckBoxInput, NumberPercent, NumberUnit, RadioAndInput, Search, TreeSelect, UploadImage, VenusUpload, Upload } from "./..";
|
|
69
69
|
import "./styles.less";
|
|
70
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
70
71
|
var ProForm = function ProForm(props) {
|
|
71
72
|
var children = props.children,
|
|
72
73
|
pageLoading = props.pageLoading,
|
|
@@ -77,6 +78,9 @@ var ProForm = function ProForm(props) {
|
|
|
77
78
|
others = _objectWithoutProperties(props, _excluded);
|
|
78
79
|
return /*#__PURE__*/React.createElement("div", {
|
|
79
80
|
className: classnames("wrap", pageFormClassName)
|
|
81
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
82
|
+
hashPriority: "high",
|
|
83
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
80
84
|
}, /*#__PURE__*/React.createElement(_Spin, {
|
|
81
85
|
spinning: !!pageLoading
|
|
82
86
|
}, /*#__PURE__*/React.createElement(_Form, _extends({
|
|
@@ -104,7 +108,7 @@ var ProForm = function ProForm(props) {
|
|
|
104
108
|
width: 120
|
|
105
109
|
},
|
|
106
110
|
onClick: submitter.onCancel
|
|
107
|
-
}, "\u53D6\u6D88")))));
|
|
111
|
+
}, "\u53D6\u6D88"))))));
|
|
108
112
|
};
|
|
109
113
|
export var FormGroup = function FormGroup(props) {
|
|
110
114
|
var children = props.children,
|
|
@@ -13,6 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
15
|
import React, { useState, useEffect } from 'react';
|
|
16
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
16
17
|
var RadioAndInput = function RadioAndInput(props) {
|
|
17
18
|
var _props$comAttr = props.comAttr,
|
|
18
19
|
comAttr = _props$comAttr === void 0 ? {} : _props$comAttr,
|
|
@@ -76,6 +77,9 @@ var RadioAndInput = function RadioAndInput(props) {
|
|
|
76
77
|
display: "flex",
|
|
77
78
|
flexDirection: "row"
|
|
78
79
|
}
|
|
80
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
81
|
+
hashPriority: "high",
|
|
82
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
79
83
|
}, /*#__PURE__*/React.createElement(_Radio.Group, _extends({
|
|
80
84
|
style: {
|
|
81
85
|
display: "flex"
|
|
@@ -90,6 +94,6 @@ var RadioAndInput = function RadioAndInput(props) {
|
|
|
90
94
|
},
|
|
91
95
|
value: inputText,
|
|
92
96
|
onChange: onInput
|
|
93
|
-
})) : null));
|
|
97
|
+
})) : null)));
|
|
94
98
|
};
|
|
95
99
|
export default RadioAndInput;
|
package/dist/Search/index.js
CHANGED
|
@@ -18,6 +18,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
18
18
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19
19
|
import React, { useState, useEffect } from 'react';
|
|
20
20
|
import lodash from 'lodash';
|
|
21
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
21
22
|
var Option = _Select.Option;
|
|
22
23
|
var SelectUser = function SelectUser(props) {
|
|
23
24
|
var request = props.request,
|
|
@@ -89,7 +90,10 @@ var SelectUser = function SelectUser(props) {
|
|
|
89
90
|
key: d[newFieldName.key]
|
|
90
91
|
}, result), d[newFieldName.label]);
|
|
91
92
|
});
|
|
92
|
-
return /*#__PURE__*/React.createElement(
|
|
93
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
94
|
+
hashPriority: "high",
|
|
95
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
96
|
+
}, /*#__PURE__*/React.createElement(_Select, _extends({
|
|
93
97
|
width: "100%",
|
|
94
98
|
showSearch: true,
|
|
95
99
|
placeholder: props.placeholder || '请选择',
|
|
@@ -106,6 +110,6 @@ var SelectUser = function SelectUser(props) {
|
|
|
106
110
|
}, others, {
|
|
107
111
|
value: value,
|
|
108
112
|
onChange: handleChange
|
|
109
|
-
}), options);
|
|
113
|
+
}), options));
|
|
110
114
|
};
|
|
111
115
|
export default SelectUser;
|
|
@@ -16,6 +16,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
16
16
|
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; }
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import "./styles.less";
|
|
19
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
19
20
|
import { SearchOutlined } from '@ant-design/icons';
|
|
20
21
|
var RangePicker = _DatePicker.RangePicker;
|
|
21
22
|
|
|
@@ -48,6 +49,9 @@ export var getColumnSearchProps = function getColumnSearchProps(dataIndex) {
|
|
|
48
49
|
style: {
|
|
49
50
|
padding: 8
|
|
50
51
|
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
53
|
+
hashPriority: "high",
|
|
54
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
51
55
|
}, /*#__PURE__*/React.createElement(_Input, {
|
|
52
56
|
placeholder: "\u641C\u7D22",
|
|
53
57
|
value: selectedKeys[0],
|
|
@@ -88,14 +92,17 @@ export var getColumnSearchProps = function getColumnSearchProps(dataIndex) {
|
|
|
88
92
|
closeDropdown: false
|
|
89
93
|
});
|
|
90
94
|
}
|
|
91
|
-
}, "\u8FC7\u6EE4")));
|
|
95
|
+
}, "\u8FC7\u6EE4"))));
|
|
92
96
|
},
|
|
93
97
|
filterIcon: function filterIcon(filtered) {
|
|
94
|
-
return /*#__PURE__*/React.createElement(
|
|
98
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
99
|
+
hashPriority: "high",
|
|
100
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
101
|
+
}, /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
95
102
|
style: {
|
|
96
103
|
color: filtered ? '#1890ff' : undefined
|
|
97
104
|
}
|
|
98
|
-
});
|
|
105
|
+
}));
|
|
99
106
|
},
|
|
100
107
|
onFilter: function onFilter(value, record) {
|
|
101
108
|
return record[dataIndex] ? record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()) : '';
|
|
@@ -121,6 +128,9 @@ export var getColumnDateSearchProps = function getColumnDateSearchProps(dataInde
|
|
|
121
128
|
style: {
|
|
122
129
|
padding: 8
|
|
123
130
|
}
|
|
131
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
132
|
+
hashPriority: "high",
|
|
133
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
124
134
|
}, /*#__PURE__*/React.createElement(_Space, {
|
|
125
135
|
direction: "vertical",
|
|
126
136
|
size: 12
|
|
@@ -158,14 +168,17 @@ export var getColumnDateSearchProps = function getColumnDateSearchProps(dataInde
|
|
|
158
168
|
closeDropdown: false
|
|
159
169
|
});
|
|
160
170
|
}
|
|
161
|
-
}, "\u8FC7\u6EE4"))));
|
|
171
|
+
}, "\u8FC7\u6EE4")))));
|
|
162
172
|
},
|
|
163
173
|
filterIcon: function filterIcon(filtered) {
|
|
164
|
-
return /*#__PURE__*/React.createElement(
|
|
174
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
175
|
+
hashPriority: "high",
|
|
176
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
177
|
+
}, /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
165
178
|
style: {
|
|
166
179
|
color: filtered ? '#1890ff' : undefined
|
|
167
180
|
}
|
|
168
|
-
});
|
|
181
|
+
}));
|
|
169
182
|
},
|
|
170
183
|
onFilter: function onFilter(value, record) {
|
|
171
184
|
var start = new Date(value[0]);
|
|
@@ -192,6 +205,9 @@ export var getColumnNumberSearchProps = function getColumnNumberSearchProps(data
|
|
|
192
205
|
style: {
|
|
193
206
|
padding: 8
|
|
194
207
|
}
|
|
208
|
+
}, /*#__PURE__*/React.createElement(StyleProvider, {
|
|
209
|
+
hashPriority: "high",
|
|
210
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
195
211
|
}, /*#__PURE__*/React.createElement(_Space, {
|
|
196
212
|
direction: "vertical",
|
|
197
213
|
size: 12
|
|
@@ -258,14 +274,17 @@ export var getColumnNumberSearchProps = function getColumnNumberSearchProps(data
|
|
|
258
274
|
closeDropdown: false
|
|
259
275
|
});
|
|
260
276
|
}
|
|
261
|
-
}, "\u8FC7\u6EE4"))));
|
|
277
|
+
}, "\u8FC7\u6EE4")))));
|
|
262
278
|
},
|
|
263
279
|
filterIcon: function filterIcon(filtered) {
|
|
264
|
-
return /*#__PURE__*/React.createElement(
|
|
280
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
281
|
+
hashPriority: "high",
|
|
282
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
283
|
+
}, /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
265
284
|
style: {
|
|
266
285
|
color: filtered ? '#1890ff' : undefined
|
|
267
286
|
}
|
|
268
|
-
});
|
|
287
|
+
}));
|
|
269
288
|
},
|
|
270
289
|
onFilter: true,
|
|
271
290
|
render: function render(text) {
|
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
import React, { useState, useEffect } from 'react';
|
|
15
15
|
import { storage, listAppData } from "../..";
|
|
16
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
16
17
|
|
|
17
18
|
/**应用下拉 */
|
|
18
19
|
var SelectApp = function SelectApp(props) {
|
|
@@ -117,10 +118,13 @@ var SelectApp = function SelectApp(props) {
|
|
|
117
118
|
}
|
|
118
119
|
return data;
|
|
119
120
|
};
|
|
120
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, data != null && data.length > 0 ? /*#__PURE__*/React.createElement(
|
|
121
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, data != null && data.length > 0 ? /*#__PURE__*/React.createElement(StyleProvider, {
|
|
122
|
+
hashPriority: "high",
|
|
123
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
124
|
+
}, /*#__PURE__*/React.createElement(_Segmented, {
|
|
121
125
|
defaultValue: value,
|
|
122
126
|
options: options(data),
|
|
123
127
|
onChange: handleChange
|
|
124
|
-
}) : null);
|
|
128
|
+
})) : null);
|
|
125
129
|
};
|
|
126
130
|
export default SelectApp;
|
|
@@ -15,6 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
import React, { useState, useEffect } from 'react';
|
|
16
16
|
import lodash from 'lodash';
|
|
17
17
|
import { getSecLevelDataList } from "../..";
|
|
18
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
18
19
|
var Option = _Select.Option;
|
|
19
20
|
var SelectKYSeclevel = function SelectKYSeclevel(props) {
|
|
20
21
|
var _useState = useState(undefined),
|
|
@@ -79,7 +80,10 @@ var SelectKYSeclevel = function SelectKYSeclevel(props) {
|
|
|
79
80
|
value: d.id
|
|
80
81
|
}, d.secLevelName);
|
|
81
82
|
});
|
|
82
|
-
return /*#__PURE__*/React.createElement(
|
|
83
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
84
|
+
hashPriority: "high",
|
|
85
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
86
|
+
}, /*#__PURE__*/React.createElement(_Select, {
|
|
83
87
|
style: props.style ? props.style : {
|
|
84
88
|
width: '100%'
|
|
85
89
|
},
|
|
@@ -98,6 +102,6 @@ var SelectKYSeclevel = function SelectKYSeclevel(props) {
|
|
|
98
102
|
notFoundContent: fetching ? /*#__PURE__*/React.createElement(_Spin, {
|
|
99
103
|
size: "small"
|
|
100
104
|
}) : null
|
|
101
|
-
}, options);
|
|
105
|
+
}, options));
|
|
102
106
|
};
|
|
103
107
|
export default SelectKYSeclevel;
|
|
@@ -16,6 +16,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
16
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
17
|
import React, { useState, useEffect } from 'react';
|
|
18
18
|
import { getUserOrgTreeList } from "../..";
|
|
19
|
+
import { StyleProvider, legacyLogicalPropertiesTransformer } from "@ant-design/cssinjs";
|
|
19
20
|
var TreeNode = _TreeSelect.TreeNode;
|
|
20
21
|
var SelectOrg = function SelectOrg(props) {
|
|
21
22
|
var _useState = useState(undefined),
|
|
@@ -83,7 +84,10 @@ var SelectOrg = function SelectOrg(props) {
|
|
|
83
84
|
});
|
|
84
85
|
});
|
|
85
86
|
};
|
|
86
|
-
return /*#__PURE__*/React.createElement(
|
|
87
|
+
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
88
|
+
hashPriority: "high",
|
|
89
|
+
transformers: [legacyLogicalPropertiesTransformer]
|
|
90
|
+
}, /*#__PURE__*/React.createElement(_TreeSelect, {
|
|
87
91
|
showSearch: true,
|
|
88
92
|
style: {
|
|
89
93
|
width: '100%'
|
|
@@ -103,6 +107,6 @@ var SelectOrg = function SelectOrg(props) {
|
|
|
103
107
|
notFoundContent: loading ? /*#__PURE__*/React.createElement(_Spin, null) : /*#__PURE__*/React.createElement(_Empty, {
|
|
104
108
|
image: _Empty.PRESENTED_IMAGE_SIMPLE
|
|
105
109
|
})
|
|
106
|
-
}, renderNode(data));
|
|
110
|
+
}, renderNode(data)));
|
|
107
111
|
};
|
|
108
112
|
export default SelectOrg;
|