feat(Form): 添加表单组件及相关功能 - #3784
Closed
Jay2138 wants to merge 0 commit into
Closed
Conversation
Jay2138
requested review from
anlyyao,
betavs,
jarmywang and
jin0209
as code owners
July 10, 2025 11:23
jin0209
reviewed
Jul 14, 2025
|
|
||
| path = `/pages/${name}/${this.skyline ? 'skyline/' : ''}${name}`; | ||
| } | ||
| console.log(path); |
jin0209
reviewed
Jul 14, 2025
| @@ -0,0 +1 @@ | |||
| @import './_variables.less'; | |||
jin0209
reviewed
Jul 14, 2025
jin0209
reviewed
Jul 14, 2025
| @@ -0,0 +1,30 @@ | |||
| Page({ | |||
| data: { | |||
| isActive1: true, | |||
anlyyao
reviewed
Jul 14, 2025
| `${prefix}-class-label`, | ||
| `${prefix}-class-controls`, | ||
| `${prefix}-class-help`, | ||
| `${prefix}-class-extra`, |
| * 表单底部按钮组样式 | ||
| * @default {} | ||
| */ | ||
| buttonGroupStyle?: { |
| /* eslint-disable */ | ||
|
|
||
| /** | ||
| * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC |
Collaborator
There was a problem hiding this comment.
tdesign-api 生成的内容建议不要手动修改,未完成的 API 可以协同 PMC 在=手动调整为【开发中】,但不要移除
commit: |
anlyyao
reviewed
Jul 15, 2025
| } | ||
|
|
||
| &--bordered { | ||
| border-bottom: 1rpx solid @border-color; |
Collaborator
There was a problem hiding this comment.
1rpx 不能直接达到 0.5px 效果。 0.5px 实现可直接使用 less Mixin
`&--bordered {
.border(bottom, @border-color);
}
| &__error { | ||
| margin-top: 4rpx; | ||
| font-size: @font-size-s; | ||
| line-height: 1.4; |
| } | ||
|
|
||
| &__error { | ||
| margin-top: 4rpx; |
anlyyao
reviewed
Jul 15, 2025
| /* eslint-disable */ | ||
|
|
||
| /** | ||
| * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC |
| * */ | ||
|
|
||
| import { TdFormItemProps } from '../form/type'; | ||
| const props: TdFormItemProps = { |
anlyyao
reviewed
Jul 15, 2025
| <t-navbar class="block" title="Form" left-arrow /> | ||
| <view class="demo"> | ||
| <t-demo-header title="Form 表单" desc="用于收集输入信息。" notice="渲染框架支持情况:WebView" /> | ||
| <t-demo title="基础表单" desc=""> |
Collaborator
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在 app.json 中添加表单页面路径
新增表单组件及表单项组件,支持数据录入和验证
更新文档,添加表单组件的 API 说明
添加表单示例,展示基本用法
优化样式和结构,提升组件可用性和可维护性