batchOperationTipModal

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchOperationTipModal

type BatchOperationTipModal struct {
	Type       string                 `json:"type"`
	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations"`
	SDK        *cptype.SDK
	CtxBdl     *bundle.Bundle

	base.DefaultProvider
	// contains filtered or unexported fields
}
batchOperationTipModal: {
       type: 'Modal',
       props: {
         status: 'warning',
         content: '您将解冻以下节点:\n cn-hongkong.172.15.3.3 \ncn-hongkong.172.15.3.3',
         title: '提示',
       },
       state: { visible: true },
       operations: {
         onOk: {
           key: 'submit',
           reload: true,
           meta: {
             type: 'uncordon',
           },
         },
       },
     },

func (*BatchOperationTipModal) CordonNode

func (bot *BatchOperationTipModal) CordonNode(nodeNames []string) error

func (*BatchOperationTipModal) Init

func (*BatchOperationTipModal) Render

func (*BatchOperationTipModal) SetComponent

func (bot *BatchOperationTipModal) SetComponent(c *cptype.Component) error

func (*BatchOperationTipModal) UncordonNode

func (bot *BatchOperationTipModal) UncordonNode(nodeNames []string) error

type Meta

type Meta struct {
	Type cptype.OperationKey `json:"type"`
}

type Operation

type Operation struct {
	Key        string `json:"key"`
	Reload     bool   `json:"reload"`
	Meta       Meta   `json:"meta"`
	SuccessMsg string `json:"successMsg"`
}

type Props

type Props struct {
	Status  string `json:"status"`
	Content string `json:"content"`
	Title   string `json:"title"`
}

type State

type State struct {
	Visible         bool     `json:"visible"`
	SelectedRowKeys []string `json:"selectedRowKeys"`
}

Jump to

Keyboard shortcuts

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