/*! For license information please see 4943.bedf6fb2.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([["4943"],{94161:function(s,n,a){"use strict";a.r(n);var t=a("80681");let l=["innerHTML"];n.default={setup:()=>({html:""}),render:()=>((0,t.wg)(),(0,t.iD)("div",{class:"van-doc-markdown-body",innerHTML:'

Steps \u6B65\u9AA4\u6761

\n

\u4ECB\u7ECD

\n

\u7528\u4E8E\u5C55\u793A\u64CD\u4F5C\u6D41\u7A0B\u7684\u5404\u4E2A\u73AF\u8282\uFF0C\u8BA9\u7528\u6237\u4E86\u89E3\u5F53\u524D\u7684\u64CD\u4F5C\u5728\u6574\u4F53\u6D41\u7A0B\u4E2D\u7684\u4F4D\u7F6E\u3002

\n

\u5F15\u5165

\n

\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u6765\u5168\u5C40\u6CE8\u518C\u7EC4\u4EF6\uFF0C\u66F4\u591A\u6CE8\u518C\u65B9\u5F0F\u8BF7\u53C2\u8003\u7EC4\u4EF6\u6CE8\u518C\u3002

\n
import { createApp } from 'vue';\nimport { Step, Steps } from 'vant';\n\nconst app = createApp();\napp.use(Step);\napp.use(Steps);\n
\n

\u4EE3\u7801\u6F14\u793A

\n

\u57FA\u7840\u7528\u6CD5

\n

active \u5C5E\u6027\u8868\u793A\u5F53\u524D\u6B65\u9AA4\u7684\u7D22\u5F15\uFF0C\u4ECE 0 \u8D77\u8BA1\u3002

\n
<van-steps :active="active">\n  <van-step>\u4E70\u5BB6\u4E0B\u5355</van-step>\n  <van-step>\u5546\u5BB6\u63A5\u5355</van-step>\n  <van-step>\u4E70\u5BB6\u63D0\u8D27</van-step>\n  <van-step>\u4EA4\u6613\u5B8C\u6210</van-step>\n</van-steps>\n
\n
import { ref } from 'vue';\n\nexport default {\n  setup() {\n    const active = ref(1);\n    return { active };\n  },\n};\n
\n

\u81EA\u5B9A\u4E49\u6837\u5F0F

\n

\u53EF\u4EE5\u901A\u8FC7 active-icon \u548C active-color \u5C5E\u6027\u8BBE\u7F6E\u6FC0\u6D3B\u72B6\u6001\u4E0B\u7684\u56FE\u6807\u548C\u989C\u8272\u3002

\n
<van-steps :active="active" active-icon="success" active-color="#07c160">\n  <van-step>\u4E70\u5BB6\u4E0B\u5355</van-step>\n  <van-step>\u5546\u5BB6\u63A5\u5355</van-step>\n  <van-step>\u4E70\u5BB6\u63D0\u8D27</van-step>\n  <van-step>\u4EA4\u6613\u5B8C\u6210</van-step>\n</van-steps>\n
\n

\u7AD6\u5411\u6B65\u9AA4\u6761

\n

\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E direction \u5C5E\u6027\u6765\u6539\u53D8\u6B65\u9AA4\u6761\u7684\u663E\u793A\u65B9\u5411\u3002

\n
<van-steps direction="vertical" :active="0">\n  <van-step>\n    <h3>\u3010\u57CE\u5E02\u3011\u7269\u6D41\u72B6\u60011</h3>\n    <p>2016-07-12 12:40</p>\n  </van-step>\n  <van-step>\n    <h3>\u3010\u57CE\u5E02\u3011\u7269\u6D41\u72B6\u60012</h3>\n    <p>2016-07-11 10:00</p>\n  </van-step>\n  <van-step>\n    <h3>\u5FEB\u4EF6\u5DF2\u53D1\u8D27</h3>\n    <p>2016-07-10 09:30</p>\n  </van-step>\n</van-steps>\n
\n

API

\n

Steps Props

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u9ED8\u8BA4\u503C
active\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u7D22\u5F15\u503Cnumber | string0
direction\u6B65\u9AA4\u6761\u65B9\u5411\uFF0C\u53EF\u9009\u503C\u4E3A verticalstringhorizontal
active-icon\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6stringchecked
inactive-icon\u975E\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6string-
finish-icon\u5DF2\u5B8C\u6210\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u4F18\u5148\u7EA7\u9AD8\u4E8E inactive-icon\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6string-
active-color\u5F53\u524D\u6B65\u9AA4\u548C\u5DF2\u5B8C\u6210\u6B65\u9AA4\u7684\u989C\u8272string#07c160
inactive-color\u672A\u6FC0\u6D3B\u6B65\u9AA4\u7684\u989C\u8272string#969799
icon-prefix\u56FE\u6807\u7C7B\u540D\u524D\u7F00\uFF0C\u7B49\u540C\u4E8E Icon \u7EC4\u4EF6\u7684 class-prefix \u5C5E\u6027stringvan-icon
\n

Step Slots

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u540D\u79F0\u8BF4\u660E
default\u6B65\u9AA4\u5185\u5BB9
active-icon\u81EA\u5B9A\u4E49\u6FC0\u6D3B\u72B6\u6001\u56FE\u6807
inactive-icon\u81EA\u5B9A\u4E49\u672A\u6FC0\u6D3B\u72B6\u6001\u56FE\u6807
finish-icon\u81EA\u5B9A\u4E49\u5DF2\u5B8C\u6210\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u4F18\u5148\u7EA7\u9AD8\u4E8E inactive-icon
\n

Steps Events

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u4E8B\u4EF6\u540D\u8BF4\u660E\u56DE\u8C03\u53C2\u6570
click-step\u70B9\u51FB\u6B65\u9AA4\u7684\u6807\u9898\u6216\u56FE\u6807\u65F6\u89E6\u53D1index: number
\n

\u7C7B\u578B\u5B9A\u4E49

\n

\u7EC4\u4EF6\u5BFC\u51FA\u4EE5\u4E0B\u7C7B\u578B\u5B9A\u4E49\uFF1A

\n
import type { StepsProps, StepsDirection } from 'vant';\n
\n

\u4E3B\u9898\u5B9A\u5236

\n

\u6837\u5F0F\u53D8\u91CF

\n

\u7EC4\u4EF6\u63D0\u4F9B\u4E86\u4E0B\u5217 CSS \u53D8\u91CF\uFF0C\u53EF\u7528\u4E8E\u81EA\u5B9A\u4E49\u6837\u5F0F\uFF0C\u4F7F\u7528\u65B9\u6CD5\u8BF7\u53C2\u8003 ConfigProvider \u7EC4\u4EF6\u3002

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u540D\u79F0\u9ED8\u8BA4\u503C\u63CF\u8FF0
--van-step-text-colorvar(--van-text-color-2)-
--van-step-active-colorvar(--van-primary-color)-
--van-step-process-text-colorvar(--van-text-color)-
--van-step-font-sizevar(--van-font-size-md)-
--van-step-line-colorvar(--van-border-color)-
--van-step-finish-line-colorvar(--van-primary-color)-
--van-step-finish-text-colorvar(--van-text-color)-
--van-step-icon-size12px-
--van-step-circle-size5px-
--van-step-circle-colorvar(--van-gray-6)-
--van-step-horizontal-title-font-sizevar(--van-font-size-sm)-
--van-steps-backgroundvar(--van-background-2)-
\n
'},null,8,l))}}}]);