Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemaTypeAny = "(string & {})" SchemaTypeString = "string" SchemaTypeObject = "object" SchemaTypeArray = "array" SchemaTypeNumber = "number" SchemaTypeBool = "boolean" SchemaTypeVoid = "void" SchemaTypeDate = "date" SchemaTypeDatetime = "datetime" )
View Source
const ( DecoratorFormItem = "FormItem" DecoratorCardItem = "CardItem" DecoratorChartItem = "ChartItem" )
View Source
const ( ComponentActionFormDrawer = "Action.FormDrawer" ComponentActionFormDrawerCancel = "Action.FormDrawer.Cancel" ComponentActionFormDrawerSubmit = "Action.FormDrawer.Submit" ComponentActionFormModal = "Action.FormModal" ComponentActionFormModalCancel = "Action.FormModal.Cancel" ComponentActionFormModalSubmit = "Action.FormModal.Submit" ComponentArrayItems = "ArrayItems" ComponentArrayItemsColumn = "ArrayItems.Item" ComponentArrayItemsAddition = "ArrayItems.Addition" ComponentArrayItemsRemove = "ArrayItems.Remove" ComponentArrayItemsMoveUp = "ArrayItems.MoveUp" ComponentArrayItemsMoveDown = "ArrayItems.MoveDown" ComponentArrayItemsSortHandle = "ArrayItems.SortHandle" ComponentArrayItemsIndex = "ArrayItems.Index" ComponentArrayTable = "ArrayTable" ComponentArrayTableColumn = "ArrayTable.Column" ComponentArrayTableAddition = "ArrayTable.Addition" ComponentArrayTableRemove = "ArrayTable.Remove" ComponentArrayTableMoveUp = "ArrayTable.MoveUp" ComponentArrayTableMoveDown = "ArrayTable.MoveDown" ComponentArrayTableSortHandle = "ArrayTable.SortHandle" ComponentArrayTableIndex = "ArrayTable.Index" ComponentAvatar = "Avatar" ComponentCascader = "Cascader" ComponentChart = "Chart" ComponentChartAutoChart = "Chart.AutoChart" ComponentCheckbox = "Checkbox" ComponentCheckboxGroup = "Checkbox.Group" ComponentColorSelect = "ColorSelect" ComponentDatePicker = "DatePicker" ComponentDatePickerRangePicker = "DatePicker.RangePicker" ComponentDivider = "Divider" ComponentDropdownMenu = "DropdownMenu" ComponentDropdownMenuItem = "DropdownMenu.Item" ComponentDropdownMenuSubMenu = "DropdownMenu.SubMenu" ComponentDropdownMenuURL = "DropdownMenu.URL" ComponentFlowEditor = "FlowEditor" ComponentForm = "Form" ComponentFormButtonGroup = "FormButtonGroup" ComponentFormDrawer = "FormDrawer" ComponentFormGrid = "FormGrid" ComponentFormLayout = "FormLayout" ComponentFormModal = "FormModal" ComponentGridRow = "Grid.Row" ComponentGridCol = "Grid.Col" ComponentInput = "Input" ComponentInputTextArea = "Input.TextArea" ComponentInputNumber = "InputNumber" ComponentInputTag = "InputTag" ComponentList = "List" ComponentListAction = "List.Action" ComponentListActionRowSelection = "List.Action.RowSelection" ComponentListActionReload = "List.Action.Reload" ComponentListActionRecordFormDrawer = "List.Action.RecordFormDrawer" ComponentListActionRecordFormModal = "List.Action.RecordFormModal" ComponentListActionRecordDelete = "List.Action.RecordDelete" ComponentListActionSearch = "List.Action.Search" ComponentListTable = "List.Table" ComponentListTableColumn = "List.Table.Column" ComponentListCard = "List.Card" ComponentMoney = "Money" ComponentPassword = "Password" ComponentRadio = "Radio" ComponentRadioGroup = "Radio.Group" ComponentRate = "Rate" ComponentRecordSelect = "RecordSelect" ComponentSelect = "Select" ComponentSpace = "Space" ComponentSubmit = "Submit" ComponentSwitch = "Switch" ComponentTabs = "Tabs" ComponentTabsTabPane = "Tabs.TabPane" ComponentTimePicker = "TimePicker" ComponentTimePickerRangPicker = "TimePicker.RangPicker" ComponentUploadAvatar = "Upload.Avatar" ComponentUploadAttachment = "Upload.Attachment" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schema ¶
type Schema struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Default interface{} `json:"default,omitempty"` ReadOnly bool `json:"readOnly,omitempty"` WriteOnly bool `json:"writeOnly,omitempty"` Enum []map[string]interface{} `json:"enum,omitempty"` Const interface{} `json:"const,omitempty"` MultipleOf int `json:"multipleOf,omitempty"` Maximum int `json:"maximum,omitempty"` ExclusiveMaximum int `json:"exclusiveMaximum,omitempty"` Minimum int `json:"minimum,omitempty"` ExclusiveMinimum int `json:"exclusiveMinimum,omitempty"` MaxLength int `json:"maxLength,omitempty"` MinLength int `json:"minLength,omitempty"` Pattern string `json:"pattern,omitempty"` MaxItems int `json:"maxItems,omitempty"` MinItems int `json:"minItems,omitempty"` UniqueItems bool `json:"uniqueItems,omitempty"` MaxProperties int `json:"maxProperties,omitempty"` MinProperties int `json:"minProperties,omitempty"` Required bool `json:"required,omitempty"` Format string `json:"format,omitempty"` XIndex int `json:"x-index,omitempty"` XPattern string `json:"x-pattern,omitempty"` XDisplay string `json:"x-display,omitempty"` XValidator string `json:"x-validator,omitempty"` XDecorator string `json:"x-decorator,omitempty"` XDecoratorProps map[string]interface{} `json:"x-decorator-props,omitempty"` XComponent string `json:"x-component,omitempty"` XComponentProps map[string]interface{} `json:"x-component-props,omitempty"` XReactions map[string]interface{} `json:"x-reactions,omitempty"` XContent string `json:"x-content,omitempty"` XVisible bool `json:"x-visible,omitempty"` XHidden bool `json:"x-hidden,omitempty"` XDisabled bool `json:"x-disabled,omitempty"` XEditable bool `json:"x-editable,omitempty"` XReadOnly bool `json:"x-read-only,omitempty"` XReadPretty bool `json:"x-read-pretty,omitempty"` XData map[string]interface{} `json:"x-data,omitempty"` Items *Schema `json:"items,omitempty"` Properties *gmap.ListMap `json:"properties,omitempty"` // XPath 节点在整个 schema-tree 的路径, 服务于 ACL XPath string `json:"-"` HandlerNames []string `json:"-"` AC ac.AC `json:"-"` }
Click to show internal directories.
Click to hide internal directories.