index.vue 1.02 KB
<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>