From 5a9aef0923b3687decb19a022cda8bb7bf3ba23b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Fri, 11 Nov 2022 00:32:39 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E6=9B=B4=E6=96=B0?=
=?UTF-8?q?=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package/component/src/component/dropdown/index.vue | 9 +++++----
.../src/document/zh-CN/components/space.md | 2 +-
.../src/document/zh-CN/guide/changelog.md | 14 ++++++++++++++
3 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/package/component/src/component/dropdown/index.vue b/package/component/src/component/dropdown/index.vue
index fcb92837..212718a1 100644
--- a/package/component/src/component/dropdown/index.vue
+++ b/package/component/src/component/dropdown/index.vue
@@ -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) {
diff --git a/package/document-component/src/document/zh-CN/components/space.md b/package/document-component/src/document/zh-CN/components/space.md
index 1b30c20d..04f02a00 100644
--- a/package/document-component/src/document/zh-CN/components/space.md
+++ b/package/document-component/src/document/zh-CN/components/space.md
@@ -40,7 +40,7 @@ export default {
- 按钮 {{idx}}
+ 按钮 {{idx}}
diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md
index e0043f7b..14332e33 100644
--- a/package/document-component/src/document/zh-CN/guide/changelog.md
+++ b/package/document-component/src/document/zh-CN/guide/changelog.md
@@ -11,6 +11,20 @@
+
+
+ -
+
1.7.7 2022-11-10
+
+ - [新增] upload 组件 text 属性, 设置上传描述。
+ - [新增] upload 组件 dragText 属性, 设置拖拽面板提示信息。
+ - [修复] input-number 组件 step 设置为小数时精度丢失的问题。
+ - [修复] tooltip 组件临近屏幕边界, 三角位置显示错误。
+ - [优化] select-option 组件 default 插槽。
+ -
+
+
+