Browse Source

修复Bug

xaboy 7 years ago
parent
commit
06c5c6130e

+ 1 - 1
src/components/Cascader.php

@@ -105,7 +105,7 @@ class Cascader extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/Checkbox.php

@@ -60,7 +60,7 @@ class Checkbox extends FormComponentDriver
             'field'=>$this->field,
             'title'=>$this->title,
             'value'=>array_unique($this->value),
-            'props'=>$this->props,
+            'props'=>(object)$this->props,
             'options'=>$options,
             'validate'=>$this->validate
         ];

+ 1 - 1
src/components/ColorPicker.php

@@ -64,7 +64,7 @@ class ColorPicker extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/DatePicker.php

@@ -86,7 +86,7 @@ class DatePicker extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/Frame.php

@@ -69,7 +69,7 @@ class Frame extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/Input.php

@@ -107,7 +107,7 @@ class Input extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/InputNumber.php

@@ -52,7 +52,7 @@ class InputNumber extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value === '' ? '' : (float)$this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/Radio.php

@@ -54,7 +54,7 @@ class Radio extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'options' => $options,
             'validate' => $this->validate
         ];

+ 1 - 1
src/components/Rate.php

@@ -40,7 +40,7 @@ class Rate extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => (float)$this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/Select.php

@@ -95,7 +95,7 @@ class Select extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'options' => $options,
             'validate' => $this->validate
         ];

+ 1 - 1
src/components/Slider.php

@@ -63,7 +63,7 @@ class Slider extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 2 - 2
src/components/Switches.php

@@ -65,8 +65,8 @@ class Switches extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
-            'slot' => $this->slot,
+            'props' => (object)$this->props,
+            'slot' => (object)$this->slot,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/TimePicker.php

@@ -95,7 +95,7 @@ class TimePicker extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }

+ 1 - 1
src/components/Upload.php

@@ -118,7 +118,7 @@ class Upload extends FormComponentDriver
             'field' => $this->field,
             'title' => $this->title,
             'value' => $this->value,
-            'props' => $this->props,
+            'props' => (object)$this->props,
             'validate' => $this->validate
         ];
     }