meixioacomponent 2.0.65 → 2.0.67
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/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +9 -3
- package/lib/config/TransferTDComponent.d.ts +2 -0
- package/lib/config/TransferTDComponent.d.ts.map +1 -0
- package/lib/config/TransferTDComponent.js +31 -0
- package/lib/meixioacomponent.common.js +571 -117
- package/lib/meixioacomponent.umd.js +564 -110
- package/lib/meixioacomponent.umd.min.js +2 -2
- package/package.json +2 -2
- package/packages/components/base/baseArea/baseArea.vue +6 -6
- package/packages/components/base/baseDrawer/index.vue +1 -1
- package/packages/components/base/basePlainTable/basePlainTable.vue +1 -1
- package/packages/components/base/baseStoreSelect/index.vue +1 -1
- package/packages/components/base/baseText/index.vue +11 -4
- package/packages/components/base/baseToggle/toggle.vue +7 -7
- package/packages/components/base/tDateRangePicker/tDateRangePicker.vue +14 -5
- package/packages/components/base/tInput/index.js +6 -0
- package/packages/components/base/tInput/tInput.vue +149 -0
- package/packages/components/base/tInputNumber/index.js +6 -0
- package/packages/components/base/tInputNumber/tInputNumber.vue +104 -0
- package/packages/components/base/tSelect/index.js +0 -0
- package/packages/components/base/tSelect/tSelect.vue +176 -0
- package/packages/components/index.js +9 -3
- package/packages/components/index.ts +13 -5
- package/packages/components/mixins/tableSectionMixins.js +1 -0
- package/packages/components/proPageTable/oa_pro_table.vue +1 -1
- package/packages/config/TransferTDComponent.js +31 -0
- package/packages/config/TransferTDComponent.ts +23 -0
- package/packages/utils/utils.js +1 -1
- package/tsconfig.json +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meixioacomponent",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.67",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
32
32
|
"npm": "^9.6.1",
|
|
33
33
|
"path-browserify": "^1.0.1",
|
|
34
|
-
"tdesign-vue": "^1.
|
|
34
|
+
"tdesign-vue": "^1.14.5-naruto",
|
|
35
35
|
"ts-loader": "^9.4.2",
|
|
36
36
|
"tslint": "^6.1.3",
|
|
37
37
|
"tslint-config-standard": "^9.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--<template>-->
|
|
2
2
|
<!-- <div class="base-area-select-wrap">-->
|
|
3
|
-
<!-- <
|
|
3
|
+
<!-- <tInputNumber-popup-->
|
|
4
4
|
<!-- v-model="isOpen"-->
|
|
5
5
|
<!-- ref="popover"-->
|
|
6
6
|
<!-- :disabled="disable"-->
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
<!-- class="area-item"-->
|
|
48
48
|
<!-- >-->
|
|
49
49
|
|
|
50
|
-
<!-- <
|
|
50
|
+
<!-- <tInputNumber-button class="delete-btn" v-if="item.label == activeArea" shape="square" variant="outline"-->
|
|
51
51
|
<!-- @click="deleteCheck">-->
|
|
52
52
|
<!-- <template #icon>-->
|
|
53
53
|
<!-- <CloseCircleIcon-->
|
|
54
54
|
<!-- ></CloseCircleIcon>-->
|
|
55
55
|
<!-- </template>-->
|
|
56
|
-
<!-- </
|
|
56
|
+
<!-- </tInputNumber-button>-->
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
<!-- <span :title="item.label" @click="checkArea(item)">{{ item.label }}</span>-->
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<!-- class="area-select-input"-->
|
|
76
76
|
<!-- @click="openSelectWrap"-->
|
|
77
77
|
<!-- >-->
|
|
78
|
-
<!-- <
|
|
78
|
+
<!-- <tInputNumber-input :size="componentSize"-->
|
|
79
79
|
<!-- v-model="showModule"-->
|
|
80
80
|
<!-- :disabled="disable"-->
|
|
81
81
|
<!-- :readonly="true"-->
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
<!-- <arrow-down-icon v-if="!isOpen"></arrow-down-icon>-->
|
|
85
85
|
<!-- <arrow-up-icon v-else></arrow-up-icon>-->
|
|
86
86
|
<!-- </template>-->
|
|
87
|
-
<!-- </
|
|
87
|
+
<!-- </tInputNumber-input>-->
|
|
88
88
|
<!-- </div>-->
|
|
89
|
-
<!-- </
|
|
89
|
+
<!-- </tInputNumber-popup>-->
|
|
90
90
|
<!-- </div>-->
|
|
91
91
|
<!--</template>-->
|
|
92
92
|
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
return {
|
|
74
74
|
open: false,
|
|
75
75
|
useResize: null,
|
|
76
|
-
ignoreList: ['t-select__list', 't-popup','t-dialog__wrap'],
|
|
76
|
+
ignoreList: ["guide-content-wrap", "base-guide-overlay", 'tInputNumber-select__list', 'tInputNumber-popup', 'tInputNumber-dialog__wrap', 't-select__list', 't-popup', 't-dialog__wrap'],
|
|
77
77
|
showCloseButton: false
|
|
78
78
|
};
|
|
79
79
|
},
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
:value="parseFloat(content)" prefix="¥" trend="increase"/>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
<div v-else-if="type==='money+'" :class="[
|
|
17
|
+
<div v-else-if="type==='money+'" :class="['money-plus']">
|
|
18
18
|
<t-statistic
|
|
19
19
|
:color="parseFloat(content)>0?'var(--color-error)': 'var(--font-color-d)'"
|
|
20
20
|
:value="parseFloat(content)" prefix="¥" trend="increase"/>
|
|
21
21
|
</div>
|
|
22
|
-
<div v-else-if="type==='money-'" :class="[
|
|
22
|
+
<div v-else-if="type==='money-'" :class="['money-sub']">
|
|
23
23
|
<t-statistic
|
|
24
24
|
:color="parseFloat(content)<0?'var(--color-success)':'var(--font-color-d)'"
|
|
25
25
|
:value="parseFloat(content)" prefix="¥" trend="increase"/>
|
|
@@ -158,14 +158,21 @@ export default {
|
|
|
158
158
|
justify-content: flex-start;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.time, .number, .money, .money
|
|
161
|
+
.time, .number, .money, .money-plus, .money-sub {
|
|
162
162
|
font-family: TCloudNumber !important;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.money, .money
|
|
165
|
+
.money, .money-plus, .money-sub {
|
|
166
166
|
font-weight: var(--font-weight-kg);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
.money {
|
|
170
|
+
/deep/ .t-statistic-content {
|
|
171
|
+
color: var(--color-warn) !important;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
169
176
|
|
|
170
177
|
/deep/ .t-statistic-content-prefix {
|
|
171
178
|
font-size: var(--font-size-s) !important;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<t-radio-group
|
|
3
3
|
ref="tRadioGroupRef"
|
|
4
|
-
v-model="module" :
|
|
4
|
+
v-model="module" :readonly="disabled" :size="componentSize" variant="primary-filled">
|
|
5
5
|
<t-radio-button
|
|
6
|
+
:readonly="item.disabled"
|
|
6
7
|
v-for="(item, index) in toggleList"
|
|
7
8
|
:key="index"
|
|
8
|
-
:disabled="item.disabled"
|
|
9
9
|
:value="item.value">{{ item.label }}
|
|
10
10
|
</t-radio-button>
|
|
11
11
|
</t-radio-group>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
-
const checkedClassName = '
|
|
16
|
-
const radioButtonClassName = '
|
|
17
|
-
const blockClassName = '
|
|
15
|
+
const checkedClassName = 'tInputNumber-is-checked';
|
|
16
|
+
const radioButtonClassName = 'tInputNumber-radio-button';
|
|
17
|
+
const blockClassName = 'tInputNumber-radio-group__bg-block'
|
|
18
18
|
|
|
19
19
|
import {isIos, TransomComponentSize} from "../../../utils/utils";
|
|
20
20
|
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
|
|
203
203
|
.middle, .small {
|
|
204
204
|
.toggle-item-wrap {
|
|
205
|
-
padding:
|
|
205
|
+
padding: 0 calc(var(--padding-4));
|
|
206
206
|
line-height: calc(var(--font-size-base) + 8px);
|
|
207
207
|
|
|
208
208
|
span {
|
|
@@ -214,7 +214,7 @@ export default {
|
|
|
214
214
|
.big {
|
|
215
215
|
.toggle-item-wrap {
|
|
216
216
|
line-height: 48px;
|
|
217
|
-
padding:
|
|
217
|
+
padding: 0 calc(var(--padding-3) * 3);
|
|
218
218
|
|
|
219
219
|
span {
|
|
220
220
|
font-size: var(--font-size-l);
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
@pick="onPick"
|
|
10
10
|
enableTimePicker
|
|
11
11
|
@preset-click="onPresetClick"
|
|
12
|
-
:presets="computedPresets"
|
|
12
|
+
:presets="computedPresets"
|
|
13
|
+
:readonly="_readonly"
|
|
14
|
+
:disabled="_disabled"
|
|
15
|
+
/>
|
|
13
16
|
</template>
|
|
14
17
|
|
|
15
18
|
|
|
@@ -66,6 +69,16 @@ export default {
|
|
|
66
69
|
...now
|
|
67
70
|
}
|
|
68
71
|
}
|
|
72
|
+
},
|
|
73
|
+
_readonly: {
|
|
74
|
+
get() {
|
|
75
|
+
return !!(this.$attrs.disabled || this.$attrs.readonly);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
_disabled: {
|
|
79
|
+
get() {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
69
82
|
}
|
|
70
83
|
},
|
|
71
84
|
methods: {
|
|
@@ -95,9 +108,5 @@ export default {
|
|
|
95
108
|
</script>
|
|
96
109
|
|
|
97
110
|
<style scoped lang="less">
|
|
98
|
-
.t_date_range_picker-wrap {
|
|
99
|
-
width: auto;
|
|
100
|
-
height: auto;
|
|
101
|
-
}
|
|
102
111
|
|
|
103
112
|
</style>
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Input v-model="module"
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
@blur="onBlur"
|
|
5
|
+
@change="onChange"
|
|
6
|
+
@confirm="onConfirm"
|
|
7
|
+
@focus="onFocus"
|
|
8
|
+
@input="onInput"
|
|
9
|
+
@pick="onPick"
|
|
10
|
+
@click="onClick"
|
|
11
|
+
@enter="onEnter"
|
|
12
|
+
@keydown="onKeydown"
|
|
13
|
+
@keypress="onKeypress"
|
|
14
|
+
@keyup="onKeyup"
|
|
15
|
+
@mouseenter="onMouseenter"
|
|
16
|
+
@mouseleave="onMouseleave"
|
|
17
|
+
@paste="onPaste"
|
|
18
|
+
@validate="onValidate"
|
|
19
|
+
@wheel="onWheel"
|
|
20
|
+
:readonly="_readonly"
|
|
21
|
+
:disabled="_disabled"
|
|
22
|
+
>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<template #label>
|
|
26
|
+
<slot name="label"></slot>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<template #prefixIcon>
|
|
30
|
+
<slot name="prefixIcon"></slot>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<template #suffix>
|
|
35
|
+
<slot name="suffix"></slot>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<template #suffixIcon>
|
|
40
|
+
<slot name="suffixIcon"></slot>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
<template #tips>
|
|
45
|
+
<slot name="tips"></slot>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</Input>
|
|
50
|
+
</template>
|
|
51
|
+
<script>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
name: "tInput",
|
|
56
|
+
data() {
|
|
57
|
+
return {}
|
|
58
|
+
},
|
|
59
|
+
props: {
|
|
60
|
+
value: {
|
|
61
|
+
type: String,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
components: {},
|
|
65
|
+
created() {
|
|
66
|
+
},
|
|
67
|
+
computed: {
|
|
68
|
+
module: {
|
|
69
|
+
set(val) {
|
|
70
|
+
this.$emit('input', val);
|
|
71
|
+
},
|
|
72
|
+
get() {
|
|
73
|
+
return this.$props.value;
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
_readonly: {
|
|
77
|
+
get() {
|
|
78
|
+
return !!(this.$attrs.disabled || this.$attrs.readonly);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
_disabled: {
|
|
82
|
+
get() {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
onBlur(event) {
|
|
90
|
+
this.$emit('blur', event);
|
|
91
|
+
},
|
|
92
|
+
onChange(event) {
|
|
93
|
+
this.$emit('change', event);
|
|
94
|
+
},
|
|
95
|
+
onConfirm(event) {
|
|
96
|
+
this.$emit('confirm', event);
|
|
97
|
+
},
|
|
98
|
+
onFocus(event) {
|
|
99
|
+
this.$emit('focus', event);
|
|
100
|
+
},
|
|
101
|
+
onInput(event) {
|
|
102
|
+
this.$emit('input', event);
|
|
103
|
+
},
|
|
104
|
+
onPick(event) {
|
|
105
|
+
this.$emit('pick', event);
|
|
106
|
+
},
|
|
107
|
+
onClear(event) {
|
|
108
|
+
this.$emit('clear', event);
|
|
109
|
+
},
|
|
110
|
+
onClick(event) {
|
|
111
|
+
this.$emit('click', event);
|
|
112
|
+
},
|
|
113
|
+
onEnter(event) {
|
|
114
|
+
this.$emit('enter', event);
|
|
115
|
+
},
|
|
116
|
+
onKeydown(event) {
|
|
117
|
+
this.$emit('keydown', event);
|
|
118
|
+
},
|
|
119
|
+
onKeypress(event) {
|
|
120
|
+
this.$emit('keypress', event);
|
|
121
|
+
},
|
|
122
|
+
onKeyup(event) {
|
|
123
|
+
this.$emit('keyup', event);
|
|
124
|
+
},
|
|
125
|
+
onMouseenter(event) {
|
|
126
|
+
this.$emit('mouseenter', event);
|
|
127
|
+
},
|
|
128
|
+
onMouseleave(event) {
|
|
129
|
+
this.$emit('mouseleave', event);
|
|
130
|
+
},
|
|
131
|
+
onPaste(event) {
|
|
132
|
+
this.$emit('paste', event);
|
|
133
|
+
},
|
|
134
|
+
onValidate(event) {
|
|
135
|
+
this.$emit('validate', event);
|
|
136
|
+
},
|
|
137
|
+
onWheel(event) {
|
|
138
|
+
this.$emit('wheel', event);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</script>
|
|
143
|
+
|
|
144
|
+
<style scoped lang="less">
|
|
145
|
+
/deep/.t-input.t-is-readonly .t-input__inner{
|
|
146
|
+
cursor: not-allowed !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
</style>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
<input-number v-model="module"
|
|
4
|
+
v-bind="$attrs"
|
|
5
|
+
@blur="onBlur"
|
|
6
|
+
@change="onChange"
|
|
7
|
+
@focus="onFocus"
|
|
8
|
+
@enter="onEnter"
|
|
9
|
+
@keydown="onKeydown"
|
|
10
|
+
@keypress="onKeypress"
|
|
11
|
+
@keyup="onKeyup"
|
|
12
|
+
@validate="onValidate"
|
|
13
|
+
:readonly="_readonly"
|
|
14
|
+
:disabled="_disabled"
|
|
15
|
+
>
|
|
16
|
+
<template #label>
|
|
17
|
+
<slot name="label"></slot>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<template #suffix>
|
|
21
|
+
<slot name="suffix"></slot>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<template #tips>
|
|
25
|
+
<slot name="tips"></slot>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
</input-number>
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: "tInputNumber",
|
|
35
|
+
data() {
|
|
36
|
+
return {}
|
|
37
|
+
},
|
|
38
|
+
props: {
|
|
39
|
+
value: {
|
|
40
|
+
type: String,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
components: {},
|
|
44
|
+
created() {
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
module: {
|
|
48
|
+
set(val) {
|
|
49
|
+
this.$emit('input', val);
|
|
50
|
+
},
|
|
51
|
+
get() {
|
|
52
|
+
return this.$props.value;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
_readonly: {
|
|
56
|
+
get() {
|
|
57
|
+
return !!(this.$attrs.disabled || this.$attrs.readonly);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
_disabled: {
|
|
61
|
+
get() {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
},
|
|
67
|
+
methods: {
|
|
68
|
+
onBlur(event) {
|
|
69
|
+
this.$emit('blur', event);
|
|
70
|
+
},
|
|
71
|
+
onChange(event) {
|
|
72
|
+
this.$emit('change', event);
|
|
73
|
+
},
|
|
74
|
+
onConfirm(event) {
|
|
75
|
+
this.$emit('confirm', event);
|
|
76
|
+
},
|
|
77
|
+
onFocus(event) {
|
|
78
|
+
this.$emit('focus', event);
|
|
79
|
+
},
|
|
80
|
+
onEnter(event) {
|
|
81
|
+
this.$emit('enter', event);
|
|
82
|
+
},
|
|
83
|
+
onKeydown(event) {
|
|
84
|
+
this.$emit('keydown', event);
|
|
85
|
+
},
|
|
86
|
+
onKeypress(event) {
|
|
87
|
+
this.$emit('keypress', event);
|
|
88
|
+
},
|
|
89
|
+
onKeyup(event) {
|
|
90
|
+
this.$emit('keyup', event);
|
|
91
|
+
},
|
|
92
|
+
onValidate(event) {
|
|
93
|
+
this.$emit('validate', event);
|
|
94
|
+
},
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<style scoped lang="less">
|
|
100
|
+
/deep/.t-input.t-is-readonly .t-input__inner{
|
|
101
|
+
cursor: not-allowed !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
</style>
|
|
File without changes
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Select v-model="module"
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
@blur="onBlur"
|
|
5
|
+
@change="onChange"
|
|
6
|
+
@confirm="onConfirm"
|
|
7
|
+
@focus="onFocus"
|
|
8
|
+
@input="onInput"
|
|
9
|
+
@pick="onPick"
|
|
10
|
+
@click="onClick"
|
|
11
|
+
@enter="onEnter"
|
|
12
|
+
@keydown="onKeydown"
|
|
13
|
+
@keypress="onKeypress"
|
|
14
|
+
@keyup="onKeyup"
|
|
15
|
+
@mouseenter="onMouseenter"
|
|
16
|
+
@mouseleave="onMouseleave"
|
|
17
|
+
@paste="onPaste"
|
|
18
|
+
@validate="onValidate"
|
|
19
|
+
@wheel="onWheel"
|
|
20
|
+
:readonly="_readonly"
|
|
21
|
+
:disabled="_disabled"
|
|
22
|
+
>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<template #collapsedItems="{value,collapsedSelectedItems,count,onClose}">
|
|
26
|
+
<slot name="collapsedItems" :scope="{value,collapsedSelectedItems,count,onClose}"></slot>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<template #empty>
|
|
30
|
+
<slot name="empty"></slot>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<template #label>
|
|
35
|
+
<slot name="label"></slot>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<template #loadingText>
|
|
40
|
+
<slot name="loadingText"></slot>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
<template #panelBottomContent>
|
|
45
|
+
<slot name="panelBottomContent"></slot>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<template #panelTopContent>
|
|
50
|
+
<slot name="panelTopContent"></slot>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
<template #prefixIcon>
|
|
55
|
+
<slot name="prefixIcon"></slot>
|
|
56
|
+
</template>
|
|
57
|
+
<template #suffix>
|
|
58
|
+
<slot name="suffix"></slot>
|
|
59
|
+
</template>
|
|
60
|
+
|
|
61
|
+
<template #suffixIcon>
|
|
62
|
+
<slot name="suffixIcon"></slot>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<template #valueDisplay>
|
|
67
|
+
<slot name="valueDisplay"></slot>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<template>
|
|
72
|
+
<slot></slot>
|
|
73
|
+
</template>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</Select>
|
|
77
|
+
</template>
|
|
78
|
+
<script>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
export default {
|
|
82
|
+
name: "tInput",
|
|
83
|
+
data() {
|
|
84
|
+
return {}
|
|
85
|
+
},
|
|
86
|
+
props: {
|
|
87
|
+
value: {
|
|
88
|
+
type: String,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
components: {},
|
|
92
|
+
created() {
|
|
93
|
+
},
|
|
94
|
+
computed: {
|
|
95
|
+
module: {
|
|
96
|
+
set(val) {
|
|
97
|
+
this.$emit('input', val);
|
|
98
|
+
},
|
|
99
|
+
get() {
|
|
100
|
+
return this.$props.value;
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
_readonly: {
|
|
104
|
+
get() {
|
|
105
|
+
return !!(this.$attrs.disabled || this.$attrs.readonly);
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
_disabled: {
|
|
109
|
+
get() {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
onBlur(event) {
|
|
117
|
+
this.$emit('blur', event);
|
|
118
|
+
},
|
|
119
|
+
onChange(event) {
|
|
120
|
+
this.$emit('change', event);
|
|
121
|
+
},
|
|
122
|
+
onConfirm(event) {
|
|
123
|
+
this.$emit('confirm', event);
|
|
124
|
+
},
|
|
125
|
+
onFocus(event) {
|
|
126
|
+
this.$emit('focus', event);
|
|
127
|
+
},
|
|
128
|
+
onInput(event) {
|
|
129
|
+
this.$emit('input', event);
|
|
130
|
+
},
|
|
131
|
+
onPick(event) {
|
|
132
|
+
this.$emit('pick', event);
|
|
133
|
+
},
|
|
134
|
+
onClear(event) {
|
|
135
|
+
this.$emit('clear', event);
|
|
136
|
+
},
|
|
137
|
+
onClick(event) {
|
|
138
|
+
this.$emit('click', event);
|
|
139
|
+
},
|
|
140
|
+
onEnter(event) {
|
|
141
|
+
this.$emit('enter', event);
|
|
142
|
+
},
|
|
143
|
+
onKeydown(event) {
|
|
144
|
+
this.$emit('keydown', event);
|
|
145
|
+
},
|
|
146
|
+
onKeypress(event) {
|
|
147
|
+
this.$emit('keypress', event);
|
|
148
|
+
},
|
|
149
|
+
onKeyup(event) {
|
|
150
|
+
this.$emit('keyup', event);
|
|
151
|
+
},
|
|
152
|
+
onMouseenter(event) {
|
|
153
|
+
this.$emit('mouseenter', event);
|
|
154
|
+
},
|
|
155
|
+
onMouseleave(event) {
|
|
156
|
+
this.$emit('mouseleave', event);
|
|
157
|
+
},
|
|
158
|
+
onPaste(event) {
|
|
159
|
+
this.$emit('paste', event);
|
|
160
|
+
},
|
|
161
|
+
onValidate(event) {
|
|
162
|
+
this.$emit('validate', event);
|
|
163
|
+
},
|
|
164
|
+
onWheel(event) {
|
|
165
|
+
this.$emit('wheel', event);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
</script>
|
|
170
|
+
|
|
171
|
+
<style scoped lang="less">
|
|
172
|
+
/deep/ .t-input.t-is-readonly .t-input__inner {
|
|
173
|
+
cursor: not-allowed !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
</style>
|