table

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentAction

type ComponentAction struct {
	base.DefaultProvider

	Name       string                 `json:"name"`
	Type       string                 `json:"type"`
	Props      map[string]interface{} `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations"`
	Data       Data                   `json:"data"`
	InParams   InParams               `json:"-"`
	// contains filtered or unexported fields
}

func (*ComponentAction) GenComponentState

func (i *ComponentAction) GenComponentState(c *cptype.Component) error

func (*ComponentAction) Render

type Data

type Data struct {
	List []DataItem `json:"list"`
}

type DataItem

type DataItem struct {
	ID         uint64                 `json:"id"`
	Name       string                 `json:"name"`
	Iteration  string                 `json:"iteration"`
	Creator    string                 `json:"creator"`
	Quality    string                 `json:"quality"`
	CreateTime string                 `json:"createTime"`
	Operate    map[string]interface{} `json:"operate"`
}

type InParams

type InParams struct {
	ProjectID uint64 `json:"projectId,omitempty"`
}

type SorterData

type SorterData struct {
	Field string `json:"field"`
	Order string `json:"order"`
}

type State

type State struct {
	PageNo     uint64     `json:"pageNo"`
	PageSize   uint64     `json:"pageSize"`
	Total      uint64     `json:"total"`
	SorterData SorterData `json:"sorterData"`
	Values     struct {
		Type      string   `json:"type"`
		Name      string   `json:"name"`
		Iteration []uint64 `json:"iteration"`
	} `json:"values"`
}

Jump to

Keyboard shortcuts

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