@zgfe/modules-settings 2.1.0-zhongyuan.22 → 2.1.0-zhongyuan.23
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.
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect, forwardRef, useState, useImperativeHandle } from 'react';
|
|
8
|
-
import { Form, Input, Alert, Radio } from 'antd';
|
|
8
|
+
import { Form, Input, Alert, Radio, Select } from 'antd';
|
|
9
9
|
import './index.less';
|
|
10
10
|
import { classPrefix } from './index';
|
|
11
11
|
export var AppVersion;
|
|
@@ -25,7 +25,8 @@ export var AppVersion;
|
|
|
25
25
|
})(AppVersion || (AppVersion = {}));
|
|
26
26
|
var ApplicationForm = function ApplicationForm(props, ref) {
|
|
27
27
|
var name = props.name,
|
|
28
|
-
currentUser = props.currentUser
|
|
28
|
+
currentUser = props.currentUser,
|
|
29
|
+
appType = props.appType;
|
|
29
30
|
var _useState = useState(true),
|
|
30
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
32
|
showChunk = _useState2[0],
|
|
@@ -55,9 +56,13 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
55
56
|
name: 'name',
|
|
56
57
|
value: name
|
|
57
58
|
}]);
|
|
59
|
+
form.setFields([{
|
|
60
|
+
name: 'appType',
|
|
61
|
+
value: appType
|
|
62
|
+
}]);
|
|
58
63
|
setShowchunk(false);
|
|
59
64
|
}
|
|
60
|
-
}, [name]);
|
|
65
|
+
}, [name, appType]);
|
|
61
66
|
return /*#__PURE__*/React.createElement(Form, {
|
|
62
67
|
form: form,
|
|
63
68
|
labelCol: {
|
|
@@ -97,6 +102,30 @@ var ApplicationForm = function ApplicationForm(props, ref) {
|
|
|
97
102
|
placeholder: "\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0",
|
|
98
103
|
showCount: true,
|
|
99
104
|
maxLength: 20
|
|
105
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
106
|
+
name: 'appType',
|
|
107
|
+
className: "app-list-form-item"
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
109
|
+
defaultValue: "1",
|
|
110
|
+
options: [{
|
|
111
|
+
value: '1',
|
|
112
|
+
label: '零售'
|
|
113
|
+
}, {
|
|
114
|
+
value: '2',
|
|
115
|
+
label: '公司'
|
|
116
|
+
}, {
|
|
117
|
+
value: '3',
|
|
118
|
+
label: '同业'
|
|
119
|
+
}, {
|
|
120
|
+
value: '4',
|
|
121
|
+
label: '风险'
|
|
122
|
+
}, {
|
|
123
|
+
value: '5',
|
|
124
|
+
label: '内部管理'
|
|
125
|
+
}, {
|
|
126
|
+
value: '6',
|
|
127
|
+
label: '其他'
|
|
128
|
+
}]
|
|
100
129
|
})), showChunk && (/*#__PURE__*/React.createElement(Form.Item, {
|
|
101
130
|
style: {
|
|
102
131
|
color: '#9AA1A9'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.1.0-zhongyuan.
|
|
3
|
+
"version": "2.1.0-zhongyuan.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "12c1d4ab5b6ebbeb66299e23aa8f9726672d02d8",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|