소스 검색

input添加min,max,step属性

ymy 1 년 전
부모
커밋
4b62b14670
2개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 0
      src/benyun/components/byInput/byInput.vue
  2. 3 1
      src/views/oms/order/components/purchaseModel.vue

+ 6 - 0
src/benyun/components/byInput/byInput.vue

@@ -13,6 +13,9 @@
     :disabled="attrs.disabled"
     :size="attrs.size?attrs.size:'medium'"
     :type="attrs.type"
+    :min="attrs.min"
+    :max="attrs.max"
+    :step="attrs.step"
     :align="attrs.align"
     :prefix-icon="attrs.prefixIcon"
     :suffix-icon="attrs.suffixIcon"
@@ -28,6 +31,9 @@ config:{
   attr:{
     type:'text, number(数字), integer(整数),textarea,float(小数),password(密码),positiveNumber(正数),positiveInteger(正整数)',
     align:'left, center, right'
+    min:0 //最小值
+    max:''  //最大值
+    step:'' //间隔
     isPositiveNumber:false/true 是否为正数
     prefixIcon:''  //头部图标
     suffixIcon:''  //尾部图标

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3 - 1
src/views/oms/order/components/purchaseModel.vue


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.