Documentation
¶
Index ¶
- type Model
- func (m Model) GetPercent() float64
- func (m Model) Init() tea.Cmd
- func (m Model) RenderWithTitle(title string) string
- func (m *Model) SetMessage(msg string)
- func (m *Model) SetProgress(current, total int)
- func (m *Model) SetSize(width int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model 进度条组件模型
func (Model) RenderWithTitle ¶
RenderWithTitle 带标题渲染
Click to show internal directories.
Click to hide internal directories.