fix: input-number style

This commit is contained in:
就眠儀式 2022-03-23 14:28:51 +08:00
parent 3e22cfb2fe
commit 80ee69786f
5 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layui-vue", "name": "@layui/layui-vue",
"version": "0.4.0", "version": "0.4.1-alpha.1",
"author": "就眠儀式", "author": "就眠儀式",
"license": "MIT", "license": "MIT",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",

View File

@ -41,8 +41,8 @@ const onBlur = function () {
}; };
const clear = () => { const clear = () => {
emit("update:modelValue", ""); emit("update:modelValue", "");
} };
</script> </script>
<template> <template>

View File

@ -54,7 +54,7 @@
overflow: hidden; overflow: hidden;
.set-size(@lg-wdith, @lg, @lg-right); .set-size(@lg-wdith, @lg, @lg-right);
margin-left: 5px; margin-left: 5px;
.layui-input { .layui-input-wrapper {
text-align: center; text-align: center;
border: 0; border: 0;
} }

View File

@ -6,8 +6,8 @@ export default {
<script setup lang="ts"> <script setup lang="ts">
import layButton from "../button/index"; import layButton from "../button/index";
import layIcon from "../icon/index";
import layInput from "../input/index"; import layInput from "../input/index";
import layIcon from "../icon/index";
import "./index.less"; import "./index.less";
import { ref, watch, withDefaults, computed } from "vue"; import { ref, watch, withDefaults, computed } from "vue";

View File

@ -1,5 +1,7 @@
<template> <template>
<LayCollapseTransition v-if="type === 'collapse'"><slot></slot></LayCollapseTransition> <LayCollapseTransition v-if="type === 'collapse'"
><slot></slot
></LayCollapseTransition>
<LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition> <LayFadeTransition v-if="type === 'fade'"><slot></slot></LayFadeTransition>
</template> </template>