edit_list

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PropChangeOption

type PropChangeOption struct {
	Label    string             `json:"label"`
	Value    string             `json:"value"`
	IsLeaf   bool               `json:"isLeaf"`
	Children []PropChangeOption `json:"children"`
}

func (*PropChangeOption) FindValue

func (pct *PropChangeOption) FindValue(v string) *PropChangeOption

type PropRenderProp

type PropRenderProp struct {
	MaxLength   int64              `json:"maxLength,omitempty"`
	Placeholder string             `json:"placeholder,omitempty"`
	Options     []PropChangeOption `json:"options,omitempty"`
}

type PropRenderRule

type PropRenderRule struct {
	Pattern string `json:"pattern,omitempty"`
	Msg     string `json:"msg,omitempty"`
}

type Props

type Props struct {
	Visible bool   `json:"visible"`
	Temp    []Temp `json:"temp"`
}

type Render

type Render struct {
	Type             string                 `json:"type,omitempty"` // 'input' | 'text' | 'select' | 'inputSelect'
	ValueConvertType string                 `json:"valueConvertType,omitempty"`
	Options          []PropChangeOption     `json:"options,omitempty"`
	Required         bool                   `json:"required,omitempty"`
	UniqueValue      bool                   `json:"uniqueValue,omitempty"`
	Operations       map[string]interface{} `json:"operations,omitempty"`
	Rules            []PropRenderRule       `json:"rules,omitempty"`
	Props            PropRenderProp         `json:"props,omitempty"`
	DefaultValue     interface{}            `json:"defaultValue,omitempty"`
}

type Temp

type Temp struct {
	Title  string `json:"title"`
	Key    string `json:"key"`
	Width  int    `json:"width"`
	Flex   int    `json:"flex"`
	Render Render `json:"render"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL