myProjectFilter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type Condition

type Condition struct {
	Key         string `json:"key"`
	Label       string `json:"label"`
	EmptyText   string `json:"emptyText"`
	Fixed       bool   `json:"fixed"`
	ShowIndex   int    `json:"showIndex"`
	Placeholder string `json:"placeholder"`
	Type        string `json:"type"`
}

type MyProjectFilter

type MyProjectFilter struct {
	Type       string                 `json:"type"`
	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations"`
	// contains filtered or unexported fields
}

func (*MyProjectFilter) GenComponentState

func (this *MyProjectFilter) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*MyProjectFilter) RenderProtocol

func (this *MyProjectFilter) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData) error

RenderProtocol 渲染组件

func (*MyProjectFilter) SetCtxBundle

func (this *MyProjectFilter) SetCtxBundle(ctx context.Context) error

type Operation

type Operation struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

type Props

type Props struct {
	FullWidth bool `json:"fullWidth"`
	Visible   bool `json:"visible"`
	Delay     int  `json:"delay"`
}

type State

type State struct {
	Conditions []Condition `json:"conditions"`
	//HavePros bool `json:"havePros"`
	//HaveApps bool `json:"haveApps"`
	IsFirstFilter bool                   `json:"isFirstFilter"`
	Values        map[string]interface{} `json:"values"`
	ProsNum       int                    `json:"prosNum"`
}

Jump to

Keyboard shortcuts

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