✨(component): 更新日志
This commit is contained in:
parent
90a4f5cf81
commit
5a9aef0923
@ -20,6 +20,7 @@ import {
|
||||
cloneVNode,
|
||||
useAttrs,
|
||||
StyleValue,
|
||||
PropType,
|
||||
} from "vue";
|
||||
import {
|
||||
computed,
|
||||
@ -45,7 +46,7 @@ import {
|
||||
} from "./interface";
|
||||
import TeleportWrapper from "../_components/teleportWrapper.vue";
|
||||
import { useFirstElement, isScrollElement, getScrollElements } from "./util";
|
||||
import RenderFunction from "../_components/renderFunction";
|
||||
import RenderFunction, { RenderFunc } from "../_components/renderFunction";
|
||||
import { transformPlacement } from "./util";
|
||||
|
||||
export type DropdownTrigger = "click" | "hover" | "focus" | "contextMenu";
|
||||
@ -573,7 +574,7 @@ onClickOutside(dropdownRef, (e) => {
|
||||
hide();
|
||||
});
|
||||
|
||||
const onlyChildRenderFunc = computed(() => {
|
||||
const onlyChildRenderFunc = () => {
|
||||
const slotContent = slots.default ? slots.default() : [];
|
||||
const transformedSlotContent = slotContent.map((vnode) =>
|
||||
cloneVNode(
|
||||
@ -592,8 +593,8 @@ const onlyChildRenderFunc = computed(() => {
|
||||
);
|
||||
|
||||
children.value = transformedSlotContent;
|
||||
return () => h(Fragment, children.value);
|
||||
});
|
||||
return h(Fragment, children.value);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
if (props.updateAtScroll) {
|
||||
|
@ -40,7 +40,7 @@ export default {
|
||||
|
||||
<template>
|
||||
<lay-space direction="vertical" fill wrap>
|
||||
<lay-button v-for="idx of 5" type="normal" fluid="true">按钮 {{idx}}</lay-button>
|
||||
<lay-button v-for="idx of 5" type="normal" :fluid="true">按钮 {{idx}}</lay-button>
|
||||
</lay-space>
|
||||
</template>
|
||||
|
||||
|
@ -11,6 +11,20 @@
|
||||
<template>
|
||||
<lay-timeline>
|
||||
<lay-timeline-item title="1.7.x">
|
||||
<ul>
|
||||
<a name="1-7-7"></a>
|
||||
<li>
|
||||
<h3>1.7.7 <span class="layui-badge-rim">2022-11-10</span></h3>
|
||||
<ul>
|
||||
<li>[新增] upload 组件 text 属性, 设置上传描述。</li>
|
||||
<li>[新增] upload 组件 dragText 属性, 设置拖拽面板提示信息。</li>
|
||||
<li>[修复] input-number 组件 step 设置为小数时精度丢失的问题。</li>
|
||||
<li>[修复] tooltip 组件临近屏幕边界, 三角位置显示错误。</li>
|
||||
<li>[优化] select-option 组件 default 插槽。</li>
|
||||
<li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<a name="1-7-6"></a>
|
||||
<li>
|
||||
|
Loading…
Reference in New Issue
Block a user