types

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HmiComponent added in v1.0.4

type HmiComponent struct {
	Id         string                `json:"id,omitempty" xorm:"pk"`
	Name       string                `json:"name,omitempty"`                  //名称
	Icon       string                `json:"icon,omitempty"`                  //图标
	Type       string                `json:"type,omitempty"`                  //类型 line shape html ...
	Extends    map[string]any        `json:"extends,omitempty" xorm:"json"`   //继承基础组件
	Meta       map[string]any        `json:"meta,omitempty" xorm:"json"`      //初始化参数
	Properties []HmiProperty         `json:"properties,omitempty"`            //属性配置
	Bindings   []HmiComponentBinding `json:"bindings,omitempty"`              //数据绑定
	Events     []HmiComponentEvent   `json:"events,omitempty"`                //事件绑定
	Listeners  map[string]string     `json:"listeners,omitempty" xomr:"json"` //组件事件监听
	Effects    []string              `json:"effects,omitempty"`               //HTML组件监听
	Html       string                `json:"html,omitempty"`                  //HTML绘制函数
	Collection string                `json:"collection,omitempty"`            //集合名称
	Version    int                   `json:"version,omitempty" xorm:"version"`
	Updated    time.Time             `json:"updated" xorm:"updated"`
	Created    time.Time             `json:"created" xorm:"created"`
}

type HmiComponentBinding added in v1.0.6

type HmiComponentBinding struct {
	Name  string `json:"name,omitempty"`
	Label string `json:"label,omitempty"`
	Type  string `json:"type,omitempty"`
}

type HmiComponentEvent added in v1.0.6

type HmiComponentEvent struct {
	Name  string `json:"name,omitempty"`
	Label string `json:"label,omitempty"`
}

type HmiHtml added in v1.1.0

type HmiHtml struct {
	Id         string    `json:"id,omitempty" xorm:"pk"`
	Name       string    `json:"name,omitempty"`
	Icon       string    `json:"icon,omitempty"`
	Html       string    `json:"html,omitempty"`
	Collection string    `json:"collection,omitempty" xorm:"index"`
	Updated    time.Time `json:"updated" xorm:"updated"`
	Created    time.Time `json:"created" xorm:"created"`
}

type HmiImage added in v1.0.8

type HmiImage struct {
	Id         string    `json:"id,omitempty" xorm:"pk"`
	Name       string    `json:"name,omitempty"`
	Url        string    `json:"url,omitempty"`
	Collection string    `json:"collection,omitempty" xorm:"index"`
	Updated    time.Time `json:"updated" xorm:"updated"`
	Created    time.Time `json:"created" xorm:"created"`
}

type HmiPage

type HmiPage struct {
	Name            string `json:"name,omitempty"`
	Content         any    `json:"content,omitempty"`
	BackgroundColor string `json:"background_color,omitempty"`
	BackgroundImage string `json:"background_image,omitempty"`
}

type HmiPath added in v1.0.8

type HmiPath struct {
	Id         string    `json:"id,omitempty" xorm:"pk"`
	Name       string    `json:"name,omitempty"`
	Icon       string    `json:"icon,omitempty"`
	Path       string    `json:"path,omitempty"`
	Collection string    `json:"collection,omitempty" xorm:"index"`
	Updated    time.Time `json:"updated" xorm:"updated"`
	Created    time.Time `json:"created" xorm:"created"`
}

type HmiProject

type HmiProject struct {
	Id      string    `json:"id,omitempty"  xorm:"pk"`
	Name    string    `json:"name,omitempty"`
	Desc    string    `json:"desc,omitempty"`
	Width   int       `json:"width,omitempty"`
	Height  int       `json:"height,omitempty"`
	Pages   []HmiPage `json:"pages,omitempty" xorm:"json"`
	Version int       `json:"version,omitempty" xorm:"version"`
	Updated time.Time `json:"updated,omitempty" xorm:"updated"`
	Created time.Time `json:"created,omitempty" xorm:"created"`
}

type HmiProperty added in v1.0.4

type HmiProperty struct {
	Name    string              `json:"name,omitempty"`
	Path    string              `json:"path,omitempty"`
	Type    string              `json:"type,omitempty"`
	Default any                 `json:"default,omitempty"`
	Options []HmiPropertyOption `json:"options,omitempty"`
	Max     int                 `json:"max,omitempty"`
	Min     int                 `json:"min,omitempty"`
	Step    int                 `json:"step,omitempty"`
}

type HmiPropertyOption added in v1.0.4

type HmiPropertyOption struct {
	Name  string `json:"name,omitempty"`
	Value any    `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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