xaboy 6 年 前
コミット
3b1405ec79

+ 1 - 3
src/UI/Elm/Components/Rate.php

@@ -34,9 +34,7 @@ use FormBuilder\Factory\Elm;
  * @method $this showScore(bool $showScore) 是否显示当前分数,show-score 和 show-text 不能同时为真, 默认值: false
  * @method $this textColor(string $textColor) 辅助文字的颜色, 默认值: #1F2D3D
  * @method $this texts(array $texts) 辅助文字数组, 默认值: ['极差', '失望', '一般', '满意', '惊喜']
- * @method $this scoreTemplate(string $scoreTemplate) 分数显示模板, 默认值: {
- * value
- * }
+ * @method $this scoreTemplate(string $scoreTemplate) 分数显示模板, 默认值: {value}
  *
  */
 class Rate extends FormComponent

+ 1 - 2
src/UI/Elm/Components/TimePicker.php

@@ -31,8 +31,7 @@ use FormBuilder\Factory\Elm;
  * @method $this arrowControl(bool $arrowControl) 是否使用箭头进行时间选择,仅对<el-time-picker>有效, 默认值: false
  * @method $this align(string $align) 对齐方式, 可选值: left / center / right, 默认值: left
  * @method $this popperClass(string $popperClass) TimePicker 下拉框的类名
- * @method $this pickerOptions(array $pickerOptions) 当前时间日期选择器特有的选项参考下表, 默认值: {
- * }
+ * @method $this pickerOptions(array $pickerOptions) 当前时间日期选择器特有的选项参考下表, 默认值: {}
  * @method $this rangeSeparator(string $rangeSeparator) 选择范围时的分隔符, 默认值: '-'
  * @method $this valueFormat(string $valueFormat) 可选,仅TimePicker时可用,绑定值的格式。不指定则绑定值为 Date 对象, 可选值: 见日期格式
  * @method $this prefixIcon(string $prefixIcon) 自定义头部图标的类名, 默认值: el-icon-time

+ 6 - 6
src/UI/Elm/Style/Col.php

@@ -102,9 +102,9 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * <768px int|self 响应式栅格,可为栅格数或一个包含其他属性的对象
+     * <768px 响应式栅格,可为栅格数或一个包含其他属性的对象
      *
-     * @param $xs
+     * @param int|self $xs
      * @return $this
      */
     public function xs($xs)
@@ -114,9 +114,9 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * ≥768px int|self 响应式栅格,可为栅格数或一个包含其他属性的对象
+     * ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象
      *
-     * @param $sm
+     * @param int|self $sm
      * @return $this
      */
     public function sm($sm)
@@ -126,9 +126,9 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * ≥992px int|self 响应式栅格,可为栅格数或一个包含其他属性的对象
+     * ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象
      *
-     * @param $md
+     * @param int|self $md
      * @return $this
      */
     public function md($md)

+ 7 - 7
src/UI/Elm/Traits/FrameFactoryTrait.php

@@ -34,7 +34,7 @@ trait FrameFactoryTrait
     }
 
     /**
-     * 使用input  类型显示,多选
+     * 使用input类型显示,多选
      * value为Array类型
      *
      * @param string $field
@@ -64,7 +64,7 @@ trait FrameFactoryTrait
     }
 
     /**
-     * 使用文件类型显示,多选
+     * 使用图片类型显示,多选
      * value为Array类型
      *
      * @param string $field
@@ -79,7 +79,7 @@ trait FrameFactoryTrait
     }
 
     /**
-     * 使用input  类型显示,单选
+     * 使用input类型显示,单选
      * value为string类型
      *
      * @param string $field
@@ -88,7 +88,7 @@ trait FrameFactoryTrait
      * @param string $value
      * @return Frame
      */
-    public static function frameInputOne($field, $title, $src, $value = '')
+    public static function frameInput($field, $title, $src, $value = '')
     {
         return self::frame($field, $title, $src, (string)$value);
     }
@@ -103,13 +103,13 @@ trait FrameFactoryTrait
      * @param string $value
      * @return Frame
      */
-    public static function frameFileOne($field, $title, $src, $value = '')
+    public static function frameFile($field, $title, $src, $value = '')
     {
         return self::frame($field, $title, $src, (string)$value, Frame::TYPE_FILE);
     }
 
     /**
-     * 使用文件类型显示,单选
+     * 使用图片类型显示,单选
      * value为string类型
      *
      * @param string $field
@@ -118,7 +118,7 @@ trait FrameFactoryTrait
      * @param string $value
      * @return Frame
      */
-    public static function frameImageOne($field, $title, $src, $value = '')
+    public static function frameImage($field, $title, $src, $value = '')
     {
         return self::frame($field, $title, $src, (string)$value, Frame::TYPE_IMAGE);
     }

+ 0 - 13
src/UI/Elm/Traits/SelectFactoryTrait.php

@@ -44,17 +44,4 @@ trait SelectFactoryTrait
     {
         return self::select($field, $title, $value);
     }
-
-    /**
-     * 单选
-     *
-     * @param string $field
-     * @param string $title
-     * @param string|float|int $value
-     * @return Select
-     */
-    public static function selectOne($field, $title, $value = '')
-    {
-        return self::select($field, $title, (string)$value);
-    }
 }

+ 1 - 1
src/UI/Elm/Traits/TimePickerFactoryTrait.php

@@ -32,7 +32,7 @@ trait TimePickerFactoryTrait
     }
 
     /**
-     * 事件选择
+     * 时间选择
      *
      * @param string $field
      * @param string $title

+ 4 - 4
src/UI/Elm/Traits/UploadFactoryTrait.php

@@ -60,7 +60,7 @@ trait UploadFactoryTrait
     }
 
     /**
-     * 图片上传
+     * 图片上传
      * value 为  string类型
      *
      * @param string $field
@@ -69,14 +69,14 @@ trait UploadFactoryTrait
      * @param string $value
      * @return Upload
      */
-    public static function uploadImageOne($field, $title, $action, $value = '')
+    public static function uploadImage($field, $title, $action, $value = '')
     {
         $upload = self::upload($field, $title, $action, (string)$value, Upload::TYPE_IMAGE);
         return $upload->accept('image/*')->limit(1);
     }
 
     /**
-     * 文件上传
+     * 文件上传
      * value 为  string类型
      *
      * @param string $field
@@ -85,7 +85,7 @@ trait UploadFactoryTrait
      * @param string $value
      * @return Upload
      */
-    public static function uploadFileOne($field, $title, $action, $value = '')
+    public static function uploadFile($field, $title, $action, $value = '')
     {
         $upload = self::upload($field, $title, $action, (string)$value, Upload::TYPE_FILE);
         return $upload->limit(1);

+ 9 - 9
src/UI/Iview/Style/Col.php

@@ -68,7 +68,7 @@ class Col implements ColComponentInterface
     /**
      * 栅格左侧的间隔格数,间隔内不可以有栅格
      *
-     * @param $offset
+     * @param int $offset
      * @return $this
      */
     public function offset($offset)
@@ -80,7 +80,7 @@ class Col implements ColComponentInterface
     /**
      * 栅格向右移动格数
      *
-     * @param $push
+     * @param int $push
      * @return $this
      */
     public function push($push)
@@ -102,7 +102,7 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * 自定义的class名称
+     * 组件的class
      *
      * @param $class
      * @return $this
@@ -114,9 +114,9 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * <768px int|self 响应式栅格,可为栅格数或一个包含其他属性的对象
+     * <768px 响应式栅格,可为栅格数或一个包含其他属性的对象
      *
-     * @param $xs
+     * @param int|self $xs
      * @return $this
      */
     public function xs($xs)
@@ -126,9 +126,9 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * ≥768px int|self 响应式栅格,可为栅格数或一个包含其他属性的对象
+     * ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象
      *
-     * @param $sm
+     * @param int|self $sm
      * @return $this
      */
     public function sm($sm)
@@ -138,9 +138,9 @@ class Col implements ColComponentInterface
     }
 
     /**
-     * ≥992px int|self 响应式栅格,可为栅格数或一个包含其他属性的对象
+     * ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象
      *
-     * @param $md
+     * @param int|self $md
      * @return $this
      */
     public function md($md)

+ 5 - 5
src/UI/Iview/Traits/FrameFactoryTrait.php

@@ -34,7 +34,7 @@ trait FrameFactoryTrait
     }
 
     /**
-     * 使用input  类型显示,多选
+     * 使用input类型显示,多选
      * value为Array类型
      *
      * @param string $field
@@ -79,7 +79,7 @@ trait FrameFactoryTrait
     }
 
     /**
-     * 使用input  类型显示,单选
+     * 使用input类型显示,单选
      * value为string类型
      *
      * @param string $field
@@ -88,7 +88,7 @@ trait FrameFactoryTrait
      * @param string $value
      * @return Frame
      */
-    public static function frameInputOne($field, $title, $src, $value = '')
+    public static function frameInput($field, $title, $src, $value = '')
     {
         return self::frame($field, $title, $src, (string)$value);
     }
@@ -103,7 +103,7 @@ trait FrameFactoryTrait
      * @param string $value
      * @return Frame
      */
-    public static function frameFileOne($field, $title, $src, $value = '')
+    public static function frameFile($field, $title, $src, $value = '')
     {
         return self::frame($field, $title, $src, (string)$value, Frame::TYPE_FILE);
     }
@@ -118,7 +118,7 @@ trait FrameFactoryTrait
      * @param string $value
      * @return Frame
      */
-    public static function frameImageOne($field, $title, $src, $value = '')
+    public static function frameImage($field, $title, $src, $value = '')
     {
         return self::frame($field, $title, $src, (string)$value, Frame::TYPE_IMAGE);
     }

+ 0 - 13
src/UI/Iview/Traits/SelectFactoryTrait.php

@@ -44,17 +44,4 @@ trait SelectFactoryTrait
     {
         return self::select($field, $title, $value);
     }
-
-    /**
-     * 单选
-     *
-     * @param string $field
-     * @param string $title
-     * @param string|float|int $value
-     * @return Select
-     */
-    public static function selectOne($field, $title, $value = '')
-    {
-        return self::select($field, $title, (string)$value);
-    }
 }

+ 1 - 1
src/UI/Iview/Traits/TimePickerFactoryTrait.php

@@ -32,7 +32,7 @@ trait TimePickerFactoryTrait
     }
 
     /**
-     * 事件选择
+     * 时间选择
      *
      * @param string $field
      * @param string $title

+ 5 - 5
src/UI/Iview/Traits/UploadFactoryTrait.php

@@ -60,8 +60,8 @@ trait UploadFactoryTrait
     }
 
     /**
-     * 图片上传
-     * value 为  string类型
+     * 图片上传
+     * value 为string类型
      *
      * @param string $field
      * @param string $title
@@ -76,8 +76,8 @@ trait UploadFactoryTrait
     }
 
     /**
-     * 文件上传
-     * value 为  string类型
+     * 文件上传
+     * value 为string类型
      *
      * @param string $field
      * @param string $title
@@ -85,7 +85,7 @@ trait UploadFactoryTrait
      * @param string $value
      * @return Upload
      */
-    public static function uploadFileOne($field, $title, $action, $value = '')
+    public static function uploadFile($field, $title, $action, $value = '')
     {
         $upload = self::upload($field, $title, $action, (string)$value, Upload::TYPE_FILE);
         return $upload->maxLength(1);