@ccs-ui/rc-pro 1.1.1-rc21 → 1.1.1-rc23
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/es/dialog/hook.js +16 -4
- package/es/pro-grid/index.js +5 -1
- package/package.json +1 -1
package/es/dialog/hook.js
CHANGED
|
@@ -10,6 +10,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
12
12
|
|
|
13
|
+
import _debounce from 'lodash/debounce';
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import HookDrawer from "./HookDrawer";
|
|
15
16
|
import HookModal from "./HookModal";
|
|
@@ -145,14 +146,25 @@ export default function useCcsDialog() {
|
|
|
145
146
|
};
|
|
146
147
|
return instance;
|
|
147
148
|
}, []);
|
|
149
|
+
|
|
150
|
+
// const resizeFn = _debounce((width: number) => {
|
|
151
|
+
// if (tabRef.current) tabRef.current.style.maxWidth = `${width}px`;
|
|
152
|
+
// }, 200);
|
|
153
|
+
|
|
148
154
|
var fns = React.useMemo(function () {
|
|
149
155
|
return {
|
|
150
|
-
openModal: function
|
|
156
|
+
openModal: _debounce(function (props) {
|
|
151
157
|
return getModalFunc(props);
|
|
152
|
-
},
|
|
153
|
-
|
|
158
|
+
}, 500, {
|
|
159
|
+
leading: true,
|
|
160
|
+
trailing: false
|
|
161
|
+
}),
|
|
162
|
+
openDrawer: _debounce(function (props) {
|
|
154
163
|
return getDrawerFunc(props);
|
|
155
|
-
}
|
|
164
|
+
}, 500, {
|
|
165
|
+
leading: true,
|
|
166
|
+
trailing: false
|
|
167
|
+
})
|
|
156
168
|
};
|
|
157
169
|
}, []);
|
|
158
170
|
// return [fns, <ElementsHolder key="modal-holder" ref={holderRef} />] as const;
|
package/es/pro-grid/index.js
CHANGED
|
@@ -32,7 +32,11 @@ var GridCol = function GridCol(_ref) {
|
|
|
32
32
|
flex: 'auto',
|
|
33
33
|
flexDirection: 'column'
|
|
34
34
|
}, colStyle),
|
|
35
|
-
children: /*#__PURE__*/_jsx(Card, _objectSpread({
|
|
35
|
+
children: /*#__PURE__*/_jsx(Card, _objectSpread({
|
|
36
|
+
bodyStyle: {
|
|
37
|
+
padding: 0
|
|
38
|
+
}
|
|
39
|
+
}, otherProps))
|
|
36
40
|
})
|
|
37
41
|
});
|
|
38
42
|
};
|