Documentation ¶
Index ¶
- type LcCommonField
- type LcCtDatepicker
- type LcCtDatepickerField
- type LcCtDatepickerFieldProps
- type LcCtInput
- type LcCtInputField
- type LcCtInputFieldProps
- type LcCtInputFieldPropsFieldSearch
- type LcCtMember
- type LcCtMemberField
- type LcCtMemberFieldProps
- type LcCtRelateTable
- type LcCtRelateTableField
- type LcCtRelateTableFieldProps
- type LcCtRelateTableFieldPropsFieldSearch
- type LcCtRelateTableFieldPropsRelateTable
- type LcCtSelect
- type LcCtSelectField
- type LcCtSelectFieldProps
- type LcCtSelectFieldPropsSelect
- type LcCtSelectFieldPropsSelectOptions
- type LcCtTextarea
- type LcCtTextareaField
- type LcCtTextareaFieldProps
- type LcDocumentValue
- type LcFieldData
- type LcFormConfig
- type LcGroupOptions
- type LcGroupOptionsDetail
- type LcOneColumn
- type LcOptions
- type LcProjectOptions
- type LcPropGroupSelect
- type LcPropInputNumber
- type LcPropMember
- type LcPropSelect
- type LcProps
- type PolarisPersonFieldValue
- type TableConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LcCommonField ¶
type LcCommonField struct { Key string `json:"key"` Name string `json:"name"` // 列的 key AliasTitle string `json:"aliasTitle"` // 列的别名 Title string `json:"title"` Label string `json:"label"` // 列名称 EnLabel string `json:"enLabel"` EnTitle string `json:"enTitle"` Editable *bool `json:"editable,omitempty"` Writable bool `json:"writable"` Field LcFieldData `json:"field"` IsOrg bool `json:"isOrg"` }
type LcCtDatepicker ¶
type LcCtDatepickerField ¶
type LcCtDatepickerField struct { Type string `json:"type"` Props LcCtDatepickerFieldProps `json:"props"` }
type LcCtDatepickerFieldProps ¶
type LcCtDatepickerFieldProps struct {
PushMsg bool `json:"pushMsg"`
}
type LcCtInputField ¶
type LcCtInputField struct { Type string `json:"type"` Props LcCtInputFieldProps `json:"props"` }
type LcCtInputFieldProps ¶
type LcCtMember ¶
type LcCtMemberField ¶
type LcCtMemberField struct { Type string `json:"type"` Props LcCtMemberFieldProps `json:"props"` }
type LcCtMemberFieldProps ¶
type LcCtMemberFieldProps struct { Multiple bool `json:"multiple"` Limit *int `json:"limit,omitempty"` CollaboratorRoles *[]string `json:"collaboratorRoles"` Member LcPropMember `json:"member"` PushMsg bool `json:"pushMsg"` }
type LcCtRelateTable ¶
type LcCtRelateTable struct { Name string `json:"name"` Label string `json:"label"` Field LcCtRelateTableField `json:"field"` }
type LcCtRelateTableField ¶
type LcCtRelateTableField struct { Type string `json:"type"` Props LcCtRelateTableFieldProps `json:"props"` }
type LcCtRelateTableFieldProps ¶
type LcCtRelateTableFieldProps struct { RelateTable LcCtRelateTableFieldPropsRelateTable `json:"relateTable"` ShowDetails bool `json:"showDetails"` FormOrder int `json:"formOrder"` Required bool `json:"required"` TabParam string `json:"tabParam"` GroupParam string `json:"groupParam"` IsSearch bool `json:"isSearch"` FieldSearch LcCtRelateTableFieldPropsFieldSearch `json:"fieldSearch"` }
type LcCtSelect ¶
type LcCtSelect struct { Name string `json:"name"` Label string `json:"label"` EnLabel string `json:"enLabel"` Editable bool `json:"editable"` Writable bool `json:"writable"` Field LcCtSelectField `json:"field"` }
select 适用于 select groupSelect multiSelect 等,如果缺少 field 可以补充。
type LcCtSelectField ¶
type LcCtSelectField struct { Type string `json:"type"` DataType string `json:"dataType"` CustomType string `json:"customType"` Props LcCtSelectFieldProps `json:"props"` }
type LcCtSelectFieldProps ¶
type LcCtSelectFieldPropsSelect ¶
type LcCtSelectFieldPropsSelect struct {
Options []LcCtSelectFieldPropsSelectOptions `json:"options"`
}
type LcCtTextarea ¶
type LcCtTextareaField ¶
type LcCtTextareaField struct { Type string `json:"type"` Props LcCtTextareaFieldProps `json:"props"` }
type LcCtTextareaFieldProps ¶
type LcDocumentValue ¶
type LcFieldData ¶
type LcFormConfig ¶
type LcFormConfig struct { Fields []LcCommonField `json:"fields"` FieldOrders []string `json:"fieldOrders"` ViewOrders []string `json:"viewOrders"` BaseFields []string `json:"baseFields"` }
type LcGroupOptions ¶
type LcGroupOptions struct { Id int `json:"id"` Value string `json:"value"` Children []LcGroupOptionsDetail `json:"children"` Color string `json:"color"` FontColor string `json:"fontColor"` }
type LcGroupOptionsDetail ¶
type LcGroupOptionsDetail struct { Color string `json:"color"` FontColor string `json:"fontColor"` Id int `json:"id"` Value string `json:"value"` Sort int `json:"sort"` ParentId int `json:"parentId"` TableId string `json:"tableId,omitempty"` }
func ExchangeToLcGroupSelectOptions ¶
func ExchangeToLcGroupSelectOptions(props map[string]interface{}, tableId string) []*LcGroupOptionsDetail
type LcOneColumn ¶
type LcOneColumn struct { Name string `json:"name"` Label string `json:"label"` AliasTitle string `json:"aliasTitle"` EnTitle string `json:"enTitle"` Field LcFieldData `json:"field"` IsOrg bool `json:"isOrg"` IsSys bool `json:"isSys"` Key string `json:"key"` // 字段标识,唯一标识 Title string `json:"title"` // 字段名称 Unique bool `json:"unique"` Writable bool `json:"writable"` Editable bool `json:"editable"` }
type LcProjectOptions ¶
type LcPropGroupSelect ¶
type LcPropGroupSelect struct { GroupOptions []LcGroupOptions `json:"groupOptions"` Options []LcGroupOptionsDetail `json:"options"` }
type LcPropInputNumber ¶
type LcPropMember ¶
type LcPropSelect ¶
type LcPropSelect struct {
Options []LcOptions `json:"options"`
}
type LcProps ¶
type LcProps struct { IsText bool `json:"isText"` Required bool `json:"required"` Multiple bool `json:"multiple"` Member LcPropMember `json:"member"` Select LcPropSelect `json:"select"` MultiSelect LcPropSelect `json:"multiselect"` GroupSelect *LcPropGroupSelect `json:"groupSelect"` InputNumber LcPropInputNumber `json:"inputnumber"` CollaboratorRoles []string `json:"collaboratorRoles"` PushMsg bool `json:"pushMsg"` Default interface{} `json:"default"` }
type PolarisPersonFieldValue ¶
type TableConfig ¶
type TableConfig struct {
Fields []interface{} `json:"fields"`
}
Click to show internal directories.
Click to hide internal directories.