index.vue
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script setup lang="ts">
defineOptions({
name: "GLInput",
});
</script>
<template>
<ElInput v-bind="$attrs" class="gl-input">
<template v-for="(_, name) in $slots"
:key="name"
#[name]="slotData">
<slot :name="name" v-bind="{ ...slotData }"></slot>
</template>
</ElInput>
</template>
<style scoped lang="scss">
:deep(.gl-input) {
.el-input__wrapper {
padding: 0;
background: transparent !important;
border: none !important;
box-shadow: none !important;
&:hover {
border: none !important;
box-shadow: none !important;
}
&.is-focus {
border: none !important;
box-shadow: none !important;
}
&.is-disabled {
border: none !important;
box-shadow: none !important;
}
}
.el-input__inner {
outline: none !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
&:focus {
outline: none !important;
border: none !important;
box-shadow: none !important;
}
}
}
</style>