vant/static/js/async/8577.c9afe7c9.js
2024-04-20 08:49:23 +00:00

2 lines
21 KiB
JavaScript

/*! For license information please see 8577.c9afe7c9.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["8577"],{26110:function(s,n,t){"use strict";t.r(n);var a=t("80681");let l=["innerHTML"];n.default={setup:()=>({html:""}),render:()=>((0,a.wg)(),(0,a.iD)("div",{class:"van-doc-markdown-body",innerHTML:'<h1>NumberKeyboard \u6570\u5B57\u952E\u76D8</h1>\n<div class="van-doc-card"><h3 id="jie-shao" tabindex="-1">\u4ECB\u7ECD</h3>\n<p>\u865A\u62DF\u6570\u5B57\u952E\u76D8\uFF0C\u53EF\u4EE5\u914D\u5408<a href="#/zh-CN/password-input" target="_blank">\u5BC6\u7801\u8F93\u5165\u6846\u7EC4\u4EF6</a>\u6216\u81EA\u5B9A\u4E49\u7684\u8F93\u5165\u6846\u7EC4\u4EF6\u4F7F\u7528\u3002</p>\n</div><div class="van-doc-card"><h3 id="yin-ru" tabindex="-1">\u5F15\u5165</h3>\n<p>\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u6765\u5168\u5C40\u6CE8\u518C\u7EC4\u4EF6\uFF0C\u66F4\u591A\u6CE8\u518C\u65B9\u5F0F\u8BF7\u53C2\u8003<a href="#/zh-CN/advanced-usage#zu-jian-zhu-ce" target="_blank">\u7EC4\u4EF6\u6CE8\u518C</a>\u3002</p>\n<pre><code class="language-js"><span class="hljs-keyword">import</span> { createApp } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;vue&#x27;</span>;\n<span class="hljs-keyword">import</span> { <span class="hljs-title class_">NumberKeyboard</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;vant&#x27;</span>;\n\n<span class="hljs-keyword">const</span> app = <span class="hljs-title function_">createApp</span>();\napp.<span class="hljs-title function_">use</span>(<span class="hljs-title class_">NumberKeyboard</span>);\n</code></pre>\n</div><h2 id="dai-ma-yan-shi" tabindex="-1">\u4EE3\u7801\u6F14\u793A</h2>\n<div class="van-doc-card"><h3 id="mo-ren-yang-shi" tabindex="-1">\u9ED8\u8BA4\u6837\u5F0F</h3>\n<p>\u6570\u5B57\u952E\u76D8\u63D0\u4F9B\u4E86 <code>input</code>\u3001<code>delete</code>\u3001<code>blur</code> \u4E8B\u4EF6\uFF0C\u5206\u522B\u5BF9\u5E94\u8F93\u5165\u5185\u5BB9\u3001\u5220\u9664\u5185\u5BB9\u548C\u5931\u53BB\u7126\u70B9\u7684\u52A8\u4F5C\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-cell</span> @<span class="hljs-attr">touchstart.stop</span>=<span class="hljs-string">&quot;show = true&quot;</span>&gt;</span>\u5F39\u51FA\u9ED8\u8BA4\u952E\u76D8<span class="hljs-tag">&lt;/<span class="hljs-name">van-cell</span>&gt;</span>\n<span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n @<span class="hljs-attr">input</span>=<span class="hljs-string">&quot;onInput&quot;</span>\n @<span class="hljs-attr">delete</span>=<span class="hljs-string">&quot;onDelete&quot;</span>\n/&gt;</span>\n</code></pre>\n<pre><code class="language-js"><span class="hljs-keyword">import</span> { ref } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;vue&#x27;</span>;\n<span class="hljs-keyword">import</span> { showToast } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;vant&#x27;</span>;\n\n<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {\n <span class="hljs-title function_">setup</span>(<span class="hljs-params"></span>) {\n <span class="hljs-keyword">const</span> show = <span class="hljs-title function_">ref</span>(<span class="hljs-literal">true</span>);\n <span class="hljs-keyword">const</span> <span class="hljs-title function_">onInput</span> = (<span class="hljs-params">value</span>) =&gt; <span class="hljs-title function_">showToast</span>(value);\n <span class="hljs-keyword">const</span> <span class="hljs-title function_">onDelete</span> = (<span class="hljs-params"></span>) =&gt; <span class="hljs-title function_">showToast</span>(<span class="hljs-string">&#x27;\u5220\u9664&#x27;</span>);\n\n <span class="hljs-keyword">return</span> {\n show,\n onInput,\n onDelete,\n };\n },\n};\n</code></pre>\n<blockquote>\n<p>\u70B9\u51FB\u952E\u76D8\u4EE5\u5916\u7684\u533A\u57DF\u65F6\uFF0C\u952E\u76D8\u4F1A\u81EA\u52A8\u6536\u8D77\uFF0C\u901A\u8FC7\u963B\u6B62\u5143\u7D20\u4E0A\u7684 touchstart \u4E8B\u4EF6\u5192\u6CE1\u53EF\u4EE5\u907F\u514D\u952E\u76D8\u6536\u8D77\u3002</p>\n</blockquote>\n</div><div class="van-doc-card"><h3 id="dai-you-ce-lan-de-jian-pan" tabindex="-1">\u5E26\u53F3\u4FA7\u680F\u7684\u952E\u76D8</h3>\n<p>\u5C06 theme \u5C5E\u6027\u8BBE\u7F6E\u4E3A <code>custom</code> \u6765\u5C55\u793A\u952E\u76D8\u7684\u53F3\u4FA7\u680F\uFF0C\u5E38\u7528\u4E8E\u8F93\u5165\u91D1\u989D\u7684\u573A\u666F\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n <span class="hljs-attr">theme</span>=<span class="hljs-string">&quot;custom&quot;</span>\n <span class="hljs-attr">extra-key</span>=<span class="hljs-string">&quot;.&quot;</span>\n <span class="hljs-attr">close-button-text</span>=<span class="hljs-string">&quot;\u5B8C\u6210&quot;</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n @<span class="hljs-attr">input</span>=<span class="hljs-string">&quot;onInput&quot;</span>\n @<span class="hljs-attr">delete</span>=<span class="hljs-string">&quot;onDelete&quot;</span>\n/&gt;</span>\n</code></pre>\n</div><div class="van-doc-card"><h3 id="shen-fen-zheng-hao-jian-pan" tabindex="-1">\u8EAB\u4EFD\u8BC1\u53F7\u952E\u76D8</h3>\n<p>\u901A\u8FC7 <code>extra-key</code> \u5C5E\u6027\u53EF\u4EE5\u8BBE\u7F6E\u5DE6\u4E0B\u89D2\u6309\u952E\u5185\u5BB9\uFF0C\u6BD4\u5982\u9700\u8981\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u65F6\uFF0C\u53EF\u4EE5\u5C06 <code>extra-key</code> \u8BBE\u7F6E\u4E3A <code>X</code>\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-cell</span> <span class="hljs-attr">plain</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;primary&quot;</span> @<span class="hljs-attr">touchstart.stop</span>=<span class="hljs-string">&quot;show = true&quot;</span>&gt;</span>\n \u5F39\u51FA\u8EAB\u4EFD\u8BC1\u53F7\u952E\u76D8\n<span class="hljs-tag">&lt;/<span class="hljs-name">van-cell</span>&gt;</span>\n<span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n <span class="hljs-attr">extra-key</span>=<span class="hljs-string">&quot;X&quot;</span>\n <span class="hljs-attr">close-button-text</span>=<span class="hljs-string">&quot;\u5B8C\u6210&quot;</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n @<span class="hljs-attr">input</span>=<span class="hljs-string">&quot;onInput&quot;</span>\n @<span class="hljs-attr">delete</span>=<span class="hljs-string">&quot;onDelete&quot;</span>\n/&gt;</span>\n</code></pre>\n</div><div class="van-doc-card"><h3 id="jian-pan-biao-ti" tabindex="-1">\u952E\u76D8\u6807\u9898</h3>\n<p>\u901A\u8FC7 <code>title</code> \u5C5E\u6027\u53EF\u4EE5\u8BBE\u7F6E\u952E\u76D8\u6807\u9898\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-cell</span> <span class="hljs-attr">plain</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;primary&quot;</span> @<span class="hljs-attr">touchstart.stop</span>=<span class="hljs-string">&quot;show = true&quot;</span>&gt;</span>\n \u5F39\u51FA\u5E26\u6807\u9898\u7684\u952E\u76D8\n<span class="hljs-tag">&lt;/<span class="hljs-name">van-cell</span>&gt;</span>\n<span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n <span class="hljs-attr">title</span>=<span class="hljs-string">&quot;\u952E\u76D8\u6807\u9898&quot;</span>\n <span class="hljs-attr">extra-key</span>=<span class="hljs-string">&quot;.&quot;</span>\n <span class="hljs-attr">close-button-text</span>=<span class="hljs-string">&quot;\u5B8C\u6210&quot;</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n @<span class="hljs-attr">input</span>=<span class="hljs-string">&quot;onInput&quot;</span>\n @<span class="hljs-attr">delete</span>=<span class="hljs-string">&quot;onDelete&quot;</span>\n/&gt;</span>\n</code></pre>\n</div><div class="van-doc-card"><h3 id="pei-zhi-duo-ge-an-jian" tabindex="-1">\u914D\u7F6E\u591A\u4E2A\u6309\u952E</h3>\n<p>\u5F53 theme \u4E3A <code>custom</code> \u65F6\uFF0C\u652F\u6301\u4EE5\u6570\u7EC4\u7684\u5F62\u5F0F\u914D\u7F6E\u4E24\u4E2A <code>extra-key</code>\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-cell</span> <span class="hljs-attr">plain</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;primary&quot;</span> @<span class="hljs-attr">touchstart.stop</span>=<span class="hljs-string">&quot;show = true&quot;</span>&gt;</span>\n \u5F39\u51FA\u914D\u7F6E\u591A\u4E2A\u6309\u952E\u7684\u952E\u76D8\n<span class="hljs-tag">&lt;/<span class="hljs-name">van-cell</span>&gt;</span>\n<span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n <span class="hljs-attr">theme</span>=<span class="hljs-string">&quot;custom&quot;</span>\n <span class="hljs-attr">:extra-key</span>=<span class="hljs-string">&quot;[&#x27;00&#x27;, &#x27;.&#x27;]&quot;</span>\n <span class="hljs-attr">close-button-text</span>=<span class="hljs-string">&quot;\u5B8C\u6210&quot;</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n @<span class="hljs-attr">input</span>=<span class="hljs-string">&quot;onInput&quot;</span>\n @<span class="hljs-attr">delete</span>=<span class="hljs-string">&quot;onDelete&quot;</span>\n/&gt;</span>\n</code></pre>\n</div><div class="van-doc-card"><h3 id="sui-ji-shu-zi-jian-pan" tabindex="-1">\u968F\u673A\u6570\u5B57\u952E\u76D8</h3>\n<p>\u901A\u8FC7 <code>random-key-order</code> \u5C5E\u6027\u53EF\u4EE5\u968F\u673A\u6392\u5E8F\u6570\u5B57\u952E\u76D8\uFF0C\u5E38\u7528\u4E8E\u5B89\u5168\u7B49\u7EA7\u8F83\u9AD8\u7684\u573A\u666F\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-cell</span> @<span class="hljs-attr">touchstart.stop</span>=<span class="hljs-string">&quot;show = true&quot;</span>&gt;</span> \u5F39\u51FA\u914D\u7F6E\u968F\u673A\u6570\u5B57\u7684\u952E\u76D8 <span class="hljs-tag">&lt;/<span class="hljs-name">van-cell</span>&gt;</span>\n<span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n <span class="hljs-attr">random-key-order</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n @<span class="hljs-attr">input</span>=<span class="hljs-string">&quot;onInput&quot;</span>\n @<span class="hljs-attr">delete</span>=<span class="hljs-string">&quot;onDelete&quot;</span>\n/&gt;</span>\n</code></pre>\n</div><div class="van-doc-card"><h3 id="shuang-xiang-bang-ding" tabindex="-1">\u53CC\u5411\u7ED1\u5B9A</h3>\n<p>\u53EF\u4EE5\u901A\u8FC7 <code>v-model</code> \u7ED1\u5B9A\u952E\u76D8\u5F53\u524D\u8F93\u5165\u503C\uFF0C\u5E76\u901A\u8FC7 <code>maxlength</code> \u5C5E\u6027\u6765\u9650\u5236\u8F93\u5165\u957F\u5EA6\u3002</p>\n<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">van-field</span> <span class="hljs-attr">v-model</span>=<span class="hljs-string">&quot;value&quot;</span> <span class="hljs-attr">readonly</span> <span class="hljs-attr">clickable</span> @<span class="hljs-attr">touchstart.stop</span>=<span class="hljs-string">&quot;show = true&quot;</span> /&gt;</span>\n<span class="hljs-tag">&lt;<span class="hljs-name">van-number-keyboard</span>\n <span class="hljs-attr">v-model</span>=<span class="hljs-string">&quot;value&quot;</span>\n <span class="hljs-attr">:show</span>=<span class="hljs-string">&quot;show&quot;</span>\n <span class="hljs-attr">:maxlength</span>=<span class="hljs-string">&quot;6&quot;</span>\n @<span class="hljs-attr">blur</span>=<span class="hljs-string">&quot;show = false&quot;</span>\n/&gt;</span>\n</code></pre>\n<pre><code class="language-js"><span class="hljs-keyword">import</span> { ref } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;vue&#x27;</span>;\n\n<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {\n <span class="hljs-title function_">setup</span>(<span class="hljs-params"></span>) {\n <span class="hljs-keyword">const</span> show = <span class="hljs-title function_">ref</span>(<span class="hljs-literal">true</span>);\n <span class="hljs-keyword">const</span> value = <span class="hljs-title function_">ref</span>(<span class="hljs-string">&#x27;&#x27;</span>);\n <span class="hljs-keyword">return</span> {\n show,\n value,\n };\n },\n};\n</code></pre>\n</div><h2 id="api" tabindex="-1">API</h2>\n<div class="van-doc-card"><h3 id="props" tabindex="-1">Props</h3>\n<table>\n<thead>\n<tr>\n<th>\u53C2\u6570</th>\n<th>\u8BF4\u660E</th>\n<th>\u7C7B\u578B</th>\n<th>\u9ED8\u8BA4\u503C</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>v-model</td>\n<td>\u5F53\u524D\u8F93\u5165\u503C</td>\n<td><em>string</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>show</td>\n<td>\u662F\u5426\u663E\u793A\u952E\u76D8</td>\n<td><em>boolean</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>title</td>\n<td>\u952E\u76D8\u6807\u9898</td>\n<td><em>string</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>theme</td>\n<td>\u6837\u5F0F\u98CE\u683C\uFF0C\u53EF\u9009\u503C\u4E3A <code>custom</code></td>\n<td><em>string</em></td>\n<td><code>default</code></td>\n</tr>\n<tr>\n<td>maxlength</td>\n<td>\u8F93\u5165\u503C\u6700\u5927\u957F\u5EA6</td>\n<td><em>number | string</em></td>\n<td><code>Infinity</code></td>\n</tr>\n<tr>\n<td>transition</td>\n<td>\u662F\u5426\u5F00\u542F\u8FC7\u573A\u52A8\u753B</td>\n<td><em>boolean</em></td>\n<td><code>true</code></td>\n</tr>\n<tr>\n<td>z-index</td>\n<td>\u952E\u76D8 z-index \u5C42\u7EA7</td>\n<td><em>number | string</em></td>\n<td><code>100</code></td>\n</tr>\n<tr>\n<td>extra-key</td>\n<td>\u5E95\u90E8\u989D\u5916\u6309\u952E\u7684\u5185\u5BB9</td>\n<td><em>string | string[]</em></td>\n<td><code>\'\'</code></td>\n</tr>\n<tr>\n<td>close-button-text</td>\n<td>\u5173\u95ED\u6309\u94AE\u6587\u5B57\uFF0C\u7A7A\u5219\u4E0D\u5C55\u793A</td>\n<td><em>string</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>delete-button-text</td>\n<td>\u5220\u9664\u6309\u94AE\u6587\u5B57\uFF0C\u7A7A\u5219\u5C55\u793A\u5220\u9664\u56FE\u6807</td>\n<td><em>string</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>close-button-loading</td>\n<td>\u662F\u5426\u5C06\u5173\u95ED\u6309\u94AE\u8BBE\u7F6E\u4E3A\u52A0\u8F7D\u4E2D\u72B6\u6001\uFF0C\u4EC5\u5728 <code>theme=&quot;custom&quot;</code> \u65F6\u6709\u6548</td>\n<td><em>boolean</em></td>\n<td><code>false</code></td>\n</tr>\n<tr>\n<td>show-delete-key</td>\n<td>\u662F\u5426\u5C55\u793A\u5220\u9664\u56FE\u6807</td>\n<td><em>boolean</em></td>\n<td><code>true</code></td>\n</tr>\n<tr>\n<td>blur-on-close</td>\n<td>\u662F\u5426\u5728\u70B9\u51FB\u5173\u95ED\u6309\u94AE\u65F6\u89E6\u53D1 blur \u4E8B\u4EF6</td>\n<td><em>boolean</em></td>\n<td><code>true</code></td>\n</tr>\n<tr>\n<td>hide-on-click-outside</td>\n<td>\u662F\u5426\u5728\u70B9\u51FB\u5916\u90E8\u65F6\u6536\u8D77\u952E\u76D8</td>\n<td><em>boolean</em></td>\n<td><code>true</code></td>\n</tr>\n<tr>\n<td>teleport</td>\n<td>\u6307\u5B9A\u6302\u8F7D\u7684\u8282\u70B9\uFF0C\u7B49\u540C\u4E8E Teleport \u7EC4\u4EF6\u7684 <a href="https://cn.vuejs.org/api/built-in-components.html#teleport" target="_blank">to \u5C5E\u6027</a></td>\n<td><em>string | Element</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>safe-area-inset-bottom</td>\n<td>\u662F\u5426\u5F00\u542F<a href="#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei" target="_blank">\u5E95\u90E8\u5B89\u5168\u533A\u9002\u914D</a></td>\n<td><em>boolean</em></td>\n<td><code>true</code></td>\n</tr>\n<tr>\n<td>random-key-order</td>\n<td>\u662F\u5426\u5C06\u901A\u8FC7\u968F\u673A\u987A\u5E8F\u5C55\u793A\u6309\u952E</td>\n<td><em>boolean</em></td>\n<td><code>false</code></td>\n</tr>\n</tbody>\n</table>\n</div><div class="van-doc-card"><h3 id="events" tabindex="-1">Events</h3>\n<table>\n<thead>\n<tr>\n<th>\u4E8B\u4EF6\u540D</th>\n<th>\u8BF4\u660E</th>\n<th>\u56DE\u8C03\u53C2\u6570</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>input</td>\n<td>\u70B9\u51FB\u6309\u952E\u65F6\u89E6\u53D1</td>\n<td><em>key: string</em></td>\n</tr>\n<tr>\n<td>delete</td>\n<td>\u70B9\u51FB\u5220\u9664\u952E\u65F6\u89E6\u53D1</td>\n<td>-</td>\n</tr>\n<tr>\n<td>close</td>\n<td>\u70B9\u51FB\u5173\u95ED\u6309\u94AE\u65F6\u89E6\u53D1</td>\n<td>-</td>\n</tr>\n<tr>\n<td>blur</td>\n<td>\u70B9\u51FB\u5173\u95ED\u6309\u94AE\u6216\u975E\u952E\u76D8\u533A\u57DF\u65F6\u89E6\u53D1</td>\n<td>-</td>\n</tr>\n<tr>\n<td>show</td>\n<td>\u952E\u76D8\u5B8C\u5168\u5F39\u51FA\u65F6\u89E6\u53D1</td>\n<td>-</td>\n</tr>\n<tr>\n<td>hide</td>\n<td>\u952E\u76D8\u5B8C\u5168\u6536\u8D77\u65F6\u89E6\u53D1</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div><div class="van-doc-card"><h3 id="slots" tabindex="-1">Slots</h3>\n<table>\n<thead>\n<tr>\n<th>\u540D\u79F0</th>\n<th>\u8BF4\u660E</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>delete</td>\n<td>\u81EA\u5B9A\u4E49\u5220\u9664\u6309\u952E\u5185\u5BB9</td>\n</tr>\n<tr>\n<td>extra-key</td>\n<td>\u81EA\u5B9A\u4E49\u5DE6\u4E0B\u89D2\u6309\u952E\u5185\u5BB9</td>\n</tr>\n<tr>\n<td>title-left</td>\n<td>\u81EA\u5B9A\u4E49\u6807\u9898\u680F\u5DE6\u4FA7\u5185\u5BB9</td>\n</tr>\n</tbody>\n</table>\n</div><div class="van-doc-card"><h3 id="lei-xing-ding-yi" tabindex="-1">\u7C7B\u578B\u5B9A\u4E49</h3>\n<p>\u7EC4\u4EF6\u5BFC\u51FA\u4EE5\u4E0B\u7C7B\u578B\u5B9A\u4E49\uFF1A</p>\n<pre><code class="language-ts"><span class="hljs-keyword">import</span> <span class="hljs-keyword">type</span> { <span class="hljs-title class_">NumberKeyboardProps</span>, <span class="hljs-title class_">NumberKeyboardTheme</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;vant&#x27;</span>;\n</code></pre>\n</div><h2 id="zhu-ti-ding-zhi" tabindex="-1">\u4E3B\u9898\u5B9A\u5236</h2>\n<div class="van-doc-card"><h3 id="yang-shi-bian-liang" tabindex="-1">\u6837\u5F0F\u53D8\u91CF</h3>\n<p>\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 <a href="#/zh-CN/config-provider" target="_blank">ConfigProvider \u7EC4\u4EF6</a>\u3002</p>\n<table>\n<thead>\n<tr>\n<th>\u540D\u79F0</th>\n<th>\u9ED8\u8BA4\u503C</th>\n<th>\u63CF\u8FF0</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>--van-number-keyboard-background</td>\n<td><em>var(--van-gray-2)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-key-height</td>\n<td><em>48px</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-key-font-size</td>\n<td><em>28px</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-key-active-color</td>\n<td><em>var(--van-gray-3)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-key-background</td>\n<td><em>var(--van-white)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-delete-font-size</td>\n<td><em>var(--van-font-size-lg)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-title-color</td>\n<td><em>var(--van-gray-7)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-title-height</td>\n<td><em>34px</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-title-font-size</td>\n<td><em>var(--van-font-size-lg)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-close-padding</td>\n<td><em>0 var(--van-padding-md)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-close-color</td>\n<td><em>var(--van-primary-color)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-close-font-size</td>\n<td><em>var(--van-font-size-md)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-button-text-color</td>\n<td><em>var(--van-white)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-button-background</td>\n<td><em>var(--van-primary-color)</em></td>\n<td>-</td>\n</tr>\n<tr>\n<td>--van-number-keyboard-z-index</td>\n<td><em>100</em></td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id="chang-jian-wen-ti" tabindex="-1">\u5E38\u89C1\u95EE\u9898</h2>\n<div class="van-doc-card"><h3 id="zai-zhuo-mian-duan-wu-fa-cao-zuo-zu-jian" tabindex="-1">\u5728\u684C\u9762\u7AEF\u65E0\u6CD5\u64CD\u4F5C\u7EC4\u4EF6\uFF1F</h3>\n<p>\u53C2\u89C1<a href="#/zh-CN/advanced-usage#zhuo-mian-duan-gua-pei" target="_blank">\u684C\u9762\u7AEF\u9002\u914D</a>\u3002</p>\n</div>'},null,8,l))}}}]);