imeik-bizui 1.6.7 → 1.6.9
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/dist/bizui/src/FieldDateSelect/index.vue +3 -6
- package/dist/bizui/src/FieldInput/index.vue +12 -1
- package/dist/bizui/src/FieldTextarea/index.vue +12 -1
- package/dist/imeik-bizui.common.js +136 -106
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +136 -106
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +5 -5
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -150,7 +150,7 @@ export default {
|
|
|
150
150
|
/**
|
|
151
151
|
* 格式化后的值
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
newFormatedValue() {
|
|
154
154
|
if (Array.isArray(this.diffValue)) {
|
|
155
155
|
return this.diffValue.map((item) => moment(item).format(this.momentFormat)).join('~')
|
|
156
156
|
} else {
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
|
-
|
|
164
|
+
formatedValue() {
|
|
165
165
|
if (Array.isArray(this.myValue)) {
|
|
166
166
|
return this.myValue.map((item) => moment(item).format(this.momentFormat)).join('~')
|
|
167
167
|
} else {
|
|
@@ -225,10 +225,7 @@ export default {
|
|
|
225
225
|
timeFormat(val) {
|
|
226
226
|
if (this.isRange) {
|
|
227
227
|
if (Array.isArray(val) && val.length === 2) {
|
|
228
|
-
return [
|
|
229
|
-
moment(val[0]).format(this.momentFormat),
|
|
230
|
-
moment(val[1]).format(this.momentFormat)
|
|
231
|
-
]
|
|
228
|
+
return [moment(val[0]).format(this.momentFormat), moment(val[1]).format(this.momentFormat)]
|
|
232
229
|
} else {
|
|
233
230
|
return []
|
|
234
231
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<!-- 我们把ele组件常用属性放在这里,如果会用到更多其他属性可以进行扩展 -->
|
|
2
2
|
<template>
|
|
3
3
|
<span>
|
|
4
|
-
<
|
|
4
|
+
<div v-if="attrs.isView">
|
|
5
|
+
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="myValue" :no-absolute="true" :new-value="diffValue" />
|
|
6
|
+
<span v-else>{{ myValue || '-' }}</span>
|
|
7
|
+
</div>
|
|
5
8
|
<el-input
|
|
6
9
|
v-else
|
|
7
10
|
v-model="myValue"
|
|
@@ -83,6 +86,14 @@ export default {
|
|
|
83
86
|
myValue: undefined
|
|
84
87
|
}
|
|
85
88
|
},
|
|
89
|
+
computed: {
|
|
90
|
+
showDiff() {
|
|
91
|
+
return this.attrs.showDiff || false
|
|
92
|
+
},
|
|
93
|
+
diffValue() {
|
|
94
|
+
return this.attrs.diffValue || ''
|
|
95
|
+
}
|
|
96
|
+
},
|
|
86
97
|
watch: {
|
|
87
98
|
value: {
|
|
88
99
|
immediate: true,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<!-- 我们把ele组件常用属性放在这里,如果会用到更多其他属性可以进行扩展 -->
|
|
2
2
|
<template>
|
|
3
3
|
<span>
|
|
4
|
-
<
|
|
4
|
+
<div v-if="attrs.isView">
|
|
5
|
+
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="myValue" :no-absolute="true" :new-value="diffValue" />
|
|
6
|
+
<span v-else>{{ myValue || '-' }}</span>
|
|
7
|
+
</div>
|
|
5
8
|
<el-input
|
|
6
9
|
v-else
|
|
7
10
|
v-model="myValue"
|
|
@@ -60,6 +63,14 @@ export default {
|
|
|
60
63
|
myValue: undefined
|
|
61
64
|
}
|
|
62
65
|
},
|
|
66
|
+
computed: {
|
|
67
|
+
showDiff() {
|
|
68
|
+
return this.attrs.showDiff || false
|
|
69
|
+
},
|
|
70
|
+
diffValue() {
|
|
71
|
+
return this.attrs.diffValue || ''
|
|
72
|
+
}
|
|
73
|
+
},
|
|
63
74
|
watch: {
|
|
64
75
|
value: {
|
|
65
76
|
immediate: true,
|