From 7a2cd2da93746761b05e068083b171312c4af0e3 Mon Sep 17 00:00:00 2001 From: Gerald Wang <58298096+GeraltWang@users.noreply.github.com> Date: Sun, 24 Aug 2025 17:40:53 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=20drop-menu-item=20options=20=E9=BB=98=E8=AE=A4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=93=E6=9E=84=E6=B3=A8=E9=87=8A=20(#1087)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/drop-menu.md | 2 +- .../wot-design-uni/components/wd-drop-menu-item/types.ts | 2 +- .../wot-design-uni/components/wd-drop-menu/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/component/drop-menu.md b/docs/component/drop-menu.md index 7846d67b..f930e8c7 100644 --- a/docs/component/drop-menu.md +++ b/docs/component/drop-menu.md @@ -198,7 +198,7 @@ const handleBeforeToggle: DropMenuItemBeforeToggle = ({ status, resolve }) => { | ------------- | ---------------------------------------------------------------------- | ----------------------------- | ------ | ---------- | -------- | | v-model | 当前选中项对应选中的 value | string / number | - | - | - | | disabled | 禁用菜单 | boolean | - | false | - | -| options | 列表数据,对应数据结构 `[{text: '标题', value: '0', tip: '提示文字'}]` | array | - | - | - | +| options | 列表数据,对应数据结构 `[{label: '标题', value: '0', tip: '提示文字'}]` | array | - | - | - | | icon-name | 选中的图标名称(可选名称在 wd-icon 组件中) | string | - | check | - | | title | 菜单标题 | string | - | - | - | | icon | 菜单图标 | string | - | arrow-down | - | diff --git a/src/uni_modules/wot-design-uni/components/wd-drop-menu-item/types.ts b/src/uni_modules/wot-design-uni/components/wd-drop-menu-item/types.ts index 89ae2fd8..6f924c57 100644 --- a/src/uni_modules/wot-design-uni/components/wd-drop-menu-item/types.ts +++ b/src/uni_modules/wot-design-uni/components/wd-drop-menu-item/types.ts @@ -25,7 +25,7 @@ export const dorpMenuItemProps = { */ modelValue: [String, Number], /** - * 列表数据,对应数据结构 [{text: '标题', value: '0', tip: '提示文字'}] + * 列表数据,对应数据结构 [{label: '标题', value: '0', tip: '提示文字'}] */ options: makeArrayProp>(), /** diff --git a/src/uni_modules/wot-design-uni/components/wd-drop-menu/types.ts b/src/uni_modules/wot-design-uni/components/wd-drop-menu/types.ts index 339e7bb6..dc9e8921 100644 --- a/src/uni_modules/wot-design-uni/components/wd-drop-menu/types.ts +++ b/src/uni_modules/wot-design-uni/components/wd-drop-menu/types.ts @@ -1,7 +1,7 @@ import { type ExtractPropTypes, type InjectionKey, type Ref } from 'vue' import { baseProps, makeBooleanProp, makeNumberProp, makeStringProp } from '../common/props' -export type DropDirction = 'up' | 'down' +export type DropDirection = 'up' | 'down' export type DropMenuProvide = { props: Partial @@ -20,7 +20,7 @@ export const dropMenuProps = { /** * 菜单展开方向,可选值为up 或 down */ - direction: makeStringProp('down'), + direction: makeStringProp('down'), /** * 是否展示蒙层 */