shineout 1.8.3 → 1.8.4
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/css/Button/Button.js +1 -1
- package/css/Menu/Item.js +9 -1
- package/css/Table/SeperateTable.js +5 -3
- package/css/Table/SimpleTable.js +13 -7
- package/css/Table/Table.js +3 -1
- package/css/Table/styles/table.css +8 -8
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +51 -33
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/theme.antd.css +1 -1
- package/dist/theme.antd2.css +1 -1
- package/dist/theme.default.css +1 -1
- package/dist/theme.shineout.css +1 -1
- package/es/Button/Button.js +1 -1
- package/es/Menu/Item.js +9 -1
- package/es/Table/SeperateTable.js +5 -3
- package/es/Table/SimpleTable.js +13 -7
- package/es/Table/Table.js +3 -1
- package/es/Table/styles/table.less +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/styles/themes/shineout.less +1 -1
- package/lib/Button/Button.js +1 -1
- package/lib/Menu/Item.js +9 -1
- package/lib/Table/SeperateTable.js +5 -3
- package/lib/Table/SimpleTable.js +13 -7
- package/lib/Table/Table.js +3 -1
- package/lib/Table/styles/table.less +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/styles/themes/shineout.less +1 -1
- package/package.json +1 -1
package/es/Button/Button.js
CHANGED
package/es/Menu/Item.js
CHANGED
|
@@ -35,7 +35,9 @@ function (_PureComponent) {
|
|
|
35
35
|
|
|
36
36
|
var key = _this.getKey(props);
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var noop = function noop() {};
|
|
39
|
+
|
|
40
|
+
var _props$bindItem = props.bindItem(_this.id, noop, noop, noop),
|
|
39
41
|
activeUpdate = _props$bindItem[0],
|
|
40
42
|
openUpdate = _props$bindItem[1],
|
|
41
43
|
inPathUpdate = _props$bindItem[2];
|
|
@@ -57,6 +59,12 @@ function (_PureComponent) {
|
|
|
57
59
|
|
|
58
60
|
var _proto = Item.prototype;
|
|
59
61
|
|
|
62
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
63
|
+
_PureComponent.prototype.componentDidMount.call(this);
|
|
64
|
+
|
|
65
|
+
this.props.bindItem(this.id, this.update.bind(this), this.updateOpen.bind(this), this.updateInPath.bind(this));
|
|
66
|
+
};
|
|
67
|
+
|
|
60
68
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
61
69
|
_PureComponent.prototype.componentWillUnmount.call(this);
|
|
62
70
|
|
|
@@ -605,7 +605,8 @@ function (_PureComponent) {
|
|
|
605
605
|
rowHeight = _this$props7.rowHeight,
|
|
606
606
|
columnResizable = _this$props7.columnResizable,
|
|
607
607
|
innerScrollAttr = _this$props7.innerScrollAttr,
|
|
608
|
-
|
|
608
|
+
bordered = _this$props7.bordered,
|
|
609
|
+
others = _objectWithoutPropertiesLoose(_this$props7, ["data", "rowsInView", "columns", "width", "fixed", "rowHeight", "columnResizable", "innerScrollAttr", "bordered"]);
|
|
609
610
|
|
|
610
611
|
var _this$state3 = this.state,
|
|
611
612
|
colgroup = _this$state3.colgroup,
|
|
@@ -652,7 +653,7 @@ function (_PureComponent) {
|
|
|
652
653
|
height: prevHeight
|
|
653
654
|
}
|
|
654
655
|
}), React.createElement("table", {
|
|
655
|
-
className: tableClass(!colgroup && minWidthSup && 'init'),
|
|
656
|
+
className: tableClass(!colgroup && minWidthSup && 'init', bordered && 'table-bordered'),
|
|
656
657
|
style: {
|
|
657
658
|
width: width
|
|
658
659
|
},
|
|
@@ -694,7 +695,8 @@ function (_PureComponent) {
|
|
|
694
695
|
style: {
|
|
695
696
|
width: width
|
|
696
697
|
},
|
|
697
|
-
ref: this.bindThead
|
|
698
|
+
ref: this.bindThead,
|
|
699
|
+
className: tableClass('table-bordered')
|
|
698
700
|
}, React.createElement(Colgroup, {
|
|
699
701
|
colgroup: colgroup,
|
|
700
702
|
columns: columns,
|
package/es/Table/SimpleTable.js
CHANGED
|
@@ -145,14 +145,16 @@ function (_PureComponent) {
|
|
|
145
145
|
data = _this$props2.data,
|
|
146
146
|
onResize = _this$props2.onResize,
|
|
147
147
|
columnResizable = _this$props2.columnResizable,
|
|
148
|
-
sticky = _this$props2.sticky
|
|
148
|
+
sticky = _this$props2.sticky,
|
|
149
|
+
bordered = _this$props2.bordered;
|
|
149
150
|
var _this$state = this.state,
|
|
150
151
|
colgroup = _this$state.colgroup,
|
|
151
152
|
scrollAble = _this$state.scrollAble;
|
|
152
153
|
var inner = React.createElement("table", {
|
|
153
154
|
style: {
|
|
154
155
|
width: width
|
|
155
|
-
}
|
|
156
|
+
},
|
|
157
|
+
className: tableClass(bordered && 'table-bordered')
|
|
156
158
|
}, React.createElement(Colgroup, {
|
|
157
159
|
colgroup: colgroup,
|
|
158
160
|
columns: columns,
|
|
@@ -190,7 +192,8 @@ function (_PureComponent) {
|
|
|
190
192
|
width = _this$props3.width,
|
|
191
193
|
fixed = _this$props3.fixed,
|
|
192
194
|
columnResizable = _this$props3.columnResizable,
|
|
193
|
-
|
|
195
|
+
bordered = _this$props3.bordered,
|
|
196
|
+
others = _objectWithoutPropertiesLoose(_this$props3, ["columns", "width", "fixed", "columnResizable", "bordered"]);
|
|
194
197
|
|
|
195
198
|
var _this$state2 = this.state,
|
|
196
199
|
colgroup = _this$state2.colgroup,
|
|
@@ -207,7 +210,7 @@ function (_PureComponent) {
|
|
|
207
210
|
style: {
|
|
208
211
|
width: width
|
|
209
212
|
},
|
|
210
|
-
className: tableClass(!colgroup && minWidthSup && 'init')
|
|
213
|
+
className: tableClass(!colgroup && minWidthSup && 'init', bordered && 'table-bordered')
|
|
211
214
|
}, React.createElement(Colgroup, {
|
|
212
215
|
colgroup: colgroup,
|
|
213
216
|
columns: columns,
|
|
@@ -227,11 +230,13 @@ function (_PureComponent) {
|
|
|
227
230
|
columns = _this$props4.columns,
|
|
228
231
|
width = _this$props4.width,
|
|
229
232
|
children = _this$props4.children,
|
|
230
|
-
hideHeader = _this$props4.hideHeader
|
|
233
|
+
hideHeader = _this$props4.hideHeader,
|
|
234
|
+
bordered = _this$props4.bordered;
|
|
231
235
|
if (!columns || columns.length === 0) return React.createElement("table", {
|
|
232
236
|
style: {
|
|
233
237
|
width: width
|
|
234
|
-
}
|
|
238
|
+
},
|
|
239
|
+
className: tableClass(bordered && 'table-bordered')
|
|
235
240
|
}, children);
|
|
236
241
|
return [hideHeader ? null : this.renderHeader(), this.renderBody(), children];
|
|
237
242
|
};
|
|
@@ -250,7 +255,8 @@ SimpleTable.propTypes = {
|
|
|
250
255
|
dataChangeResize: PropTypes.bool,
|
|
251
256
|
columnResizable: PropTypes.bool,
|
|
252
257
|
sticky: PropTypes.oneOfType([PropTypes.object, PropTypes.bool]),
|
|
253
|
-
hideHeader: PropTypes.bool
|
|
258
|
+
hideHeader: PropTypes.bool,
|
|
259
|
+
bordered: PropTypes.bool
|
|
254
260
|
};
|
|
255
261
|
SimpleTable.defaultProps = {
|
|
256
262
|
data: undefined,
|
package/es/Table/Table.js
CHANGED
|
@@ -135,7 +135,9 @@ function (_Component) {
|
|
|
135
135
|
className: className,
|
|
136
136
|
ref: this.bindTable,
|
|
137
137
|
style: newStyle
|
|
138
|
-
}, events), React.createElement(RenderTable,
|
|
138
|
+
}, events), React.createElement(RenderTable, _extends({}, props, {
|
|
139
|
+
bordered: bordered
|
|
140
|
+
})), loading && React.createElement("div", {
|
|
139
141
|
className: tableClass('loading')
|
|
140
142
|
}, typeof loading === 'boolean' ? React.createElement(Spin, {
|
|
141
143
|
size: 40
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './bootstrap.less';
|
|
2
2
|
@import './cssvar.less';
|
|
3
3
|
|
|
4
|
-
@font-family-sans-serif:
|
|
4
|
+
@font-family-sans-serif: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Helvetica, PingFang SC, Hiragino KaKu Gothic Pro, Microsoft YaHei, Arial, sans-serif;
|
|
5
5
|
|
|
6
6
|
@colors-primary-value: #197AFA;
|
|
7
7
|
@colors-primary: var(--primary-color, @colors-primary-value);
|
package/lib/Button/Button.js
CHANGED
package/lib/Menu/Item.js
CHANGED
|
@@ -57,7 +57,9 @@ function (_PureComponent) {
|
|
|
57
57
|
|
|
58
58
|
var key = _this.getKey(props);
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var noop = function noop() {};
|
|
61
|
+
|
|
62
|
+
var _props$bindItem = props.bindItem(_this.id, noop, noop, noop),
|
|
61
63
|
activeUpdate = _props$bindItem[0],
|
|
62
64
|
openUpdate = _props$bindItem[1],
|
|
63
65
|
inPathUpdate = _props$bindItem[2];
|
|
@@ -79,6 +81,12 @@ function (_PureComponent) {
|
|
|
79
81
|
|
|
80
82
|
var _proto = Item.prototype;
|
|
81
83
|
|
|
84
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
85
|
+
_PureComponent.prototype.componentDidMount.call(this);
|
|
86
|
+
|
|
87
|
+
this.props.bindItem(this.id, this.update.bind(this), this.updateOpen.bind(this), this.updateInPath.bind(this));
|
|
88
|
+
};
|
|
89
|
+
|
|
82
90
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
83
91
|
_PureComponent.prototype.componentWillUnmount.call(this);
|
|
84
92
|
|
|
@@ -635,7 +635,8 @@ function (_PureComponent) {
|
|
|
635
635
|
rowHeight = _this$props7.rowHeight,
|
|
636
636
|
columnResizable = _this$props7.columnResizable,
|
|
637
637
|
innerScrollAttr = _this$props7.innerScrollAttr,
|
|
638
|
-
|
|
638
|
+
bordered = _this$props7.bordered,
|
|
639
|
+
others = (0, _objectWithoutPropertiesLoose2.default)(_this$props7, ["data", "rowsInView", "columns", "width", "fixed", "rowHeight", "columnResizable", "innerScrollAttr", "bordered"]);
|
|
639
640
|
var _this$state3 = this.state,
|
|
640
641
|
colgroup = _this$state3.colgroup,
|
|
641
642
|
scrollTop = _this$state3.scrollTop,
|
|
@@ -681,7 +682,7 @@ function (_PureComponent) {
|
|
|
681
682
|
height: prevHeight
|
|
682
683
|
}
|
|
683
684
|
}), _react.default.createElement("table", {
|
|
684
|
-
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init'),
|
|
685
|
+
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init', bordered && 'table-bordered'),
|
|
685
686
|
style: {
|
|
686
687
|
width: width
|
|
687
688
|
},
|
|
@@ -724,7 +725,8 @@ function (_PureComponent) {
|
|
|
724
725
|
style: {
|
|
725
726
|
width: width
|
|
726
727
|
},
|
|
727
|
-
ref: this.bindThead
|
|
728
|
+
ref: this.bindThead,
|
|
729
|
+
className: (0, _styles.tableClass)('table-bordered')
|
|
728
730
|
}, _react.default.createElement(_Colgroup.default, {
|
|
729
731
|
colgroup: colgroup,
|
|
730
732
|
columns: columns,
|
package/lib/Table/SimpleTable.js
CHANGED
|
@@ -166,7 +166,8 @@ function (_PureComponent) {
|
|
|
166
166
|
data = _this$props2.data,
|
|
167
167
|
onResize = _this$props2.onResize,
|
|
168
168
|
columnResizable = _this$props2.columnResizable,
|
|
169
|
-
sticky = _this$props2.sticky
|
|
169
|
+
sticky = _this$props2.sticky,
|
|
170
|
+
bordered = _this$props2.bordered;
|
|
170
171
|
var _this$state = this.state,
|
|
171
172
|
colgroup = _this$state.colgroup,
|
|
172
173
|
scrollAble = _this$state.scrollAble;
|
|
@@ -174,7 +175,8 @@ function (_PureComponent) {
|
|
|
174
175
|
var inner = _react.default.createElement("table", {
|
|
175
176
|
style: {
|
|
176
177
|
width: width
|
|
177
|
-
}
|
|
178
|
+
},
|
|
179
|
+
className: (0, _styles.tableClass)(bordered && 'table-bordered')
|
|
178
180
|
}, _react.default.createElement(_Colgroup.default, {
|
|
179
181
|
colgroup: colgroup,
|
|
180
182
|
columns: columns,
|
|
@@ -214,7 +216,8 @@ function (_PureComponent) {
|
|
|
214
216
|
width = _this$props3.width,
|
|
215
217
|
fixed = _this$props3.fixed,
|
|
216
218
|
columnResizable = _this$props3.columnResizable,
|
|
217
|
-
|
|
219
|
+
bordered = _this$props3.bordered,
|
|
220
|
+
others = (0, _objectWithoutPropertiesLoose2.default)(_this$props3, ["columns", "width", "fixed", "columnResizable", "bordered"]);
|
|
218
221
|
var _this$state2 = this.state,
|
|
219
222
|
colgroup = _this$state2.colgroup,
|
|
220
223
|
resize = _this$state2.resize;
|
|
@@ -230,7 +233,7 @@ function (_PureComponent) {
|
|
|
230
233
|
style: {
|
|
231
234
|
width: width
|
|
232
235
|
},
|
|
233
|
-
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init')
|
|
236
|
+
className: (0, _styles.tableClass)(!colgroup && minWidthSup && 'init', bordered && 'table-bordered')
|
|
234
237
|
}, _react.default.createElement(_Colgroup.default, {
|
|
235
238
|
colgroup: colgroup,
|
|
236
239
|
columns: columns,
|
|
@@ -250,11 +253,13 @@ function (_PureComponent) {
|
|
|
250
253
|
columns = _this$props4.columns,
|
|
251
254
|
width = _this$props4.width,
|
|
252
255
|
children = _this$props4.children,
|
|
253
|
-
hideHeader = _this$props4.hideHeader
|
|
256
|
+
hideHeader = _this$props4.hideHeader,
|
|
257
|
+
bordered = _this$props4.bordered;
|
|
254
258
|
if (!columns || columns.length === 0) return _react.default.createElement("table", {
|
|
255
259
|
style: {
|
|
256
260
|
width: width
|
|
257
|
-
}
|
|
261
|
+
},
|
|
262
|
+
className: (0, _styles.tableClass)(bordered && 'table-bordered')
|
|
258
263
|
}, children);
|
|
259
264
|
return [hideHeader ? null : this.renderHeader(), this.renderBody(), children];
|
|
260
265
|
};
|
|
@@ -273,7 +278,8 @@ SimpleTable.propTypes = {
|
|
|
273
278
|
dataChangeResize: _propTypes.default.bool,
|
|
274
279
|
columnResizable: _propTypes.default.bool,
|
|
275
280
|
sticky: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.bool]),
|
|
276
|
-
hideHeader: _propTypes.default.bool
|
|
281
|
+
hideHeader: _propTypes.default.bool,
|
|
282
|
+
bordered: _propTypes.default.bool
|
|
277
283
|
};
|
|
278
284
|
SimpleTable.defaultProps = {
|
|
279
285
|
data: undefined,
|
package/lib/Table/Table.js
CHANGED
|
@@ -163,7 +163,9 @@ function (_Component) {
|
|
|
163
163
|
className: className,
|
|
164
164
|
ref: this.bindTable,
|
|
165
165
|
style: newStyle
|
|
166
|
-
}, events), _react.default.createElement(RenderTable,
|
|
166
|
+
}, events), _react.default.createElement(RenderTable, (0, _extends2.default)({}, props, {
|
|
167
|
+
bordered: bordered
|
|
168
|
+
})), loading && _react.default.createElement("div", {
|
|
167
169
|
className: (0, _styles.tableClass)('loading')
|
|
168
170
|
}, typeof loading === 'boolean' ? _react.default.createElement(_Spin.default, {
|
|
169
171
|
size: 40
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './bootstrap.less';
|
|
2
2
|
@import './cssvar.less';
|
|
3
3
|
|
|
4
|
-
@font-family-sans-serif:
|
|
4
|
+
@font-family-sans-serif: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Helvetica, PingFang SC, Hiragino KaKu Gothic Pro, Microsoft YaHei, Arial, sans-serif;
|
|
5
5
|
|
|
6
6
|
@colors-primary-value: #197AFA;
|
|
7
7
|
@colors-primary: var(--primary-color, @colors-primary-value);
|