[add] The WangEditor component
This commit is contained in:
parent
e510cb2649
commit
6208863f31
2 changed files with 2 additions and 2 deletions
|
|
@ -266,7 +266,7 @@ func (dsl *DSL) Xgen(data map[string]interface{}, excludes map[string]bool) (map
|
|||
for _, cProp := range dsl.CProps {
|
||||
err := cProp.Replace(setting, func(cProp component.CloudPropsDSL) interface{} {
|
||||
|
||||
if cProp.Type == "Upload" {
|
||||
if cProp.Type == "Upload" || cProp.Type == "WangEditor" {
|
||||
return fmt.Sprintf("/api/__yao/form/%s%s", dsl.ID, cProp.UploadPath())
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ func (dsl *DSL) Xgen(data map[string]interface{}, excludes map[string]bool) (map
|
|||
for _, cProp := range dsl.CProps {
|
||||
err := cProp.Replace(setting, func(cProp component.CloudPropsDSL) interface{} {
|
||||
|
||||
if cProp.Type == "Upload" {
|
||||
if cProp.Type == "Upload" || cProp.Type == "WangEditor" {
|
||||
return fmt.Sprintf("/api/__yao/table/%s%s", dsl.ID, cProp.UploadPath())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue