📝: 更新日志
This commit is contained in:
@@ -26,7 +26,7 @@ const emit = defineEmits(["update:modelValue", "change"]);
|
||||
const selectedIcon: Ref<string> = ref(props.modelValue as string);
|
||||
const dropdownRef = ref<any>(null);
|
||||
|
||||
const selectIcon = function (icon: string) : void {
|
||||
const selectIcon = function (icon: string): void {
|
||||
emit("update:modelValue", icon);
|
||||
emit("change", icon);
|
||||
selectedIcon.value = icon;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div
|
||||
class="layui-notice-bar"
|
||||
:style="{ 'background': background, 'height': `${height}px` }"
|
||||
:style="{ background: background, height: `${height}px` }"
|
||||
v-show="!state.isMode"
|
||||
>
|
||||
<div
|
||||
class="layui-notice-bar-warp"
|
||||
:style="{ 'color': color , 'font-size': `${size}px` }"
|
||||
:style="{ color: color, 'font-size': `${size}px` }"
|
||||
>
|
||||
<lay-icon
|
||||
v-if="leftIcon"
|
||||
@@ -62,12 +62,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {
|
||||
onMounted,
|
||||
reactive,
|
||||
nextTick,
|
||||
ref
|
||||
} from "vue";
|
||||
import { onMounted, reactive, nextTick, ref } from "vue";
|
||||
import LayCarousel from "../carousel/index.vue";
|
||||
import LayCarouselItem from "../carouselItem/index.vue";
|
||||
import { LayIcon } from "@layui/icons-vue";
|
||||
|
||||
@@ -2,4 +2,4 @@ import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
export default component;
|
||||
|
||||
Reference in New Issue
Block a user