vue2-client 1.10.32 → 1.10.33

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.
@@ -550,32 +550,16 @@
550
550
  :ref="attr.model"
551
551
  :label="showLabel?attr.name:undefined"
552
552
  :prop="attr.prop ? attr.prop : attr.model">
553
- <a-input
554
- v-if="mode === '新增/修改'"
553
+ <x-interval-picker
555
554
  v-model="form[attr.model]"
556
- :whitespace="true"
555
+ :mode="mode"
557
556
  :read-only="readOnly"
558
557
  :disabled="disabled && !readOnly"
559
- style="width:100%"
560
- @blur="attr.inputOnBlurFunc && emitFunc(attr.inputOnBlurFunc,attr)"
561
558
  :placeholder="attr.placeholder ? attr.placeholder : '请输入'+attr.name.replace(/\s*/g, '')"
562
- :ref="`${attr.model}input`"/>
563
- <a-input-group v-else compact>
564
- <a-input
565
- v-model="form[attr.model][0]"
566
- class="intervalPicker-begin"
567
- placeholder="起始值"/>
568
- <a-input
569
- class="intervalPicker-center"
570
- style="backgroundColor: #fff"
571
- placeholder="~"
572
- disabled
573
- />
574
- <a-input
575
- v-model="form[attr.model][1]"
576
- class="intervalPicker-end"
577
- placeholder="结束值"/>
578
- </a-input-group>
559
+ :start-placeholder="attr.startPlaceholder || '起始值'"
560
+ :end-placeholder="attr.endPlaceholder || '结束值'"
561
+ @blur="attr.inputOnBlurFunc && emitFunc(attr.inputOnBlurFunc,attr)"
562
+ />
579
563
  </a-form-model-item>
580
564
  </x-form-col>
581
565
  <!-- 车牌号选择 -->
@@ -659,6 +643,7 @@ import XStatusButton from './XStatusButton.vue'
659
643
  import XClickChangeBtn from './itemComponent/XClickChangeBtn'
660
644
  import 'moment/locale/zh-cn'
661
645
  import XFormDatePicker from '@vue2-client/base-client/components/common/XDatePicker/index.vue'
646
+ import XIntervalPicker from '@vue2-client/base-client/components/common/XIntervalPicker/XIntervalPicker.vue'
662
647
 
663
648
  export default {
664
649
  name: 'XFormItem',
@@ -676,7 +661,8 @@ export default {
676
661
  AddressSearchCombobox,
677
662
  Upload,
678
663
  XStatusButton,
679
- XClickChangeBtn
664
+ XClickChangeBtn,
665
+ XIntervalPicker
680
666
  },
681
667
  data () {
682
668
  // 检索去抖
@@ -1259,28 +1245,4 @@ export default {
1259
1245
  position: absolute;
1260
1246
  z-index: 1050;
1261
1247
  }
1262
-
1263
- .intervalPicker-begin {
1264
- width: calc(50% - 14px);
1265
- }
1266
-
1267
- .intervalPicker-center {
1268
- width: 30px;
1269
- border-left: 0;
1270
- pointer-events: none;
1271
- }
1272
-
1273
- .intervalPicker-end {
1274
- width: calc(50% - 14px);
1275
- border-left: 0;
1276
- }
1277
-
1278
- //.label-box{
1279
- // width: 80%;
1280
- // display: inline-block;
1281
- // height: auto;
1282
- // white-space: break-spaces;
1283
- // line-height: 18px;
1284
- // text-align: left;
1285
- //}
1286
1248
  </style>
@@ -108,7 +108,7 @@ export default {
108
108
  methods: {
109
109
  getFlex (parentWidth, flex = defaultFlex) {
110
110
  if (parentWidth === 0) {
111
- return flex.xs
111
+ return flex.md
112
112
  }
113
113
  if (parentWidth < BREAKPOINTS.xs) return flex.xs
114
114
  if (parentWidth < BREAKPOINTS.sm) return flex.sm