-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ✨ Signature 添加历史记录和历史记录步长(包含文档添加、i18n、代码示例) #889
base: master
Are you sure you want to change the base?
The head ref may contain hidden characters: "\u7B7E\u540D\u7EC4\u4EF6\u6DFB\u52A0\u5386\u53F2\u8BB0\u5F55\u4EE5\u53CA\u6A2A\u5C4F"
Changes from 1 commit
100961a
b04cb38
070c977
88560ca
a3755a5
4c29dea
029be2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,9 +1,9 @@ | ||||||||||||||||||
/* | ||||||||||||||||||
* @Author: 810505339 | ||||||||||||||||||
* @Date: 2025-01-10 20:03:57 | ||||||||||||||||||
* @LastEditors: weisheng | ||||||||||||||||||
* @LastEditTime: 2025-01-17 16:43:19 | ||||||||||||||||||
* @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-signature/types.ts | ||||||||||||||||||
* @LastEditors: 810505339 | ||||||||||||||||||
* @LastEditTime: 2025-02-12 01:23:47 | ||||||||||||||||||
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-signature\types.ts | ||||||||||||||||||
* 记得注释 | ||||||||||||||||||
*/ | ||||||||||||||||||
import { baseProps, numericProp } from '../common/props' | ||||||||||||||||||
|
@@ -33,6 +33,16 @@ export const signatureProps = { | |||||||||||||||||
* 类型:string | ||||||||||||||||||
*/ | ||||||||||||||||||
clearText: String, | ||||||||||||||||||
/** | ||||||||||||||||||
* 上一步按钮的文本 | ||||||||||||||||||
* 类型:string | ||||||||||||||||||
*/ | ||||||||||||||||||
nextText: String, | ||||||||||||||||||
/** | ||||||||||||||||||
* 下一步按钮的文本 | ||||||||||||||||||
* 类型:string | ||||||||||||||||||
*/ | ||||||||||||||||||
previousText: String, | ||||||||||||||||||
/** | ||||||||||||||||||
* 确认按钮的文本 | ||||||||||||||||||
* 类型:string | ||||||||||||||||||
|
@@ -97,19 +107,30 @@ export const signatureProps = { | |||||||||||||||||
disableScroll: { | ||||||||||||||||||
type: Boolean, | ||||||||||||||||||
default: true | ||||||||||||||||||
}, | ||||||||||||||||||
/* 是否开始历史记录 */ | ||||||||||||||||||
history: { | ||||||||||||||||||
type: Boolean, | ||||||||||||||||||
default: false | ||||||||||||||||||
}, | ||||||||||||||||||
step: { | ||||||||||||||||||
type: Number, | ||||||||||||||||||
default: 1 | ||||||||||||||||||
} | ||||||||||||||||||
} | ||||||||||||||||||
|
||||||||||||||||||
export type SignatureResult = { | ||||||||||||||||||
tempFilePath: string | ||||||||||||||||||
success: boolean | ||||||||||||||||||
width: number | ||||||||||||||||||
height: number | ||||||||||||||||||
} | ||||||||||||||||||
|
||||||||||||||||||
export type SignatureExpose = { | ||||||||||||||||||
/** 点击清除按钮清除签名 */ | ||||||||||||||||||
clear: () => void | ||||||||||||||||||
/** 点击确定按钮 */ | ||||||||||||||||||
confirm: (result: SignatureResult) => void | ||||||||||||||||||
/* 点击回退 */ | ||||||||||||||||||
next: () => void | ||||||||||||||||||
/* 点击撤回 */ | ||||||||||||||||||
previous: () => void | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 方法注释需要更新!
-/* 点击回退 */
+/* 恢复指定步数的签名状态 */
next: () => void
-/* 点击撤回 */
+/* 撤销指定步数的签名状态 */
previous: () => void 📝 Committable suggestion
Suggested change
|
||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
按钮文本属性的注释需要更新!
nextText
和previousText
的注释描述有误:nextText
描述为"上一步按钮的文本"previousText
描述为"下一步按钮的文本"这与实际功能相反。
📝 Committable suggestion