shineout 3.0.3 → 3.0.4
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 -12
- 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.0.
|
|
479
|
+
version: '3.0.4'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12019,7 +12019,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12019
12019
|
};
|
|
12020
12020
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12021
12021
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12022
|
-
/* harmony default export */ var version = ('3.0.
|
|
12022
|
+
/* harmony default export */ var version = ('3.0.4');
|
|
12023
12023
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12024
12024
|
|
|
12025
12025
|
|
|
@@ -16502,7 +16502,8 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16502
16502
|
list: {
|
|
16503
16503
|
paddingTop: 3,
|
|
16504
16504
|
paddingBottom: 3,
|
|
16505
|
-
display: 'inline-block'
|
|
16505
|
+
display: 'inline-block',
|
|
16506
|
+
overflow: 'auto'
|
|
16506
16507
|
},
|
|
16507
16508
|
tag: {
|
|
16508
16509
|
'&$tag + &$tag': {
|
|
@@ -34064,7 +34065,8 @@ var useCascader = function useCascader(props) {
|
|
|
34064
34065
|
beforeChange = props.beforeChange,
|
|
34065
34066
|
valueProp = props.value,
|
|
34066
34067
|
onChangeProp = props.onChange,
|
|
34067
|
-
filterSameChange = props.filterSameChange
|
|
34068
|
+
filterSameChange = props.filterSameChange,
|
|
34069
|
+
childrenKey = props.childrenKey;
|
|
34068
34070
|
var _useInputAble = useInputAble({
|
|
34069
34071
|
value: valueProp,
|
|
34070
34072
|
control: control,
|
|
@@ -34082,7 +34084,8 @@ var useCascader = function useCascader(props) {
|
|
|
34082
34084
|
keygen: keygen,
|
|
34083
34085
|
mode: mode,
|
|
34084
34086
|
disabled: disabled,
|
|
34085
|
-
isControlled: control
|
|
34087
|
+
isControlled: control,
|
|
34088
|
+
childrenKey: childrenKey
|
|
34086
34089
|
}),
|
|
34087
34090
|
datum = _useTree.datum;
|
|
34088
34091
|
return {
|
|
@@ -34120,7 +34123,8 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
34120
34123
|
childrenKey = props.childrenKey,
|
|
34121
34124
|
shouldFinal = props.shouldFinal,
|
|
34122
34125
|
onChange = props.onChange,
|
|
34123
|
-
onPathChange = props.onPathChange
|
|
34126
|
+
onPathChange = props.onPathChange,
|
|
34127
|
+
mode = props.mode;
|
|
34124
34128
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
34125
34129
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
34126
34130
|
loading = _useState2[0],
|
|
@@ -34131,7 +34135,7 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
34131
34135
|
var hasChildren = children && children.length > 0;
|
|
34132
34136
|
var uncertainChildren = loader && !loading && children === undefined;
|
|
34133
34137
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
|
|
34134
|
-
var rootClass = classnames_default()(styles.option, active && styles.activeOption, isDisabled && styles.optionDisabled);
|
|
34138
|
+
var rootClass = classnames_default()(styles.option, active && styles.activeOption, isDisabled && mode !== 4 && styles.optionDisabled);
|
|
34135
34139
|
var handlePathChange = function handlePathChange() {
|
|
34136
34140
|
onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
|
|
34137
34141
|
};
|
|
@@ -34158,8 +34162,8 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
34158
34162
|
};
|
|
34159
34163
|
var getEvents = function getEvents() {
|
|
34160
34164
|
var events = {};
|
|
34161
|
-
if (
|
|
34162
|
-
events.onClick = handleClick;
|
|
34165
|
+
if (expandTrigger !== 'hover-only' || !hasChildren) {
|
|
34166
|
+
if (!isDisabled || props.mode === 4) events.onClick = handleClick;
|
|
34163
34167
|
}
|
|
34164
34168
|
if (expandTrigger === 'hover' || expandTrigger === 'hover-only') {
|
|
34165
34169
|
events.onMouseEnter = handlePathChange;
|
|
@@ -34232,7 +34236,8 @@ var CascaderList = function CascaderList(props) {
|
|
|
34232
34236
|
expandTrigger = props.expandTrigger,
|
|
34233
34237
|
childrenKey = props.childrenKey,
|
|
34234
34238
|
shouldFinal = props.shouldFinal,
|
|
34235
|
-
path = props.path
|
|
34239
|
+
path = props.path,
|
|
34240
|
+
mode = props.mode;
|
|
34236
34241
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
|
|
34237
34242
|
|
|
34238
34243
|
// 和 datum 中的 geyKey 不一样,根据 parentId 生成唯一的 key
|
|
@@ -34269,6 +34274,7 @@ var CascaderList = function CascaderList(props) {
|
|
|
34269
34274
|
onPathChange: onPathChange,
|
|
34270
34275
|
onChange: onChange,
|
|
34271
34276
|
multiple: multiple,
|
|
34277
|
+
mode: mode,
|
|
34272
34278
|
expandTrigger: expandTrigger,
|
|
34273
34279
|
childrenKey: childrenKey,
|
|
34274
34280
|
shouldFinal: shouldFinal,
|
|
@@ -35869,7 +35875,8 @@ var Cascader = function Cascader(props0) {
|
|
|
35869
35875
|
data: tempData,
|
|
35870
35876
|
id: path[0],
|
|
35871
35877
|
parentId: "",
|
|
35872
|
-
path: []
|
|
35878
|
+
path: [],
|
|
35879
|
+
mode: mode
|
|
35873
35880
|
}, 'root')];
|
|
35874
35881
|
var childs = path.map(function (p, i) {
|
|
35875
35882
|
tempData = tempData && tempData instanceof Array && tempData.find(function (d) {
|
|
@@ -35907,7 +35914,7 @@ var Cascader = function Cascader(props0) {
|
|
|
35907
35914
|
width: '100%'
|
|
35908
35915
|
} : {
|
|
35909
35916
|
height: height,
|
|
35910
|
-
minHeight: 232
|
|
35917
|
+
minHeight: height || 232
|
|
35911
35918
|
};
|
|
35912
35919
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
35913
35920
|
className: classnames_default()(styles.listContent),
|
|
@@ -61221,7 +61228,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
61221
61228
|
|
|
61222
61229
|
|
|
61223
61230
|
/* harmony default export */ var src_0 = ({
|
|
61224
|
-
version: '3.0.
|
|
61231
|
+
version: '3.0.4'
|
|
61225
61232
|
});
|
|
61226
61233
|
}();
|
|
61227
61234
|
/******/ return __webpack_exports__;
|