jobsys-newbie
Version:
Enhanced component based on ant-design-vue
60 lines (57 loc) • 25.4 kB
HTML
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="VuePress 2.0.0-beta.67">
<style>
:root {
--c-bg: #fff;
}
html.dark {
--c-bg: #22272e;
}
html, body {
background-color: var(--c-bg);
}
</style>
<script>
const userMode = localStorage.getItem('vuepress-color-scheme');
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
document.documentElement.classList.toggle('dark', true);
}
</script>
<title>NewbieAddress | Newbie Component</title><meta name="description" content="Enhanced Vue components based on AntD.">
<link rel="preload" href="/docs/newbie/assets/style-398c75cc.css" as="style"><link rel="stylesheet" href="/docs/newbie/assets/style-398c75cc.css">
<link rel="modulepreload" href="/docs/newbie/assets/app-e5356031.js"><link rel="modulepreload" href="/docs/newbie/assets/NewbieAddress.html-e037374a.js"><link rel="modulepreload" href="/docs/newbie/assets/NewbieAddress-a35b35ae.js"><link rel="modulepreload" href="/docs/newbie/assets/index-16cac109.js"><link rel="modulepreload" href="/docs/newbie/assets/compact-item-45f3d050.js"><link rel="modulepreload" href="/docs/newbie/assets/CloseCircleFilled-7d1a9da0.js"><link rel="modulepreload" href="/docs/newbie/assets/ExclamationCircleFilled-71949edd.js"><link rel="modulepreload" href="/docs/newbie/assets/FormItemContext-af84826a.js"><link rel="modulepreload" href="/docs/newbie/assets/useFlexGapSupport-e1acb751.js"><link rel="modulepreload" href="/docs/newbie/assets/styleChecker-8bbc1161.js"><link rel="modulepreload" href="/docs/newbie/assets/network-3dbc60ad.js"><link rel="modulepreload" href="/docs/newbie/assets/index-3761f557.js"><link rel="modulepreload" href="/docs/newbie/assets/LeftOutlined-8f1bdfd3.js"><link rel="modulepreload" href="/docs/newbie/assets/pickAttrs-024293c9.js"><link rel="modulepreload" href="/docs/newbie/assets/vnode-8424d922.js"><link rel="modulepreload" href="/docs/newbie/assets/statusUtils-41ec9e8f.js"><link rel="modulepreload" href="/docs/newbie/assets/omit-dc457db2.js"><link rel="modulepreload" href="/docs/newbie/assets/NewbieAddress.html-47b67690.js"><link rel="prefetch" href="/docs/newbie/assets/hooks.html-00cc23c0.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/index.html-89f7cf72.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieButton.html-b67253b4.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieForm.html-b6dbee27.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieEditor.html-5db09ee2.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieFormDesigner.html-bd1c3f71.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieList.html-ac7d0807.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieModal.html-c13f0bf7.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbiePassword.html-dbf4a28b.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieProvider.html-6128ffcc.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieSearch.html-6b6c26c0.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieTable.html-bc1b0a84.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieUploader.html-167fed4e.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/404.html-f9875e7b.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/hooks.html-adccea0a.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/index.html-3ebf1ebb.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieButton.html-3aa8b13d.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieForm.html-15d8c6f5.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieEditor.html-40504152.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieFormDesigner.html-bf519d6d.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieList.html-2d0e9567.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieModal.html-fa7e4778.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbiePassword.html-3086c803.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieProvider.html-3069b4d1.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieSearch.html-254febfb.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieTable.html-0807cb3d.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/NewbieUploader.html-bd5b6c5d.js" as="script"><link rel="prefetch" href="/docs/newbie/assets/404.html-28bdd61b.js" as="script">
</head>
<body>
<div id="app"><!--[--><div class="theme-container"><!--[--><header class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/docs/newbie/" class=""><!----><span class="site-name">Newbie Component</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><a href="/docs/newbie/" class="" aria-label="首页"><!--[--><!--]--> 首页 <!--[--><!--]--></a></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="组件"><span class="title">组件</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="组件"><span class="title">组件</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a href="/docs/newbie/components/address/NewbieAddress" class="router-link-active" aria-label="NewbieAddress"><!--[--><!--]--> NewbieAddress <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/button/NewbieButton" class="" aria-label="NewbieButton"><!--[--><!--]--> NewbieButton <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/editor/NewbieEditor" class="" aria-label="NewbieEditor"><!--[--><!--]--> NewbieEditor <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/form/NewbieForm" class="" aria-label="NewbieForm"><!--[--><!--]--> NewbieForm <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/form-designer/NewbieFormDesigner" class="" aria-label="NewbieFormDesigner"><!--[--><!--]--> NewbieFormDesigner <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/list/NewbieList" class="" aria-label="NewbieList"><!--[--><!--]--> NewbieList <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/modal/NewbieModal" class="" aria-label="NewbieModal"><!--[--><!--]--> NewbieModal <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/password/NewbiePassword" class="" aria-label="NewbiePassword"><!--[--><!--]--> NewbiePassword <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/provider/NewbieProvider" class="" aria-label="NewbieProvider"><!--[--><!--]--> NewbieProvider <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/search/NewbieSearch" class="" aria-label="NewbieSearch"><!--[--><!--]--> NewbieSearch <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/table/NewbieTable" class="" aria-label="NewbieTable"><!--[--><!--]--> NewbieTable <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/uploader/NewbieUploader" class="" aria-label="NewbieUploader"><!--[--><!--]--> NewbieUploader <!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><a href="/docs/newbie/hooks" class="" aria-label="组合式 API"><!--[--><!--]--> 组合式 API <!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-color-mode-button" title="toggle color mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><!----></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><a href="/docs/newbie/" class="" aria-label="首页"><!--[--><!--]--> 首页 <!--[--><!--]--></a></div><div class="navbar-item"><div class="navbar-dropdown-wrapper"><button class="navbar-dropdown-title" type="button" aria-label="组件"><span class="title">组件</span><span class="arrow down"></span></button><button class="navbar-dropdown-title-mobile" type="button" aria-label="组件"><span class="title">组件</span><span class="right arrow"></span></button><ul style="display:none;" class="navbar-dropdown"><!--[--><li class="navbar-dropdown-item"><a href="/docs/newbie/components/address/NewbieAddress" class="router-link-active" aria-label="NewbieAddress"><!--[--><!--]--> NewbieAddress <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/button/NewbieButton" class="" aria-label="NewbieButton"><!--[--><!--]--> NewbieButton <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/editor/NewbieEditor" class="" aria-label="NewbieEditor"><!--[--><!--]--> NewbieEditor <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/form/NewbieForm" class="" aria-label="NewbieForm"><!--[--><!--]--> NewbieForm <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/form-designer/NewbieFormDesigner" class="" aria-label="NewbieFormDesigner"><!--[--><!--]--> NewbieFormDesigner <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/list/NewbieList" class="" aria-label="NewbieList"><!--[--><!--]--> NewbieList <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/modal/NewbieModal" class="" aria-label="NewbieModal"><!--[--><!--]--> NewbieModal <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/password/NewbiePassword" class="" aria-label="NewbiePassword"><!--[--><!--]--> NewbiePassword <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/provider/NewbieProvider" class="" aria-label="NewbieProvider"><!--[--><!--]--> NewbieProvider <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/search/NewbieSearch" class="" aria-label="NewbieSearch"><!--[--><!--]--> NewbieSearch <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/table/NewbieTable" class="" aria-label="NewbieTable"><!--[--><!--]--> NewbieTable <!--[--><!--]--></a></li><li class="navbar-dropdown-item"><a href="/docs/newbie/components/uploader/NewbieUploader" class="" aria-label="NewbieUploader"><!--[--><!--]--> NewbieUploader <!--[--><!--]--></a></li><!--]--></ul></div></div><div class="navbar-item"><a href="/docs/newbie/hooks" class="" aria-label="组合式 API"><!--[--><!--]--> 组合式 API <!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><p tabindex="0" class="sidebar-item sidebar-heading">NewbieAddress <!----></p><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/docs/newbie/components/address/NewbieAddress.html#props" class="router-link-active router-link-exact-active sidebar-item" aria-label="Props"><!--[--><!--]--> Props <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/docs/newbie/components/address/NewbieAddress.html#events" class="router-link-active router-link-exact-active sidebar-item" aria-label="Events"><!--[--><!--]--> Events <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/docs/newbie/components/address/NewbieAddress.html#数据格式" class="router-link-active router-link-exact-active sidebar-item" aria-label="数据格式"><!--[--><!--]--> 数据格式 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/docs/newbie/components/address/NewbieAddress.html#示例" class="router-link-active router-link-exact-active sidebar-item" aria-label="示例"><!--[--><!--]--> 示例 <!--[--><!--]--></a><!----></li><!--]--></ul></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="newbieaddress" tabindex="-1"><a class="header-anchor" href="#newbieaddress" aria-hidden="true">#</a> NewbieAddress</h1><blockquote><p>地址组件</p></blockquote><p>数据优先级:<code>dataSource</code> > <code>url</code> > <code>本地数据</code></p><p>Version: 1.0.0</p><h2 id="props" tabindex="-1"><a class="header-anchor" href="#props" aria-hidden="true">#</a> Props</h2><table><thead><tr><th>Prop name</th><th>Description</th><th>Type</th><th>Values</th><th>Default</th></tr></thead><tbody><tr><td>value</td><td></td><td>string|number|array</td><td>-</td><td>() => []</td></tr><tr><td>level</td><td>生成哪个级别的数据<br> 1: 省, 2: 省市, 3: 省市区</td><td>number</td><td>-</td><td>3</td></tr><tr><td>disabled</td><td>是否禁用选择器</td><td>boolean</td><td>-</td><td>false</td></tr><tr><td>placeholder</td><td>占位符</td><td>string</td><td>-</td><td>"请选择地区"</td></tr><tr><td>url</td><td>获取数据的链接,如果不传则使用本地数据</td><td>string</td><td>-</td><td>""</td></tr><tr><td>afterFetched</td><td>返回数据处理函数,处理后返回数据格式必需符合下面的 <a href="#%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F">数据格式</a></td><td>func</td><td>-</td><td>null</td></tr><tr><td>dataSource</td><td>自定义数据源</td><td>array</td><td>-</td><td>[]</td></tr></tbody></table><h2 id="events" tabindex="-1"><a class="header-anchor" href="#events" aria-hidden="true">#</a> Events</h2><table><thead><tr><th>Event name</th><th>Properties</th><th>Description</th></tr></thead><tbody><tr><td>update:value</td><td></td><td></td></tr></tbody></table><hr><h2 id="数据格式" tabindex="-1"><a class="header-anchor" href="#数据格式" aria-hidden="true">#</a> 数据格式</h2><div class="language-json line-numbers-mode" data-ext="json"><pre class="language-json"><code><span class="token punctuation">{</span>
<span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"440000"</span><span class="token punctuation">,</span>
<span class="token property">"alias"</span><span class="token operator">:</span> <span class="token string">"广东省"</span><span class="token punctuation">,</span>
<span class="token property">"label"</span><span class="token operator">:</span> <span class="token string">"广东"</span><span class="token punctuation">,</span>
<span class="token property">"children"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
<span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"440100"</span><span class="token punctuation">,</span>
<span class="token property">"alias"</span><span class="token operator">:</span> <span class="token string">"广东省广州市"</span><span class="token punctuation">,</span>
<span class="token property">"label"</span><span class="token operator">:</span> <span class="token string">"广州"</span><span class="token punctuation">,</span>
<span class="token property">"children"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
<span class="token punctuation">{</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"440101"</span><span class="token punctuation">,</span> <span class="token property">"alias"</span><span class="token operator">:</span> <span class="token string">"广东省广州市"</span><span class="token punctuation">,</span> <span class="token property">"label"</span><span class="token operator">:</span> <span class="token string">"广州"</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">]</span>
<span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="示例" tabindex="-1"><a class="header-anchor" href="#示例" aria-hidden="true">#</a> 示例</h2><hr><p>所选地区结果:[440000,440100,440103]</p><div style="width:300px;" class="ant-select ant-cascader css-1ugq3w3 ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search"><!----><!--[--><div class="ant-select-selector"><!--[--><span class="ant-select-selection-search"><input type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" value style=""></span><span class="ant-select-selection-item" title="广东省 / 广州市 / 荔湾区"><!--[-->广东省 / 广州市 / 荔湾区<!--]--></span><!----><!--]--></div><!----><!--]--><span class="ant-select-arrow" style="user-select:none;webkit-user-select:none;" unselectable="on" aria-hidden="true"><!--[--><span role="img" aria-label="down" class="anticon anticon-down ant-select-suffix"><svg focusable="false" class="" style="" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span><!----><!--]--></span><span class="ant-select-clear" style="user-select:none;webkit-user-select:none;" unselectable="on" aria-hidden="true"><span role="img" aria-label="close-circle" class="anticon anticon-close-circle"><svg focusable="false" class="" style="" data-icon="close-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"></path></svg></span></span></div><div class="language-vue line-numbers-mode" data-ext="vue"><pre class="language-vue"><code><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>script</span> <span class="token attr-name">setup</span><span class="token punctuation">></span></span><span class="token script"><span class="token language-javascript">
<span class="token keyword">import</span> <span class="token punctuation">{</span> ref <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">"vue"</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> NewbieAddress <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">"jobsys-newbie"</span>
<span class="token keyword">const</span> content <span class="token operator">=</span> <span class="token function">ref</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">"440000"</span><span class="token punctuation">,</span> <span class="token string">"440100"</span><span class="token punctuation">,</span> <span class="token string">"440103"</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
</span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>script</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>template</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>div</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>NewbieAddress</span> <span class="token attr-name"><span class="token namespace">v-model:</span>value</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>content<span class="token punctuation">"</span></span> <span class="token special-attr"><span class="token attr-name">style</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token value css language-css"><span class="token property">width</span><span class="token punctuation">:</span> 300px</span><span class="token punctuation">"</span></span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>NewbieAddress</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>p</span><span class="token punctuation">></span></span>所选地区结果:{{ `[${content ? content.join(",") : ""}]` }}<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>p</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>div</span><span class="token punctuation">></span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>template</span><span class="token punctuation">></span></span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></div><!--[--><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">Last Updated: </span><!----></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: sinceow@163.com">sinceow</span><!----><!--]--><!--]--></span></div></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
<script type="module" src="/docs/newbie/assets/app-e5356031.js" defer></script>
</body>
</html>