chore: 回退一些特性

This commit is contained in:
就眠儀式
2022-04-02 07:00:27 +08:00
parent 497e117567
commit 6af091260b
4 changed files with 5 additions and 42 deletions

View File

@@ -13,7 +13,7 @@ import {
ButtonSize,
ButtonType,
} from "./interface";
import { BooleanOrString, String } from "../../types";
import { Boolean, BooleanOrString, String } from "../../types";
export interface LayButtonProps {
type?: ButtonType;
@@ -26,7 +26,6 @@ export interface LayButtonProps {
loading?: BooleanOrString;
disabled?: BooleanOrString;
nativeType?: ButtonNativeType;
borderStyle?: String;
}
const props = withDefaults(defineProps<LayButtonProps>(), {
@@ -34,8 +33,7 @@ const props = withDefaults(defineProps<LayButtonProps>(), {
radius: false,
loading: false,
disabled: false,
nativeType: "button",
borderStyle: "solid",
nativeType: "button"
});
const emit = defineEmits(["click"]);
@@ -46,12 +44,6 @@ const onClick = (event: any) => {
}
};
const styles = computed(() => {
return {
"border-style": props.borderStyle,
};
});
const classes = computed(() => {
return [
{
@@ -71,7 +63,6 @@ const classes = computed(() => {
class="layui-btn"
:class="classes"
:type="nativeType"
:style="styles"
@click="onClick"
>
<i v-if="prefixIcon" :class="`layui-icon ${prefixIcon}`"></i>