隐藏保存按钮
```
--------------------------------
### Basic Usage of o-notice Component
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/notice.md
Demonstrates the fundamental way to use the `o-notice` component, requiring the `msg` attribute to be passed.
```HTML
```
--------------------------------
### Breadcrumb with Icon Separator
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/breadcrumb.md
Illustrates how to use an icon as a separator in `el-breadcrumb` by setting the `separator-class` attribute. This method overrides the `separator` string setting. The example uses `el-icon-arrow-right` as the separator icon.
```HTML
首页
活动管理
活动列表
活动详情
```
--------------------------------
### Element UI File Upload with Preview and Limits
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/upload.md
This snippet demonstrates a basic file upload component using Element UI's `el-upload`. It includes functionalities for file preview (`on-preview`), removal (`on-remove`, `before-remove`), and limiting the number of files (`limit`, `on-exceed`). Initial files can be pre-populated in `fileList`.
```HTML
点击上传
只能上传jpg/png文件,且不超过500kb
```
--------------------------------
### OMarkdown Component Options API
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/markdown.md
Detailed API documentation for the OMarkdown component's `options` property, listing various configuration parameters such as cache, height, width, placeholder, language, and event handlers like input, focus, blur, esc, ctrlEnter, and select.
```APIDOC
options:
cache: boolean - Whether to use localStorage for caching (default: true)
height: string - Total editor height (default: 'auto')
width: string - Total editor width, supports % (default: 'auto')
placeholder: string - Hint when input area is empty (default: '')
lang: string - Multi-language: en_US, zh_CN (default: 'zh_CN')
counter: number - Counter (default: 0)
input(value: string, previewElement?: HTMLElement): void - Triggered after input
focus(value: string): void - Triggered after focus
blur(value: string): void - Triggered after blur
esc(value: string): void - Triggered after esc key press
ctrlEnter(value: string): void - Triggered after ⌘/ctrl+enter key press
select(value: string): void - Triggered after text selection in editor
tab: string - Tab key operation string, supports `\t` and any string
```
--------------------------------
### Carousel Indicator Positioning (HTML/CSS)
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/carousel.md
Illustrates how to control the position of carousel indicators using the `indicator-position` attribute. Examples include `outside` for external display and `none` for hiding indicators.
```HTML
{{ item }}
```
--------------------------------
### Avatar Image Fit Property
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/avatar.md
Demonstrates how to use the `fit` property to control how an image adapts to its container, similar to CSS `object-fit`. Examples include 'fill', 'contain', 'cover', 'none', and 'scale-down'.
```html
```
--------------------------------
### Render Basic El-Tag Components
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/tag.md
Demonstrates how to render basic El-Tag components using the `type` attribute for different styles and the `color` attribute for custom backgrounds.
```html
标签一
标签二
标签三
标签四
标签五
```
--------------------------------
### Customizing El-Divider with Text Content
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/divider.md
Illustrates how to embed custom text or icons directly within the El-Divider. Examples show text positioning options (left, center, right) for enhanced content presentation.
```html
头上一片晴天,心中一个想念
少年包青天
饿了别叫妈, 叫饿了么
为了无法计算的价值
阿里云
```
--------------------------------
### Collapse Component Attributes Reference
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/collapse.md
This section details the configurable attributes for the el-collapse component. Each attribute's purpose, data type, acceptable values, and default setting are provided to guide component customization.
```APIDOC
Attribute: value / v-model
Description: Currently active panel(s). If in accordion mode, the bound value type should be 'string', otherwise it should be 'array'.
Type: string / array
Options: —
Default: —
Attribute: accordion
Description: Whether to enable accordion mode.
Type: boolean
Options: —
Default: false
```
--------------------------------
### Vditor Static Methods Overview
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/markdown.md
An overview of various static methods provided by Vditor for transforming and rendering different types of content, including mathematical formulas, diagrams, code blocks, and media.
```APIDOC
mathRender(element: HTMLElement)
description: Converts text in element to mathematical formulas.
mermaidRender(element: HTMLElement)
description: Converts text in element to flowcharts, sequence diagrams, or Gantt charts.
codeRender(element: HTMLElement, lang: (keyof II18nLang) = "zh_CN")
description: Adds a copy button to code blocks within the element.
chartRender(element: (HTMLElement | Document) = document)
description: Renders charts.
abcRender(element: (HTMLElement | Document) = document)
description: Renders staff notation.
md2html(mdText: string, options?: IPreviewOptions): string
description: Converts Markdown text to HTML. This method requires asynchronous programming.
highlightRender(hljsStyle: string, enableHighlight: boolean, element?: HTMLElement | Document)
description: Renders code blocks within the element with highlighting.
mediaRender(element: HTMLElement)
description: Renders specific links as video, audio, or embedded iframes.
mathRenderByLute(element: HTMLElement)
description: Renders mathematical formulas that were processed by Lute.
```
--------------------------------
### Disabling Element UI Radio Buttons
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/radio.md
Shows how to disable an `el-radio` component. Set the `disabled` attribute to `true` to make the radio button unusable. This example demonstrates both a disabled unchecked and a disabled checked state.
```html
Option
Option
```
--------------------------------
### OMarkdown Preview Options API
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/markdown.md
API documentation for configuring the OMarkdown editor's preview functionality. This includes settings for the debounce delay before preview updates, the display mode (both, editor, or preview only), a callback function for custom preview parsing, and a URL for external Markdown parsing requests.
```APIDOC
options.preview:
delay: number - Preview debounce milliseconds interval (default: 1000)
mode: string - Display mode: 'both', 'editor', 'preview' (default: 'both')
parse(element: HTMLElement): void - Preview callback
url: string - Markdown parsing request URL
```
--------------------------------
### Basic Usage of El-Timeline Component
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/timeline.md
Demonstrates the fundamental implementation of the El-Timeline component, showcasing how to display a list of activities with timestamps. It also includes a radio group to dynamically control the sorting order of the timeline items (ascending or descending).
```html
排序:
倒序
正序
{{activity.content}}
```
--------------------------------
### Basic Catalog Usage with Vue.js
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/catalog.md
Demonstrates the fundamental usage of the o-catalog component. It shows how to create a catalog with multiple panes, including nested panes, and how to dynamically add or remove items. The catalog supports one-level and two-level directories.
```html
牛逼咯
我的生命之道就是吃吃吃吃
{{tip.value}}
目录三
目录四
目录五
```
```javascript
export default {
data(){
return {
list:[],
test:'测试标题'
}
},
methods: {
openFullScreen(val) {
},
},
mounted(){
let arr=[];
for(let i=0;i<3;i++){
let data={
value:'目录'+i
}
arr.push(data);
}
this.list=arr;
}
}
```
--------------------------------
### Collapse Panel with Accordion Mode
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/collapse.md
This example demonstrates how to configure the el-collapse component to behave as an accordion, where only one panel can be open at a time. This is achieved by adding the accordion boolean attribute to the el-collapse component. The v-model is bound to a single string activeName.
```html
与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;
在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。
控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;
页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。
简化流程:设计简洁直观的操作流程;
清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;
帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。
用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;
结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。
```
--------------------------------
### InputNumber Component Methods
Source: https://github.com/shayelee/onev-ui/blob/main/examples/docs/zh-CN/input-number.md
A list of methods available on the `el-input-number` component instance, along with their descriptions and parameters.
```APIDOC
Method: focus
Description: Makes the input gain focus
Parameters: -
Method: select
Description: Selects the text in the input
Parameters: —
```