New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vant/doc

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vant/doc - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

2

lib/index.js

@@ -1,1 +0,1 @@

module.exports=function(n){var t={};function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(o,i,function(t){return n[t]}.bind(null,i));return o},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=34)}([function(n,t,e){"use strict";n.exports=function(n){var t=[];return t.toString=function(){return this.map(function(t){var e=function(n,t){var e=n[1]||"",o=n[3];if(!o)return e;if(t&&"function"==typeof btoa){var i=(r=o,s=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),a=o.sources.map(function(n){return"/*# sourceURL=".concat(o.sourceRoot).concat(n," */")});return[e].concat(a).concat([i]).join("\n")}var r,s,c;return[e].join("\n")}(t,n);return t[2]?"@media ".concat(t[2],"{").concat(e,"}"):e}).join("")},t.i=function(n,e){"string"==typeof n&&(n=[[null,n,""]]);for(var o={},i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var r=0;r<n.length;r++){var s=n[r];null!=s[0]&&o[s[0]]||(e&&!s[2]?s[2]=e:e&&(s[2]="(".concat(s[2],") and (").concat(e,")")),t.push(s))}},t}},function(n,t,e){var o,i,a={},r=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),s=function(n){var t={};return function(n,e){if("function"==typeof n)return n();if(void 0===t[n]){var o=function(n,t){return t?t.querySelector(n):document.querySelector(n)}.call(this,n,e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(n){o=null}t[n]=o}return t[n]}}(),c=null,l=0,d=[],p=e(15);function h(n,t){for(var e=0;e<n.length;e++){var o=n[e],i=a[o.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](o.parts[r]);for(;r<o.parts.length;r++)i.parts.push(b(o.parts[r],t))}else{var s=[];for(r=0;r<o.parts.length;r++)s.push(b(o.parts[r],t));a[o.id]={id:o.id,refs:1,parts:s}}}}function u(n,t){for(var e=[],o={},i=0;i<n.length;i++){var a=n[i],r=t.base?a[0]+t.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};o[r]?o[r].parts.push(s):e.push(o[r]={id:r,parts:[s]})}return e}function f(n,t){var e=s(n.insertInto);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=d[d.length-1];if("top"===n.insertAt)o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),d.push(t);else if("bottom"===n.insertAt)e.appendChild(t);else{if("object"!=typeof n.insertAt||!n.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(n.insertAt.before,e);e.insertBefore(t,i)}}function v(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var t=d.indexOf(n);t>=0&&d.splice(t,1)}function g(n){var t=document.createElement("style");if(void 0===n.attrs.type&&(n.attrs.type="text/css"),void 0===n.attrs.nonce){var o=function(){0;return e.nc}();o&&(n.attrs.nonce=o)}return m(t,n.attrs),f(n,t),t}function m(n,t){Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])})}function b(n,t){var e,o,i,a;if(t.transform&&n.css){if(!(a="function"==typeof t.transform?t.transform(n.css):t.transform.default(n.css)))return function(){};n.css=a}if(t.singleton){var r=l++;e=c||(c=g(t)),o=w.bind(null,e,r,!1),i=w.bind(null,e,r,!0)}else n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=function(n){var t=document.createElement("link");return void 0===n.attrs.type&&(n.attrs.type="text/css"),n.attrs.rel="stylesheet",m(t,n.attrs),f(n,t),t}(t),o=function(n,t,e){var o=e.css,i=e.sourceMap,a=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||a)&&(o=p(o));i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([o],{type:"text/css"}),s=n.href;n.href=URL.createObjectURL(r),s&&URL.revokeObjectURL(s)}.bind(null,e,t),i=function(){v(e),e.href&&URL.revokeObjectURL(e.href)}):(e=g(t),o=function(n,t){var e=t.css,o=t.media;o&&n.setAttribute("media",o);if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}.bind(null,e),i=function(){v(e)});return o(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;o(n=t)}else i()}}n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=r()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var e=u(n,t);return h(e,t),function(n){for(var o=[],i=0;i<e.length;i++){var r=e[i];(s=a[r.id]).refs--,o.push(s)}n&&h(u(n,t),t);for(i=0;i<o.length;i++){var s;if(0===(s=o[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete a[s.id]}}}};var x,_=(x=[],function(n,t){return x[n]=t,x.filter(Boolean).join("\n")});function w(n,t,e,o){var i=e?"":o.css;if(n.styleSheet)n.styleSheet.cssText=_(t,i);else{var a=document.createTextNode(i),r=n.childNodes;r[t]&&n.removeChild(r[t]),r.length?n.insertBefore(a,r[t]):n.appendChild(a)}}},function(n,t,e){var o=e(14);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(17);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(19);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(21);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(23);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(25);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(27);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(29);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(31);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(33);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t){n.exports=require("vue")},function(n,t,e){"use strict";var o=e(2);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,"body {\n min-width: 1100px;\n margin: 0;\n overflow-x: auto;\n color: #333;\n font-size: 16px;\n font-family: PingFang SC, 'Helvetica Neue', Arial, sans-serif;\n background-color: #f0f3f6;\n -webkit-font-smoothing: antialiased;\n}\np {\n margin: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n font-size: inherit;\n}\nul,\nol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\na {\n text-decoration: none;\n}\n.van-doc-row {\n width: 100%;\n}\n@media (min-width: 1680px) {\n.van-doc-row {\n width: 1680px;\n margin: 0 auto;\n}\n}\ncode {\n position: relative;\n display: block;\n margin-top: 20px;\n overflow-x: auto;\n color: #455a64;\n font-weight: 400;\n font-size: 13px;\n font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;\n line-height: 24px;\n white-space: pre-wrap;\n word-break: break-all;\n}\npre {\n margin: 0;\n}\n.hljs {\n display: block;\n padding: 0.5em;\n overflow-x: auto;\n background: #fff;\n}\n.hljs-subst {\n color: #455a64;\n}\n.hljs-string,\n.hljs-meta,\n.hljs-symbol,\n.hljs-template-tag,\n.hljs-template-variable,\n.hljs-addition {\n color: #5758bb;\n}\n.hljs-comment,\n.hljs-quote {\n color: #999;\n}\n.hljs-number,\n.hljs-regexp,\n.hljs-literal,\n.hljs-bullet,\n.hljs-link {\n color: #07c160;\n}\n.hljs-deletion,\n.hljs-variable {\n color: #88f;\n}\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-title,\n.hljs-section,\n.hljs-built_in,\n.hljs-doctag,\n.hljs-type,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-strong {\n color: #1889f9;\n}\n.hljs-emphasis {\n font-style: italic;\n}\n.hljs-attribute {\n color: #e6550d;\n}\n",""])},function(n,t){n.exports=function(n){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!n||"string"!=typeof n)return n;var e=t.protocol+"//"+t.host,o=e+t.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,t){var i,a=t.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?n:(i=0===a.indexOf("//")?a:0===a.indexOf("/")?e+a:o+a.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(n,t,e){"use strict";var o=e(3);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-nav {\n position: fixed;\n top: 60px;\n bottom: 0;\n left: 0;\n z-index: 1;\n min-width: 220px;\n max-width: 220px;\n padding: 25px 0 75px;\n overflow-y: scroll;\n background-color: #fff;\n border-right: 1px solid #f1f4f8;\n box-shadow: 0 8px 12px #ebedf0;\n}\n@media (min-width: 1680px) {\n.van-doc-nav {\n left: 50%;\n margin-left: -840px;\n}\n}\n.van-doc-nav::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: transparent;\n}\n.van-doc-nav::-webkit-scrollbar-thumb {\n background-color: transparent;\n border-radius: 6px;\n}\n.van-doc-nav:hover::-webkit-scrollbar-thumb {\n background-color: rgba(69, 90, 100, 0.2);\n}\n.van-doc-nav__item a,\n.van-doc-nav__subitem a {\n display: block;\n margin: 0;\n padding: 10px 10px 10px 30px;\n color: #455a64;\n font-size: 16px;\n line-height: 24px;\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.van-doc-nav__item a.active,\n.van-doc-nav__subitem a.active {\n color: #1989fa;\n}\n.van-doc-nav__item > a {\n font-weight: bold;\n}\n.van-doc-nav__subitem a {\n font-size: 14px;\n}\n.van-doc-nav__subitem a:hover {\n color: #1989fa;\n}\n.van-doc-nav__subitem span {\n font-size: 13px;\n}\n.van-doc-nav__group-title {\n padding-left: 30px;\n color: rgba(69, 90, 100, 0.6);\n font-size: 12px;\n line-height: 40px;\n}\n@media (max-width: 1300px) {\n.van-doc-nav {\n min-width: 220px;\n max-width: 220px;\n}\n.van-doc-nav__item a,\n .van-doc-nav__subitem a {\n line-height: 22px;\n}\n.van-doc-nav__subitem a {\n font-size: 13px;\n}\n}\n",""])},function(n,t,e){"use strict";var o=e(4);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-block {\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n margin-bottom: 20px;\n}\n.van-doc-block .highlight {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n box-sizing: border-box;\n}\n.van-doc-block .highlight pre {\n word-break: break-all;\n}\n",""])},function(n,t,e){"use strict";var o=e(5);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-search {\n width: 200px;\n height: 60px;\n margin-left: 140px;\n color: #fff;\n font-size: 14px;\n background-color: transparent;\n border: none;\n}\n.van-doc-search:focus {\n outline: none;\n}\n.van-doc-search::-webkit-input-placeholder {\n color: #fff;\n opacity: 0.7;\n}\n.van-doc-search::placeholder {\n color: #fff;\n opacity: 0.7;\n}\n.ds-dropdown-menu {\n line-height: 1.8;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--highlight {\n color: #1989fa;\n background-color: transparent;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--title {\n font-weight: 500;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {\n box-shadow: inset 0 -1px 0 0 #1989fa;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--category-header {\n border-bottom-color: #eee;\n}\n.algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] {\n border: none;\n}\n.algolia-autocomplete .ds-dropdown-menu {\n top: 80% !important;\n box-shadow: 0 4px 12px #ebedf0;\n}\n.algolia-autocomplete .ds-dropdown-menu::before {\n display: none;\n}\n",""])},function(n,t,e){"use strict";var o=e(6);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-header {\n width: 100%;\n box-shadow: 0 4px 12px #ebedf0;\n -webkit-user-select: none;\n user-select: none;\n}\n.van-doc-header__top {\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n height: 60px;\n padding: 0 30px;\n line-height: 60px;\n background-color: #001938;\n}\n.van-doc-header__top-nav {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n font-size: 0;\n text-align: right;\n}\n.van-doc-header__top-nav > li {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.van-doc-header__top-nav-item {\n margin-left: 20px;\n}\n.van-doc-header__top-nav-title {\n display: block;\n font-size: 15px;\n}\n.van-doc-header__cube {\n position: relative;\n display: block;\n padding: 0 10px;\n color: #fff;\n font-size: 14px;\n font-family: 'Helvetica Neue', Arial, sans-serif;\n line-height: 24px;\n text-align: center;\n border: 1px solid rgba(255, 255, 255, 0.7);\n border-radius: 20px;\n cursor: pointer;\n -webkit-transition: 0.3s ease-in-out;\n transition: 0.3s ease-in-out;\n}\n.van-doc-header__version {\n padding-right: 20px;\n}\n.van-doc-header__version::after {\n position: absolute;\n top: 7px;\n right: 7px;\n width: 5px;\n height: 5px;\n color: rgba(255, 255, 255, 0.9);\n border: 1px solid;\n border-color: transparent transparent currentColor currentColor;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n content: '';\n}\n.van-doc-header__version-pop {\n position: absolute;\n top: 30px;\n right: 0;\n left: 0;\n z-index: 99;\n color: #333;\n line-height: 36px;\n text-align: left;\n background-color: #fff;\n border-radius: 3px;\n box-shadow: 0 4px 12px #ebedf0;\n -webkit-transform-origin: top;\n transform-origin: top;\n -webkit-transition: 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);\n transition: 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);\n}\n.van-doc-header__version-pop-item {\n padding-left: 7px;\n -webkit-transition: 0.2s;\n transition: 0.2s;\n}\n.van-doc-header__version-pop-item:hover {\n color: #1989fa;\n}\n.van-doc-header__logo {\n display: block;\n}\n.van-doc-header__logo img,\n.van-doc-header__logo span {\n display: inline-block;\n vertical-align: middle;\n}\n.van-doc-header__logo img {\n width: 26px;\n margin-right: 5px;\n}\n.van-doc-header__logo span {\n color: #fff;\n font-size: 22px;\n}\n.van-doc-header__logo-link img {\n display: block;\n width: 26px;\n height: 26px;\n -webkit-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);\n}\n.van-doc-header__logo-link img:hover {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n.van-doc-dropdown-enter,\n.van-doc-dropdown-leave-active {\n -webkit-transform: scaleY(0);\n transform: scaleY(0);\n opacity: 0;\n}\n",""])},function(n,t,e){"use strict";var o=e(7);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-content {\n position: relative;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n padding: 0 0 75px;\n}\n.van-doc-content .card {\n margin-bottom: 24px;\n padding: 24px;\n background-color: #fff;\n border-radius: 6px;\n box-shadow: 0 8px 12px #ebedf0;\n}\n.van-doc-content a {\n color: #1989fa;\n}\n.van-doc-content h1,\n.van-doc-content h2,\n.van-doc-content h3,\n.van-doc-content h4,\n.van-doc-content h5,\n.van-doc-content h6 {\n color: #333;\n font-weight: normal;\n line-height: 1.5;\n}\n.van-doc-content h1[id],\n.van-doc-content h2[id],\n.van-doc-content h3[id],\n.van-doc-content h4[id],\n.van-doc-content h5[id],\n.van-doc-content h6[id] {\n cursor: pointer;\n}\n.van-doc-content h1 {\n margin: 0 0 30px;\n font-size: 30px;\n cursor: default;\n}\n.van-doc-content h2 {\n margin: 45px 0 20px;\n font-size: 22px;\n}\n.van-doc-content h3 {\n margin-bottom: 12px;\n font-weight: 500;\n font-size: 17px;\n}\n.van-doc-content h4 {\n margin: 24px 0 12px;\n font-weight: 500;\n font-size: 15px;\n}\n.van-doc-content h5 {\n margin: 24px 0 12px;\n font-weight: 500;\n font-size: 14px;\n}\n.van-doc-content p {\n color: #34495e;\n font-size: 14px;\n line-height: 26px;\n}\n.van-doc-content table {\n width: 100%;\n margin-top: 12px;\n color: #34495e;\n font-size: 13px;\n line-height: 1.5;\n border-radius: 6px;\n border-collapse: collapse;\n}\n.van-doc-content table th {\n padding: 8px 10px;\n font-weight: 500;\n text-align: left;\n}\n.van-doc-content table th:first-child {\n padding-left: 0;\n}\n.van-doc-content table th:last-child {\n padding-right: 0;\n}\n.van-doc-content table td {\n padding: 8px;\n border-top: 1px solid #f1f4f8;\n}\n.van-doc-content table td:first-child {\n padding-left: 0;\n}\n.van-doc-content table td:last-child {\n padding-right: 0;\n}\n.van-doc-content table code {\n padding: 0 8px;\n font-size: 13px;\n font-family: inherit;\n word-break: keep-all;\n}\n.van-doc-content ul li,\n.van-doc-content ol li {\n position: relative;\n margin: 5px 0 5px 10px;\n padding-left: 15px;\n color: #34495e;\n font-size: 14px;\n line-height: 22px;\n}\n.van-doc-content ul li::before,\n.van-doc-content ol li::before {\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n width: 6px;\n height: 6px;\n margin-top: 8px;\n border: 1px solid #666;\n border-radius: 50%;\n content: '';\n}\n.van-doc-content hr {\n margin: 30px 0;\n border: 0 none;\n border-top: 1px solid #eee;\n}\n.van-doc-content p > code,\n.van-doc-content li > code,\n.van-doc-content table code {\n display: inline;\n margin: 2px 3px;\n padding: 2px 5px;\n background-color: #f0f2f5;\n box-shadow: none;\n}\n.van-doc-content section {\n padding: 30px;\n overflow: hidden;\n}\n.van-doc-content blockquote {\n margin: 20px 0 0;\n padding: 16px;\n color: rgba(52, 73, 94, 0.8);\n font-size: 14px;\n background-color: #ecf9ff;\n border-left: 5px solid #50bfff;\n border-radius: 4px;\n}\n.van-doc-content img {\n width: 100%;\n margin: 15px 0;\n box-shadow: 0 2px 4px #ebedf0;\n}\n.van-doc-content--changelog strong {\n display: block;\n margin: 12px 0;\n font-weight: 500;\n font-size: 15px;\n}\n.van-doc-content--changelog h3 {\n font-size: 20px;\n}\n.van-doc-content--changelog h3 + p code {\n margin: 0;\n}\n.van-doc-content--changelog h3 a {\n color: inherit;\n}\n",""])},function(n,t,e){"use strict";var o=e(8);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-container {\n box-sizing: border-box;\n padding-left: 220px;\n overflow: hidden;\n}\n.van-doc-container--with-simulator {\n padding-right: 390px;\n}\n@media (max-width: 1300px) {\n.van-doc-container--with-simulator {\n padding-right: 350px;\n}\n}\n",""])},function(n,t,e){"use strict";var o=e(9);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-simulator {\n position: absolute;\n top: 90px;\n right: 30px;\n z-index: 1;\n box-sizing: border-box;\n width: 360px;\n min-width: 360px;\n overflow: hidden;\n background: #fafafa;\n border-radius: 6px;\n box-shadow: #ebedf0 0 4px 12px;\n}\n@media (max-width: 1300px) {\n.van-doc-simulator {\n width: 320px;\n min-width: 320px;\n}\n}\n@media (max-width: 1100px) {\n.van-doc-simulator {\n right: auto;\n left: 750px;\n}\n}\n@media (min-width: 1680px) {\n.van-doc-simulator {\n right: 50%;\n margin-right: calc(-1680px / 2 + 40px);\n}\n}\n.van-doc-simulator-fixed {\n position: fixed;\n top: 30px;\n}\n.van-doc-simulator iframe {\n display: block;\n width: 100%;\n}\n",""])},function(n,t,e){"use strict";var o=e(10);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-demo-block__title {\n margin: 0;\n padding: 35px 15px 15px;\n color: rgba(69, 90, 100, 0.6);\n font-weight: normal;\n font-size: 14px;\n}\n.van-doc-demo-block:first-of-type .van-doc-demo-block__title {\n padding-top: 20px;\n}\n",""])},function(n,t,e){"use strict";var o=e(11);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-demo-section {\n box-sizing: border-box;\n min-height: 100vh;\n padding-bottom: 20px;\n}\n.van-doc-demo-section__title {\n margin: 0;\n padding: 15px;\n font-weight: normal;\n font-size: 16px;\n line-height: 1.5;\n text-transform: capitalize;\n}\n.van-doc-demo-section__title + .van-doc-demo-block .van-doc-demo-block__title {\n padding-top: 0;\n}\n",""])},function(n,t,e){"use strict";e.r(t);var o=e(12),i=e.n(o),a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"van-doc"},[e("van-doc-header",{attrs:{lang:n.lang,github:n.github,versions:n.versions,config:n.config.header,"search-config":n.searchConfig},on:{"switch-version":function(t){return n.$emit("switch-version",t)}}}),e("van-doc-nav",{attrs:{base:n.base,"nav-config":n.config.nav}}),e("van-doc-container",{attrs:{"has-simulator":!(!n.simulator&&!n.simulators.length)}},[e("van-doc-content",[n._t("default")],2)],1),n.simulator?e("van-doc-simulator",{attrs:{src:n.simulator}}):n._e(),n._l(n.simulators,function(t,o){return e("van-doc-simulator",{directives:[{name:"show",rawName:"v-show",value:o===n.currentSimulator,expression:"index === currentSimulator"}],key:t,attrs:{src:t}})})],2)};a._withStripped=!0;var r={name:"van-doc",props:{lang:String,github:String,versions:Array,searchConfig:Object,currentSimulator:Number,simulator:String,config:{type:Object,required:!0},simulators:{type:Array,default:()=>[]},base:{type:String,default:""}},data:()=>({nav:[],currentPath:null,leftNav:null,rightNav:null}),watch:{"$route.path"(){this.setNav(),this.updateNav()}},created(){this.setNav(),this.updateNav(),this.keyboardHandler()},methods:{setNav(){const{nav:n}=this.config;for(let t=0;t<n.length;t++){const e=n[t];if(e.groups)for(let n=0;n<e.groups.length;n++)this.nav=this.nav.concat(e.groups[n].list);else this.nav.push(n[t])}},updateNav(){let n;this.currentPath="/"+this.$route.path.split("/").pop();for(let t=0,e=this.nav.length;t<e;t++)if(this.nav[t].path===this.currentPath){n=t;break}this.leftNav=this.nav[n-1],this.rightNav=this.nav[n+1]},handleNavClick(n){const t="prev"===n?this.leftNav:this.rightNav;t.path?this.$router.push(this.base+t.path):t.link&&(window.location.href=t.link)},keyboardHandler(){window.addEventListener("keyup",n=>{switch(n.keyCode){case 37:this.handleNavClick("prev");break;case 39:this.handleNavClick("next")}})}}};e(13);function s(n,t,e,o,i,a,r,s){var c,l="function"==typeof n?n.options:n;if(t&&(l.render=t,l.staticRenderFns=e,l._compiled=!0),o&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),r?(c=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),i&&i.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(r)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(n,t){return c.call(t),d(n,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:n,options:l}}var c=s(r,a,[],!1,null,null,null);c.options.__file="src/VanDoc.vue";var l=c.exports,d=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"van-doc-nav",style:n.style},n._l(n.navConfig,function(t,o){return e("div",{key:o,staticClass:"van-doc-nav__item"},[e("van-doc-nav-link",{attrs:{item:t,base:n.base}}),t.children?e("div",n._l(t.children,function(t,o){return e("div",{key:o,staticClass:"nav-item van-doc-nav__group-title van-doc-nav__group-title"},[e("van-doc-nav-link",{attrs:{item:t,base:n.base}})],1)}),0):n._e(),t.groups?n._l(t.groups,function(t,o){return e("div",{key:o},[e("div",{staticClass:"van-doc-nav__group-title"},[n._v(n._s(t.groupName))]),n.navItem.disabled?n._e():e("div",n._l(t.list,function(t,o){return e("div",{key:o,staticClass:"van-doc-nav__subitem"},[e("van-doc-nav-link",{attrs:{item:t,base:n.base}})],1)}),0)])}):n._e()],2)}),0)};d._withStripped=!0;var p=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.item.path?e("router-link",{attrs:{"active-class":"active",to:n.base+n.item.path},domProps:{innerHTML:n._s(n.itemName)}}):n.item.link?e("a",{attrs:{href:n.item.link},domProps:{innerHTML:n._s(n.itemName)}}):e("a",{domProps:{innerHTML:n._s(n.itemName)}})};p._withStripped=!0;var h=s({name:"van-doc-nav-link",props:{base:String,item:Object},computed:{itemName(){const n=(this.item.title||this.item.name).split(" ");return`${n[0]} <span>${n.slice(1).join(" ")}</span>`}}},p,[],!1,null,null,null);h.options.__file="src/component/NavLink.vue";var u=h.exports,f={name:"van-doc-nav",components:{[u.name]:u},props:{navConfig:Array,base:{type:String,default:""}},data:()=>({top:60,bottom:0}),computed:{style(){return{top:this.top+"px",bottom:this.bottom+"px"}}},created(){window.addEventListener("scroll",this.onScroll),this.onScroll()},methods:{onScroll(){const{pageYOffset:n}=window;this.top=Math.max(0,60-n)}}},v=(e(16),s(f,d,[],!1,null,null,null));v.options.__file="src/component/Nav.vue";var g=v.exports,m=function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"van-doc-block"},[this._t("default")],2)};m._withStripped=!0;var b={name:"van-doc-block"},x=(e(18),s(b,m,[],!1,null,null,null));x.options.__file="src/component/Block.vue";var _=x.exports,w=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"van-doc-header"},[e("div",{staticClass:"van-doc-row"},[e("div",{staticClass:"van-doc-header__top"},[e("a",{staticClass:"van-doc-header__logo",attrs:{href:n.config.logo.href}},[e("img",{attrs:{src:n.config.logo.image}}),e("span",[n._v(n._s(n.config.logo.title))])]),n.searchConfig?e("search-input",{attrs:{lang:n.lang,"search-config":n.searchConfig}}):n._e(),e("ul",{staticClass:"van-doc-header__top-nav"},[n._l(n.config.nav.logoLink,function(n){return e("li",{staticClass:"van-doc-header__top-nav-item"},[e("a",{staticClass:"van-doc-header__logo-link",attrs:{target:"_blank",href:n.url}},[e("img",{attrs:{src:n.image}})])])}),n.versions?e("li",{ref:"version",staticClass:"van-doc-header__top-nav-item"},[e("span",{staticClass:"van-doc-header__cube van-doc-header__version",on:{click:n.toggleVersionPop}},[n._v("\n "+n._s(n.versions[0])+"\n "),e("transition",{attrs:{name:"van-doc-dropdown"}},[n.showVersionPop?e("div",{staticClass:"van-doc-header__version-pop"},n._l(n.versions,function(t){return e("div",{staticClass:"van-doc-header__version-pop-item",on:{click:function(e){return n.onSwitchVersion(t)}}},[n._v(n._s(t))])}),0):n._e()])],1)]):n._e(),n.config.nav.lang?e("li",{staticClass:"van-doc-header__top-nav-item"},[e("a",{staticClass:"van-doc-header__cube",attrs:{href:n.langLink}},[n._v(n._s(n.config.nav.lang.text))])]):n._e()],2)],1)])])};w._withStripped=!0;var y=function(){var n=this.$createElement;return(this._self._c||n)("input",{staticClass:"van-doc-search",attrs:{placeholder:this.searchPlaceholder}})};y._withStripped=!0;var k={name:"van-doc-search",props:{lang:String,searchConfig:Object},computed:{searchPlaceholder(){return"zh-CN"===this.lang?"搜索文档...":"Search..."}},watch:{lang(n){this.docsearchInstance&&(this.docsearchInstance.algoliaOptions.facetFilters=[`lang:${n}`])}},mounted(){this.searchConfig&&(this.docsearchInstance=window.docsearch({...this.searchConfig,inputSelector:".van-doc-search",algoliaOptions:{facetFilters:[`lang:${this.lang}`]}}))}},S=(e(20),s(k,y,[],!1,null,null,null));S.options.__file="src/component/SearchInput.vue";var C={name:"van-doc-header",components:{SearchInput:S.exports},props:{lang:String,config:Object,github:String,versions:Array,searchConfig:Object},data:()=>({showVersionPop:!1}),computed:{langLink(){const{lang:n}=this.config.nav;return`#${this.$route.path.replace(n.from,n.to)}`}},methods:{toggleVersionPop(){const n=!this.showVersionPop,t=n?"add":"remove";document.body[`${t}EventListener`]("click",this.checkHideVersionPop),this.showVersionPop=n},checkHideVersionPop(n){this.$refs.version.contains(n.target)||(this.showVersionPop=!1)},onSwitchLang(n){this.$router.push(this.$route.path.replace(n.from,n.to))},onSwitchVersion(n){this.$emit("switch-version",n)}}},j=(e(22),s(C,w,[],!1,null,null,null));j.options.__file="src/component/Header.vue";var z=j.exports,N=function(){var n=this.$createElement;return(this._self._c||n)("div",{class:["van-doc-content","van-doc-content--"+this.currentPage]},[this._t("default")],2)};N._withStripped=!0;var $={name:"van-doc-content",computed:{currentPage(){const{path:n}=this.$route;return n?n.split("/").slice(-1)[0]:this.$route.name}}},E=(e(24),s($,N,[],!1,null,null,null));E.options.__file="src/component/Content.vue";var O=E.exports,L=function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"van-doc-container van-doc-row",class:{"van-doc-container--with-simulator":this.hasSimulator}},[this._t("default")],2)};L._withStripped=!0;var P={name:"van-doc-container",props:{hasSimulator:Boolean}},I=(e(26),s(P,L,[],!1,null,null,null));I.options.__file="src/component/Container.vue";var U=I.exports,R=function(){var n=this.$createElement,t=this._self._c||n;return t("div",{class:["van-doc-simulator",{"van-doc-simulator-fixed":this.isFixed}]},[t("iframe",{ref:"iframe",style:this.simulatorStyle,attrs:{src:this.src,frameborder:"0"}})])};R._withStripped=!0;var T={name:"van-doc-simulator",props:{src:String},data:()=>({scrollTop:window.scrollY,windowHeight:window.innerHeight}),computed:{isFixed(){return this.scrollTop>60},simulatorStyle(){return{height:Math.min(640,this.windowHeight-90)+"px"}}},mounted(){window.addEventListener("scroll",()=>{this.scrollTop=window.scrollY}),window.addEventListener("resize",()=>{this.windowHeight=window.innerHeight})}},M=(e(28),s(T,R,[],!1,null,null,null));M.options.__file="src/component/Simulator.vue";var A=M.exports,H=function(){var n=this.$createElement,t=this._self._c||n;return t("section",{staticClass:"van-doc-demo-block"},[t("h2",{staticClass:"van-doc-demo-block__title"},[this._v(this._s(this.title))]),this._t("default")],2)};H._withStripped=!0;var V={name:"van-doc-demo-block",props:{title:String}},B=(e(30),s(V,H,[],!1,null,null,null));B.options.__file="src/component/DemoBlock.vue";var D=B.exports,F=function(){var n=this.$createElement;return(this._self._c||n)("section",{staticClass:"van-doc-demo-section",class:"demo-"+this.demoName,style:this.style},[this._t("default")],2)};F._withStripped=!0;var q={name:"van-doc-demo-section",props:{name:String,title:String,background:String},computed:{demoName(){return this.name||this.getParentName()},style(){return{background:this.background}}},methods:{getParentName(){const{$parent:n}=this;if(n&&n.$options.name)return n.$options.name.replace("demo-","")}}},Y=(e(32),s(q,F,[],!1,null,null,null));Y.options.__file="src/component/DemoSection.vue";var J=Y.exports;e.d(t,"default",function(){return X}),e.d(t,"Nav",function(){return g}),e.d(t,"Header",function(){return z}),e.d(t,"VanDoc",function(){return l}),e.d(t,"Block",function(){return _}),e.d(t,"Content",function(){return O}),e.d(t,"Container",function(){return U}),e.d(t,"Simulator",function(){return A}),e.d(t,"DemoBlock",function(){return D}),e.d(t,"DemoSection",function(){return J});const G=[g,z,l,_,O,U,A,D,J];function X(){G.forEach(n=>{i.a.component(n.name,n)})}}]);
module.exports=function(n){var t={};function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(o,i,function(t){return n[t]}.bind(null,i));return o},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=34)}([function(n,t,e){"use strict";n.exports=function(n){var t=[];return t.toString=function(){return this.map(function(t){var e=function(n,t){var e=n[1]||"",o=n[3];if(!o)return e;if(t&&"function"==typeof btoa){var i=(a=o,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=o.sources.map(function(n){return"/*# sourceURL=".concat(o.sourceRoot).concat(n," */")});return[e].concat(r).concat([i]).join("\n")}var a,s,c;return[e].join("\n")}(t,n);return t[2]?"@media ".concat(t[2],"{").concat(e,"}"):e}).join("")},t.i=function(n,e){"string"==typeof n&&(n=[[null,n,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];null!=r&&(o[r]=!0)}for(var a=0;a<n.length;a++){var s=n[a];null!=s[0]&&o[s[0]]||(e&&!s[2]?s[2]=e:e&&(s[2]="(".concat(s[2],") and (").concat(e,")")),t.push(s))}},t}},function(n,t,e){var o,i,r={},a=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),s=function(n){var t={};return function(n,e){if("function"==typeof n)return n();if(void 0===t[n]){var o=function(n,t){return t?t.querySelector(n):document.querySelector(n)}.call(this,n,e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(n){o=null}t[n]=o}return t[n]}}(),c=null,l=0,d=[],p=e(15);function h(n,t){for(var e=0;e<n.length;e++){var o=n[e],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(b(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(b(o.parts[a],t));r[o.id]={id:o.id,refs:1,parts:s}}}}function u(n,t){for(var e=[],o={},i=0;i<n.length;i++){var r=n[i],a=t.base?r[0]+t.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};o[a]?o[a].parts.push(s):e.push(o[a]={id:a,parts:[s]})}return e}function f(n,t){var e=s(n.insertInto);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=d[d.length-1];if("top"===n.insertAt)o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),d.push(t);else if("bottom"===n.insertAt)e.appendChild(t);else{if("object"!=typeof n.insertAt||!n.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(n.insertAt.before,e);e.insertBefore(t,i)}}function v(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n);var t=d.indexOf(n);t>=0&&d.splice(t,1)}function g(n){var t=document.createElement("style");if(void 0===n.attrs.type&&(n.attrs.type="text/css"),void 0===n.attrs.nonce){var o=function(){0;return e.nc}();o&&(n.attrs.nonce=o)}return m(t,n.attrs),f(n,t),t}function m(n,t){Object.keys(t).forEach(function(e){n.setAttribute(e,t[e])})}function b(n,t){var e,o,i,r;if(t.transform&&n.css){if(!(r="function"==typeof t.transform?t.transform(n.css):t.transform.default(n.css)))return function(){};n.css=r}if(t.singleton){var a=l++;e=c||(c=g(t)),o=w.bind(null,e,a,!1),i=w.bind(null,e,a,!0)}else n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=function(n){var t=document.createElement("link");return void 0===n.attrs.type&&(n.attrs.type="text/css"),n.attrs.rel="stylesheet",m(t,n.attrs),f(n,t),t}(t),o=function(n,t,e){var o=e.css,i=e.sourceMap,r=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||r)&&(o=p(o));i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([o],{type:"text/css"}),s=n.href;n.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,e,t),i=function(){v(e),e.href&&URL.revokeObjectURL(e.href)}):(e=g(t),o=function(n,t){var e=t.css,o=t.media;o&&n.setAttribute("media",o);if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}.bind(null,e),i=function(){v(e)});return o(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;o(n=t)}else i()}}n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var e=u(n,t);return h(e,t),function(n){for(var o=[],i=0;i<e.length;i++){var a=e[i];(s=r[a.id]).refs--,o.push(s)}n&&h(u(n,t),t);for(i=0;i<o.length;i++){var s;if(0===(s=o[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete r[s.id]}}}};var x,_=(x=[],function(n,t){return x[n]=t,x.filter(Boolean).join("\n")});function w(n,t,e,o){var i=e?"":o.css;if(n.styleSheet)n.styleSheet.cssText=_(t,i);else{var r=document.createTextNode(i),a=n.childNodes;a[t]&&n.removeChild(a[t]),a.length?n.insertBefore(r,a[t]):n.appendChild(r)}}},function(n,t,e){var o=e(14);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(17);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(19);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(21);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(23);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(25);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(27);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(29);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(31);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t,e){var o=e(33);"string"==typeof o&&(o=[[n.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};e(1)(o,i);o.locals&&(n.exports=o.locals)},function(n,t){n.exports=require("vue")},function(n,t,e){"use strict";var o=e(2);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,"body {\n min-width: 1100px;\n margin: 0;\n overflow-x: auto;\n color: #333;\n font-size: 16px;\n font-family: PingFang SC, 'Helvetica Neue', Arial, sans-serif;\n background-color: #f0f3f6;\n -webkit-font-smoothing: antialiased;\n}\np {\n margin: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n font-size: inherit;\n}\nul,\nol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\na {\n text-decoration: none;\n}\n.van-doc-row {\n width: 100%;\n}\n@media (min-width: 1680px) {\n.van-doc-row {\n width: 1680px;\n margin: 0 auto;\n}\n}\ncode {\n position: relative;\n display: block;\n margin-top: 20px;\n overflow-x: auto;\n color: #455a64;\n font-weight: 400;\n font-size: 13px;\n font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;\n line-height: 24px;\n white-space: pre-wrap;\n word-break: break-all;\n}\npre {\n margin: 0;\n}\n.hljs {\n display: block;\n padding: 0.5em;\n overflow-x: auto;\n background: #fff;\n}\n.hljs-subst {\n color: #455a64;\n}\n.hljs-string,\n.hljs-meta,\n.hljs-symbol,\n.hljs-template-tag,\n.hljs-template-variable,\n.hljs-addition {\n color: #5758bb;\n}\n.hljs-comment,\n.hljs-quote {\n color: #999;\n}\n.hljs-number,\n.hljs-regexp,\n.hljs-literal,\n.hljs-bullet,\n.hljs-link {\n color: #07c160;\n}\n.hljs-deletion,\n.hljs-variable {\n color: #88f;\n}\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-title,\n.hljs-section,\n.hljs-built_in,\n.hljs-doctag,\n.hljs-type,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-strong {\n color: #1889f9;\n}\n.hljs-emphasis {\n font-style: italic;\n}\n.hljs-attribute {\n color: #e6550d;\n}\n",""])},function(n,t){n.exports=function(n){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!n||"string"!=typeof n)return n;var e=t.protocol+"//"+t.host,o=e+t.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,t){var i,r=t.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?n:(i=0===r.indexOf("//")?r:0===r.indexOf("/")?e+r:o+r.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(n,t,e){"use strict";var o=e(3);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-nav {\n position: fixed;\n top: 60px;\n bottom: 0;\n left: 0;\n z-index: 1;\n min-width: 220px;\n max-width: 220px;\n padding: 25px 0 75px;\n overflow-y: scroll;\n background-color: #fff;\n border-right: 1px solid #f1f4f8;\n box-shadow: 0 8px 12px #ebedf0;\n}\n@media (min-width: 1680px) {\n.van-doc-nav {\n left: 50%;\n margin-left: -840px;\n}\n}\n.van-doc-nav::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: transparent;\n}\n.van-doc-nav::-webkit-scrollbar-thumb {\n background-color: transparent;\n border-radius: 6px;\n}\n.van-doc-nav:hover::-webkit-scrollbar-thumb {\n background-color: rgba(69, 90, 100, 0.2);\n}\n.van-doc-nav__item a,\n.van-doc-nav__subitem a {\n display: block;\n margin: 0;\n padding: 10px 10px 10px 30px;\n color: #455a64;\n font-size: 16px;\n line-height: 24px;\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.van-doc-nav__item a.active,\n.van-doc-nav__subitem a.active {\n color: #1989fa;\n}\n.van-doc-nav__item > a {\n font-weight: bold;\n}\n.van-doc-nav__subitem a {\n font-size: 14px;\n}\n.van-doc-nav__subitem a:hover {\n color: #1989fa;\n}\n.van-doc-nav__subitem span {\n font-size: 13px;\n}\n.van-doc-nav__group-title {\n padding-left: 30px;\n color: rgba(69, 90, 100, 0.6);\n font-size: 12px;\n line-height: 40px;\n}\n@media (max-width: 1300px) {\n.van-doc-nav {\n min-width: 220px;\n max-width: 220px;\n}\n.van-doc-nav__item a,\n .van-doc-nav__subitem a {\n line-height: 22px;\n}\n.van-doc-nav__subitem a {\n font-size: 13px;\n}\n}\n",""])},function(n,t,e){"use strict";var o=e(4);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-block {\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n margin-bottom: 20px;\n}\n.van-doc-block .highlight {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n box-sizing: border-box;\n}\n.van-doc-block .highlight pre {\n word-break: break-all;\n}\n",""])},function(n,t,e){"use strict";var o=e(5);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-search {\n width: 200px;\n height: 60px;\n margin-left: 140px;\n color: #fff;\n font-size: 14px;\n background-color: transparent;\n border: none;\n}\n.van-doc-search:focus {\n outline: none;\n}\n.van-doc-search::-webkit-input-placeholder {\n color: #fff;\n opacity: 0.7;\n}\n.van-doc-search::placeholder {\n color: #fff;\n opacity: 0.7;\n}\n.ds-dropdown-menu {\n line-height: 1.8;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--highlight {\n color: #1989fa;\n background-color: transparent;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--title {\n font-weight: 500;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {\n box-shadow: inset 0 -1px 0 0 #1989fa;\n}\n.algolia-autocomplete .algolia-docsearch-suggestion--category-header {\n border-bottom-color: #eee;\n}\n.algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] {\n border: none;\n}\n.algolia-autocomplete .ds-dropdown-menu {\n top: 80% !important;\n box-shadow: 0 4px 12px #ebedf0;\n}\n.algolia-autocomplete .ds-dropdown-menu::before {\n display: none;\n}\n",""])},function(n,t,e){"use strict";var o=e(6);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-header {\n width: 100%;\n box-shadow: 0 4px 12px #ebedf0;\n -webkit-user-select: none;\n user-select: none;\n}\n.van-doc-header__top {\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n height: 60px;\n padding: 0 30px;\n line-height: 60px;\n background-color: #001938;\n}\n.van-doc-header__top-nav {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n font-size: 0;\n text-align: right;\n}\n.van-doc-header__top-nav > li {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n}\n.van-doc-header__top-nav-item {\n margin-left: 20px;\n}\n.van-doc-header__top-nav-title {\n display: block;\n font-size: 15px;\n}\n.van-doc-header__cube {\n position: relative;\n display: block;\n padding: 0 10px;\n color: #fff;\n font-size: 14px;\n font-family: 'Helvetica Neue', Arial, sans-serif;\n line-height: 24px;\n text-align: center;\n border: 1px solid rgba(255, 255, 255, 0.7);\n border-radius: 20px;\n cursor: pointer;\n -webkit-transition: 0.3s ease-in-out;\n transition: 0.3s ease-in-out;\n}\n.van-doc-header__version {\n padding-right: 20px;\n}\n.van-doc-header__version::after {\n position: absolute;\n top: 7px;\n right: 7px;\n width: 5px;\n height: 5px;\n color: rgba(255, 255, 255, 0.9);\n border: 1px solid;\n border-color: transparent transparent currentColor currentColor;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n content: '';\n}\n.van-doc-header__version-pop {\n position: absolute;\n top: 30px;\n right: 0;\n left: 0;\n z-index: 99;\n color: #333;\n line-height: 36px;\n text-align: left;\n background-color: #fff;\n border-radius: 3px;\n box-shadow: 0 4px 12px #ebedf0;\n -webkit-transform-origin: top;\n transform-origin: top;\n -webkit-transition: 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);\n transition: 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);\n}\n.van-doc-header__version-pop-item {\n padding-left: 7px;\n -webkit-transition: 0.2s;\n transition: 0.2s;\n}\n.van-doc-header__version-pop-item:hover {\n color: #1989fa;\n}\n.van-doc-header__logo {\n display: block;\n}\n.van-doc-header__logo img,\n.van-doc-header__logo span {\n display: inline-block;\n vertical-align: middle;\n}\n.van-doc-header__logo img {\n width: 26px;\n margin-right: 10px;\n}\n.van-doc-header__logo span {\n color: #fff;\n font-size: 22px;\n}\n.van-doc-header__logo-link img {\n display: block;\n width: 26px;\n height: 26px;\n -webkit-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);\n transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);\n}\n.van-doc-header__logo-link img:hover {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n.van-doc-dropdown-enter,\n.van-doc-dropdown-leave-active {\n -webkit-transform: scaleY(0);\n transform: scaleY(0);\n opacity: 0;\n}\n",""])},function(n,t,e){"use strict";var o=e(7);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-content {\n position: relative;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n padding: 0 0 75px;\n}\n.van-doc-content .card {\n margin-bottom: 24px;\n padding: 24px;\n background-color: #fff;\n border-radius: 6px;\n box-shadow: 0 8px 12px #ebedf0;\n}\n.van-doc-content a {\n color: #1989fa;\n}\n.van-doc-content h1,\n.van-doc-content h2,\n.van-doc-content h3,\n.van-doc-content h4,\n.van-doc-content h5,\n.van-doc-content h6 {\n color: #333;\n font-weight: normal;\n line-height: 1.5;\n}\n.van-doc-content h1[id],\n.van-doc-content h2[id],\n.van-doc-content h3[id],\n.van-doc-content h4[id],\n.van-doc-content h5[id],\n.van-doc-content h6[id] {\n cursor: pointer;\n}\n.van-doc-content h1 {\n margin: 0 0 30px;\n font-size: 30px;\n cursor: default;\n}\n.van-doc-content h2 {\n margin: 45px 0 20px;\n font-size: 22px;\n}\n.van-doc-content h3 {\n margin-bottom: 12px;\n font-weight: 500;\n font-size: 17px;\n}\n.van-doc-content h4 {\n margin: 24px 0 12px;\n font-weight: 500;\n font-size: 15px;\n}\n.van-doc-content h5 {\n margin: 24px 0 12px;\n font-weight: 500;\n font-size: 14px;\n}\n.van-doc-content p {\n color: #34495e;\n font-size: 14px;\n line-height: 26px;\n}\n.van-doc-content table {\n width: 100%;\n margin-top: 12px;\n color: #34495e;\n font-size: 13px;\n line-height: 1.5;\n border-radius: 6px;\n border-collapse: collapse;\n}\n.van-doc-content table th {\n padding: 8px 10px;\n font-weight: 500;\n text-align: left;\n}\n.van-doc-content table th:first-child {\n padding-left: 0;\n}\n.van-doc-content table th:last-child {\n padding-right: 0;\n}\n.van-doc-content table td {\n padding: 8px;\n border-top: 1px solid #f1f4f8;\n}\n.van-doc-content table td:first-child {\n padding-left: 0;\n}\n.van-doc-content table td:last-child {\n padding-right: 0;\n}\n.van-doc-content table code {\n padding: 0 8px;\n font-size: 13px;\n font-family: inherit;\n word-break: keep-all;\n}\n.van-doc-content ul li,\n.van-doc-content ol li {\n position: relative;\n margin: 5px 0 5px 10px;\n padding-left: 15px;\n color: #34495e;\n font-size: 14px;\n line-height: 22px;\n}\n.van-doc-content ul li::before,\n.van-doc-content ol li::before {\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n width: 6px;\n height: 6px;\n margin-top: 8px;\n border: 1px solid #666;\n border-radius: 50%;\n content: '';\n}\n.van-doc-content hr {\n margin: 30px 0;\n border: 0 none;\n border-top: 1px solid #eee;\n}\n.van-doc-content p > code,\n.van-doc-content li > code,\n.van-doc-content table code {\n display: inline;\n margin: 2px 3px;\n padding: 2px 5px;\n background-color: #f0f2f5;\n box-shadow: none;\n}\n.van-doc-content section {\n padding: 30px;\n overflow: hidden;\n}\n.van-doc-content blockquote {\n margin: 20px 0 0;\n padding: 16px;\n color: rgba(52, 73, 94, 0.8);\n font-size: 14px;\n background-color: #ecf9ff;\n border-left: 5px solid #50bfff;\n border-radius: 4px;\n}\n.van-doc-content img {\n width: 100%;\n margin: 15px 0;\n box-shadow: 0 2px 4px #ebedf0;\n}\n.van-doc-content--changelog strong {\n display: block;\n margin: 12px 0;\n font-weight: 500;\n font-size: 15px;\n}\n.van-doc-content--changelog h3 {\n font-size: 20px;\n}\n.van-doc-content--changelog h3 + p code {\n margin: 0;\n}\n.van-doc-content--changelog h3 a {\n color: inherit;\n}\n",""])},function(n,t,e){"use strict";var o=e(8);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-container {\n box-sizing: border-box;\n padding-left: 220px;\n overflow: hidden;\n}\n.van-doc-container--with-simulator {\n padding-right: 390px;\n}\n@media (max-width: 1300px) {\n.van-doc-container--with-simulator {\n padding-right: 350px;\n}\n}\n",""])},function(n,t,e){"use strict";var o=e(9);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-simulator {\n position: absolute;\n top: 90px;\n right: 30px;\n z-index: 1;\n box-sizing: border-box;\n width: 360px;\n min-width: 360px;\n overflow: hidden;\n background: #fafafa;\n border-radius: 6px;\n box-shadow: #ebedf0 0 4px 12px;\n}\n@media (max-width: 1300px) {\n.van-doc-simulator {\n width: 320px;\n min-width: 320px;\n}\n}\n@media (max-width: 1100px) {\n.van-doc-simulator {\n right: auto;\n left: 750px;\n}\n}\n@media (min-width: 1680px) {\n.van-doc-simulator {\n right: 50%;\n margin-right: calc(-1680px / 2 + 40px);\n}\n}\n.van-doc-simulator-fixed {\n position: fixed;\n top: 30px;\n}\n.van-doc-simulator iframe {\n display: block;\n width: 100%;\n}\n",""])},function(n,t,e){"use strict";var o=e(10);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-demo-block__title {\n margin: 0;\n padding: 35px 15px 15px;\n color: rgba(69, 90, 100, 0.6);\n font-weight: normal;\n font-size: 14px;\n}\n.van-doc-demo-block:first-of-type .van-doc-demo-block__title {\n padding-top: 20px;\n}\n",""])},function(n,t,e){"use strict";var o=e(11);e.n(o).a},function(n,t,e){(n.exports=e(0)(!1)).push([n.i,".van-doc-demo-section {\n box-sizing: border-box;\n min-height: 100vh;\n padding-bottom: 20px;\n}\n.van-doc-demo-section__title {\n margin: 0;\n padding: 15px;\n font-weight: normal;\n font-size: 16px;\n line-height: 1.5;\n text-transform: capitalize;\n}\n.van-doc-demo-section__title + .van-doc-demo-block .van-doc-demo-block__title {\n padding-top: 0;\n}\n",""])},function(n,t,e){"use strict";e.r(t);var o=e(12),i=e.n(o),r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"van-doc"},[e("van-doc-header",{attrs:{lang:n.lang,github:n.github,versions:n.versions,config:n.config.header,"search-config":n.searchConfig},on:{"switch-version":function(t){return n.$emit("switch-version",t)}}}),e("van-doc-nav",{attrs:{base:n.base,"nav-config":n.config.nav}}),e("van-doc-container",{attrs:{"has-simulator":!(!n.simulator&&!n.simulators.length)}},[e("van-doc-content",[n._t("default")],2)],1),n.simulator?e("van-doc-simulator",{attrs:{src:n.simulator}}):n._e(),n._l(n.simulators,function(t,o){return e("van-doc-simulator",{directives:[{name:"show",rawName:"v-show",value:o===n.currentSimulator,expression:"index === currentSimulator"}],key:t,attrs:{src:t}})})],2)};r._withStripped=!0;var a={name:"van-doc",props:{lang:String,github:String,versions:Array,searchConfig:Object,currentSimulator:Number,simulator:String,config:{type:Object,required:!0},simulators:{type:Array,default:()=>[]},base:{type:String,default:""}},data:()=>({nav:[],currentPath:null,leftNav:null,rightNav:null}),watch:{"$route.path"(){this.setNav(),this.updateNav()}},created(){this.setNav(),this.updateNav(),this.keyboardHandler()},methods:{setNav(){const{nav:n}=this.config;for(let t=0;t<n.length;t++){const e=n[t];if(e.groups)for(let n=0;n<e.groups.length;n++)this.nav=this.nav.concat(e.groups[n].list);else this.nav.push(n[t])}},updateNav(){let n;this.currentPath="/"+this.$route.path.split("/").pop();for(let t=0,e=this.nav.length;t<e;t++)if(this.nav[t].path===this.currentPath){n=t;break}this.leftNav=this.nav[n-1],this.rightNav=this.nav[n+1]},handleNavClick(n){const t="prev"===n?this.leftNav:this.rightNav;t.path?this.$router.push(this.base+t.path):t.link&&(window.location.href=t.link)},keyboardHandler(){window.addEventListener("keyup",n=>{switch(n.keyCode){case 37:this.handleNavClick("prev");break;case 39:this.handleNavClick("next")}})}}};e(13);function s(n,t,e,o,i,r,a,s){var c,l="function"==typeof n?n.options:n;if(t&&(l.render=t,l.staticRenderFns=e,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(c=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),i&&i.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(n,t){return c.call(t),d(n,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:n,options:l}}var c=s(a,r,[],!1,null,null,null);c.options.__file="src/VanDoc.vue";var l=c.exports,d=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"van-doc-nav",style:n.style},n._l(n.navConfig,function(t,o){return e("div",{key:o,staticClass:"van-doc-nav__item"},[e("van-doc-nav-link",{attrs:{item:t,base:n.base}}),t.children?e("div",n._l(t.children,function(t,o){return e("div",{key:o,staticClass:"nav-item van-doc-nav__group-title van-doc-nav__group-title"},[e("van-doc-nav-link",{attrs:{item:t,base:n.base}})],1)}),0):n._e(),t.groups?n._l(t.groups,function(t,o){return e("div",{key:o},[e("div",{staticClass:"van-doc-nav__group-title"},[n._v(n._s(t.groupName))]),e("div",[n._l(t.list,function(t,o){return[t.disabled?n._e():e("div",{key:o,staticClass:"van-doc-nav__subitem"},[e("van-doc-nav-link",{attrs:{item:t,base:n.base}})],1)]})],2)])}):n._e()],2)}),0)};d._withStripped=!0;var p=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.item.path?e("router-link",{attrs:{"active-class":"active",to:n.base+n.item.path},domProps:{innerHTML:n._s(n.itemName)}}):n.item.link?e("a",{attrs:{href:n.item.link},domProps:{innerHTML:n._s(n.itemName)}}):e("a",{domProps:{innerHTML:n._s(n.itemName)}})};p._withStripped=!0;var h=s({name:"van-doc-nav-link",props:{base:String,item:Object},computed:{itemName(){const n=(this.item.title||this.item.name).split(" ");return`${n[0]} <span>${n.slice(1).join(" ")}</span>`}}},p,[],!1,null,null,null);h.options.__file="src/component/NavLink.vue";var u=h.exports,f={name:"van-doc-nav",components:{[u.name]:u},props:{navConfig:Array,base:{type:String,default:""}},data:()=>({top:60,bottom:0}),computed:{style(){return{top:this.top+"px",bottom:this.bottom+"px"}}},created(){window.addEventListener("scroll",this.onScroll),this.onScroll()},methods:{onScroll(){const{pageYOffset:n}=window;this.top=Math.max(0,60-n)}}},v=(e(16),s(f,d,[],!1,null,null,null));v.options.__file="src/component/Nav.vue";var g=v.exports,m=function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"van-doc-block"},[this._t("default")],2)};m._withStripped=!0;var b={name:"van-doc-block"},x=(e(18),s(b,m,[],!1,null,null,null));x.options.__file="src/component/Block.vue";var _=x.exports,w=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"van-doc-header"},[e("div",{staticClass:"van-doc-row"},[e("div",{staticClass:"van-doc-header__top"},[e("a",{staticClass:"van-doc-header__logo",attrs:{href:n.config.logo.href}},[e("img",{attrs:{src:n.config.logo.image}}),e("span",[n._v(n._s(n.config.logo.title))])]),n.searchConfig?e("search-input",{attrs:{lang:n.lang,"search-config":n.searchConfig}}):n._e(),e("ul",{staticClass:"van-doc-header__top-nav"},[n._l(n.config.nav.logoLink,function(n){return e("li",{staticClass:"van-doc-header__top-nav-item"},[e("a",{staticClass:"van-doc-header__logo-link",attrs:{target:"_blank",href:n.url}},[e("img",{attrs:{src:n.image}})])])}),n.versions?e("li",{ref:"version",staticClass:"van-doc-header__top-nav-item"},[e("span",{staticClass:"van-doc-header__cube van-doc-header__version",on:{click:n.toggleVersionPop}},[n._v("\n "+n._s(n.versions[0])+"\n "),e("transition",{attrs:{name:"van-doc-dropdown"}},[n.showVersionPop?e("div",{staticClass:"van-doc-header__version-pop"},n._l(n.versions,function(t){return e("div",{staticClass:"van-doc-header__version-pop-item",on:{click:function(e){return n.onSwitchVersion(t)}}},[n._v(n._s(t))])}),0):n._e()])],1)]):n._e(),n.config.nav.lang?e("li",{staticClass:"van-doc-header__top-nav-item"},[e("a",{staticClass:"van-doc-header__cube",attrs:{href:n.langLink}},[n._v(n._s(n.config.nav.lang.text))])]):n._e()],2)],1)])])};w._withStripped=!0;var y=function(){var n=this.$createElement;return(this._self._c||n)("input",{staticClass:"van-doc-search",attrs:{placeholder:this.searchPlaceholder}})};y._withStripped=!0;var k={name:"van-doc-search",props:{lang:String,searchConfig:Object},computed:{searchPlaceholder(){return"zh-CN"===this.lang?"搜索文档...":"Search..."}},watch:{lang(n){this.docsearchInstance&&(this.docsearchInstance.algoliaOptions.facetFilters=[`lang:${n}`])}},mounted(){this.searchConfig&&(this.docsearchInstance=window.docsearch({...this.searchConfig,inputSelector:".van-doc-search",algoliaOptions:{facetFilters:[`lang:${this.lang}`]}}))}},S=(e(20),s(k,y,[],!1,null,null,null));S.options.__file="src/component/SearchInput.vue";var C={name:"van-doc-header",components:{SearchInput:S.exports},props:{lang:String,config:Object,github:String,versions:Array,searchConfig:Object},data:()=>({showVersionPop:!1}),computed:{langLink(){const{lang:n}=this.config.nav;return`#${this.$route.path.replace(n.from,n.to)}`}},methods:{toggleVersionPop(){const n=!this.showVersionPop,t=n?"add":"remove";document.body[`${t}EventListener`]("click",this.checkHideVersionPop),this.showVersionPop=n},checkHideVersionPop(n){this.$refs.version.contains(n.target)||(this.showVersionPop=!1)},onSwitchLang(n){this.$router.push(this.$route.path.replace(n.from,n.to))},onSwitchVersion(n){this.$emit("switch-version",n)}}},j=(e(22),s(C,w,[],!1,null,null,null));j.options.__file="src/component/Header.vue";var z=j.exports,N=function(){var n=this.$createElement;return(this._self._c||n)("div",{class:["van-doc-content","van-doc-content--"+this.currentPage]},[this._t("default")],2)};N._withStripped=!0;var $={name:"van-doc-content",computed:{currentPage(){const{path:n}=this.$route;return n?n.split("/").slice(-1)[0]:this.$route.name}}},E=(e(24),s($,N,[],!1,null,null,null));E.options.__file="src/component/Content.vue";var O=E.exports,L=function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"van-doc-container van-doc-row",class:{"van-doc-container--with-simulator":this.hasSimulator}},[this._t("default")],2)};L._withStripped=!0;var P={name:"van-doc-container",props:{hasSimulator:Boolean}},I=(e(26),s(P,L,[],!1,null,null,null));I.options.__file="src/component/Container.vue";var U=I.exports,R=function(){var n=this.$createElement,t=this._self._c||n;return t("div",{class:["van-doc-simulator",{"van-doc-simulator-fixed":this.isFixed}]},[t("iframe",{ref:"iframe",style:this.simulatorStyle,attrs:{src:this.src,frameborder:"0"}})])};R._withStripped=!0;var T={name:"van-doc-simulator",props:{src:String},data:()=>({scrollTop:window.scrollY,windowHeight:window.innerHeight}),computed:{isFixed(){return this.scrollTop>60},simulatorStyle(){return{height:Math.min(640,this.windowHeight-90)+"px"}}},mounted(){window.addEventListener("scroll",()=>{this.scrollTop=window.scrollY}),window.addEventListener("resize",()=>{this.windowHeight=window.innerHeight})}},M=(e(28),s(T,R,[],!1,null,null,null));M.options.__file="src/component/Simulator.vue";var A=M.exports,H=function(){var n=this.$createElement,t=this._self._c||n;return t("section",{staticClass:"van-doc-demo-block"},[t("h2",{staticClass:"van-doc-demo-block__title"},[this._v(this._s(this.title))]),this._t("default")],2)};H._withStripped=!0;var V={name:"van-doc-demo-block",props:{title:String}},B=(e(30),s(V,H,[],!1,null,null,null));B.options.__file="src/component/DemoBlock.vue";var D=B.exports,F=function(){var n=this.$createElement;return(this._self._c||n)("section",{staticClass:"van-doc-demo-section",class:"demo-"+this.demoName,style:this.style},[this._t("default")],2)};F._withStripped=!0;var q={name:"van-doc-demo-section",props:{name:String,title:String,background:String},computed:{demoName(){return this.name||this.getParentName()},style(){return{background:this.background}}},methods:{getParentName(){const{$parent:n}=this;if(n&&n.$options.name)return n.$options.name.replace("demo-","")}}},Y=(e(32),s(q,F,[],!1,null,null,null));Y.options.__file="src/component/DemoSection.vue";var J=Y.exports;e.d(t,"default",function(){return X}),e.d(t,"Nav",function(){return g}),e.d(t,"Header",function(){return z}),e.d(t,"VanDoc",function(){return l}),e.d(t,"Block",function(){return _}),e.d(t,"Content",function(){return O}),e.d(t,"Container",function(){return U}),e.d(t,"Simulator",function(){return A}),e.d(t,"DemoBlock",function(){return D}),e.d(t,"DemoSection",function(){return J});const G=[g,z,l,_,O,U,A,D,J];function X(){G.forEach(n=>{i.a.component(n.name,n)})}}]);
{
"name": "@vant/doc",
"version": "2.5.0",
"version": "2.5.1",
"description": "vant document template",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc