### Vue Guide Component Basic Usage
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/guide.md
Demonstrates the basic usage of the Guide component for single and multi-step guidance. It includes examples of how to control visibility, define steps, and handle events like closing and navigation.
```Vue
单步骤引导
多步骤引导
消息提醒功能上线
JDesign顶部菜单导航新增提供了消息提醒功能,欢迎尝试。
```
--------------------------------
### Install JDesign Vue with pnpm
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/installation.md
Installs the JDesign Vue library version 2 using pnpm.
```bash
# pnpm
$ pnpm install @jd/jdesign-vue@2
```
--------------------------------
### Install JDesign Vue with npm
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/installation.md
Installs the JDesign Vue library version 2 using npm after configuring the npm registry.
```bash
npm config set registry=//registry.m.jd.com
# NPM
$ npm install @jd/jdesign-vue@2 --save
```
--------------------------------
### Install JDesign Vue via pnpm
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/pro-components/_installation.md
This snippet illustrates the process of installing the JDesign Vue component library using pnpm.
```bash
pnpm install @jd/jdesign-vue
```
--------------------------------
### Install JDesign Vue via NPM
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/pro-components/_installation.md
This snippet shows how to set the NPM registry and install the JDesign Vue component library using NPM.
```bash
npm config set registry=//registry.m.jd.com
npm install @jd/jdesign-vue --save
```
--------------------------------
### Install JDesign Vue with Yarn
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/installation.md
Installs the JDesign Vue library version 2 using Yarn.
```bash
# Yarn
$ yarn add @jd/jdesign-vue@2
```
--------------------------------
### Global Configuration for JDesign Vue
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/quickstart.md
Shows how to apply global configurations like default component size and z-index when using JDesign Vue. This can be done during the initial `app.use()` call or via a `JdConfigProvider` component.
```TypeScript
import { createApp } from 'vue'
import '@jd/jdesign-vue/dist/index.css'
import JDesign from '@jd/jdesign-vue'
import App from './App.vue'
const app = createApp(App)
app.use(JDesign, { size: 'small', zIndex: 3000 })
```
```JavaScript
```
--------------------------------
### Include JDesign Vue via CDN in HTML
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/installation.md
Includes the JDesign Vue library and Vue 3 from a CDN in the HTML head, along with the necessary CSS.
```html
```
--------------------------------
### Full Import JDesign Vue
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/quickstart.md
Demonstrates how to import the JDesign Vue library and its CSS globally in your main application file (e.g., main.ts). This makes all JDesign components available throughout your Vue application.
```TypeScript
import { createApp } from 'vue'
import '@jd/jdesign-vue/dist/index.css'
import JDesign from '@jd/jdesign-vue'
import App from './App.vue'
const app = createApp(App)
app.use(JDesign)
app.mount('#app')
```
--------------------------------
### Install JDesign Vue via Yarn
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/pro-components/_installation.md
This snippet demonstrates how to add the JDesign Vue component library to your project using Yarn.
```bash
yarn add @jd/jdesign-vue
```
--------------------------------
### Dashboard Progress Bar Examples
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/progress.md
Illustrates the usage of the 'dashboard' type for progress bars, allowing for control panel-style displays. Includes examples with dynamic percentage updates and color configurations.
```Vue
```
--------------------------------
### Install dongDesign Vue with Package Managers
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/README.md
Instructions for installing the dongDesign Vue component library using popular package managers like npm, yarn, and pnpm. It also includes a command to set the npm registry to JD's internal registry.
```Bash
# Set npm repository address
npm config set registry=//registry.m.jd.com
# NPM
npm install @jd/jdesign-vue@2 --save
# Yarn
yarn add @jd/jdesign-vue@2
# pnpm
pnpm install @jd/jdesign-vue@2
```
--------------------------------
### Vue Guide: Panel Extension Slots
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/guide.md
Shows how to utilize various slots like 'title', 'cover', 'desc', and 'extra' to customize the appearance and content of the Guide component's panels, including adding custom elements.
```javascript
开始引导
欢迎使用JDesign导航
在使用导航组件之前,建议您花30秒快速了解JDesign全新导航的所有功能!
```
--------------------------------
### Pro-viewer Basic Usage Example
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/pro-components/pro-viewer.md
Demonstrates the basic usage of the Pro-viewer component in a Vue application. It includes setting up the component with a list of URLs (including a video) and handling various player events.
```javascript
viewer trigger
```
--------------------------------
### Vue Steps: Steps with Descriptions
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/steps.md
Shows how to use the Steps component with descriptions for each step. This example displays a simple sequence of steps, each with a title and a description.
```javascript
```
--------------------------------
### Pro-wrapper-tab Basic Usage Example
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/pro-components/pro-wrapper-tab.md
Demonstrates the simplest way to use the JdProWrapperTab component. It includes setting up tabs with labels, icons, and descriptions, and handling tab change events.
```javascript
长期生效
通用时段配置
third label
third-desc
```
--------------------------------
### Popover Basic Usage Examples
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/popover.md
Demonstrates the basic usage of the Popover component with different trigger methods (hover, click, focus, contextmenu) and manual control using v-model:visible. It also shows how to set placement and content.
```javascript
Hover to activateClick to activateFocus to activate
contextmenu to activateManual to activate
```
--------------------------------
### Pro-image Basic Usage Example
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/pro-components/pro-image.md
Demonstrates the basic usage of the Pro-image component, showcasing its various props such as `left-tool-hover-show`, `src`, `preview-src-list`, `download-url`, `fit`, `aggregation-tools`, and `closable`. It also includes examples of using slots for custom toolbars (`leftTool`, `firstTool`, `secondTool`) and handling component events like `open`, `close`, `delete`, `switch`, `play`, `load`, and `error`.
```Vue
```
--------------------------------
### Page Loading Progress Indicator
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/progress.md
Provides an example of implementing a page loading progress indicator using the `useProgress` composable from `@jd/jdesign-vue`. It includes functions to start, update, and complete the progress display.
```Vue
开始80%完成清理
```
--------------------------------
### Cascader Component with Empty Data
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/cascader.md
Demonstrates the Cascader component's behavior when provided with empty options. It includes a Vue template, script setup with TypeScript, and scoped styles for the example block.
```vue
```
--------------------------------
### Configure Volar for JDesign Vue
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/quickstart.md
Explains how to configure Volar, a Vue language server, to support JDesign Vue components. This involves specifying the global component types in your tsconfig.json file.
```JSON
{
"compilerOptions": {
// ...
"types": ["@jd/jdesign-vue/global"]
}
}
```
--------------------------------
### Vue Guide Hint Component Usage
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/guide.md
This snippet shows how to use the `jd-guide-hint` component in a Vue.js application. It includes a template with a `jd-menu` and the `jd-guide-hint` component, configured with steps, offsets, and custom content for title, cover, description, and extra elements. The script handles the `finish` event of the hint.
```Vue
```
--------------------------------
### Tree-select Select Any Level
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/tree-select.md
Illustrates how to configure the Tree-select component to allow selection of any node in the tree, regardless of its depth, by setting the `check-strictly` attribute to true. This example also uses Vue's template and script setup.
```javascript
```
--------------------------------
### Vue Tag Component Themes and Effects
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/tag.md
Demonstrates the Tag component with different themes (dark, light, plain, vivid) and includes examples of closable tags. It utilizes a Vue template with a script setup for data management.
```Vue
Dark
{{ item.label }}
Light
{{ item.label }}
Plain
{{ item.label }}
Vivid
{{ item.label }}
Dark
{{ item.label }}
Light
{{ item.label }}
Plain
{{ item.label }}
Vivid
{{ item.label }}
```
--------------------------------
### Vue Table Component with Striped Rows
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/table.md
Demonstrates how to enable striped rows in the jd-table component using the 'stripe' attribute. This feature enhances data readability by alternating background colors for rows. The example includes basic table setup with data.
```Vue
```
--------------------------------
### Basic Dropdown Usage (Vue)
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/dropdown.md
Demonstrates the basic usage of the Dropdown component in Vue. It shows how to set up a dropdown with a link as the trigger and a list of menu items. The example includes importing an icon component and basic styling.
```Vue
Dropdown List
Action 1Action 2Action 3Action 4Action 5
```
--------------------------------
### Vue Table Component with Large Size
Source: https://github.com/xugaobo/dongdesign-b-component-corpus-vue/blob/main/base-components/table.md
Illustrates the usage of the jd-table component with the 'large' size attribute. This example showcases a standard table setup, applying the 'size="large"' prop to increase the table's overall dimensions.
```Vue
```