shineout 3.9.3-beta.12 → 3.9.3-beta.14
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 +19 -5
- 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
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.9.3-beta.
|
|
525
|
+
version: '3.9.3-beta.14'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12401,7 +12401,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12401
12401
|
};
|
|
12402
12402
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12403
12403
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12404
|
-
/* harmony default export */ var version = ('3.9.3-beta.
|
|
12404
|
+
/* harmony default export */ var version = ('3.9.3-beta.14');
|
|
12405
12405
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12406
12406
|
|
|
12407
12407
|
|
|
@@ -44192,7 +44192,12 @@ var useFieldSetConsumer = function useFieldSetConsumer(props) {
|
|
|
44192
44192
|
path = _React$useContext.path,
|
|
44193
44193
|
validateFieldSet = _React$useContext.validateFieldSet;
|
|
44194
44194
|
var bind = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useMemo(function () {
|
|
44195
|
-
|
|
44195
|
+
var _bind = path ? (props.bind || []).concat(path) : props.bind;
|
|
44196
|
+
// 只有当路径中包含超过1个索引时才需要去掉最后一个索引
|
|
44197
|
+
return _bind === null || _bind === void 0 ? void 0 : _bind.map(function (b) {
|
|
44198
|
+
var indexCount = (b.match(/\[\d+\]/g) || []).length;
|
|
44199
|
+
return indexCount > 1 ? b.replace(/\[\d+\]$/, '') : b;
|
|
44200
|
+
});
|
|
44196
44201
|
}, [path, props.bind]);
|
|
44197
44202
|
var name = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useMemo(function () {
|
|
44198
44203
|
return extendName(path, props.name);
|
|
@@ -47448,15 +47453,24 @@ var useDate = function useDate(props) {
|
|
|
47448
47453
|
var getTimeStr = function getTimeStr() {
|
|
47449
47454
|
var format = props.format,
|
|
47450
47455
|
type = props.type;
|
|
47451
|
-
if (!props.value) return '';
|
|
47452
47456
|
if (type !== 'datetime' || !format) return '';
|
|
47453
|
-
if (/^[X|x]$/.test(format)) {
|
|
47457
|
+
if (/^[X|x]$/.test(util.compatibleFmt(format))) {
|
|
47454
47458
|
format = 'HH:mm:ss';
|
|
47455
47459
|
} else {
|
|
47456
47460
|
var match = format.match(/[H|h].*/);
|
|
47457
47461
|
// eslint-disable-next-line
|
|
47458
47462
|
if (match) format = match[0];
|
|
47459
47463
|
}
|
|
47464
|
+
|
|
47465
|
+
// 当不存在 props.value 时,根据 format 格式返回默认时间字符串
|
|
47466
|
+
if (!props.value) {
|
|
47467
|
+
return format.replace(/[Hh]+/g, '00') // HH/hh -> 00
|
|
47468
|
+
.replace(/m+/g, '00') // mm -> 00
|
|
47469
|
+
.replace(/s+/g, '00') // ss -> 00
|
|
47470
|
+
.replace(/S+/g, '0') // SSS -> 0
|
|
47471
|
+
.replace(/A/g, 'AM') // A -> AM
|
|
47472
|
+
.replace(/a/g, 'am'); // a -> am
|
|
47473
|
+
}
|
|
47460
47474
|
return util.format(props.value, format, options);
|
|
47461
47475
|
};
|
|
47462
47476
|
var isInRange = function isInRange(date) {
|
|
@@ -74717,7 +74731,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
74717
74731
|
|
|
74718
74732
|
|
|
74719
74733
|
/* harmony default export */ var src_0 = ({
|
|
74720
|
-
version: '3.9.3-beta.
|
|
74734
|
+
version: '3.9.3-beta.14'
|
|
74721
74735
|
});
|
|
74722
74736
|
}();
|
|
74723
74737
|
/******/ return __webpack_exports__;
|