@bit-sun/business-component 1.0.11 → 1.0.15
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/dist/index.esm.js
CHANGED
|
@@ -76,14 +76,14 @@ function _inherits(subClass, superClass) {
|
|
|
76
76
|
throw new TypeError("Super expression must either be null or a function");
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
80
|
+
constructor: {
|
|
81
|
+
value: subClass,
|
|
82
|
+
writable: true,
|
|
83
|
+
configurable: true
|
|
84
|
+
}
|
|
85
|
+
});
|
|
79
86
|
Object.defineProperty(subClass, "prototype", {
|
|
80
|
-
value: Object.create(superClass && superClass.prototype, {
|
|
81
|
-
constructor: {
|
|
82
|
-
value: subClass,
|
|
83
|
-
writable: true,
|
|
84
|
-
configurable: true
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
87
|
writable: false
|
|
88
88
|
});
|
|
89
89
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
@@ -1716,7 +1716,24 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1716
1716
|
defaultRowHeight: 20,
|
|
1717
1717
|
defaultColWidth: 120,
|
|
1718
1718
|
config: {},
|
|
1719
|
-
celldata: data
|
|
1719
|
+
celldata: data && data.length !== 0 ? data : _.flattenDeep(Array.from({
|
|
1720
|
+
length: 100
|
|
1721
|
+
}).map(function (a, b) {
|
|
1722
|
+
return Array.from({
|
|
1723
|
+
length: 100
|
|
1724
|
+
}).map(function (c, d) {
|
|
1725
|
+
return {
|
|
1726
|
+
"r": b,
|
|
1727
|
+
"c": d,
|
|
1728
|
+
"v": {
|
|
1729
|
+
"ct": {
|
|
1730
|
+
"fa": "@",
|
|
1731
|
+
"t": "s"
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
};
|
|
1735
|
+
});
|
|
1736
|
+
})),
|
|
1720
1737
|
scrollLeft: 0,
|
|
1721
1738
|
// "scrollTop": 315, //上下滚动条位置
|
|
1722
1739
|
luckysheet_select_save: [],
|
|
@@ -2051,7 +2068,12 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2051
2068
|
return {
|
|
2052
2069
|
id: "item-0".concat(index),
|
|
2053
2070
|
content: mapping.get(item),
|
|
2054
|
-
code: item
|
|
2071
|
+
code: item,
|
|
2072
|
+
"ct": {
|
|
2073
|
+
"fa": "General",
|
|
2074
|
+
"t": "s" //格式类型为数字类型
|
|
2075
|
+
|
|
2076
|
+
}
|
|
2055
2077
|
};
|
|
2056
2078
|
});
|
|
2057
2079
|
_this.state = {
|
|
@@ -2177,6 +2199,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2177
2199
|
onValueChange(value);
|
|
2178
2200
|
}, [value]);
|
|
2179
2201
|
|
|
2202
|
+
var showModal = function showModal() {
|
|
2203
|
+
setIsModalVisible(true);
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2180
2206
|
var handleOk = function handleOk() {
|
|
2181
2207
|
formaData(popvalue);
|
|
2182
2208
|
setIsModalVisible(false);
|
|
@@ -2226,6 +2252,7 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2226
2252
|
padding: '2px',
|
|
2227
2253
|
height: 'auto'
|
|
2228
2254
|
},
|
|
2255
|
+
onClick: showModal,
|
|
2229
2256
|
type: "primary"
|
|
2230
2257
|
}, "...")), /*#__PURE__*/React.createElement(Modal, {
|
|
2231
2258
|
width: 600,
|
package/dist/index.js
CHANGED
|
@@ -86,14 +86,14 @@ function _inherits(subClass, superClass) {
|
|
|
86
86
|
throw new TypeError("Super expression must either be null or a function");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
90
|
+
constructor: {
|
|
91
|
+
value: subClass,
|
|
92
|
+
writable: true,
|
|
93
|
+
configurable: true
|
|
94
|
+
}
|
|
95
|
+
});
|
|
89
96
|
Object.defineProperty(subClass, "prototype", {
|
|
90
|
-
value: Object.create(superClass && superClass.prototype, {
|
|
91
|
-
constructor: {
|
|
92
|
-
value: subClass,
|
|
93
|
-
writable: true,
|
|
94
|
-
configurable: true
|
|
95
|
-
}
|
|
96
|
-
}),
|
|
97
97
|
writable: false
|
|
98
98
|
});
|
|
99
99
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
@@ -1726,7 +1726,24 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1726
1726
|
defaultRowHeight: 20,
|
|
1727
1727
|
defaultColWidth: 120,
|
|
1728
1728
|
config: {},
|
|
1729
|
-
celldata: data
|
|
1729
|
+
celldata: data && data.length !== 0 ? data : _.flattenDeep(Array.from({
|
|
1730
|
+
length: 100
|
|
1731
|
+
}).map(function (a, b) {
|
|
1732
|
+
return Array.from({
|
|
1733
|
+
length: 100
|
|
1734
|
+
}).map(function (c, d) {
|
|
1735
|
+
return {
|
|
1736
|
+
"r": b,
|
|
1737
|
+
"c": d,
|
|
1738
|
+
"v": {
|
|
1739
|
+
"ct": {
|
|
1740
|
+
"fa": "@",
|
|
1741
|
+
"t": "s"
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
};
|
|
1745
|
+
});
|
|
1746
|
+
})),
|
|
1730
1747
|
scrollLeft: 0,
|
|
1731
1748
|
// "scrollTop": 315, //上下滚动条位置
|
|
1732
1749
|
luckysheet_select_save: [],
|
|
@@ -2061,7 +2078,12 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2061
2078
|
return {
|
|
2062
2079
|
id: "item-0".concat(index),
|
|
2063
2080
|
content: mapping.get(item),
|
|
2064
|
-
code: item
|
|
2081
|
+
code: item,
|
|
2082
|
+
"ct": {
|
|
2083
|
+
"fa": "General",
|
|
2084
|
+
"t": "s" //格式类型为数字类型
|
|
2085
|
+
|
|
2086
|
+
}
|
|
2065
2087
|
};
|
|
2066
2088
|
});
|
|
2067
2089
|
_this.state = {
|
|
@@ -2187,6 +2209,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2187
2209
|
onValueChange(value);
|
|
2188
2210
|
}, [value]);
|
|
2189
2211
|
|
|
2212
|
+
var showModal = function showModal() {
|
|
2213
|
+
setIsModalVisible(true);
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2190
2216
|
var handleOk = function handleOk() {
|
|
2191
2217
|
formaData(popvalue);
|
|
2192
2218
|
setIsModalVisible(false);
|
|
@@ -2236,6 +2262,7 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
2236
2262
|
padding: '2px',
|
|
2237
2263
|
height: 'auto'
|
|
2238
2264
|
},
|
|
2265
|
+
onClick: showModal,
|
|
2239
2266
|
type: "primary"
|
|
2240
2267
|
}, "...")), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
2241
2268
|
width: 600,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit-sun/business-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"antd": "4.17.2",
|
|
32
32
|
"axios": "^0.24.0",
|
|
33
33
|
"classnames": "^2.3.1",
|
|
34
|
+
"loadsh": "^0.0.4",
|
|
34
35
|
"react": "^16.12.0",
|
|
35
36
|
"react-beautiful-dnd": "10.0.0"
|
|
36
37
|
},
|
|
@@ -45,4 +46,4 @@
|
|
|
45
46
|
"publishConfig": {
|
|
46
47
|
"access": "public"
|
|
47
48
|
}
|
|
48
|
-
}
|
|
49
|
+
}
|
|
@@ -106,6 +106,10 @@ class DataValidation extends React.Component {
|
|
|
106
106
|
id: `item-0${index}`,
|
|
107
107
|
content: mapping.get(item),
|
|
108
108
|
code: item,
|
|
109
|
+
"ct": { //单元格值格式
|
|
110
|
+
"fa": "General", //格式名称为自动格式
|
|
111
|
+
"t": "s" //格式类型为数字类型
|
|
112
|
+
}
|
|
109
113
|
};
|
|
110
114
|
});
|
|
111
115
|
|
|
@@ -205,7 +209,13 @@ class DataValidation extends React.Component {
|
|
|
205
209
|
defaultRowHeight: 20, //自定义行高
|
|
206
210
|
defaultColWidth: 120, //自定义列宽
|
|
207
211
|
config: {},
|
|
208
|
-
celldata:
|
|
212
|
+
celldata:
|
|
213
|
+
data && data.length !== 0 ? data : _.flattenDeep(Array.from({ length: 100 }).map((a, b) => Array.from({ length: 100 }).map((c, d) => ({
|
|
214
|
+
"r": b,
|
|
215
|
+
"c": d,
|
|
216
|
+
"v": { "ct": { "fa": "@", "t": "s" }, }
|
|
217
|
+
}))))
|
|
218
|
+
,
|
|
209
219
|
scrollLeft: 0, //左右滚动条位置
|
|
210
220
|
// "scrollTop": 315, //上下滚动条位置
|
|
211
221
|
luckysheet_select_save: [], //选中的区域
|
|
@@ -418,7 +428,7 @@ class DataValidation extends React.Component {
|
|
|
418
428
|
console.log(setExportData);
|
|
419
429
|
setExportData([123123]);
|
|
420
430
|
})
|
|
421
|
-
.catch((err) => {});
|
|
431
|
+
.catch((err) => { });
|
|
422
432
|
};
|
|
423
433
|
|
|
424
434
|
filterData = (type: string) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: rodchen
|
|
4
4
|
* @Date: 2021-12-01 10:52:08
|
|
5
|
-
* @LastEditTime: 2021-12-29
|
|
5
|
+
* @LastEditTime: 2021-12-29 19:14:56
|
|
6
6
|
* @LastEditors: rodchen
|
|
7
7
|
*/
|
|
8
8
|
// @ts-nocheck
|
|
@@ -75,7 +75,7 @@ const QueryMutipleInput = ({ onValueChange }) => {
|
|
|
75
75
|
style={{ width: 'calc(100% - 30px)' }}
|
|
76
76
|
placeholder="请输入(查询多个值请用 ; 或 , 分割)"
|
|
77
77
|
/>
|
|
78
|
-
<Button style={{width: '30px', padding: '2px', height: 'auto'}} type="primary">...</Button>
|
|
78
|
+
<Button style={{width: '30px', padding: '2px', height: 'auto'}} onClick={showModal} type="primary">...</Button>
|
|
79
79
|
</div>
|
|
80
80
|
<Modal
|
|
81
81
|
width={600}
|