Skip to content

Commit e047f4c

Browse files
author
cg33
committed
update
1 parent 20ece64 commit e047f4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

zh/admin/form/components.md

+11
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ formList.AddField("url", "url", db.Varchar, form.Url)
6464
formList.AddField("ip", "ip", db.Varchar, form.Ip)
6565
```
6666

67+
### Code
68+
```go
69+
formList.AddField("code", "code", db.Text, form.Code)
70+
formList.AddField("code", "code", db.Text, form.Code).FieldOptionExt(map[string]interface{}{
71+
"theme": "monokai",
72+
"font_size": 14,
73+
"language": "php",
74+
"options": "{useWorker: false}",
75+
})
76+
```
77+
6778
### Color
6879

6980
```go

0 commit comments

Comments
 (0)