meixioacomponent 0.3.39 → 0.3.40
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/lib/meixioacomponent.common.js +117 -104
- package/lib/meixioacomponent.umd.js +117 -104
- package/lib/meixioacomponent.umd.min.js +28 -28
- package/package.json +1 -1
- package/packages/components/proForm/proForm/pro_form.vue +16 -14
- package/packages/components/proForm/proForm/pro_form_item.vue +13 -3
package/package.json
CHANGED
|
@@ -38,25 +38,27 @@
|
|
|
38
38
|
@formItemConfirm="formItemConfirm"
|
|
39
39
|
@disableWatcherResult="disableWatcherResult"
|
|
40
40
|
:disableWatcher="setWatcher(item.key)"
|
|
41
|
-
v-if="formType == 'default'
|
|
41
|
+
v-if="formType == 'default'"
|
|
42
42
|
>
|
|
43
43
|
<template slot="template" v-if="item.type == 'template'">
|
|
44
44
|
<slot :name="`form-${item.key}`" :scope="module"></slot>
|
|
45
45
|
</template>
|
|
46
|
+
<template slot="area" v-if="item.type == 'area'">
|
|
47
|
+
<baseAreaVue
|
|
48
|
+
v-model="item.value"
|
|
49
|
+
:disable="item.disabled"
|
|
50
|
+
:ref="`area-${item.key}`"
|
|
51
|
+
:style="{ width: `100%` }"
|
|
52
|
+
:class="[`form-item-${item.key}`]"
|
|
53
|
+
@confirmAreaValue="
|
|
54
|
+
formItemConfirm({
|
|
55
|
+
config: item,
|
|
56
|
+
})
|
|
57
|
+
"
|
|
58
|
+
></baseAreaVue>
|
|
59
|
+
</template>
|
|
46
60
|
</pro_form_itemVue>
|
|
47
|
-
|
|
48
|
-
v-model="item.value"
|
|
49
|
-
:disable="item.disabled"
|
|
50
|
-
v-if="item.type == 'area'"
|
|
51
|
-
:ref="`area-${item.key}`"
|
|
52
|
-
:style="{ width: `100%` }"
|
|
53
|
-
:class="[`form-item-${item.key}`]"
|
|
54
|
-
@confirmAreaValue="
|
|
55
|
-
formItemConfirm({
|
|
56
|
-
config: item,
|
|
57
|
-
})
|
|
58
|
-
"
|
|
59
|
-
></baseAreaVue>
|
|
61
|
+
|
|
60
62
|
<baseUploadVue
|
|
61
63
|
v-model="item.value"
|
|
62
64
|
:max="formConfig.max"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
'form-item-wrap': true,
|
|
9
9
|
}"
|
|
10
10
|
>
|
|
11
|
-
<div class="item-content" v-if="
|
|
11
|
+
<div class="item-content" v-if="!typeOftemplate && !isEdit">
|
|
12
12
|
<p
|
|
13
13
|
v-if="!spContentType"
|
|
14
14
|
class="content-value"
|
|
@@ -189,6 +189,7 @@
|
|
|
189
189
|
></el-input>
|
|
190
190
|
<!-- 插槽 -->
|
|
191
191
|
<slot name="template" v-else-if="config.type == 'template'"></slot>
|
|
192
|
+
<slot name="area" v-else-if="config.type == 'area'"></slot>
|
|
192
193
|
</div>
|
|
193
194
|
<!-- 确定的按钮 -->
|
|
194
195
|
<div class="bottom-handle-wrap" v-show="isEdit && !form">
|
|
@@ -213,7 +214,6 @@
|
|
|
213
214
|
</template>
|
|
214
215
|
|
|
215
216
|
<script>
|
|
216
|
-
import { FilterTime } from '../../../utils/utils'
|
|
217
217
|
//
|
|
218
218
|
import componentConfig from '../../../config/componentConfig'
|
|
219
219
|
export default {
|
|
@@ -303,6 +303,17 @@ export default {
|
|
|
303
303
|
}
|
|
304
304
|
return false
|
|
305
305
|
},
|
|
306
|
+
|
|
307
|
+
typeOftemplate() {
|
|
308
|
+
const { type } = this.$props.config
|
|
309
|
+
|
|
310
|
+
if (type == 'template' || type == 'area') {
|
|
311
|
+
return true
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return false
|
|
315
|
+
},
|
|
316
|
+
|
|
306
317
|
contentValue() {
|
|
307
318
|
let type = this.$props.config.type
|
|
308
319
|
switch (type) {
|
|
@@ -425,7 +436,6 @@ export default {
|
|
|
425
436
|
},
|
|
426
437
|
targetFocus() {
|
|
427
438
|
let ref = this.$refs.target
|
|
428
|
-
console.log(ref)
|
|
429
439
|
if (ref) {
|
|
430
440
|
ref.focus()
|
|
431
441
|
}
|