mftcc-base-npm 1.2.4 → 1.2.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftcc-base-npm",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "mftcc-base-npm",
5
5
  "author": "mftcc",
6
6
  "scripts": {
@@ -3,18 +3,22 @@
3
3
  <el-input
4
4
  :ref="props.fieldName + '_start'"
5
5
  v-model="compValue[0]"
6
- :placeholder="isEmpty(props.startPlaceholder) ? '起始值' : props.startPlaceholder"
6
+ :placeholder="isEmpty(props.placeholder) ? '起始值' : props.placeholder"
7
7
  :disabled="isEmpty(props.disabled) ? false : props.disabled"
8
8
  :readonly="isEmpty(props.readOnly) ? false : props.readOnly"
9
9
  :class="{ readonly: isEmpty(props.readOnly) ? false : props.readOnly }"
10
10
  @input="handleStartInput"
11
11
  v-on="startEvent"
12
12
  ></el-input>
13
- <span class="separator">{{ isEmpty(props.separator) ? '至' : props.separator }}</span>
13
+ <span class="separator">{{
14
+ isEmpty(props.separator) ? "至" : props.separator
15
+ }}</span>
14
16
  <el-input
15
17
  :ref="props.fieldName + '_end'"
16
18
  v-model="compValue[1]"
17
- :placeholder="isEmpty(props.endPlaceholder) ? '结束值' : props.endPlaceholder"
19
+ :placeholder="
20
+ isEmpty(props.endPlaceholder) ? '结束值' : props.endPlaceholder
21
+ "
18
22
  :disabled="isEmpty(props.disabled) ? false : props.disabled"
19
23
  :readonly="isEmpty(props.readOnly) ? false : props.readOnly"
20
24
  :class="{ readonly: isEmpty(props.readOnly) ? false : props.readOnly }"
@@ -40,18 +44,18 @@ export default {
40
44
  data() {
41
45
  return {
42
46
  isEmpty: formUtil.isEmpty,
43
- tempStartValue: '',
44
- tempEndValue: '',
47
+ tempStartValue: "",
48
+ tempEndValue: "",
45
49
  };
46
50
  },
47
51
  methods: {
48
52
  handleStartInput(value) {
49
- const numValue = value.replace(/[^0-9.-]/g, '');
53
+ const numValue = value.replace(/[^0-9.-]/g, "");
50
54
  this.tempStartValue = numValue;
51
55
  this.$emit("returnBack", [numValue, this.compValue[1]]);
52
56
  },
53
57
  handleEndInput(value) {
54
- const numValue = value.replace(/[^0-9.-]/g, '');
58
+ const numValue = value.replace(/[^0-9.-]/g, "");
55
59
  this.tempEndValue = numValue;
56
60
  this.$emit("returnBack", [this.compValue[0], numValue]);
57
61
  },