shineout 3.1.21 → 3.1.22
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 +16 -18
- 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
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.1.
|
|
479
|
+
version: '3.1.22'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11949
11949
|
};
|
|
11950
11950
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11951
11951
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11952
|
-
/* harmony default export */ var version = ('3.1.
|
|
11952
|
+
/* harmony default export */ var version = ('3.1.22');
|
|
11953
11953
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11954
11954
|
|
|
11955
11955
|
|
|
@@ -34360,7 +34360,6 @@ var useTree = function useTree(props) {
|
|
|
34360
34360
|
valueMap: new Map(),
|
|
34361
34361
|
updateMap: new Map(),
|
|
34362
34362
|
unmatchedValueMap: new Map(),
|
|
34363
|
-
disabled: false,
|
|
34364
34363
|
value: undefined,
|
|
34365
34364
|
data: [],
|
|
34366
34365
|
cachedValue: [],
|
|
@@ -34450,14 +34449,14 @@ var useTree = function useTree(props) {
|
|
|
34450
34449
|
var getPath = function getPath(id) {
|
|
34451
34450
|
return context.pathMap.get(id);
|
|
34452
34451
|
};
|
|
34453
|
-
var getDisabled = function
|
|
34452
|
+
var getDisabled = usePersistFn(function () {
|
|
34454
34453
|
if (isFunc(disabledProps)) {
|
|
34455
34454
|
return disabledProps;
|
|
34456
34455
|
}
|
|
34457
34456
|
return function () {
|
|
34458
|
-
return
|
|
34457
|
+
return false;
|
|
34459
34458
|
};
|
|
34460
|
-
};
|
|
34459
|
+
});
|
|
34461
34460
|
var getChecked = function getChecked(id) {
|
|
34462
34461
|
var value = get(id);
|
|
34463
34462
|
var checked = value === 1;
|
|
@@ -34512,8 +34511,8 @@ var useTree = function useTree(props) {
|
|
|
34512
34511
|
// 制作 data mapping
|
|
34513
34512
|
context.dataMap.set(id, item);
|
|
34514
34513
|
var _isDisabled = !!disabled;
|
|
34515
|
-
if (_isDisabled === false
|
|
34516
|
-
_isDisabled =
|
|
34514
|
+
if (_isDisabled === false) {
|
|
34515
|
+
_isDisabled = getDisabled()(item);
|
|
34517
34516
|
}
|
|
34518
34517
|
var indexPath = [].concat(toConsumableArray_default()(index), [i]);
|
|
34519
34518
|
ids.push(id);
|
|
@@ -34595,9 +34594,12 @@ var useTree = function useTree(props) {
|
|
|
34595
34594
|
setUnmatedValue();
|
|
34596
34595
|
};
|
|
34597
34596
|
var isDisabled = function isDisabled(id) {
|
|
34598
|
-
|
|
34599
|
-
|
|
34600
|
-
|
|
34597
|
+
if (isFunc(disabledProps)) {
|
|
34598
|
+
var node = context.pathMap.get(id);
|
|
34599
|
+
if (node) return node.isDisabled;
|
|
34600
|
+
return false;
|
|
34601
|
+
}
|
|
34602
|
+
return !!disabledProps;
|
|
34601
34603
|
};
|
|
34602
34604
|
var checkStatusStack = function checkStatusStack(stack, defaultStatus) {
|
|
34603
34605
|
if (!stack || stack.length <= 0) return defaultStatus;
|
|
@@ -34617,7 +34619,6 @@ var useTree = function useTree(props) {
|
|
|
34617
34619
|
context.dataMap = new Map();
|
|
34618
34620
|
context.valueMap = new Map();
|
|
34619
34621
|
context.unmatchedValueMap = new Map();
|
|
34620
|
-
context.disabled = getDisabled();
|
|
34621
34622
|
context.data = use_tree_toArray(data);
|
|
34622
34623
|
if (!data) return;
|
|
34623
34624
|
initData(context.data, []);
|
|
@@ -44892,13 +44893,9 @@ function util_createStyle(text, id) {
|
|
|
44892
44893
|
if (!is_isBrowser()) {
|
|
44893
44894
|
return;
|
|
44894
44895
|
}
|
|
44895
|
-
var style = document.
|
|
44896
|
-
if (style) {
|
|
44897
|
-
return;
|
|
44898
|
-
}
|
|
44899
|
-
style = document.createElement('style');
|
|
44896
|
+
var style = document.createElement('style');
|
|
44900
44897
|
style.type = 'text/css';
|
|
44901
|
-
style.id
|
|
44898
|
+
style.setAttribute('data-id', id);
|
|
44902
44899
|
style.innerHTML = text;
|
|
44903
44900
|
document.head.appendChild(style);
|
|
44904
44901
|
}
|
|
@@ -56513,6 +56510,7 @@ var useTransform = function useTransform(props) {
|
|
|
56513
56510
|
if (!containerDimension || !targetDimension) return;
|
|
56514
56511
|
if (targetDimension <= containerDimension) {
|
|
56515
56512
|
setShouldScroll(false);
|
|
56513
|
+
setDelta(0);
|
|
56516
56514
|
} else {
|
|
56517
56515
|
setShouldScroll(true);
|
|
56518
56516
|
}
|
|
@@ -62368,7 +62366,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
62368
62366
|
|
|
62369
62367
|
|
|
62370
62368
|
/* harmony default export */ var src_0 = ({
|
|
62371
|
-
version: '3.1.
|
|
62369
|
+
version: '3.1.22'
|
|
62372
62370
|
});
|
|
62373
62371
|
}();
|
|
62374
62372
|
/******/ return __webpack_exports__;
|