shineout 3.9.7-beta.7 → 3.9.7-beta.9

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 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.7-beta.7'
525
+ version: '3.9.7-beta.9'
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.7-beta.7');
12404
+ /* harmony default export */ var version = ('3.9.7-beta.9');
12405
12405
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12406
12406
 
12407
12407
 
@@ -22621,12 +22621,14 @@ var jssInsertionPointId = 'shineout-next-jss-insertion-point__' + version;
22621
22621
  function appendNormalizeStyle(styleString, id) {
22622
22622
  var style = document.createElement('style');
22623
22623
  style.setAttribute('name', id);
22624
+ style.setAttribute('data-alita-ignore', 'true');
22624
22625
  style.innerHTML = styleString;
22625
22626
  document.head.insertBefore(style, document.head.firstChild);
22626
22627
  }
22627
22628
  function appendJssInsertionPoint() {
22628
22629
  var insertionPoint = document.createElement('style');
22629
22630
  insertionPoint.setAttribute('name', jssInsertionPointId);
22631
+ insertionPoint.setAttribute('data-alita-ignore', 'true');
22630
22632
  document.head.insertBefore(insertionPoint, document.head.firstChild);
22631
22633
  react_jss_esm_defaultJss.setup({
22632
22634
  insertionPoint: insertionPoint
@@ -37647,9 +37649,15 @@ var useInputFormat = function useInputFormat(props) {
37647
37649
  value = value
37648
37650
  // -.0 => -0.0 .123 => 0.123
37649
37651
  .replace(/^(-)?(\.\d+)(?!=\.).*/g, '$10$2')
37650
- //0001.123 => 1.123
37652
+ //0001.123 => 1.123, 保留 -0. 的情况
37651
37653
  // eslint-disable-next-line no-useless-escape
37652
- .replace(/(-|^)0+(?=0\.?|[^0\.])/g, '$1')
37654
+ .replace(/(-|^)0+(?=0\.?|[^0\.])/g, function (match, p1) {
37655
+ // 如果是负号开头且后面跟着0和小数点,保留-0
37656
+ if (p1 === '-' && value.startsWith('-0.')) {
37657
+ return '-0';
37658
+ }
37659
+ return p1;
37660
+ })
37653
37661
  // 1. => 1
37654
37662
  .replace(/\.$/, '');
37655
37663
 
@@ -75053,7 +75061,7 @@ var upload_interface = __webpack_require__(8821);
75053
75061
 
75054
75062
 
75055
75063
  /* harmony default export */ var src_0 = ({
75056
- version: '3.9.7-beta.7'
75064
+ version: '3.9.7-beta.9'
75057
75065
  });
75058
75066
  }();
75059
75067
  /******/ return __webpack_exports__;