@agentscope-ai/design 1.0.15-rc.1 → 1.0.16-rc.0
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/lib/components/commonComponents/SliderSelector/index.d.ts +1 -1
- package/lib/components/commonComponents/SliderSelector/index.js +8 -4
- package/lib/components/commonComponents/Steps/index.js +2 -1
- package/llms/all.llms.txt +614 -614
- package/llms/index.llms.txt +47 -47
- package/package.json +3 -3
|
@@ -19,15 +19,19 @@ export default function SliderSelector(props) {
|
|
|
19
19
|
/**InputNumber为受控组件,会导致min和max失效,所以需要手动处理 */
|
|
20
20
|
var numVal = typeof val === 'string' ? parseFloat(val) : val;
|
|
21
21
|
if (numVal === null || isNaN(numVal)) {
|
|
22
|
-
|
|
22
|
+
var _props$onChange;
|
|
23
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, null);
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
26
|
if (numVal < props.min) {
|
|
26
|
-
|
|
27
|
+
var _props$onChange2;
|
|
28
|
+
(_props$onChange2 = props.onChange) === null || _props$onChange2 === void 0 || _props$onChange2.call(props, props.min);
|
|
27
29
|
} else if (numVal > props.max) {
|
|
28
|
-
|
|
30
|
+
var _props$onChange3;
|
|
31
|
+
(_props$onChange3 = props.onChange) === null || _props$onChange3 === void 0 || _props$onChange3.call(props, props.max);
|
|
29
32
|
} else {
|
|
30
|
-
|
|
33
|
+
var _props$onChange4;
|
|
34
|
+
(_props$onChange4 = props.onChange) === null || _props$onChange4 === void 0 || _props$onChange4.call(props, numVal);
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
@@ -9,6 +9,7 @@ import { SparkTrueLine } from '@agentscope-ai/icons';
|
|
|
9
9
|
import { Steps } from 'antd';
|
|
10
10
|
import { useMemo } from 'react';
|
|
11
11
|
import { useStyle } from "./index.style";
|
|
12
|
+
import classNames from 'classnames';
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
14
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -45,7 +46,7 @@ var SparkSteps = function SparkSteps(props) {
|
|
|
45
46
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
46
47
|
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Steps, _objectSpread(_objectSpread({}, props), {}, {
|
|
47
48
|
items: items,
|
|
48
|
-
className: "".concat(sparkPrefix, "-steps")
|
|
49
|
+
className: classNames("".concat(sparkPrefix, "-steps"), props.className)
|
|
49
50
|
}))]
|
|
50
51
|
});
|
|
51
52
|
};
|