forked from Tencent/tmagic-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
roymondchen
committed
Dec 15, 2023
1 parent
b72e487
commit 538f96c
Showing
12 changed files
with
174 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { FormConfig } from '@tmagic/form'; | ||
|
||
export default [] as FormConfig; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type { FormConfig } from '@tmagic/form'; | ||
|
||
export default [ | ||
{ | ||
name: 'id', | ||
type: 'hidden', | ||
}, | ||
{ | ||
name: 'type', | ||
type: 'hidden', | ||
}, | ||
{ | ||
name: 'name', | ||
text: '表单key', | ||
extra: '字段名', | ||
}, | ||
{ | ||
name: 'text', | ||
text: '标签文本', | ||
extra: 'label 标签的文本', | ||
}, | ||
{ | ||
name: 'labelWidth', | ||
text: '标签宽度', | ||
extra: '表单域标签的的宽度,例如 "50px"。支持 auto。', | ||
}, | ||
] as FormConfig; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { FormConfig } from '@tmagic/form'; | ||
|
||
export default [] as FormConfig; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import checkbox from './checkbox'; | ||
import display from './display'; | ||
import number from './number'; | ||
import switchConfig from './switch'; | ||
import text from './text'; | ||
|
||
export default { | ||
text, | ||
checkbox, | ||
display, | ||
number, | ||
switch: switchConfig, | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { FormConfig } from '@tmagic/form'; | ||
|
||
export default [ | ||
{ | ||
type: 'number', | ||
name: 'min', | ||
text: '最小值', | ||
}, | ||
{ | ||
type: 'number', | ||
name: 'max', | ||
text: '最大值', | ||
}, | ||
{ | ||
type: 'number', | ||
name: 'step', | ||
text: '步数', | ||
}, | ||
{ | ||
name: 'placeholder', | ||
text: 'placeholder', | ||
}, | ||
] as FormConfig; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { FormConfig } from '@tmagic/form'; | ||
|
||
export default [] as FormConfig; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { FormConfig } from '@tmagic/form'; | ||
|
||
export default [ | ||
{ | ||
name: 'placeholder', | ||
text: 'placeholder', | ||
}, | ||
{ | ||
name: 'append', | ||
legend: '后置按钮', | ||
type: 'fieldset', | ||
labelWidth: '80px', | ||
items: [ | ||
{ | ||
name: 'text', | ||
text: '按钮文案', | ||
}, | ||
{ | ||
name: 'handler', | ||
type: 'vs-code', | ||
height: '400px', | ||
text: '点击', | ||
}, | ||
], | ||
}, | ||
] as FormConfig; |
This file contains 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
This file contains 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