fix: header nav 选中样式
This commit is contained in:
@@ -35,7 +35,7 @@ const props = withDefaults(defineProps<LayButtonProps>(), {
|
||||
loading: false,
|
||||
disabled: false,
|
||||
nativeType: "button",
|
||||
borderStyle: "solid"
|
||||
borderStyle: "solid",
|
||||
});
|
||||
|
||||
const emit = defineEmits(["click"]);
|
||||
@@ -48,9 +48,9 @@ const onClick = (event: any) => {
|
||||
|
||||
const styles = computed(() => {
|
||||
return {
|
||||
'border-style': props.borderStyle
|
||||
}
|
||||
})
|
||||
"border-style": props.borderStyle,
|
||||
};
|
||||
});
|
||||
|
||||
const classes = computed(() => {
|
||||
return [
|
||||
@@ -82,4 +82,4 @@ const classes = computed(() => {
|
||||
<slot v-else></slot>
|
||||
<i v-if="suffixIcon" :class="`layui-icon ${suffixIcon}`"></i>
|
||||
</button>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user