cloud-b2b 1.0.7 → 1.0.8
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/es/Indent/package.json +6 -6
- package/es/SuperForm2/SuperForm.js +21 -21
- package/es/SuperForm2/SuperForm.less +52 -52
- package/es/SuperForm2/package.json +6 -6
- package/es/SuperTab/SuperTab.js +8 -8
- package/es/SuperTab/SuperTab.less +43 -43
- package/es/SuperTab/package.json +6 -6
- package/es/SuperTab2/SuperTab2.js +7 -7
- package/es/SuperTab2/SuperTab2.less +18 -18
- package/es/SuperTab2/package.json +6 -6
- package/es/SuperTable2/SuperTable2.less +16 -0
- package/es/SuperTable3/FilterDropDown.less +29 -29
- package/es/SuperTable3/SuperTable.js +24 -24
- package/es/SuperTable3/SuperTable.less +99 -99
- package/es/SuperTable3/package.json +6 -6
- package/es/style.less +1 -1
- package/lib/Indent/package.json +6 -6
- package/lib/SuperForm2/SuperForm.js +21 -21
- package/lib/SuperForm2/SuperForm.less +52 -52
- package/lib/SuperForm2/package.json +6 -6
- package/lib/SuperTab/SuperTab.js +8 -8
- package/lib/SuperTab/SuperTab.less +43 -43
- package/lib/SuperTab/package.json +6 -6
- package/lib/SuperTab2/SuperTab2.js +7 -7
- package/lib/SuperTab2/SuperTab2.less +18 -18
- package/lib/SuperTab2/package.json +6 -6
- package/lib/SuperTable2/SuperTable2.less +16 -0
- package/lib/SuperTable3/FilterDropDown.less +29 -29
- package/lib/SuperTable3/SuperTable.js +24 -24
- package/lib/SuperTable3/SuperTable.less +99 -99
- package/lib/SuperTable3/package.json +6 -6
- package/lib/style.less +1 -1
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
@import '../variables.less';
|
|
2
|
-
|
|
3
|
-
.@{cloudlink-prefix}-SuperTable3-FilterDropDown {
|
|
4
|
-
background: white;
|
|
5
|
-
padding: @padding-vertical @padding-horizontal;
|
|
6
|
-
border-radius: @border-radius-base;
|
|
7
|
-
border: 1px solid #d9d9d9;
|
|
8
|
-
|
|
9
|
-
> :first-child {
|
|
10
|
-
width: 135px;
|
|
11
|
-
margin-right: 10px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.date{
|
|
15
|
-
background: white;
|
|
16
|
-
padding: @padding-vertical @padding-horizontal;
|
|
17
|
-
border-radius: @border-radius-base;
|
|
18
|
-
border: 1px solid #d9d9d9;
|
|
19
|
-
|
|
20
|
-
> :first-child > div {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
> :last-child {
|
|
25
|
-
text-align: right;
|
|
26
|
-
margin-top: 5px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
@import '../variables.less';
|
|
2
|
+
|
|
3
|
+
.@{cloudlink-prefix}-SuperTable3-FilterDropDown {
|
|
4
|
+
background: white;
|
|
5
|
+
padding: @padding-vertical @padding-horizontal;
|
|
6
|
+
border-radius: @border-radius-base;
|
|
7
|
+
border: 1px solid #d9d9d9;
|
|
8
|
+
|
|
9
|
+
> :first-child {
|
|
10
|
+
width: 135px;
|
|
11
|
+
margin-right: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.date{
|
|
15
|
+
background: white;
|
|
16
|
+
padding: @padding-vertical @padding-horizontal;
|
|
17
|
+
border-radius: @border-radius-base;
|
|
18
|
+
border: 1px solid #d9d9d9;
|
|
19
|
+
|
|
20
|
+
> :first-child > div {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
> :last-child {
|
|
25
|
+
text-align: right;
|
|
26
|
+
margin-top: 5px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -102,13 +102,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
102
102
|
|
|
103
103
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
104
104
|
|
|
105
|
-
/**
|
|
106
|
-
* sorter: [可选],不传表示该列不支持排序;为string表示按字符串排序;为number表示按数字大小排序
|
|
107
|
-
* filter: [可选],是否支持过滤,默认为false
|
|
108
|
-
* link: [可选],为true表示超链接,内容来至items;为字符串表示超链接,内容就是该字符串;为字符串‘list’表示超链接数组,内容就是该items对应key对象数组的linkTitleKey属性拼接
|
|
109
|
-
* linkTitleKey: [可选],当link为'list'表示超链接组时,该值表示要拼接展示的属性key值
|
|
110
|
-
* isDateFilterByStartAndEnd: [可选],为true时做过滤操作会显示时间段搜索,默认为false
|
|
111
|
-
*
|
|
105
|
+
/**
|
|
106
|
+
* sorter: [可选],不传表示该列不支持排序;为string表示按字符串排序;为number表示按数字大小排序
|
|
107
|
+
* filter: [可选],是否支持过滤,默认为false
|
|
108
|
+
* link: [可选],为true表示超链接,内容来至items;为字符串表示超链接,内容就是该字符串;为字符串‘list’表示超链接数组,内容就是该items对应key对象数组的linkTitleKey属性拼接
|
|
109
|
+
* linkTitleKey: [可选],当link为'list'表示超链接组时,该值表示要拼接展示的属性key值
|
|
110
|
+
* isDateFilterByStartAndEnd: [可选],为true时做过滤操作会显示时间段搜索,默认为false
|
|
111
|
+
*
|
|
112
112
|
*/
|
|
113
113
|
var ColType = {
|
|
114
114
|
key: _propTypes["default"].string.isRequired,
|
|
@@ -126,12 +126,12 @@ var ColType = {
|
|
|
126
126
|
var ItemType = {
|
|
127
127
|
checked: _propTypes["default"].bool
|
|
128
128
|
};
|
|
129
|
-
/**
|
|
130
|
-
* onCheck:点击复选框时触发, 原型为onCheck(checkedRows)
|
|
131
|
-
* onRadio: 点击单选按钮时触发,原型为func(checkedRows)
|
|
132
|
-
* onDoubleClick: 行双击时触发,原型func(rowIndex)
|
|
133
|
-
* onLink: 点击超链接时触发,原型为func(key, rowIndex, item)
|
|
134
|
-
* onTableChange: 排序信息改变时触发,原型为func(sortInfo, filterInfo)
|
|
129
|
+
/**
|
|
130
|
+
* onCheck:点击复选框时触发, 原型为onCheck(checkedRows)
|
|
131
|
+
* onRadio: 点击单选按钮时触发,原型为func(checkedRows)
|
|
132
|
+
* onDoubleClick: 行双击时触发,原型func(rowIndex)
|
|
133
|
+
* onLink: 点击超链接时触发,原型为func(key, rowIndex, item)
|
|
134
|
+
* onTableChange: 排序信息改变时触发,原型为func(sortInfo, filterInfo)
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
137
|
var CallbackType = {
|
|
@@ -141,17 +141,17 @@ var CallbackType = {
|
|
|
141
141
|
onLink: _propTypes["default"].func,
|
|
142
142
|
onTableChange: _propTypes["default"].func
|
|
143
143
|
};
|
|
144
|
-
/**
|
|
145
|
-
* checkbox: [可选],是否有复选框,默认为true
|
|
146
|
-
* isPaging: [可选],是否分页,默认为false
|
|
147
|
-
* radio: [可选],是否为单选按钮,当checkbox为true时生效,默认值为false
|
|
148
|
-
* checkedRows: [可选],选中的行数,radio为true时生效
|
|
149
|
-
* index: [可选],是否有序号,默认值为true
|
|
150
|
-
* indexTitle:[可选],序号标题,默认为'序号'
|
|
151
|
-
* sortInfo: [可选],排序信息,默认为null
|
|
152
|
-
* filterInfo: [可选],过滤信息,默认为null
|
|
153
|
-
* maxHeight: [可选],设置表格的最大高度
|
|
154
|
-
* childrenKey: [可选],设置子列表数据的key,默认children
|
|
144
|
+
/**
|
|
145
|
+
* checkbox: [可选],是否有复选框,默认为true
|
|
146
|
+
* isPaging: [可选],是否分页,默认为false
|
|
147
|
+
* radio: [可选],是否为单选按钮,当checkbox为true时生效,默认值为false
|
|
148
|
+
* checkedRows: [可选],选中的行数,radio为true时生效
|
|
149
|
+
* index: [可选],是否有序号,默认值为true
|
|
150
|
+
* indexTitle:[可选],序号标题,默认为'序号'
|
|
151
|
+
* sortInfo: [可选],排序信息,默认为null
|
|
152
|
+
* filterInfo: [可选],过滤信息,默认为null
|
|
153
|
+
* maxHeight: [可选],设置表格的最大高度
|
|
154
|
+
* childrenKey: [可选],设置子列表数据的key,默认children
|
|
155
155
|
*/
|
|
156
156
|
|
|
157
157
|
var SuperTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
@import '../variables.less';
|
|
2
|
-
|
|
3
|
-
.root {
|
|
4
|
-
border-spacing: 0;
|
|
5
|
-
cursor: default;
|
|
6
|
-
|
|
7
|
-
table {
|
|
8
|
-
white-space: pre;
|
|
9
|
-
|
|
10
|
-
:global(.ant-checkbox-input) {
|
|
11
|
-
z-index: -1;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:global(.ant-table-placeholder) {
|
|
16
|
-
padding: 0;
|
|
17
|
-
|
|
18
|
-
> div {
|
|
19
|
-
margin: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.select {
|
|
24
|
-
background-color: @primary-1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.center {
|
|
28
|
-
text-align: center !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.left {
|
|
32
|
-
text-align: left !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.right {
|
|
36
|
-
text-align: right !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.noWrap{
|
|
40
|
-
white-space: nowrap;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.totalRow {
|
|
44
|
-
color: #222!important;
|
|
45
|
-
background-color: #f0f0f0!important;
|
|
46
|
-
transition: all 0s!important;
|
|
47
|
-
td {
|
|
48
|
-
border-top: 1px solid #ddd!important;
|
|
49
|
-
background-color: #f0f0f0!important;
|
|
50
|
-
border-bottom: 0!important;
|
|
51
|
-
transition: all 0s!important;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:global(.ant-table-footer) {
|
|
56
|
-
padding: 0!important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.footer {
|
|
60
|
-
vertical-align: middle;
|
|
61
|
-
overflow: auto;
|
|
62
|
-
scrollbar-width: none;
|
|
63
|
-
-ms-overflow-style: none;
|
|
64
|
-
scrollbar-color: transparent transparent;
|
|
65
|
-
scrollbar-track-color: transparent;
|
|
66
|
-
-ms-scrollbar-track-color: transparent;
|
|
67
|
-
.footerItem {
|
|
68
|
-
white-space: pre;
|
|
69
|
-
> span {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
color: #222;
|
|
72
|
-
position: relative;
|
|
73
|
-
vertical-align: middle;
|
|
74
|
-
border-top: 1px solid #dedede;
|
|
75
|
-
display: inline-block;
|
|
76
|
-
box-sizing: border-box;
|
|
77
|
-
height: 35px;
|
|
78
|
-
padding: 8px 8px 7px !important;
|
|
79
|
-
border-right: 1px solid transparent;
|
|
80
|
-
}
|
|
81
|
-
.ghost {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
filter: alpha(opacity=0);
|
|
84
|
-
}
|
|
85
|
-
.content {
|
|
86
|
-
position: absolute;
|
|
87
|
-
left: 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.footer::-webkit-scrollbar {
|
|
93
|
-
display: none;
|
|
94
|
-
width: 0!important;
|
|
95
|
-
height: 0!important;
|
|
96
|
-
opacity: 0;
|
|
97
|
-
filter: alpha(opacity=0);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
1
|
+
@import '../variables.less';
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
border-spacing: 0;
|
|
5
|
+
cursor: default;
|
|
6
|
+
|
|
7
|
+
table {
|
|
8
|
+
white-space: pre;
|
|
9
|
+
|
|
10
|
+
:global(.ant-checkbox-input) {
|
|
11
|
+
z-index: -1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:global(.ant-table-placeholder) {
|
|
16
|
+
padding: 0;
|
|
17
|
+
|
|
18
|
+
> div {
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.select {
|
|
24
|
+
background-color: @primary-1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.center {
|
|
28
|
+
text-align: center !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.left {
|
|
32
|
+
text-align: left !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.right {
|
|
36
|
+
text-align: right !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.noWrap{
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.totalRow {
|
|
44
|
+
color: #222!important;
|
|
45
|
+
background-color: #f0f0f0!important;
|
|
46
|
+
transition: all 0s!important;
|
|
47
|
+
td {
|
|
48
|
+
border-top: 1px solid #ddd!important;
|
|
49
|
+
background-color: #f0f0f0!important;
|
|
50
|
+
border-bottom: 0!important;
|
|
51
|
+
transition: all 0s!important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:global(.ant-table-footer) {
|
|
56
|
+
padding: 0!important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.footer {
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
overflow: auto;
|
|
62
|
+
scrollbar-width: none;
|
|
63
|
+
-ms-overflow-style: none;
|
|
64
|
+
scrollbar-color: transparent transparent;
|
|
65
|
+
scrollbar-track-color: transparent;
|
|
66
|
+
-ms-scrollbar-track-color: transparent;
|
|
67
|
+
.footerItem {
|
|
68
|
+
white-space: pre;
|
|
69
|
+
> span {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
color: #222;
|
|
72
|
+
position: relative;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
border-top: 1px solid #dedede;
|
|
75
|
+
display: inline-block;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
height: 35px;
|
|
78
|
+
padding: 8px 8px 7px !important;
|
|
79
|
+
border-right: 1px solid transparent;
|
|
80
|
+
}
|
|
81
|
+
.ghost {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
filter: alpha(opacity=0);
|
|
84
|
+
}
|
|
85
|
+
.content {
|
|
86
|
+
position: absolute;
|
|
87
|
+
left: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.footer::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
width: 0!important;
|
|
95
|
+
height: 0!important;
|
|
96
|
+
opacity: 0;
|
|
97
|
+
filter: alpha(opacity=0);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SuperTable",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./SuperTable.js"
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "SuperTable",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"main": "./SuperTable.js"
|
|
6
|
+
}
|
package/lib/style.less
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@import "./SuperTable3/FilterDropDown.less";
|
|
12
12
|
@import "./Header/Header.less";
|
|
13
13
|
@import "./Header/Vertical.less";
|
|
14
|
-
@import "./InputEditor/
|
|
14
|
+
@import "./InputEditor/inputEditor.less";
|
|
15
15
|
@import "./Layout/Layout.less";
|
|
16
16
|
@import "./LayoutLink/LayoutLink.less";
|
|
17
17
|
@import "./Loading/Loading.less";
|