📝: 更新日志
This commit is contained in:
parent
2ae3335394
commit
b905e478a5
@ -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;
|
||||
|
@ -18,6 +18,7 @@
|
||||
<ul>
|
||||
<li>[新增] input 组件 clear 事件, 清空内容时触发的无参事件</li>
|
||||
<li>[新增] avatar 组件 alt 属性, 用于设置描述图像无法正常显示时的替换文本</li>
|
||||
<li>[新增] radio-group 组件, 公用 name change v-model 属性, 简化多 radio 使用</li>
|
||||
<li>[修复] tab 组件初始化时, 因无法监听到 slots 变化, 而导致 layui-tab-title 无法正常显示的问题</li>
|
||||
<li>[优化] input 组件 allow-clear 触发策略, 由始终显示调整为 v-model 不为空显示</li>
|
||||
<li>[优化] icon-picker 组件 search 功能, 为 input 输入框增加清空操作</li>
|
||||
|
Loading…
Reference in New Issue
Block a user