meixioacomponent 0.3.39 → 0.3.42
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 +582 -563
- package/lib/meixioacomponent.umd.js +582 -563
- package/lib/meixioacomponent.umd.min.js +28 -28
- package/lib/style/element/index.css +2 -21
- package/lib/style/index.less +5 -1
- package/package.json +1 -1
- package/packages/components/base/baseIcon/index.vue +49 -45
- package/packages/components/base/baseLineInfoItem/baseLineInfoItem.vue +33 -30
- package/packages/components/base/basePopoverButton/index.vue +15 -19
- package/packages/components/proForm/proForm/pro_form.vue +16 -14
- package/packages/components/proForm/proForm/pro_form_item.vue +15 -3
- package/packages/components/proPageTable/oa_pro_colum_config.vue +81 -92
- package/packages/components/proPageTable/oa_pro_handle_table_border.vue +45 -38
- package/packages/components/proPageTable/oa_pro_table-header.vue +23 -21
- package/packages/components/proPageTable/oa_pro_table.vue +93 -91
- package/packages/components/style/element/index.css +2 -21
- package/packages/components/style/index.less +5 -1
- package/src/App.vue +14 -12
- package/src/component/test.vue +24 -1
- package/src/test.js +3 -3
|
@@ -8923,16 +8923,7 @@
|
|
|
8923
8923
|
outline-width: 0;
|
|
8924
8924
|
}
|
|
8925
8925
|
|
|
8926
|
-
|
|
8927
|
-
position: absolute;
|
|
8928
|
-
border-radius: 4px;
|
|
8929
|
-
padding: 10px;
|
|
8930
|
-
z-index: 2000;
|
|
8931
|
-
font-size: 12px;
|
|
8932
|
-
line-height: 1.2;
|
|
8933
|
-
min-width: 10px;
|
|
8934
|
-
word-wrap: break-word;
|
|
8935
|
-
}
|
|
8926
|
+
|
|
8936
8927
|
|
|
8937
8928
|
.el-tooltip__popper .popper__arrow,
|
|
8938
8929
|
.el-tooltip__popper .popper__arrow::after {
|
|
@@ -14276,16 +14267,6 @@
|
|
|
14276
14267
|
outline-width: 0;
|
|
14277
14268
|
}
|
|
14278
14269
|
|
|
14279
|
-
.el-tooltip__popper {
|
|
14280
|
-
position: absolute;
|
|
14281
|
-
border-radius: 4px;
|
|
14282
|
-
padding: 10px;
|
|
14283
|
-
z-index: 2000;
|
|
14284
|
-
font-size: 12px;
|
|
14285
|
-
line-height: 1.2;
|
|
14286
|
-
min-width: 10px;
|
|
14287
|
-
word-wrap: break-word;
|
|
14288
|
-
}
|
|
14289
14270
|
|
|
14290
14271
|
.el-tooltip__popper .popper__arrow,
|
|
14291
14272
|
.el-tooltip__popper .popper__arrow::after {
|
|
@@ -18390,7 +18371,7 @@
|
|
|
18390
18371
|
.el-tooltip__popper {
|
|
18391
18372
|
position: absolute;
|
|
18392
18373
|
border-radius: 4px;
|
|
18393
|
-
padding:
|
|
18374
|
+
padding: 4px;
|
|
18394
18375
|
z-index: 2000;
|
|
18395
18376
|
font-size: 12px;
|
|
18396
18377
|
line-height: 1.2;
|
package/lib/style/index.less
CHANGED
|
@@ -13,6 +13,10 @@ body {
|
|
|
13
13
|
margin: 0px;
|
|
14
14
|
--footer-height: 40px;
|
|
15
15
|
--header-height: 63px;
|
|
16
|
+
|
|
17
|
+
.popper__arrow {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
html {
|
|
@@ -109,4 +113,4 @@ h6 {
|
|
|
109
113
|
|
|
110
114
|
#nprogress .bar {
|
|
111
115
|
background: var(--color-primary) !important;
|
|
112
|
-
}
|
|
116
|
+
}
|
package/package.json
CHANGED
|
@@ -2,24 +2,27 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="base-icon-wrap"
|
|
4
4
|
:title="title"
|
|
5
|
-
@click.stop="iconClick"
|
|
6
5
|
:class="{ event: event && !disable, plain: plain, disable: disable }"
|
|
7
6
|
>
|
|
8
|
-
<i
|
|
7
|
+
<i
|
|
8
|
+
@click.stop="iconClick"
|
|
9
|
+
:class="iconName"
|
|
10
|
+
:style="{ color: _color, fontSize: _size }"
|
|
11
|
+
></i>
|
|
9
12
|
</div>
|
|
10
13
|
</template>
|
|
11
14
|
|
|
12
15
|
<script>
|
|
13
16
|
export default {
|
|
14
|
-
name:
|
|
17
|
+
name: 'baseIcon',
|
|
15
18
|
data() {
|
|
16
|
-
return {}
|
|
19
|
+
return {}
|
|
17
20
|
},
|
|
18
21
|
|
|
19
22
|
props: {
|
|
20
23
|
iconClass: {
|
|
21
24
|
type: String,
|
|
22
|
-
default:
|
|
25
|
+
default: 'meixi',
|
|
23
26
|
},
|
|
24
27
|
event: {
|
|
25
28
|
type: Boolean,
|
|
@@ -30,11 +33,11 @@ export default {
|
|
|
30
33
|
require: true,
|
|
31
34
|
},
|
|
32
35
|
color: {
|
|
33
|
-
default:
|
|
36
|
+
default: 'd',
|
|
34
37
|
type: String,
|
|
35
38
|
},
|
|
36
39
|
size: {
|
|
37
|
-
default:
|
|
40
|
+
default: 'd',
|
|
38
41
|
type: String,
|
|
39
42
|
},
|
|
40
43
|
active: {
|
|
@@ -55,65 +58,66 @@ export default {
|
|
|
55
58
|
},
|
|
56
59
|
computed: {
|
|
57
60
|
_color() {
|
|
58
|
-
let color = null
|
|
61
|
+
let color = null
|
|
59
62
|
if (this.$props.active) {
|
|
60
|
-
color = `var(--color-primary)
|
|
61
|
-
return color
|
|
63
|
+
color = `var(--color-primary)`
|
|
64
|
+
return color
|
|
62
65
|
}
|
|
63
|
-
let propsColor = this.$props.color
|
|
66
|
+
let propsColor = this.$props.color
|
|
64
67
|
switch (propsColor) {
|
|
65
|
-
case
|
|
66
|
-
color = `var(--icon-color-d)
|
|
67
|
-
break
|
|
68
|
-
case
|
|
69
|
-
color = `var(--icon-color-m)
|
|
70
|
-
break
|
|
71
|
-
case
|
|
72
|
-
color = `var(--icon-color-s)
|
|
73
|
-
break
|
|
68
|
+
case 'd':
|
|
69
|
+
color = `var(--icon-color-d)`
|
|
70
|
+
break
|
|
71
|
+
case 'm':
|
|
72
|
+
color = `var(--icon-color-m)`
|
|
73
|
+
break
|
|
74
|
+
case 's':
|
|
75
|
+
color = `var(--icon-color-s)`
|
|
76
|
+
break
|
|
74
77
|
default:
|
|
75
|
-
color = `var(--${propsColor})
|
|
76
|
-
break
|
|
78
|
+
color = `var(--${propsColor})`
|
|
79
|
+
break
|
|
77
80
|
}
|
|
78
|
-
return color
|
|
81
|
+
return color
|
|
79
82
|
},
|
|
80
83
|
_size() {
|
|
81
|
-
let size = null
|
|
84
|
+
let size = null
|
|
82
85
|
switch (this.$props.size) {
|
|
83
|
-
case
|
|
84
|
-
size = `var(--icon-size-s)
|
|
85
|
-
break
|
|
86
|
-
case
|
|
87
|
-
size = `var(--icon-size-base)
|
|
88
|
-
break
|
|
89
|
-
case
|
|
90
|
-
size = `var(--icon-size-l)
|
|
91
|
-
break
|
|
86
|
+
case 's':
|
|
87
|
+
size = `var(--icon-size-s)`
|
|
88
|
+
break
|
|
89
|
+
case 'd':
|
|
90
|
+
size = `var(--icon-size-base)`
|
|
91
|
+
break
|
|
92
|
+
case 'l':
|
|
93
|
+
size = `var(--icon-size-l)`
|
|
94
|
+
break
|
|
92
95
|
|
|
93
96
|
default:
|
|
94
|
-
break
|
|
97
|
+
break
|
|
95
98
|
}
|
|
96
|
-
return size
|
|
99
|
+
return size
|
|
97
100
|
},
|
|
98
101
|
iconName() {
|
|
99
|
-
let _iconClass = this.$props.iconClass
|
|
100
|
-
if (_iconClass ==
|
|
101
|
-
return `meixicomponenticonfont ${this.$props.name}
|
|
102
|
-
} else if (_iconClass ==
|
|
103
|
-
return `${this.$props.name}
|
|
104
|
-
} else if (_iconClass ==
|
|
105
|
-
return `${this.$props.name}
|
|
102
|
+
let _iconClass = this.$props.iconClass
|
|
103
|
+
if (_iconClass == 'meixi') {
|
|
104
|
+
return `meixicomponenticonfont ${this.$props.name}`
|
|
105
|
+
} else if (_iconClass == 'element') {
|
|
106
|
+
return `${this.$props.name}`
|
|
107
|
+
} else if (_iconClass == 'other') {
|
|
108
|
+
return `${this.$props.name}`
|
|
106
109
|
}
|
|
107
110
|
},
|
|
108
111
|
},
|
|
109
112
|
methods: {
|
|
110
113
|
iconClick() {
|
|
111
114
|
if (this.$props.event) {
|
|
112
|
-
|
|
115
|
+
console.log('das')
|
|
116
|
+
this.$emit('iconClick')
|
|
113
117
|
}
|
|
114
118
|
},
|
|
115
119
|
},
|
|
116
|
-
}
|
|
120
|
+
}
|
|
117
121
|
</script>
|
|
118
122
|
|
|
119
123
|
<style lang="less" scoped>
|
|
@@ -139,7 +143,7 @@ export default {
|
|
|
139
143
|
&:hover {
|
|
140
144
|
// background: var(--hover-gray);
|
|
141
145
|
i {
|
|
142
|
-
color: var(--color-primary)
|
|
146
|
+
color: var(--color-primary);
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
149
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:size="`l`"
|
|
9
9
|
:event="event"
|
|
10
10
|
@iconClick="iconClick"
|
|
11
|
-
style="margin-right: var(--margin-5)"
|
|
11
|
+
style="margin-right: var(--margin-5);"
|
|
12
12
|
></base-icon>
|
|
13
13
|
<span>{{ label }}</span>
|
|
14
14
|
</div>
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
textAlign: valueAlign,
|
|
30
30
|
}"
|
|
31
31
|
>
|
|
32
|
-
{{ value }}
|
|
33
|
-
>
|
|
32
|
+
{{ value }}
|
|
33
|
+
</span>
|
|
34
34
|
</el-tooltip>
|
|
35
35
|
|
|
36
36
|
<div
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
|
|
49
49
|
<script>
|
|
50
50
|
export default {
|
|
51
|
-
name:
|
|
51
|
+
name: 'baseLineInfoItem',
|
|
52
52
|
data() {
|
|
53
53
|
return {
|
|
54
54
|
isChildren: false,
|
|
55
|
-
}
|
|
55
|
+
}
|
|
56
56
|
},
|
|
57
57
|
created() {
|
|
58
|
-
if (this.$parent.$options.name ==
|
|
59
|
-
this.isChildren = true
|
|
58
|
+
if (this.$parent.$options.name == 'baseLineInfoGroup') {
|
|
59
|
+
this.isChildren = true
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
props: {
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
},
|
|
82
82
|
valueAlign: {
|
|
83
83
|
type: String,
|
|
84
|
-
default:
|
|
84
|
+
default: 'left',
|
|
85
85
|
},
|
|
86
86
|
labelWidth: {
|
|
87
87
|
type: Number,
|
|
@@ -89,45 +89,45 @@ export default {
|
|
|
89
89
|
},
|
|
90
90
|
computed: {
|
|
91
91
|
_labelWidth() {
|
|
92
|
-
let width = null
|
|
92
|
+
let width = null
|
|
93
93
|
if (this.isChildren) {
|
|
94
|
-
width = this.$parent.labelWidth
|
|
94
|
+
width = this.$parent.labelWidth
|
|
95
95
|
} else {
|
|
96
|
-
width = this.$props.labelWidth
|
|
96
|
+
width = this.$props.labelWidth
|
|
97
97
|
}
|
|
98
|
-
return width
|
|
98
|
+
return width
|
|
99
99
|
},
|
|
100
100
|
|
|
101
101
|
slotAlignStyle() {
|
|
102
|
-
let value =
|
|
103
|
-
let align = this.$props.valueAlign
|
|
102
|
+
let value = ''
|
|
103
|
+
let align = this.$props.valueAlign
|
|
104
104
|
switch (align) {
|
|
105
|
-
case
|
|
106
|
-
value = `flex-start
|
|
107
|
-
break
|
|
108
|
-
case
|
|
109
|
-
value = `center
|
|
110
|
-
break
|
|
111
|
-
case
|
|
112
|
-
value =
|
|
113
|
-
break
|
|
105
|
+
case 'left':
|
|
106
|
+
value = `flex-start`
|
|
107
|
+
break
|
|
108
|
+
case 'center':
|
|
109
|
+
value = `center`
|
|
110
|
+
break
|
|
111
|
+
case 'right':
|
|
112
|
+
value = 'flex-end'
|
|
113
|
+
break
|
|
114
114
|
|
|
115
115
|
default:
|
|
116
|
-
break
|
|
116
|
+
break
|
|
117
117
|
}
|
|
118
|
-
return value
|
|
118
|
+
return value
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
methods: {
|
|
122
122
|
iconClick() {
|
|
123
123
|
if (this.isChildren) {
|
|
124
|
-
this.$emit(
|
|
124
|
+
this.$emit('infoclickicon')
|
|
125
125
|
} else {
|
|
126
|
-
this.$emit(
|
|
126
|
+
this.$emit('infoclickicon', this.$props)
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
|
-
}
|
|
130
|
+
}
|
|
131
131
|
</script>
|
|
132
132
|
|
|
133
133
|
<style lang="less" scoped>
|
|
@@ -137,7 +137,12 @@ export default {
|
|
|
137
137
|
display: flex;
|
|
138
138
|
align-items: center;
|
|
139
139
|
flex-flow: row nowrap;
|
|
140
|
+
margin-bottom: var(--margin-4);
|
|
140
141
|
justify-content: space-between;
|
|
142
|
+
|
|
143
|
+
&:last-of-type {
|
|
144
|
+
margin-bottom: 0px;
|
|
145
|
+
}
|
|
141
146
|
.infor-label {
|
|
142
147
|
display: flex;
|
|
143
148
|
align-items: center;
|
|
@@ -148,8 +153,6 @@ export default {
|
|
|
148
153
|
}
|
|
149
154
|
.infor-value {
|
|
150
155
|
box-sizing: border-box;
|
|
151
|
-
padding: var(--padding-5) 0px;
|
|
152
|
-
padding-left: var(--padding-5);
|
|
153
156
|
.infor-value_text {
|
|
154
157
|
vertical-align: middle;
|
|
155
158
|
color: var(--font-color-d);
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
:disabled="disabled"
|
|
20
20
|
class="popover-button"
|
|
21
21
|
:type="module ? 'selected' : 'info'"
|
|
22
|
+
@click.stop="iconClick"
|
|
22
23
|
:class="{ 'is-single': !buttonText && buttonIcon }"
|
|
23
24
|
>
|
|
24
25
|
<base-icon
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
@iconClick="iconClick"
|
|
33
34
|
:color="module ? 'text-white' : 'd'"
|
|
34
35
|
></base-icon>
|
|
35
|
-
<span class="inner-span" v-if="buttonText">
|
|
36
|
+
<span class="inner-span" v-if="buttonText">{{ buttonText }}</span>
|
|
36
37
|
</el-button>
|
|
37
38
|
<template slot="reference" v-else>
|
|
38
39
|
<slot name="popoverReference"></slot>
|
|
@@ -42,9 +43,9 @@
|
|
|
42
43
|
|
|
43
44
|
<script>
|
|
44
45
|
export default {
|
|
45
|
-
name:
|
|
46
|
+
name: 'basePopoverButton',
|
|
46
47
|
data() {
|
|
47
|
-
return {}
|
|
48
|
+
return {}
|
|
48
49
|
},
|
|
49
50
|
|
|
50
51
|
props: {
|
|
@@ -57,17 +58,17 @@ export default {
|
|
|
57
58
|
// click/focus/hover/manual
|
|
58
59
|
trigger: {
|
|
59
60
|
type: String,
|
|
60
|
-
default:
|
|
61
|
+
default: 'click',
|
|
61
62
|
},
|
|
62
63
|
// 位置
|
|
63
64
|
// top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end
|
|
64
65
|
placement: {
|
|
65
|
-
default:
|
|
66
|
+
default: 'bottom',
|
|
66
67
|
type: String,
|
|
67
68
|
},
|
|
68
69
|
// button 按钮的大小
|
|
69
70
|
buttonSize: {
|
|
70
|
-
default:
|
|
71
|
+
default: 'small',
|
|
71
72
|
},
|
|
72
73
|
// 控制显影的参数
|
|
73
74
|
value: {
|
|
@@ -77,7 +78,7 @@ export default {
|
|
|
77
78
|
// button文字内容
|
|
78
79
|
buttonText: {
|
|
79
80
|
type: String,
|
|
80
|
-
default:
|
|
81
|
+
default: '',
|
|
81
82
|
},
|
|
82
83
|
|
|
83
84
|
// icon的类名
|
|
@@ -88,7 +89,7 @@ export default {
|
|
|
88
89
|
|
|
89
90
|
iconClass: {
|
|
90
91
|
type: String,
|
|
91
|
-
default:
|
|
92
|
+
default: 'meixi',
|
|
92
93
|
},
|
|
93
94
|
|
|
94
95
|
template: {
|
|
@@ -99,33 +100,29 @@ export default {
|
|
|
99
100
|
computed: {
|
|
100
101
|
module: {
|
|
101
102
|
set(val) {
|
|
102
|
-
this.$emit(
|
|
103
|
+
this.$emit('input', val)
|
|
103
104
|
},
|
|
104
105
|
get() {
|
|
105
|
-
return this.$props.value
|
|
106
|
+
return this.$props.value
|
|
106
107
|
},
|
|
107
108
|
},
|
|
108
109
|
},
|
|
109
110
|
methods: {
|
|
110
111
|
popoverShow() {
|
|
111
|
-
this.$emit(
|
|
112
|
+
this.$emit('popoverShow')
|
|
112
113
|
},
|
|
113
114
|
popoverHide() {
|
|
114
|
-
this.$emit(
|
|
115
|
+
this.$emit('poporverHide')
|
|
115
116
|
},
|
|
116
117
|
iconClick() {
|
|
117
|
-
this.
|
|
118
|
+
this.$refs.popover.doShow()
|
|
118
119
|
},
|
|
119
120
|
},
|
|
120
|
-
}
|
|
121
|
+
}
|
|
121
122
|
</script>
|
|
122
123
|
|
|
123
124
|
<style lang="less" scoped>
|
|
124
|
-
.popover-content {
|
|
125
|
-
}
|
|
126
125
|
.popover-button {
|
|
127
|
-
.button-icon {
|
|
128
|
-
}
|
|
129
126
|
/deep/ span {
|
|
130
127
|
display: flex;
|
|
131
128
|
align-items: center;
|
|
@@ -139,6 +136,5 @@ export default {
|
|
|
139
136
|
.is-single {
|
|
140
137
|
border: none;
|
|
141
138
|
padding: 7px !important;
|
|
142
|
-
background: var(--color-gray-m);
|
|
143
139
|
}
|
|
144
140
|
</style>
|
|
@@ -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"
|
|
@@ -185,10 +185,13 @@
|
|
|
185
185
|
type="textarea"
|
|
186
186
|
v-model="module"
|
|
187
187
|
:disabled="isDisabled"
|
|
188
|
+
:maxlength="config.maxlength"
|
|
188
189
|
v-if="config.type == 'textarea'"
|
|
190
|
+
:show-word-limit="config.maxlength ? true : false"
|
|
189
191
|
></el-input>
|
|
190
192
|
<!-- 插槽 -->
|
|
191
193
|
<slot name="template" v-else-if="config.type == 'template'"></slot>
|
|
194
|
+
<slot name="area" v-else-if="config.type == 'area'"></slot>
|
|
192
195
|
</div>
|
|
193
196
|
<!-- 确定的按钮 -->
|
|
194
197
|
<div class="bottom-handle-wrap" v-show="isEdit && !form">
|
|
@@ -213,7 +216,6 @@
|
|
|
213
216
|
</template>
|
|
214
217
|
|
|
215
218
|
<script>
|
|
216
|
-
import { FilterTime } from '../../../utils/utils'
|
|
217
219
|
//
|
|
218
220
|
import componentConfig from '../../../config/componentConfig'
|
|
219
221
|
export default {
|
|
@@ -303,6 +305,17 @@ export default {
|
|
|
303
305
|
}
|
|
304
306
|
return false
|
|
305
307
|
},
|
|
308
|
+
|
|
309
|
+
typeOftemplate() {
|
|
310
|
+
const { type } = this.$props.config
|
|
311
|
+
|
|
312
|
+
if (type == 'template' || type == 'area') {
|
|
313
|
+
return true
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return false
|
|
317
|
+
},
|
|
318
|
+
|
|
306
319
|
contentValue() {
|
|
307
320
|
let type = this.$props.config.type
|
|
308
321
|
switch (type) {
|
|
@@ -425,7 +438,6 @@ export default {
|
|
|
425
438
|
},
|
|
426
439
|
targetFocus() {
|
|
427
440
|
let ref = this.$refs.target
|
|
428
|
-
console.log(ref)
|
|
429
441
|
if (ref) {
|
|
430
442
|
ref.focus()
|
|
431
443
|
}
|