easy3wmui 0.0.3 → 0.0.6
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/assets/index.css +34 -24
- package/lib/Easy3wMGridPage/index.js +31 -32
- package/package.json +1 -1
package/assets/index.css
CHANGED
|
@@ -1,78 +1,88 @@
|
|
|
1
1
|
:root:root {
|
|
2
2
|
--adm-font-size-main: var(--adm-font-size-6);
|
|
3
3
|
}
|
|
4
|
-
:root:root
|
|
4
|
+
:root:root .adm-tabs {
|
|
5
5
|
--title-font-size: var(--adm-font-size-8);
|
|
6
6
|
}
|
|
7
|
-
:root:root
|
|
7
|
+
:root:root .adm-button {
|
|
8
8
|
font-size: var(--adm-font-size-6);
|
|
9
9
|
}
|
|
10
|
-
:root:root
|
|
10
|
+
:root:root .adm-card-header-title {
|
|
11
11
|
font-size: var(--adm-font-size-8);
|
|
12
12
|
}
|
|
13
|
-
:root:root
|
|
13
|
+
:root:root .adm-input {
|
|
14
14
|
--font-size: var(--adm-font-size-6);
|
|
15
15
|
}
|
|
16
|
-
:root:root
|
|
16
|
+
:root:root .adm-input-element {
|
|
17
17
|
border: 1px solid #d9d9d9;
|
|
18
18
|
}
|
|
19
|
-
:root:root
|
|
20
|
-
:root:root
|
|
19
|
+
:root:root .adm-input-element:focus,
|
|
20
|
+
:root:root .adm-input-element:hover {
|
|
21
21
|
border-color: var(--adm-color-primary);
|
|
22
22
|
}
|
|
23
|
-
:root:root
|
|
23
|
+
:root:root .adm-text-area {
|
|
24
24
|
--font-size: var(--adm-font-size-6);
|
|
25
25
|
}
|
|
26
|
-
:root:root
|
|
26
|
+
:root:root .adm-text-area-element {
|
|
27
27
|
border: 1px solid #d9d9d9;
|
|
28
28
|
}
|
|
29
|
-
:root:root
|
|
30
|
-
:root:root
|
|
29
|
+
:root:root .adm-text-area-element:focus,
|
|
30
|
+
:root:root .adm-text-area-element:hover {
|
|
31
31
|
border-color: var(--adm-color-primary);
|
|
32
32
|
}
|
|
33
|
-
:root:root
|
|
33
|
+
:root:root .adm-text-area-count {
|
|
34
34
|
font-size: var(--adm-font-size-6);
|
|
35
35
|
}
|
|
36
|
-
:root:root
|
|
36
|
+
:root:root .adm-selector {
|
|
37
37
|
font-size: var(--adm-font-size-6);
|
|
38
38
|
}
|
|
39
|
-
:root:root
|
|
39
|
+
:root:root .adm-rate {
|
|
40
40
|
--star-size: 14px;
|
|
41
41
|
}
|
|
42
|
-
:root:root
|
|
43
|
-
:root:root
|
|
42
|
+
:root:root .adm-radio,
|
|
43
|
+
:root:root .adm-checkbox {
|
|
44
44
|
--icon-size: 14px;
|
|
45
45
|
--font-size: 14px;
|
|
46
46
|
}
|
|
47
|
-
:root:root
|
|
47
|
+
:root:root .adm-switch {
|
|
48
48
|
--height: 20.8px;
|
|
49
49
|
}
|
|
50
|
-
:root:root
|
|
50
|
+
:root:root .adm-slider {
|
|
51
51
|
padding: 0;
|
|
52
52
|
}
|
|
53
|
-
:root:root
|
|
53
|
+
:root:root .adm-list-header {
|
|
54
54
|
--header-font-size: var(--adm-font-size-8);
|
|
55
|
+
border-bottom: var(--border-bottom);
|
|
55
56
|
}
|
|
56
|
-
:root:root
|
|
57
|
+
:root:root .adm-list-body {
|
|
57
58
|
--font-size: var(--adm-font-size-6);
|
|
58
59
|
}
|
|
59
|
-
:root:root
|
|
60
|
+
:root:root .adm-list-default .adm-list-body {
|
|
60
61
|
border-top: 0;
|
|
61
62
|
border-bottom: 0;
|
|
62
63
|
}
|
|
63
|
-
:root:root
|
|
64
|
+
:root:root .adm-form .adm-form-footer {
|
|
64
65
|
padding: 12px;
|
|
65
66
|
}
|
|
66
|
-
:root:root
|
|
67
|
+
:root:root .adm-list-card {
|
|
68
|
+
margin: 0 12px;
|
|
69
|
+
}
|
|
70
|
+
:root:root .adm-list-item {
|
|
67
71
|
border-bottom: var(--border-bottom);
|
|
68
72
|
margin: 0 12px;
|
|
69
73
|
padding-left: 0;
|
|
70
74
|
word-break: break-word;
|
|
71
75
|
}
|
|
72
|
-
:root:root
|
|
76
|
+
:root:root .adm-list-item-content {
|
|
73
77
|
border-top: 0;
|
|
74
78
|
padding-right: 0;
|
|
75
79
|
}
|
|
80
|
+
:root:root .adm-list-item-content-extra {
|
|
81
|
+
font-size: var(--adm-font-size-6);
|
|
82
|
+
}
|
|
83
|
+
:root:root .adm-collapse-panel-content-inner > .adm-list-item {
|
|
84
|
+
border-bottom: none;
|
|
85
|
+
}
|
|
76
86
|
#Easy3wMButton {
|
|
77
87
|
background: #fff;
|
|
78
88
|
}
|
|
@@ -102,41 +102,40 @@ var Easy3wMGridPage = function (_Component) {
|
|
|
102
102
|
_react2['default'].createElement(
|
|
103
103
|
Panel,
|
|
104
104
|
(0, _extends3['default'])({}, panelProps, { title: item[panelTitle] || '', key: item[panelKey] || index }),
|
|
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
|
-
_react2['default'].createElement(
|
|
105
|
+
_react2['default'].createElement(
|
|
106
|
+
_Easy3wMList2['default'],
|
|
107
|
+
listProps,
|
|
108
|
+
columns.map(function (column) {
|
|
109
|
+
var title = column.title,
|
|
110
|
+
key = column.key,
|
|
111
|
+
dataIndex = column.dataIndex;
|
|
112
|
+
|
|
113
|
+
var fieldId = dataIndex || key;
|
|
114
|
+
var extra = column.render ? column.render(item[fieldId], item) : _this.touchFormatData(item, column);
|
|
115
|
+
if (column.children) {
|
|
116
|
+
return _react2['default'].createElement(
|
|
117
|
+
_Easy3wMList2['default'],
|
|
118
|
+
(0, _extends3['default'])({ mode: 'card' }, listProps, { header: title }),
|
|
119
|
+
column.children.map(function (childrenColumn) {
|
|
120
|
+
var childrenFieldId = childrenColumn.dataIndex || childrenColumn.key;
|
|
121
|
+
var childrenExtra = childrenColumn.render ? childrenColumn.render(item[childrenFieldId], item) : _this.touchFormatData(item, childrenColumn);
|
|
122
|
+
return _react2['default'].createElement(
|
|
123
|
+
Item,
|
|
124
|
+
(0, _extends3['default'])({}, itemProps, { extra: childrenExtra }),
|
|
125
|
+
childrenColumn.title
|
|
126
|
+
);
|
|
127
|
+
})
|
|
128
|
+
);
|
|
129
|
+
} else {
|
|
130
|
+
return _react2['default'].createElement(
|
|
132
131
|
Item,
|
|
133
132
|
(0, _extends3['default'])({}, itemProps, { extra: extra }),
|
|
134
133
|
title
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
children ? _this.renderEasy3wMGridPage(children) : ''
|
|
138
|
+
)
|
|
140
139
|
)
|
|
141
140
|
);
|
|
142
141
|
});
|