8000 fix democase VXField No Disabled and Clearable;AutoComplate add Closa… by zhangshanwen · Pull Request #666 · qor5/admin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix democase VXField No Disabled and Clearable;AutoComplate add Closa… #666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
10000
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions example/admin/demo_case.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,38 @@ func configVxField(detailing *presets.DetailingBuilder, mb *presets.ModelBuilder
vErr = *ve
}
return h.Components(
v.VRow(
v.VCol(
vx.VXField().
Label("Text(Disabled)").
ModelValue("This is Disabled Vx-Field").
Disabled(true),
),
v.VCol(
vx.VXField().
Label("Textarea(Disabled)").
ModelValue("This is Readonly Vx-Field type Textarea").
Disabled(true).
Type("textarea"),
),
),
v.VRow(
v.VCol(
DemoCaseTextField(obj, sectionName, editField, "Text", "Text", vErr).
Tips("This is Tips"),
Tips("This is Tips").Clearable(true),
),
v.VCol(
DemoCaseTextField(obj, sectionName, editField, "Textarea", "Textarea", vErr).
Type("textarea"),
Type("textarea").Clearable(true),
),
),
v.VRow(
v.VCol(
DemoCaseTextField(obj, sectionName, editField, "TextValidate", "TextValidate(input more than 5 chars)", vErr).Required(true),
DemoCaseTextField(obj, sectionName, editField, "TextValidate", "TextValidate(input more than 5 chars)", vErr).Required(true).Clearable(true),
),
v.VCol(
DemoCaseTextField(obj, sectionName, editField, "TextareaValidate", "TextareaValidate(input more than 10 chars)", vErr).Required(true).
Type("textarea"),
Type("textarea").Clearable(true),
),
),
)
Expand Down Expand Up @@ -205,7 +220,7 @@ func configVxSelect(detailing *presets.DetailingBuilder, mb *presets.ModelBuilde
v.VRow(
v.VCol(
DemoCaseSelect(obj, sectionName, editField, "AutoComplete", "AutoComplete(select more than 1 item)", vErr, items).
Type("autocomplete").Multiple(true).Chips(true),
Type("autocomplete").Multiple(true).Chips(true).ClosableChips(true),
),
),
v.VRow(
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require (
github.com/qor/oss v0.0.0-20240729105053-88484a799a79
github.com/qor5/web v1.3.2
github.com/qor5/web/v3 v3.0.10
github.com/qor5/x/v3 v3.0.12-0.20241015075428-5a101f25e9cc
github.com/qor5/x/v3 v3.0.12-0.20241021072653-370abdead339
github.com/samber/lo v1.47.0
github.com/shurcooL/sanitized_anchor_name v1.0.0
github.com/spf13/cast v1.6.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ github.com/qor5/x/v3 v3.0.11 h1:hwLC0OO9oP0gjY770W9k7XyD1JX1O5rhSOG0KQA7O6I=
github.com/qor5/x/v3 v3.0.11/go.mod h1:Sqb0OTgq5PejVkgNQIKqXi0x2MzHSvEAjNZM0g1KNks=
github.com/qor5/x/v3 v3.0.12-0.20241015075428-5a101f25e9cc h1:eWYkunuG3xHOlrA8CgKRlz/dBfRfB8daAHs45s04ksk=
github.com/qor5/x/v3 v3.0.12-0.20241015075428-5a101f25e9cc/go.mod h1:Sqb0OTgq5PejVkgNQIKqXi0x2MzHSvEAjNZM0g1KNks=
github.com/qor5/x/v3 v3.0.12-0.20241021072653-370abdead339 h1:mz3zbO19DCUEO3rThb4lppKUxQaTuwpMZ09ANqAtklw=
github.com/qor5/x/v3 v3.0.12-0.20241021072653-370abdead339/go.mod h1:Sqb0OTgq5PejVkgNQIKqXi0x2MzHSvEAjNZM0g1KNks=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
Expand Down
Loading
0