/*! 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:'
\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\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
\nimport { createApp } from 'vue';\nimport { Step, Steps } from 'vant';\n\nconst app = createApp();\napp.use(Step);\napp.use(Steps);\n
\nactive
\u5C5E\u6027\u8868\u793A\u5F53\u524D\u6B65\u9AA4\u7684\u7D22\u5F15\uFF0C\u4ECE 0 \u8D77\u8BA1\u3002
<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
\nimport { ref } from 'vue';\n\nexport default {\n setup() {\n const active = ref(1);\n return { active };\n },\n};\n
\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
<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\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E direction
\u5C5E\u6027\u6765\u6539\u53D8\u6B65\u9AA4\u6761\u7684\u663E\u793A\u65B9\u5411\u3002
<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\u53C2\u6570 | \n\u8BF4\u660E | \n\u7C7B\u578B | \n\u9ED8\u8BA4\u503C | \n
---|---|---|---|
active | \n\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u7D22\u5F15\u503C | \nnumber | string | \n0 | \n
direction | \n\u6B65\u9AA4\u6761\u65B9\u5411\uFF0C\u53EF\u9009\u503C\u4E3A vertical | \nstring | \nhorizontal | \n
active-icon | \n\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6 | \nstring | \nchecked | \n
inactive-icon | \n\u975E\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u53EF\u9009\u503C\u89C1 Icon \u7EC4\u4EF6 | \nstring | \n- | \n
finish-icon | \n\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\u4EF6 | \nstring | \n- | \n
active-color | \n\u5F53\u524D\u6B65\u9AA4\u548C\u5DF2\u5B8C\u6210\u6B65\u9AA4\u7684\u989C\u8272 | \nstring | \n#07c160 | \n
inactive-color | \n\u672A\u6FC0\u6D3B\u6B65\u9AA4\u7684\u989C\u8272 | \nstring | \n#969799 | \n
icon-prefix | \n\u56FE\u6807\u7C7B\u540D\u524D\u7F00\uFF0C\u7B49\u540C\u4E8E Icon \u7EC4\u4EF6\u7684 class-prefix \u5C5E\u6027 | \nstring | \nvan-icon | \n
\u540D\u79F0 | \n\u8BF4\u660E | \n
---|---|
default | \n\u6B65\u9AA4\u5185\u5BB9 | \n
active-icon | \n\u81EA\u5B9A\u4E49\u6FC0\u6D3B\u72B6\u6001\u56FE\u6807 | \n
inactive-icon | \n\u81EA\u5B9A\u4E49\u672A\u6FC0\u6D3B\u72B6\u6001\u56FE\u6807 | \n
finish-icon | \n\u81EA\u5B9A\u4E49\u5DF2\u5B8C\u6210\u6B65\u9AA4\u5BF9\u5E94\u7684\u5E95\u90E8\u56FE\u6807\uFF0C\u4F18\u5148\u7EA7\u9AD8\u4E8E inactive-icon | \n
\u4E8B\u4EF6\u540D | \n\u8BF4\u660E | \n\u56DE\u8C03\u53C2\u6570 | \n
---|---|---|
click-step | \n\u70B9\u51FB\u6B65\u9AA4\u7684\u6807\u9898\u6216\u56FE\u6807\u65F6\u89E6\u53D1 | \nindex: number | \n
\u7EC4\u4EF6\u5BFC\u51FA\u4EE5\u4E0B\u7C7B\u578B\u5B9A\u4E49\uFF1A
\nimport type { StepsProps, StepsDirection } from 'vant';\n
\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\u540D\u79F0 | \n\u9ED8\u8BA4\u503C | \n\u63CF\u8FF0 | \n
---|---|---|
--van-step-text-color | \nvar(--van-text-color-2) | \n- | \n
--van-step-active-color | \nvar(--van-primary-color) | \n- | \n
--van-step-process-text-color | \nvar(--van-text-color) | \n- | \n
--van-step-font-size | \nvar(--van-font-size-md) | \n- | \n
--van-step-line-color | \nvar(--van-border-color) | \n- | \n
--van-step-finish-line-color | \nvar(--van-primary-color) | \n- | \n
--van-step-finish-text-color | \nvar(--van-text-color) | \n- | \n
--van-step-icon-size | \n12px | \n- | \n
--van-step-circle-size | \n5px | \n- | \n
--van-step-circle-color | \nvar(--van-gray-6) | \n- | \n
--van-step-horizontal-title-font-size | \nvar(--van-font-size-sm) | \n- | \n
--van-steps-background | \nvar(--van-background-2) | \n- | \n