form-driver 0.4.13 → 0.4.14

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/m3.js CHANGED
@@ -20964,7 +20964,10 @@ var AWeight = /*#__PURE__*/function (_Viewer) {
20964
20964
  var _proto = AWeight.prototype;
20965
20965
 
20966
20966
  _proto.componentDidMount = function componentDidMount() {
20967
- console.log("滑动组件初始化"); // const { cpnData } = this.state;
20967
+ console.log("滑动组件初始化");
20968
+ this.setState({
20969
+ hasAssignWeight: this.calAssignWeight()
20970
+ }); // const { cpnData } = this.state;
20968
20971
  // const allSliderValues = Object.values(cpnData);
20969
20972
  // this.setState({ allSliderValues });
20970
20973
  };
package/lib/m3.js CHANGED
@@ -20988,7 +20988,10 @@ var AWeight = /*#__PURE__*/function (_Viewer) {
20988
20988
  var _proto = AWeight.prototype;
20989
20989
 
20990
20990
  _proto.componentDidMount = function componentDidMount() {
20991
- console.log("滑动组件初始化"); // const { cpnData } = this.state;
20991
+ console.log("滑动组件初始化");
20992
+ this.setState({
20993
+ hasAssignWeight: this.calAssignWeight()
20994
+ }); // const { cpnData } = this.state;
20992
20995
  // const allSliderValues = Object.values(cpnData);
20993
20996
  // this.setState({ allSliderValues });
20994
20997
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-driver",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "An efficient framework for creating forms.",
5
5
  "license": "MIT",
6
6
  "authors": [
@@ -137,6 +137,9 @@ export class AWeight extends Viewer<AWeightState> {
137
137
 
138
138
  componentDidMount(): void {
139
139
  console.log("滑动组件初始化");
140
+ this.setState({
141
+ hasAssignWeight: this.calAssignWeight(),
142
+ });
140
143
  // const { cpnData } = this.state;
141
144
  // const allSliderValues = Object.values(cpnData);
142
145
  // this.setState({ allSliderValues });