Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v0.1.0
type Action struct { Type string `json:"type,omitempty"` Link string `json:"link,omitempty"` LinkFunc string `json:"link_func,omitempty"` Params map[string]any `json:"params,omitempty"` ParamsFunc string `json:"params_func,omitempty"` Script string `json:"script,omitempty"` Page string `json:"page,omitempty"` Dialog string `json:"dialog,omitempty"` External string `json:"external,omitempty"` }
type AutoOption ¶
type Column ¶
type Column struct { Key string `json:"key,omitempty"` Label string `json:"label,omitempty"` Keyword bool `json:"keyword,omitempty"` Sortable bool `json:"sortable,omitempty"` Filter []Filter `json:"filter,omitempty"` Date bool `json:"date,omitempty"` Ellipsis bool `json:"ellipsis,omitempty"` Break bool `json:"break,omitempty"` Action *Action `json:"action,omitempty"` }
type Field ¶
type Field struct { Key string `json:"key"` Label string `json:"label"` Type string `json:"type,omitempty"` //type object array Default any `json:"default,omitempty"` Placeholder string `json:"placeholder,omitempty"` Tips string `json:"tips,omitempty"` Clear bool `json:"clear,omitempty"` Disabled bool `json:"disabled,omitempty"` Hidden bool `json:"hidden,omitempty"` Array bool `json:"array,omitempty"` Children []Field `json:"children,omitempty"` //子级? Required bool `json:"required,omitempty"` Min float64 `json:"min,omitempty"` Max float64 `json:"max,omitempty"` Step float64 `json:"step,omitempty"` Multiple bool `json:"multiple,omitempty"` Auto []AutoOption `json:"auto,omitempty"` Options []SelectOption `json:"options,omitempty"` Tree []TreeOption `json:"tree,omitempty"` Change string `json:"change,omitempty"` Time bool `json:"time,omitempty"` TimeFormat string `json:"time_format,omitempty"` Pattern string `json:"pattern,omitempty"` Upload string `json:"upload,omitempty"` //上传路径 }
type Page ¶
type Page struct { Id string `json:"id"` Title string `json:"title"` Template string `json:"template"` //模板 table form info chart *Toolbar *Table *Form *Info *Chart SearchUrl string `json:"search_url,omitempty"` //查询URL SearchFunc string `json:"search_func ,omitempty"` LoadUrl string `json:"load_url,omitempty"` //加载URL LoadFunc string `json:"load_func ,omitempty"` SubmitUrl string `json:"submit_url,omitempty"` //提交URL SubmitFunc string `json:"submit_func ,omitempty"` Params map[string]any `json:"params,omitempty"` //页面参数 ParamsFunc string `json:"params_func,omitempty"` Children []*Page `json:"children,omitempty"` }
type SelectOption ¶
type TreeOption ¶ added in v0.1.0
type TreeOption struct { Title string `json:"title,omitempty"` Key string `json:"key,omitempty"` IsLeaf bool `json:"isLeaf,omitempty"` Selectable bool `json:"selectable,omitempty"` Disabled bool `json:"disabled,omitempty"` Expanded bool `json:"expanded,omitempty"` Children []*TreeOption `json:"children,omitempty"` }
Click to show internal directories.
Click to hide internal directories.