### Tour Basic Setup
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Shows the basic structure for initializing a Tour component with example elements and a start button.
```html
```
--------------------------------
### Custom Tour Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates a basic custom tour setup with a button to initiate it.
```html
```
--------------------------------
### Tour with Events Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates a tour setup where different steps are triggered by distinct buttons.
```html
当前步骤: 1
```
--------------------------------
### Menu Size Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-react/__tests__/__snapshots__/React Demos.md
Demonstrates how to set the size of a menu component. No specific setup or imports are shown in this snippet.
```html
```
--------------------------------
### Tour Declarative Configuration
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-react/__tests__/__snapshots__/React Demos.md
Shows a tour configured declaratively, targeting multiple example elements. Includes a button to start the tour and displays the current step.
```html
当前步骤: 1
```
--------------------------------
### Form Variable Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Shows an example of a form with input fields.
```html
```
--------------------------------
### Tooltip Content Examples
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-react/__tests__/__snapshots__/React Demos.md
Shows how to display Tooltip content with buttons. This snippet includes examples for adjusting volume and testing dropdowns.
```html
""
```
--------------------------------
### Closable Tip Examples
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates various styles of closable tips, including default, primary, success, warning, and danger. Also shows a custom closing content example.
```html
default
primary
success
warning
danger
custom closing content
```
--------------------------------
### Select Creatable Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates a creatable Select component allowing users to input new options. Includes examples for single day selection and multiple day selection with different configurations.
```html
Day:
+0
请输入或选择
Days: []
请输入或选择
Day with keepKeywords=false: []
```
--------------------------------
### Grid offset Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-react/__tests__/__snapshots__/React Demos.md
Shows how to create horizontal space before a grid column using the `k-offset-*` classes. This example includes both no-gutter and gutter variations.
```html
col-6 offset-6
col-6 offset-6
col-6 gutter-16 offset-6
col-6 gutter-16 offset-6
```
--------------------------------
### Drawer Placement Example
Source: https://github.com/ksc-fe/kpc/blob/master/components/drawer/demos/placement.md
This example shows how to use the `placement` attribute to control the drawer's position. It includes buttons to select different placements and sizes. The default placement is 'right'.
```vdt
import {Drawer, Button, ButtonGroup} from 'kpc';
Drawer Body
```
--------------------------------
### Simple Pagination Examples
Source: https://github.com/ksc-fe/kpc/blob/master/components/pagination/demos/simple.md
Use the `simple` attribute to enable a concise pagination style. Examples are shown with different size variants: large, default, small, and mini.
```vdt
import {Pagination} from 'kpc';
```
--------------------------------
### KPC Basic Tooltip Examples
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Provides basic examples of KPC Tooltips, including hover interactions, small sizes, handling empty content, light themes, and disabled states.
```html
"
hover the text
small size
don't show anything if content is empty
light theme
disabled
"
```
--------------------------------
### KPC Development Setup
Source: https://github.com/ksc-fe/kpc/blob/master/README.md
Steps to clone the repository, install dependencies, and start the development server for KPC.
```shell
git clone https://github.com/ksc-fe/kpc.git
cd kpc
npm install
npm run dev:doc
```
--------------------------------
### Basic Tour Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates a basic implementation of a tour component. This snippet includes buttons to initiate the tour and display the current step.
```html
当前步骤: 1
```
--------------------------------
### Vue Next Tour Declarative Setup
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates setting up a tour declaratively, allowing for multiple target elements and displaying the current step. This approach simplifies tour management.
```html
```
--------------------------------
### Timepicker Range Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-react/__tests__/__snapshots__/React Demos.md
Illustrates the Timepicker component configured for selecting a time range. It shows placeholders for start and end times.
```html
You selected: null
开始时间 ~ 结束时间
You selected: []
```
--------------------------------
### Declarative Tour Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Illustrates setting up a tour declaratively with multiple target elements.
```html
当前步骤: 1
```
--------------------------------
### Closable Tour Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates a tour component that can be closed. This snippet includes a switch to disable the close icon and a button to start the tour.
```html
关闭图标: 禁用
```
--------------------------------
### Simple Steps Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates a basic horizontal steps component. Use this for simple sequential processes.
```html
选择配置
请选择主机的配置信息
选择弹性IP
请选择主机弹性IP的配置信息
设置VPC
```
--------------------------------
### Menu Size Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates how to configure the size of a Menu component.
```vue
Item 1Item 2
```
--------------------------------
### Install kpc-react
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-react/README.md
Install the kpc-react package using npm.
```shell
npm install kpc-react --save
```
--------------------------------
### Show Goto Input Box
Source: https://github.com/ksc-fe/kpc/blob/master/components/pagination/demos/goto.md
Set the `showGoto` prop to `true` to display the quick jump input box. This example shows basic usage with a total of 200 pages.
```vdt
import {Pagination} from 'kpc';
```
```typescript
export default class extends Component {
static template = template;
static defaults() {
return {
value: 1
}
}
}
```
--------------------------------
### Install KPC for React
Source: https://github.com/ksc-fe/kpc/blob/master/README.md
Install the KPC component library for React using npm.
```shell
npm install @king-design/react--save
```
--------------------------------
### Install KPC for Vue2
Source: https://github.com/ksc-fe/kpc/blob/master/README.md
Install the KPC component library for Vue2 using npm.
```shell
npm install @king-desing/vue-legacy --save
```
--------------------------------
### Dialog Size Examples
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates how to display dialogs of different sizes: large, default, small, and mini. Also shows how to specify a custom width.
```html
```
--------------------------------
### Install KPC for Vue3
Source: https://github.com/ksc-fe/kpc/blob/master/README.md
Install the KPC component library for Vue3 using npm.
```shell
npm install @king-design/vue --save
```
--------------------------------
### KPC Drawer Resizable Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Shows how to configure a resizable KPC Drawer with options for top, bottom, left, and right.
```html
"
"
```
--------------------------------
### Grid Basic Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates the basic structure of a grid layout with columns.
```html
col-12
col-12
col-4
col-6
col-8
col-6
```
--------------------------------
### Vue TreeSelect Basic Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
A basic example of the TreeSelect component, showing a placeholder and a dropdown arrow.
```html
请选择
```
--------------------------------
### Install Monaco Editor Webpack Plugin
Source: https://github.com/ksc-fe/kpc/blob/master/components/code/demos/basic.md
Install the monaco-editor-webpack-plugin to enable Monaco Editor integration. This is a development dependency.
```shell
npm install monaco-editor-webpack-plugin@4 -D
```
--------------------------------
### Notification Events Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Shows how to trigger notifications and potentially handle events associated with them. This example focuses on the action of displaying a notification.
```html
""
```
--------------------------------
### Ellipsis Tooltip Positioning Examples
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Shows examples of ellipsis with tooltips positioned to the right and below the text. Useful for controlling tooltip placement.
```html
"
tooltip在右侧tooltip在右侧
tooltip在下方tooltip在下方
"
```
--------------------------------
### Basic Popover Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates the basic structure for a KPC popover, including buttons and portal elements.
```html
"
"
```
--------------------------------
### Disabled Tabs Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Shows how to render tabs in a disabled state, preventing user interaction. This example uses the default tab type.
```html
入站规则
出站规则
关联云主机
关联云主机
```
--------------------------------
### Progress Basic Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates basic linear progress bars with different statuses (active and success).
```html
50%
```
--------------------------------
### Tour with beforeChange Logic
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Demonstrates a Tour setup with custom logic for the `beforeChange` event, including an input field for validation before proceeding to the next step.
```html
```
--------------------------------
### Select Custom Example
Source: https://github.com/ksc-fe/kpc/blob/master/packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md
Shows a basic custom Select component with a placeholder. This example illustrates the fundamental structure for a custom select input.
```html
```
--------------------------------
### Menu Theme Example
Source: https://github.com/ksc-fe/kpc/blob/master/test/__snapshots__/Demos.md
Demonstrates a menu component with different theming options (light/dark) and nested submenus. Includes interactive elements like buttons and radio inputs.
```html
"