@sooloer/pages 0.1.21 → 0.1.22
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.
|
@@ -75,13 +75,9 @@ var Field = function Field(_ref) {
|
|
|
75
75
|
style: {
|
|
76
76
|
width: '100%'
|
|
77
77
|
},
|
|
78
|
-
placeholder: placeholder || "\u8BF7\u9009\u62E9".concat(label)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
key: item.value,
|
|
82
|
-
value: item.value
|
|
83
|
-
}, item.label);
|
|
84
|
-
}));
|
|
78
|
+
placeholder: placeholder || "\u8BF7\u9009\u62E9".concat(label),
|
|
79
|
+
options: options
|
|
80
|
+
}, argProps));
|
|
85
81
|
break;
|
|
86
82
|
case 'checkbox':
|
|
87
83
|
node = /*#__PURE__*/React.createElement(ProCheckbox, {
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
import { ProFilter } from "../..";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
export var GRADE_SOURCE = [{
|
|
4
|
+
label: '小学',
|
|
5
|
+
options: [{
|
|
6
|
+
label: '一年级',
|
|
7
|
+
value: '1-1'
|
|
8
|
+
}, {
|
|
9
|
+
label: '二年级',
|
|
10
|
+
value: '1-2'
|
|
11
|
+
}, {
|
|
12
|
+
label: '三年级',
|
|
13
|
+
value: '1-3'
|
|
14
|
+
}, {
|
|
15
|
+
label: '四年级',
|
|
16
|
+
value: '1-4'
|
|
17
|
+
}, {
|
|
18
|
+
label: '五年级',
|
|
19
|
+
value: '1-5'
|
|
20
|
+
}, {
|
|
21
|
+
label: '六年级',
|
|
22
|
+
value: '1-6'
|
|
23
|
+
}]
|
|
24
|
+
}, {
|
|
25
|
+
label: '初中',
|
|
26
|
+
options: [{
|
|
27
|
+
label: '五四制六年级',
|
|
28
|
+
value: '2-0'
|
|
29
|
+
}, {
|
|
30
|
+
label: '七年级',
|
|
31
|
+
value: '2-1'
|
|
32
|
+
}, {
|
|
33
|
+
label: '八年级',
|
|
34
|
+
value: '2-2'
|
|
35
|
+
}, {
|
|
36
|
+
label: '九年级',
|
|
37
|
+
value: '2-3'
|
|
38
|
+
}]
|
|
39
|
+
}, {
|
|
40
|
+
label: '高中',
|
|
41
|
+
options: [{
|
|
42
|
+
label: '高一',
|
|
43
|
+
value: '3-1'
|
|
44
|
+
}, {
|
|
45
|
+
label: '高二',
|
|
46
|
+
value: '3-2'
|
|
47
|
+
}, {
|
|
48
|
+
label: '高三',
|
|
49
|
+
value: '3-3'
|
|
50
|
+
}]
|
|
51
|
+
}];
|
|
3
52
|
export default (function () {
|
|
4
53
|
var fields = [{
|
|
5
54
|
label: '发票号码',
|
|
@@ -13,13 +62,7 @@ export default (function () {
|
|
|
13
62
|
type: 'select',
|
|
14
63
|
widgetProps: {
|
|
15
64
|
placeholder: '请选择',
|
|
16
|
-
options:
|
|
17
|
-
label: '电子专票',
|
|
18
|
-
value: 1
|
|
19
|
-
}, {
|
|
20
|
-
label: '电子普票',
|
|
21
|
-
value: 2
|
|
22
|
-
}]
|
|
65
|
+
options: GRADE_SOURCE
|
|
23
66
|
}
|
|
24
67
|
}];
|
|
25
68
|
var handleSearch = function handleSearch(fieldsValue) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProFilter } from "../..";
|
|
2
|
-
import { Select } from 'antd';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
export default (function () {
|
|
5
4
|
var fields = [{
|
|
@@ -18,10 +17,11 @@ export default (function () {
|
|
|
18
17
|
maxTagCount: 1,
|
|
19
18
|
optionLabelProp: 'label',
|
|
20
19
|
optionRender: function optionRender(option) {
|
|
21
|
-
return /*#__PURE__*/React.createElement(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
style: {
|
|
22
|
+
display: 'flex',
|
|
23
|
+
flexDirection: 'column'
|
|
24
|
+
}
|
|
25
25
|
}, /*#__PURE__*/React.createElement("div", null, "\u7B80\u79F0\uFF1A", option.label), /*#__PURE__*/React.createElement("div", {
|
|
26
26
|
style: {
|
|
27
27
|
fontSize: '12px',
|