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.
@@ -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/es/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/InputEditor.less";
14
+ @import "./InputEditor/inputEditor.less";
15
15
  @import "./Layout/Layout.less";
16
16
  @import "./LayoutLink/LayoutLink.less";
17
17
  @import "./Loading/Loading.less";
@@ -1,6 +1,6 @@
1
- {
2
- "name": "Indent",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./Indent.js"
6
- }
1
+ {
2
+ "name": "Indent",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./Indent.js"
6
+ }
@@ -100,15 +100,15 @@ var FormItem = _form["default"].Item;
100
100
  var defaultSize = 'small';
101
101
  var defaultColNum = 4;
102
102
  var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'captcha', 'area', 'uploadImg'];
103
- /**
104
- * key:[必须],用于唯一标识该Form下的一个表单元素
105
- * title:[必须],表单元素的标签
106
- * type:[必须],表单元素类型
107
- * required: [可选],是否为必填项
108
- * options: [可选],对象数组(type为readonly,radio,search, searchText,select, selectText时有效)
109
- * span: [可选],占据的列数,默认为1
110
- * showAdd: [可选],是否显示+号,点击+号会触发onAdd事件,默认为false
111
- * rule: [可选],用于设置校验规则
103
+ /**
104
+ * key:[必须],用于唯一标识该Form下的一个表单元素
105
+ * title:[必须],表单元素的标签
106
+ * type:[必须],表单元素类型
107
+ * required: [可选],是否为必填项
108
+ * options: [可选],对象数组(type为readonly,radio,search, searchText,select, selectText时有效)
109
+ * span: [可选],占据的列数,默认为1
110
+ * showAdd: [可选],是否显示+号,点击+号会触发onAdd事件,默认为false
111
+ * rule: [可选],用于设置校验规则
112
112
  */
113
113
 
114
114
  var ControlType = {
@@ -172,18 +172,18 @@ var Controlled = /*#__PURE__*/function (_React$Component) {
172
172
  }]);
173
173
  return Controlled;
174
174
  }(_react["default"].Component);
175
- /**
176
- * colNum:[可选],表单的列数,默认为4
177
- * readonly: [可选],为true时,所有表单元素都是只读的; 为字符串数组时,用于指定key的表单元素是只读的
178
- * hideControls: [可选],指定key的表单元素被隐藏
179
- * options: [可选],键值对,值与ControlType中options作用相同,但优先级更高
180
- * onChange:内容改变时触发,原型为func(key, value)
181
- * onSearch:搜索框中用户输入时触发,原型为func(key, title, control)
182
- * onAdd: 点击+号时触发,原型为func(key)
183
- * checkable:是否显示checkbox选择框
184
- * onOpenChange:控制日期框显示隐藏回调func(key, open)
185
- * onAreaSearch:联级选择器触发,原型为func(key - 当前联级key, title - 输入值, parentKey - 主体联级key)
186
- * OnFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
175
+ /**
176
+ * colNum:[可选],表单的列数,默认为4
177
+ * readonly: [可选],为true时,所有表单元素都是只读的; 为字符串数组时,用于指定key的表单元素是只读的
178
+ * hideControls: [可选],指定key的表单元素被隐藏
179
+ * options: [可选],键值对,值与ControlType中options作用相同,但优先级更高
180
+ * onChange:内容改变时触发,原型为func(key, value)
181
+ * onSearch:搜索框中用户输入时触发,原型为func(key, title, control)
182
+ * onAdd: 点击+号时触发,原型为func(key)
183
+ * checkable:是否显示checkbox选择框
184
+ * onOpenChange:控制日期框显示隐藏回调func(key, open)
185
+ * onAreaSearch:联级选择器触发,原型为func(key - 当前联级key, title - 输入值, parentKey - 主体联级key)
186
+ * OnFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
187
187
  */
188
188
 
189
189
 
@@ -1,52 +1,52 @@
1
- @import '../variables.less';
2
-
3
- .@{cloudlink-prefix}-SuperForm2 {
4
- position: relative;
5
-
6
- > form {
7
- overflow: hidden;
8
-
9
- > div {
10
- margin-bottom: -6px;
11
- }
12
-
13
- [role='add'] {
14
- cursor: pointer;
15
- margin-left: 4px;
16
- color: @primary-color;
17
- }
18
-
19
- :global(.ant-form-item-label) {
20
- line-height: 16px;
21
- }
22
-
23
- :global(.ant-form-item-control) > span > textArea {
24
- min-height: 22px !important;
25
- margin-bottom: 0 !important;
26
- }
27
-
28
- :global(.ant-form-item-control) input,
29
- :global(.ant-calendar-picker),
30
- :global(.ant-select) {
31
- display: block;
32
- }
33
-
34
- :global(.ant-select-selection--multiple) {
35
- border-top-width: 1px;
36
- }
37
-
38
- :global(.ant-radio-group-small) {
39
- display: block;
40
- height: @input-height-sm;
41
- }
42
-
43
- .checkbox {
44
- position: absolute;
45
- top:15px;
46
- }
47
-
48
- .formItemWithCheckbox{
49
- margin-left: 20px;
50
- }
51
- }
52
- }
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-SuperForm2 {
4
+ position: relative;
5
+
6
+ > form {
7
+ overflow: hidden;
8
+
9
+ > div {
10
+ margin-bottom: -6px;
11
+ }
12
+
13
+ [role='add'] {
14
+ cursor: pointer;
15
+ margin-left: 4px;
16
+ color: @primary-color;
17
+ }
18
+
19
+ :global(.ant-form-item-label) {
20
+ line-height: 16px;
21
+ }
22
+
23
+ :global(.ant-form-item-control) > span > textArea {
24
+ min-height: 22px !important;
25
+ margin-bottom: 0 !important;
26
+ }
27
+
28
+ :global(.ant-form-item-control) input,
29
+ :global(.ant-calendar-picker),
30
+ :global(.ant-select) {
31
+ display: block;
32
+ }
33
+
34
+ :global(.ant-select-selection--multiple) {
35
+ border-top-width: 1px;
36
+ }
37
+
38
+ :global(.ant-radio-group-small) {
39
+ display: block;
40
+ height: @input-height-sm;
41
+ }
42
+
43
+ .checkbox {
44
+ position: absolute;
45
+ top:15px;
46
+ }
47
+
48
+ .formItemWithCheckbox{
49
+ margin-left: 20px;
50
+ }
51
+ }
52
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "SuperForm2",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./SuperForm.js"
6
- }
1
+ {
2
+ "name": "SuperForm2",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./SuperForm.js"
6
+ }
@@ -43,10 +43,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
43
43
  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; } }
44
44
 
45
45
  var TabPane = _tabs["default"].TabPane;
46
- /**
47
- * key: 唯一标识一个tab
48
- * title: 显示在tab上的标题
49
- * close: 为true则显示关闭按钮,默认为true
46
+ /**
47
+ * key: 唯一标识一个tab
48
+ * title: 显示在tab上的标题
49
+ * close: 为true则显示关闭按钮,默认为true
50
50
  */
51
51
 
52
52
  var TabType = {
@@ -54,10 +54,10 @@ var TabType = {
54
54
  title: _propTypes["default"].string.isRequired,
55
55
  close: _propTypes["default"].bool
56
56
  };
57
- /**
58
- * activeKey: 处于活动状态tab的key值
59
- * onTabChange: 切换选项卡时触发,原型为function(key)
60
- * onTabClose: 关闭选项卡时触发,原型为funtion(key)
57
+ /**
58
+ * activeKey: 处于活动状态tab的key值
59
+ * onTabChange: 切换选项卡时触发,原型为function(key)
60
+ * onTabClose: 关闭选项卡时触发,原型为funtion(key)
61
61
  */
62
62
 
63
63
  var SuperTab = /*#__PURE__*/function (_React$Component) {
@@ -1,43 +1,43 @@
1
- @import '../variables.less';
2
-
3
- .@{cloudlink-prefix}-SuperTab {
4
- :global {
5
- .ant-tabs-bar {
6
- margin-bottom: 0;
7
- border-color: @brand-primary;
8
- }
9
-
10
- .ant-tabs-nav-container {
11
- font-size: @font-size-base;
12
- line-height: 16px;
13
- height: 27px !important;
14
- }
15
-
16
- .ant-tabs-tab {
17
- background: @background-color !important;
18
- line-height: 25px !important;
19
-
20
- .ant-tabs-close-x {
21
- width: 14px !important;
22
- height: 14px !important;
23
- color: #333 !important;
24
- margin-left: 0 !important;
25
- padding-top: 1px;
26
- vertical-align: -3px !important;
27
-
28
- &:hover {
29
- background: #d5d5d8;
30
- border-radius: 50% !important;
31
- }
32
-
33
- > svg {
34
- transform: scale(0.7);
35
- }
36
- }
37
- }
38
-
39
- .ant-tabs-tab-active {
40
- border-color: @brand-primary !important;
41
- }
42
- }
43
- }
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-SuperTab {
4
+ :global {
5
+ .ant-tabs-bar {
6
+ margin-bottom: 0;
7
+ border-color: @brand-primary;
8
+ }
9
+
10
+ .ant-tabs-nav-container {
11
+ font-size: @font-size-base;
12
+ line-height: 16px;
13
+ height: 27px !important;
14
+ }
15
+
16
+ .ant-tabs-tab {
17
+ background: @background-color !important;
18
+ line-height: 25px !important;
19
+
20
+ .ant-tabs-close-x {
21
+ width: 14px !important;
22
+ height: 14px !important;
23
+ color: #333 !important;
24
+ margin-left: 0 !important;
25
+ padding-top: 1px;
26
+ vertical-align: -3px !important;
27
+
28
+ &:hover {
29
+ background: #d5d5d8;
30
+ border-radius: 50% !important;
31
+ }
32
+
33
+ > svg {
34
+ transform: scale(0.7);
35
+ }
36
+ }
37
+ }
38
+
39
+ .ant-tabs-tab-active {
40
+ border-color: @brand-primary !important;
41
+ }
42
+ }
43
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "SuperTab",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./SuperTab.js"
6
- }
1
+ {
2
+ "name": "SuperTab",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./SuperTab.js"
6
+ }
@@ -56,19 +56,19 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
56
56
 
57
57
  var TabPane = _tabs["default"].TabPane;
58
58
  var MenuItem = _menu["default"].Item;
59
- /**
60
- * key: 唯一标识一个tab
61
- * title: 显示在tab上的标题
59
+ /**
60
+ * key: 唯一标识一个tab
61
+ * title: 显示在tab上的标题
62
62
  */
63
63
 
64
64
  var TabType = {
65
65
  key: _propTypes["default"].string.isRequired,
66
66
  title: _propTypes["default"].string.isRequired
67
67
  };
68
- /**
69
- * activeKey: 处于活动状态tab的key值
70
- * menu: 是否需要右侧下拉列表,默认false
71
- * onTabChange: 切换选项卡时触发,原型为function(key)
68
+ /**
69
+ * activeKey: 处于活动状态tab的key值
70
+ * menu: 是否需要右侧下拉列表,默认false
71
+ * onTabChange: 切换选项卡时触发,原型为function(key)
72
72
  */
73
73
 
74
74
  var SuperTab2 = /*#__PURE__*/function (_React$Component) {
@@ -1,18 +1,18 @@
1
- @import '../variables.less';
2
-
3
- .@{cloudlink-prefix}-SuperTab2 {
4
- :global(.ant-tabs-bar) {
5
- margin-bottom: 0;
6
- }
7
-
8
- :global(.ant-tabs-nav-container) {
9
- font-size: @font-size-base;
10
- line-height: 16px;
11
- height: 32px !important;
12
- }
13
-
14
- :global(.ant-tabs-tab) {
15
- padding: 8px 6px;
16
- margin-right: 4px;
17
- }
18
- }
1
+ @import '../variables.less';
2
+
3
+ .@{cloudlink-prefix}-SuperTab2 {
4
+ :global(.ant-tabs-bar) {
5
+ margin-bottom: 0;
6
+ }
7
+
8
+ :global(.ant-tabs-nav-container) {
9
+ font-size: @font-size-base;
10
+ line-height: 16px;
11
+ height: 32px !important;
12
+ }
13
+
14
+ :global(.ant-tabs-tab) {
15
+ padding: 8px 6px;
16
+ margin-right: 4px;
17
+ }
18
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "name": "SuperTab2",
3
- "version": "0.0.0",
4
- "private": true,
5
- "main": "./SuperTab2.js"
6
- }
1
+ {
2
+ "name": "SuperTab2",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "main": "./SuperTab2.js"
6
+ }
@@ -26,6 +26,22 @@
26
26
  background: #2CBB45!important;
27
27
  }
28
28
 
29
+ :global(.ant-table-fixed){
30
+ width: 100% !important;
31
+ }
32
+ :global(.ant-table-tbody){
33
+ width: 100% !important;
34
+ }
35
+
36
+ :global(.ant-table-thead){
37
+ -moz-transform: none !important;
38
+ -webkit-transform: none !important;
39
+ -o-transform: none !important;
40
+ -ms-transform: none !important;
41
+ transform: none !important;
42
+ }
43
+
44
+
29
45
  th [role='add'] {
30
46
  color: @primary-color;
31
47
  margin-left: 4px;