@tongfun/tf-widget 0.1.21 → 0.1.22
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/README.md +49 -49
- package/lib/tf-widget.common.js +547 -503
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +547 -503
- package/lib/tf-widget.umd.min.js +4 -4
- package/package/svg-icon/index.js +8 -8
- package/package/svg-icon/src/SvgIcon.vue +59 -59
- package/package/t-data-list/index.js +6 -6
- package/package/t-data-list/main.vue +193 -193
- package/package/t-data-list/src/condition-input/basic.vue +31 -31
- package/package/t-data-list/src/condition-input/date.vue +106 -106
- package/package/t-data-list/src/condition-input/index.vue +100 -100
- package/package/t-data-list/src/condition-input/input.vue +31 -31
- package/package/t-data-list/src/condition-input/number.vue +115 -115
- package/package/t-data-list/src/condition-input/select.vue +86 -86
- package/package/t-data-list/src/js/fieldTypeEnum.js +10 -10
- package/package/t-data-list/src/js/operatorEnum.js +108 -108
- package/package/t-data-list/src/js/qureyParamsEnum.js +4 -4
- package/package/t-data-list/src/js/util.js +34 -34
- package/package/t-data-list/src/mixins/button-controll-mixin.js +93 -93
- package/package/t-data-list/src/pushdown/push-down.vue +158 -158
- package/package/t-data-list/src/t-list-search.vue +36 -36
- package/package/t-data-list/src/t-plan/condition-always-item.vue +143 -143
- package/package/t-data-list/src/t-plan/condition-mult-item.vue +222 -222
- package/package/t-data-list/src/t-plan/index.vue +195 -195
- package/package/t-data-list/src/t-plan/plan-content.vue +389 -389
- package/package/t-data-list/src/t-table/index.vue +129 -129
- package/package/t-data-list/src/t-table/table-group-item-edit.vue +238 -238
- package/package/t-data-list/src/t-table/table-group-item.vue +87 -87
- package/package/t-data-list/src/t-table/table-group.vue +180 -180
- package/package/t-data-list/src/t-table/table-records-header-popover.vue +246 -246
- package/package/t-data-list/src/t-table/table-records-selected.vue +159 -159
- package/package/t-data-list/src/t-table/table-records.vue +337 -337
- package/package/t-input/children/address.vue +101 -101
- package/package/t-input/children/basic-display.vue +41 -41
- package/package/t-input/children/basic.vue +253 -253
- package/package/t-input/children/date.vue +89 -89
- package/package/t-input/children/group-components/group-dialog.vue +344 -344
- package/package/t-input/children/group.vue +126 -126
- package/package/t-input/children/input.vue +72 -72
- package/package/t-input/children/number.vue +74 -74
- package/package/t-input/children/select.vue +89 -89
- package/package/t-input/children/tfile/fiile-enclosure.vue +233 -233
- package/package/t-input/index.js +7 -7
- package/package/t-input/index.vue +337 -337
- package/package/t-input/tInputCache.js +24 -24
- package/package/tf-icon-picker/README.md +7 -7
- package/package/tf-icon-picker/index.js +8 -8
- package/package/tf-icon-picker/src/tf-icon-picker.vue +266 -266
- package/package/tf-layout/README.md +115 -115
- package/package/tf-layout/index.js +8 -8
- package/package/tf-layout/src/components/tf-labelbar.vue +394 -394
- package/package/tf-layout/src/components/tf-menu.vue +180 -180
- package/package/tf-layout/src/components/tf-right-menu.vue +89 -89
- package/package/tf-layout/src/components/tf-rotate-box.vue +50 -50
- package/package/tf-layout/src/tf-layout.vue +140 -140
- package/package/tf-widget/index.js +8 -8
- package/package/tf-widget/src/assets/common-input.less +10 -10
- package/package/tf-widget/src/children/basic-data/basic-data.vue +361 -361
- package/package/tf-widget/src/children/basic-data/dependcy/basic-data-selector.vue +1087 -1087
- package/package/tf-widget/src/children/basic-data/dependcy/common-table.vue +750 -750
- package/package/tf-widget/src/children/basic-data/dependcy/condition-filter.vue +519 -519
- package/package/tf-widget/src/children/basic-data/dependcy/pagination.vue +93 -93
- package/package/tf-widget/src/children/basic-data/dependcy/table-control.vue +240 -240
- package/package/tf-widget/src/children/basic-data/dependcy/view-picture.vue +108 -108
- package/package/tf-widget/src/children/date-time.vue +103 -103
- package/package/tf-widget/src/children/date.vue +103 -103
- package/package/tf-widget/src/children/decimal.vue +115 -115
- package/package/tf-widget/src/children/integer.vue +104 -104
- package/package/tf-widget/src/children/property.vue +59 -59
- package/package/tf-widget/src/children/single-line-text.vue +82 -82
- package/package/tf-widget/src/children/small-pictures.vue +223 -223
- package/package/tf-widget/src/children/text-area.vue +74 -74
- package/package/tf-widget/src/children/tf-select.vue +113 -113
- package/package/tf-widget/src/tf-widget.vue +175 -175
- package/package.json +44 -44
- package/src/api/edit.js +97 -97
- package/src/api/file-enclosure.js +26 -26
- package/src/api/push-down.js +19 -19
- package/src/api/table.js +294 -294
- package/src/api/tableV3.js +166 -160
- package/src/assets/images/icons/index.js +9 -9
- package/src/assets/images/icons/svg/add.svg +5 -5
- package/src/assets/images/icons/svg/push-down.svg +1 -1
- package/src/assets/images/icons/svg/remove.svg +1 -1
- package/src/assets/styles/common-table.less +202 -202
- package/src/directives/debounce.js +24 -24
- package/src/index.js +31 -31
- package/src/mixins/t-data-query-mixin.js +290 -290
- package/src/utils/auth.js +22 -22
- package/src/utils/request.js +42 -42
- package/src/utils/stato-anormale.js +59 -59
- package/src/utils/utils.js +109 -109
- package/src/utils/validate.js +84 -84
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- <el-date-picker
|
|
3
|
-
:value="dateValue"
|
|
4
|
-
size="mini"
|
|
5
|
-
:type="type"
|
|
6
|
-
:disabled="disabled"
|
|
7
|
-
:format="timeFormmat"
|
|
8
|
-
value-format="yyyy-MM-dd HH:mm:ss"
|
|
9
|
-
style="width:100%"
|
|
10
|
-
@input="dateValue = $event"
|
|
11
|
-
/> -->
|
|
12
|
-
<DatePicker
|
|
13
|
-
v-model="dateValue"
|
|
14
|
-
class="wrapper"
|
|
15
|
-
range-separator="-"
|
|
16
|
-
:type="type"
|
|
17
|
-
value-type="YYYY-MM-DD HH:mm:ss"
|
|
18
|
-
confirm
|
|
19
|
-
confirm-text="确定"
|
|
20
|
-
:range="range"
|
|
21
|
-
:append-to-body="false"
|
|
22
|
-
:format="displayFormat"
|
|
23
|
-
/>
|
|
24
|
-
|
|
25
|
-
</template>
|
|
26
|
-
<script>
|
|
27
|
-
import DatePicker from 'vue2-datepicker'
|
|
28
|
-
import 'vue2-datepicker/index.css'
|
|
29
|
-
import 'vue2-datepicker/locale/zh-cn'
|
|
30
|
-
export default {
|
|
31
|
-
components: {
|
|
32
|
-
DatePicker
|
|
33
|
-
},
|
|
34
|
-
props: {
|
|
35
|
-
value: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: null
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
},
|
|
43
|
-
datetime: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: false
|
|
46
|
-
},
|
|
47
|
-
range: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
data () {
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
computed: {
|
|
58
|
-
/**
|
|
59
|
-
* 时间范围element使用数组,时间使用字符串
|
|
60
|
-
* 该计算属性,始终保持外界的数据格式为字符串,如果是范围,将使用‘,’对两个值进行分割
|
|
61
|
-
*/
|
|
62
|
-
dateValue: {
|
|
63
|
-
get () {
|
|
64
|
-
if (this.range) {
|
|
65
|
-
if (this.value) {
|
|
66
|
-
return this.value.split(',')
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return this.value
|
|
70
|
-
},
|
|
71
|
-
set (value) {
|
|
72
|
-
if (this.range) {
|
|
73
|
-
return this.$emit('input', value.join())
|
|
74
|
-
}
|
|
75
|
-
this.$emit('input', value)
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
type () {
|
|
79
|
-
return this.datetime ? 'datetime' : 'date'
|
|
80
|
-
},
|
|
81
|
-
displayFormat () {
|
|
82
|
-
return this.datetime
|
|
83
|
-
? 'YYYY-MM-DD HH:mm:ss'
|
|
84
|
-
: 'YYYY-MM-DD'
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
</script>
|
|
89
|
-
|
|
90
|
-
<style scoped lang='less'>
|
|
91
|
-
.wrapper {
|
|
92
|
-
height:100%;
|
|
93
|
-
width:100%;
|
|
94
|
-
height:100%;
|
|
95
|
-
width:100%;
|
|
96
|
-
::v-deep .mx-input {
|
|
97
|
-
height:28px !important;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
// .t-date-picker {
|
|
101
|
-
// height:100%;
|
|
102
|
-
// border:1px solid #dddfe6;
|
|
103
|
-
// width:100%;
|
|
104
|
-
// }
|
|
105
|
-
|
|
106
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<!-- <el-date-picker
|
|
3
|
+
:value="dateValue"
|
|
4
|
+
size="mini"
|
|
5
|
+
:type="type"
|
|
6
|
+
:disabled="disabled"
|
|
7
|
+
:format="timeFormmat"
|
|
8
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
|
9
|
+
style="width:100%"
|
|
10
|
+
@input="dateValue = $event"
|
|
11
|
+
/> -->
|
|
12
|
+
<DatePicker
|
|
13
|
+
v-model="dateValue"
|
|
14
|
+
class="wrapper"
|
|
15
|
+
range-separator="-"
|
|
16
|
+
:type="type"
|
|
17
|
+
value-type="YYYY-MM-DD HH:mm:ss"
|
|
18
|
+
confirm
|
|
19
|
+
confirm-text="确定"
|
|
20
|
+
:range="range"
|
|
21
|
+
:append-to-body="false"
|
|
22
|
+
:format="displayFormat"
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
</template>
|
|
26
|
+
<script>
|
|
27
|
+
import DatePicker from 'vue2-datepicker'
|
|
28
|
+
import 'vue2-datepicker/index.css'
|
|
29
|
+
import 'vue2-datepicker/locale/zh-cn'
|
|
30
|
+
export default {
|
|
31
|
+
components: {
|
|
32
|
+
DatePicker
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
value: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: null
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
datetime: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
range: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
data () {
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
computed: {
|
|
58
|
+
/**
|
|
59
|
+
* 时间范围element使用数组,时间使用字符串
|
|
60
|
+
* 该计算属性,始终保持外界的数据格式为字符串,如果是范围,将使用‘,’对两个值进行分割
|
|
61
|
+
*/
|
|
62
|
+
dateValue: {
|
|
63
|
+
get () {
|
|
64
|
+
if (this.range) {
|
|
65
|
+
if (this.value) {
|
|
66
|
+
return this.value.split(',')
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return this.value
|
|
70
|
+
},
|
|
71
|
+
set (value) {
|
|
72
|
+
if (this.range) {
|
|
73
|
+
return this.$emit('input', value.join())
|
|
74
|
+
}
|
|
75
|
+
this.$emit('input', value)
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
type () {
|
|
79
|
+
return this.datetime ? 'datetime' : 'date'
|
|
80
|
+
},
|
|
81
|
+
displayFormat () {
|
|
82
|
+
return this.datetime
|
|
83
|
+
? 'YYYY-MM-DD HH:mm:ss'
|
|
84
|
+
: 'YYYY-MM-DD'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<style scoped lang='less'>
|
|
91
|
+
.wrapper {
|
|
92
|
+
height:100%;
|
|
93
|
+
width:100%;
|
|
94
|
+
height:100%;
|
|
95
|
+
width:100%;
|
|
96
|
+
::v-deep .mx-input {
|
|
97
|
+
height:28px !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// .t-date-picker {
|
|
101
|
+
// height:100%;
|
|
102
|
+
// border:1px solid #dddfe6;
|
|
103
|
+
// width:100%;
|
|
104
|
+
// }
|
|
105
|
+
|
|
106
|
+
</style>
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="condition-input">
|
|
3
|
-
<component
|
|
4
|
-
:is="inputType"
|
|
5
|
-
:value="value"
|
|
6
|
-
:disabled="disabled"
|
|
7
|
-
:datetime="isDateTime"
|
|
8
|
-
:multi="multi"
|
|
9
|
-
:field="field"
|
|
10
|
-
:range="range"
|
|
11
|
-
:table-head="tableHead"
|
|
12
|
-
@input="handleInput"
|
|
13
|
-
/>
|
|
14
|
-
<span class="err-msg">{{ errorMsg }}</span>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<script>
|
|
18
|
-
import cdate from './date.vue'
|
|
19
|
-
import cinput from './input.vue'
|
|
20
|
-
import cselect from './select.vue'
|
|
21
|
-
import cnumber from './number.vue'
|
|
22
|
-
import cbasic from './basic.vue'
|
|
23
|
-
export default {
|
|
24
|
-
components: {
|
|
25
|
-
cdate, cinput, cselect, cnumber, cbasic
|
|
26
|
-
},
|
|
27
|
-
props: {
|
|
28
|
-
type: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: ''
|
|
31
|
-
},
|
|
32
|
-
value: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: ''
|
|
35
|
-
},
|
|
36
|
-
disabled: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: false
|
|
39
|
-
},
|
|
40
|
-
// 当前的字段,用来获取枚举的选项的参数
|
|
41
|
-
field: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: ''
|
|
44
|
-
},
|
|
45
|
-
// 是否开启多选,针对枚举类型的数据
|
|
46
|
-
multi: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
|
-
// 是否是范围类型的输入
|
|
51
|
-
range: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: false
|
|
54
|
-
},
|
|
55
|
-
// 当前的输入空间在表头上进行使用,使用不同样式和不同逻辑的判断依据
|
|
56
|
-
tableHead: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: false
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
data () {
|
|
63
|
-
return {
|
|
64
|
-
typeEnum: {
|
|
65
|
-
input: 'cinput',
|
|
66
|
-
enum: 'cselect',
|
|
67
|
-
date: 'cdate',
|
|
68
|
-
datetime: 'cdate',
|
|
69
|
-
number: 'cnumber',
|
|
70
|
-
basic: 'cbasic'
|
|
71
|
-
},
|
|
72
|
-
errorMsg: ''
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
computed: {
|
|
76
|
-
inputType () {
|
|
77
|
-
return this.typeEnum[this.type]
|
|
78
|
-
},
|
|
79
|
-
isDateTime () {
|
|
80
|
-
return this.type === 'datetime'
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
methods: {
|
|
84
|
-
handleInput (newValue) {
|
|
85
|
-
this.$emit('input', newValue)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
</script>
|
|
91
|
-
|
|
92
|
-
<style lang='less' scoped>
|
|
93
|
-
.condition-input {
|
|
94
|
-
::v-deep el-input {
|
|
95
|
-
box-sizing: border-box;
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="condition-input">
|
|
3
|
+
<component
|
|
4
|
+
:is="inputType"
|
|
5
|
+
:value="value"
|
|
6
|
+
:disabled="disabled"
|
|
7
|
+
:datetime="isDateTime"
|
|
8
|
+
:multi="multi"
|
|
9
|
+
:field="field"
|
|
10
|
+
:range="range"
|
|
11
|
+
:table-head="tableHead"
|
|
12
|
+
@input="handleInput"
|
|
13
|
+
/>
|
|
14
|
+
<span class="err-msg">{{ errorMsg }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<script>
|
|
18
|
+
import cdate from './date.vue'
|
|
19
|
+
import cinput from './input.vue'
|
|
20
|
+
import cselect from './select.vue'
|
|
21
|
+
import cnumber from './number.vue'
|
|
22
|
+
import cbasic from './basic.vue'
|
|
23
|
+
export default {
|
|
24
|
+
components: {
|
|
25
|
+
cdate, cinput, cselect, cnumber, cbasic
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
type: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ''
|
|
31
|
+
},
|
|
32
|
+
value: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ''
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
// 当前的字段,用来获取枚举的选项的参数
|
|
41
|
+
field: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ''
|
|
44
|
+
},
|
|
45
|
+
// 是否开启多选,针对枚举类型的数据
|
|
46
|
+
multi: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
// 是否是范围类型的输入
|
|
51
|
+
range: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
// 当前的输入空间在表头上进行使用,使用不同样式和不同逻辑的判断依据
|
|
56
|
+
tableHead: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
data () {
|
|
63
|
+
return {
|
|
64
|
+
typeEnum: {
|
|
65
|
+
input: 'cinput',
|
|
66
|
+
enum: 'cselect',
|
|
67
|
+
date: 'cdate',
|
|
68
|
+
datetime: 'cdate',
|
|
69
|
+
number: 'cnumber',
|
|
70
|
+
basic: 'cbasic'
|
|
71
|
+
},
|
|
72
|
+
errorMsg: ''
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
computed: {
|
|
76
|
+
inputType () {
|
|
77
|
+
return this.typeEnum[this.type]
|
|
78
|
+
},
|
|
79
|
+
isDateTime () {
|
|
80
|
+
return this.type === 'datetime'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
methods: {
|
|
84
|
+
handleInput (newValue) {
|
|
85
|
+
this.$emit('input', newValue)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<style lang='less' scoped>
|
|
93
|
+
.condition-input {
|
|
94
|
+
::v-deep el-input {
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
</style>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-input :value="value" size="mini" :disabled="disabled" @input="handleInput" />
|
|
3
|
-
</template>
|
|
4
|
-
<script>
|
|
5
|
-
export default {
|
|
6
|
-
props: {
|
|
7
|
-
value: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: ''
|
|
10
|
-
},
|
|
11
|
-
disabled: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: false
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
data () {
|
|
17
|
-
return {
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
methods: {
|
|
22
|
-
handleInput (newValue) {
|
|
23
|
-
this.$emit('input', newValue)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<style scoped>
|
|
30
|
-
|
|
31
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<el-input :value="value" size="mini" :disabled="disabled" @input="handleInput" />
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
export default {
|
|
6
|
+
props: {
|
|
7
|
+
value: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ''
|
|
10
|
+
},
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
data () {
|
|
17
|
+
return {
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
handleInput (newValue) {
|
|
23
|
+
this.$emit('input', newValue)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style scoped>
|
|
30
|
+
|
|
31
|
+
</style>
|