shineout 3.4.7-beta.1 → 3.4.7-beta.3
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/cjs/index.js +1 -1
- package/dist/shineout.js +50 -10
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.7-beta.
|
|
495
|
+
version: '3.4.7-beta.3'
|
|
496
496
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11984,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11984
11984
|
};
|
|
11985
11985
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11986
11986
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11987
|
-
/* harmony default export */ var version = ('3.4.7-beta.
|
|
11987
|
+
/* harmony default export */ var version = ('3.4.7-beta.3');
|
|
11988
11988
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11989
11989
|
|
|
11990
11990
|
|
|
@@ -31064,9 +31064,12 @@ var spin_Spin = function Spin() {
|
|
|
31064
31064
|
tipProps = props.tip,
|
|
31065
31065
|
tipClassName = props.tipClassName,
|
|
31066
31066
|
colorProps = props.color,
|
|
31067
|
-
modeProps = props.mode
|
|
31067
|
+
modeProps = props.mode,
|
|
31068
|
+
_props$ignoreConfig = props.ignoreConfig,
|
|
31069
|
+
ignoreConfig = _props$ignoreConfig === void 0 ? false : _props$ignoreConfig;
|
|
31068
31070
|
var config = useConfig();
|
|
31069
31071
|
var getSpinName = function getSpinName() {
|
|
31072
|
+
if (ignoreConfig) return props.name;
|
|
31070
31073
|
var spin = config.spin;
|
|
31071
31074
|
if (!spin) return;
|
|
31072
31075
|
if (typeof spin === 'string') {
|
|
@@ -31079,18 +31082,21 @@ var spin_Spin = function Spin() {
|
|
|
31079
31082
|
return;
|
|
31080
31083
|
};
|
|
31081
31084
|
var getSpinTip = function getSpinTip() {
|
|
31085
|
+
if (ignoreConfig) return props.tip;
|
|
31082
31086
|
var spin = config.spin;
|
|
31083
31087
|
if (!spin || typeof_default()(spin) !== 'object') return;
|
|
31084
31088
|
var tip = spin.tip;
|
|
31085
31089
|
return tip;
|
|
31086
31090
|
};
|
|
31087
31091
|
var getSpinColor = function getSpinColor() {
|
|
31092
|
+
if (ignoreConfig) return props.color;
|
|
31088
31093
|
var spin = config.spin;
|
|
31089
31094
|
if (!spin || typeof_default()(spin) !== 'object') return;
|
|
31090
31095
|
var color = spin.color;
|
|
31091
31096
|
return color;
|
|
31092
31097
|
};
|
|
31093
31098
|
var getSpinMode = function getSpinMode() {
|
|
31099
|
+
if (ignoreConfig) return props.mode;
|
|
31094
31100
|
var spin = config.spin;
|
|
31095
31101
|
if (!spin || typeof_default()(spin) !== 'object') return;
|
|
31096
31102
|
var mode = spin.mode;
|
|
@@ -31236,7 +31242,8 @@ var Button = function Button(props) {
|
|
|
31236
31242
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
31237
31243
|
size: getSpinSize(),
|
|
31238
31244
|
jssStyle: jssStyle,
|
|
31239
|
-
name: "ring"
|
|
31245
|
+
name: "ring",
|
|
31246
|
+
ignoreConfig: true
|
|
31240
31247
|
})
|
|
31241
31248
|
});
|
|
31242
31249
|
if (renderLoading) {
|
|
@@ -36562,7 +36569,9 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
36562
36569
|
},
|
|
36563
36570
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
36564
36571
|
jssStyle: jssStyle,
|
|
36565
|
-
size: 10
|
|
36572
|
+
size: 10,
|
|
36573
|
+
name: "ring",
|
|
36574
|
+
ignoreConfig: true
|
|
36566
36575
|
})
|
|
36567
36576
|
});
|
|
36568
36577
|
}
|
|
@@ -37788,7 +37797,28 @@ var result_Result = function Result(props) {
|
|
|
37788
37797
|
var _result2 = getDataByValues(value);
|
|
37789
37798
|
if (_result2.length > 0) {
|
|
37790
37799
|
var inputTmpText = renderResultContent(_result2[0]);
|
|
37791
|
-
|
|
37800
|
+
if (inputTmpText) {
|
|
37801
|
+
// 提取result文本
|
|
37802
|
+
var getTextFromReactElement = function getTextFromReactElement(element) {
|
|
37803
|
+
if (!element) return '';
|
|
37804
|
+
// 如果是字符串或数字,直接返回
|
|
37805
|
+
if (typeof element === 'string' || typeof element === 'number') return String(element);
|
|
37806
|
+
// 如果是 React Element,处理的是renderResult返回的是React Element的场景
|
|
37807
|
+
if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) {
|
|
37808
|
+
var _element$props;
|
|
37809
|
+
var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
|
|
37810
|
+
if (Array.isArray(children)) {
|
|
37811
|
+
return children.map(function (child) {
|
|
37812
|
+
return getTextFromReactElement(child);
|
|
37813
|
+
}).join('');
|
|
37814
|
+
}
|
|
37815
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(children) ? getTextFromReactElement(children) : String(children || '');
|
|
37816
|
+
}
|
|
37817
|
+
return '';
|
|
37818
|
+
};
|
|
37819
|
+
var textContent = getTextFromReactElement(inputTmpText);
|
|
37820
|
+
props.setInputText(textContent);
|
|
37821
|
+
}
|
|
37792
37822
|
}
|
|
37793
37823
|
setTimeout(function () {
|
|
37794
37824
|
var _inputRef$current;
|
|
@@ -48386,7 +48416,9 @@ var Image = function Image(props) {
|
|
|
48386
48416
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
48387
48417
|
jssStyle: jssStyle,
|
|
48388
48418
|
color: "#B3B7C1",
|
|
48389
|
-
size: 16
|
|
48419
|
+
size: 16,
|
|
48420
|
+
name: "ring",
|
|
48421
|
+
ignoreConfig: true
|
|
48390
48422
|
})
|
|
48391
48423
|
});
|
|
48392
48424
|
};
|
|
@@ -50141,7 +50173,9 @@ var NodeContent = function NodeContent(props) {
|
|
|
50141
50173
|
dir: config.direction,
|
|
50142
50174
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
50143
50175
|
size: 12,
|
|
50144
|
-
jssStyle: jssStyle
|
|
50176
|
+
jssStyle: jssStyle,
|
|
50177
|
+
ignoreConfig: true,
|
|
50178
|
+
name: "ring"
|
|
50145
50179
|
})
|
|
50146
50180
|
});
|
|
50147
50181
|
};
|
|
@@ -60911,6 +60945,8 @@ var TransferList = function TransferList(props) {
|
|
|
60911
60945
|
jssStyle: jssStyle,
|
|
60912
60946
|
loading: loading,
|
|
60913
60947
|
size: 24,
|
|
60948
|
+
name: "ring",
|
|
60949
|
+
ignoreConfig: true,
|
|
60914
60950
|
children: [onFilter && renderFilter(), renderList(), renderFooter()]
|
|
60915
60951
|
})]
|
|
60916
60952
|
});
|
|
@@ -62534,7 +62570,8 @@ var upload_result_Result = function Result(props) {
|
|
|
62534
62570
|
children: [status === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
62535
62571
|
jssStyle: props.jssStyle,
|
|
62536
62572
|
size: 10,
|
|
62537
|
-
name: 'ring'
|
|
62573
|
+
name: 'ring',
|
|
62574
|
+
ignoreConfig: true
|
|
62538
62575
|
}), status === 2 && icons_config.upload.Success, status === 3 && icons_config.upload.Warning]
|
|
62539
62576
|
}), status === 1 && props.process !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
62540
62577
|
children: [Math.min(99, Math.floor(props.process || 0)), "%"]
|
|
@@ -62587,6 +62624,7 @@ var upload_result_Result = function Result(props) {
|
|
|
62587
62624
|
size: 'null',
|
|
62588
62625
|
jssStyle: props.jssStyle,
|
|
62589
62626
|
name: 'ring',
|
|
62627
|
+
ignoreConfig: true,
|
|
62590
62628
|
className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultLoading
|
|
62591
62629
|
}), (status === 2 || status === -1) && src && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
62592
62630
|
className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
|
|
@@ -63034,7 +63072,9 @@ var UploadButton = function UploadButton(props) {
|
|
|
63034
63072
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
63035
63073
|
jssStyle: props.jssStyle,
|
|
63036
63074
|
size: 10,
|
|
63037
|
-
color: color
|
|
63075
|
+
color: color,
|
|
63076
|
+
ignoreConfig: true,
|
|
63077
|
+
name: "ring"
|
|
63038
63078
|
})
|
|
63039
63079
|
}), typeof loading === 'string' ? loading : placeholder]
|
|
63040
63080
|
});
|
|
@@ -65423,7 +65463,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
65423
65463
|
|
|
65424
65464
|
|
|
65425
65465
|
/* harmony default export */ var src_0 = ({
|
|
65426
|
-
version: '3.4.7-beta.
|
|
65466
|
+
version: '3.4.7-beta.3'
|
|
65427
65467
|
});
|
|
65428
65468
|
}();
|
|
65429
65469
|
/******/ return __webpack_exports__;
|