vue2-client 1.10.32-alpha.1 → 1.10.32

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,16 +550,32 @@
550
550
  :ref="attr.model"
551
551
  :label="showLabel?attr.name:undefined"
552
552
  :prop="attr.prop ? attr.prop : attr.model">
553
- <x-interval-picker
553
+ <a-input
554
+ v-if="mode === '新增/修改'"
554
555
  v-model="form[attr.model]"
555
- :mode="mode"
556
+ :whitespace="true"
556
557
  :read-only="readOnly"
557
558
  :disabled="disabled && !readOnly"
558
- :placeholder="attr.placeholder ? attr.placeholder : '请输入'+attr.name.replace(/\s*/g, '')"
559
- :start-placeholder="attr.startPlaceholder || '起始值'"
560
- :end-placeholder="attr.endPlaceholder || '结束值'"
559
+ style="width:100%"
561
560
  @blur="attr.inputOnBlurFunc && emitFunc(attr.inputOnBlurFunc,attr)"
562
- />
561
+ :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>
563
579
  </a-form-model-item>
564
580
  </x-form-col>
565
581
  <!-- 车牌号选择 -->
@@ -643,7 +659,6 @@ import XStatusButton from './XStatusButton.vue'
643
659
  import XClickChangeBtn from './itemComponent/XClickChangeBtn'
644
660
  import 'moment/locale/zh-cn'
645
661
  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'
647
662
 
648
663
  export default {
649
664
  name: 'XFormItem',
@@ -661,8 +676,7 @@ export default {
661
676
  AddressSearchCombobox,
662
677
  Upload,
663
678
  XStatusButton,
664
- XClickChangeBtn,
665
- XIntervalPicker
679
+ XClickChangeBtn
666
680
  },
667
681
  data () {
668
682
  // 检索去抖
@@ -1245,4 +1259,28 @@ export default {
1245
1259
  position: absolute;
1246
1260
  z-index: 1050;
1247
1261
  }
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
+ //}
1248
1286
  </style>
@@ -108,7 +108,7 @@ export default {
108
108
  methods: {
109
109
  getFlex (parentWidth, flex = defaultFlex) {
110
110
  if (parentWidth === 0) {
111
- return flex.md
111
+ return flex.xs
112
112
  }
113
113
  if (parentWidth < BREAKPOINTS.xs) return flex.xs
114
114
  if (parentWidth < BREAKPOINTS.sm) return flex.sm