style: 固定输入框选择框宽度

feature/task1.0.0__0514__ch
向文可 4 years ago
parent ba607af61c
commit bce0da2b90

@ -1,2 +1,2 @@
VITE_BASE_URL=/api
VITE_REQUEST_TIMEOUT=20000
VITE_REQUEST_TIMEOUT=5000

@ -46,4 +46,9 @@
const slots = useSlots();
const render = () => <ElInput {...props} {...attrs} v-slots={slots}></ElInput>;
</script>
<style lang="less" scoped></style>
<style lang="less" scoped>
.el-input,
.el-textarea {
width: 160px;
}
</style>

@ -2,7 +2,7 @@
<component :is="render" />
</template>
<script setup lang="jsx">
import { ElSelect, ElOption } from 'element-plus/es/components/select/index';
import { ElOption, ElSelect } from 'element-plus/es/components/select/index';
import 'element-plus/es/components/select/style/css';
const props = defineProps({
opts: {
@ -71,4 +71,8 @@
);
</script>
<style lang="less" scoped></style>
<style lang="less" scoped>
.el-select {
width: 160px;
}
</style>

Loading…
Cancel
Save