Merge pull request #587 from trheyi/main

[add] The WangEditor component
This commit is contained in:
Max 2024-03-08 14:17:41 +08:00 committed by GitHub
commit d36ff73f6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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())
}

View file

@ -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())
}