├── src
├── .DS_Store
├── images
│ ├── .DS_Store
│ └── ztree
│ │ ├── node.png
│ │ ├── root.png
│ │ ├── line_conn.gif
│ │ ├── zTreeStandard.gif
│ │ └── zTreeStandard.png
├── main.js
├── App.vue
└── component
│ └── vue-ztree.vue
├── vue-ztree.png
├── dist
├── zTreeStandard.png
└── build.js
├── .gitignore
├── index.html
├── package.json
├── webpack.config.js
└── README.md
/src/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/.DS_Store
--------------------------------------------------------------------------------
/vue-ztree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/vue-ztree.png
--------------------------------------------------------------------------------
/src/images/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/images/.DS_Store
--------------------------------------------------------------------------------
/dist/zTreeStandard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/dist/zTreeStandard.png
--------------------------------------------------------------------------------
/src/images/ztree/node.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/images/ztree/node.png
--------------------------------------------------------------------------------
/src/images/ztree/root.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/images/ztree/root.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # 忽略 node_module 文件
2 | node_modules
3 | # 忽略 mac 特殊文件
4 | .DS_Store
5 | # 忽略es6文件
6 | .babelrc
7 |
--------------------------------------------------------------------------------
/src/images/ztree/line_conn.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/images/ztree/line_conn.gif
--------------------------------------------------------------------------------
/src/images/ztree/zTreeStandard.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/images/ztree/zTreeStandard.gif
--------------------------------------------------------------------------------
/src/images/ztree/zTreeStandard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sijinglei/vue-ztree/master/src/images/ztree/zTreeStandard.png
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 |
4 | new Vue({
5 | el: 'body',
6 | components: { App }
7 | })
8 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | vue-ztree-demo
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vueztree",
3 | "description": "A Vue.js project",
4 | "author": "lisiyizu <512235550@qq.com>",
5 | "private": true,
6 | "scripts": {
7 | "dev": "webpack-dev-server --inline --hot --host 127.0.0.1 --port 8087",
8 | "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
9 | },
10 | "dependencies": {
11 | "vue": "^1.0.0",
12 | "babel-runtime": "^6.0.0"
13 | },
14 | "devDependencies": {
15 | "babel-core": "^6.0.0",
16 | "babel-loader": "^6.0.0",
17 | "babel-plugin-transform-runtime": "^6.0.0",
18 | "babel-preset-es2015": "^6.0.0",
19 | "babel-preset-stage-2": "^6.0.0",
20 | "cross-env": "^1.0.6",
21 | "css-loader": "^0.23.0",
22 | "file-loader": "^0.8.4",
23 | "json-loader": "^0.5.4",
24 | "url-loader": "^0.5.7",
25 | "vue-hot-reload-api": "^1.2.0",
26 | "vue-html-loader": "^1.0.0",
27 | "vue-loader": "^8.2.1",
28 | "vue-style-loader": "^1.0.0",
29 | "webpack": "^1.12.2",
30 | "webpack-dev-server": "^1.12.0"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var webpack = require('webpack')
3 |
4 | module.exports = {
5 | entry: './src/main.js',
6 | output: {
7 | path: path.resolve(__dirname, './dist'),
8 | publicPath: '../dist/',
9 | filename: 'build.js'
10 | },
11 | resolveLoader: {
12 | root: path.join(__dirname, 'node_modules'),
13 | },
14 | module: {
15 | loaders: [
16 | {
17 | test: /\.vue$/,
18 | loader: 'vue'
19 | },
20 | {
21 | test: /\.js$/,
22 | loader: 'babel',
23 | exclude: /node_modules/
24 | },
25 | {
26 | test: /\.json$/,
27 | loader: 'json'
28 | },
29 | {
30 | test: /\.html$/,
31 | loader: 'vue-html'
32 | },
33 | {
34 | test: /\.(png|jpg|gif|svg)$/,
35 | loader: 'url',
36 | query: {
37 | limit: 10000,
38 | name: '[name].[ext]?[hash]'
39 | }
40 | }
41 | ]
42 | },
43 | devServer: {
44 | historyApiFallback: true,
45 | noInfo: true
46 | },
47 | devtool: '#eval-source-map'
48 | }
49 |
50 | if (process.env.NODE_ENV === 'production') {
51 | module.exports.devtool = '#source-map'
52 | // http://vue-loader.vuejs.org/en/workflow/production.html
53 | module.exports.plugins = (module.exports.plugins || []).concat([
54 | new webpack.DefinePlugin({
55 | 'process.env': {
56 | NODE_ENV: '"production"'
57 | }
58 | }),
59 | new webpack.optimize.UglifyJsPlugin({
60 | compress: {
61 | warnings: false
62 | }
63 | }),
64 | new webpack.optimize.OccurenceOrderPlugin()
65 | ])
66 | }
67 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-ztree
2 |
3 | ### Vue小伙伴交流群: 590688906
4 |
5 | [vue-ztree-2.0 版本地址](https://github.com/lisiyizu/vue-ztree-2.0)
6 |
7 | [vue-ztree 演示预览地址](https://lisiyizu.github.io/vue-ztree)
8 |
9 | [vue-ztree-2 演示预览地址](https://lisiyizu.github.io/vue-ztree-2)
10 |
11 | 
12 |
13 | 通过以下demo来实现
14 |
15 | ### app.vue代码如下
16 |
17 | ```html
18 |
19 |
20 |
{{ msg }}
21 |
22 |
23 |
24 |
25 |
26 |
27 |
131 |
132 |
135 |
136 | ```
137 |
138 | ###vue-ztree/初始化参数
139 |
140 |
141 |
142 | | 参数 |
143 | 类型 |
144 | 默认值 |
145 | 描述 |
146 |
147 |
148 | | list |
149 | Array |
150 | - |
151 | 树的结构数据源 |
152 |
153 |
154 | | func |
155 | Function |
156 | - |
157 | 点击节点事件 |
158 |
159 |
160 | | contextmenu |
161 | Function |
162 | - |
163 | 右击节点事件 |
164 |
165 |
166 | | expand |
167 | Function |
168 | - |
169 | 点击展开/收起的方法(一般在异步加载的时候使用, 非异步加载传null) |
170 |
171 |
172 | | is-open |
173 | Bealoon |
174 | true |
175 | 是否展开树 |
176 |
177 |
178 |
179 |
180 |
181 | ## Build Setup
182 |
183 | ``` bash
184 | # install dependencies
185 | npm install
186 |
187 | # serve with hot reload at localhost:8080
188 | npm run dev
189 |
190 | # build for production with minification
191 | npm run build
192 | ```
193 |
194 | For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
195 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
Hello Ztree(非异步)
20 |
21 |
22 |
23 |
24 |
25 |
26 |
Hello Ztree(异步加载)
27 |
28 |
29 |
30 |
31 |
32 |
33 |
Hello Ztree(右击事件)
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/component/vue-ztree.vue:
--------------------------------------------------------------------------------
1 |
117 |
118 |
119 |
120 |
127 |
128 |
129 |
--------------------------------------------------------------------------------
/dist/build.js:
--------------------------------------------------------------------------------
1 | !function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="../dist/",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var r=i(6),o=n(r),s=i(18),a=n(s);new o.default({el:"body",components:{App:a.default}})},function(t,e,i){t.exports=i.p+"zTreeStandard.png?92717ba8243cbc7028452c982b9477ab"},function(t,e,i){t.exports={default:i(9),__esModule:!0}},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&m.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function l(t,e){var i,n,r;if(e.singleton){var o=g++;i=v||(v=a(e)),n=c.bind(null,i,o,!1),r=c.bind(null,i,o,!0)}else i=a(e),n=h.bind(null,i),r=function(){s(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}function c(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=A(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function h(t,e){var i=e.css,n=e.media,r=e.sourceMap;if(n&&t.setAttribute("media",n),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var u={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},f=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=p(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,g=0,m=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=f()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var i=r(t);return n(i,e),function(t){for(var o=[],s=0;s1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function m(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function A(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function b(t){return null!==t&&"object"==typeof t}function y(t){return Vi.call(t)===Gi}function _(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function C(t,e){var i,n,r,o,s,a=function a(){var l=Date.now()-o;l=0?i=setTimeout(a,e-l):(i=null,s=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,o=Date.now(),i||(i=setTimeout(a,e)),s}}function w(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function k(t){var e=function e(){if(!e.cancelled)return t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function x(t,e){return t==e||!(!b(t)||!b(e))&&JSON.stringify(t)===JSON.stringify(e)}function E(t){return/native code/.test(t.toString())}function B(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function O(){return vn.charCodeAt(An+1)}function N(){return vn.charCodeAt(++An)}function Q(){return An>=mn}function I(){for(;O()===In;)N()}function D(t){return t===Bn||t===On}function z(t){return Dn[t]}function M(t,e){return zn[t]===e}function S(){for(var t,e=N();!Q();)if(t=N(),t===Qn)N();else if(t===e)break}function F(t){for(var e=0,i=t;!Q();)if(t=O(),D(t))S();else if(i===t&&e++,M(i,t)&&e--,N(),0===e)break}function R(){for(var t=An;!Q();)if(bn=O(),D(bn))S();else if(z(bn))F(bn);else if(bn===Nn){if(N(),bn=O(),bn!==Nn){yn!==wn&&yn!==En||(yn=kn);break}N()}else{if(bn===In&&(yn===xn||yn===En)){I();break}yn===kn&&(yn=xn),N()}return vn.slice(t+1,An)||null}function T(){for(var t=[];!Q();)t.push(j());return t}function j(){var t,e={};return yn=kn,e.name=R().trim(),yn=En,t=H(),t.length&&(e.args=t),e}function H(){for(var t=[];!Q()&&yn!==kn;){var e=R();if(!e)break;t.push(L(e))}return t}function L(t){if(Cn.test(t))return{value:c(t),dynamic:!1};var e=u(t),i=e===t;return{value:i?t:e,dynamic:i}}function $(t){var e=_n.get(t);if(e)return e;vn=t,gn={},mn=vn.length,An=-1,bn="",yn=wn;var i;return vn.indexOf("|")<0?gn.expression=vn.trim():(gn.expression=R().trim(),i=T(),i.length&&(gn.filters=i)),_n.put(t,gn),gn}function U(t){return t.replace(Sn,"\\$&")}function P(){var t=U(Un.delimiters[0]),e=U(Un.delimiters[1]),i=U(Un.unsafeDelimiters[0]),n=U(Un.unsafeDelimiters[1]);Rn=new RegExp(i+"((?:.|\\n)+?)"+n+"|"+t+"((?:.|\\n)+?)"+e,"g"),Tn=new RegExp("^"+i+"((?:.|\\n)+?)"+n+"$"),Fn=new B(1e3)}function W(t){Fn||P();var e=Fn.get(t);if(e)return e;if(!Rn.test(t))return null;for(var i,n,r,o,s,a,l=[],c=Rn.lastIndex=0;i=Rn.exec(t);)n=i.index,n>c&&l.push({value:t.slice(c,n)}),r=Tn.test(i[0]),o=r?i[1]:i[2],s=o.charCodeAt(0),a=42===s,o=a?o.slice(1):o,l.push({tag:!0,value:o.trim(),html:r,oneTime:a}),c=n+i[0].length;return c1?t.map(function(t){return Y(t,e)}).join("+"):Y(t[0],e,!0)}function Y(t,e,i){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':V(t.value,i):'"'+t.value+'"'}function V(t,e){if(jn.test(t)){var i=$(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function G(t,e,i,n){K(t,1,function(){e.appendChild(t)},i,n)}function q(t,e,i,n){K(t,1,function(){rt(t,e)},i,n)}function Z(t,e,i){K(t,-1,function(){st(t)},e,i)}function K(t,e,i,n,r){var o=t.__v_trans;if(!o||!o.hooks&&!an||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(r&&r());var s=e>0?"enter":"leave";o[s](i,r)}function X(t){if("string"==typeof t){t=document.querySelector(t)}return t}function tt(t){if(!t)return!1;var e=t.ownerDocument.documentElement,i=t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function et(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function it(t,e){var i=et(t,":"+e);return null===i&&(i=et(t,"v-bind:"+e)),i}function nt(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function rt(t,e){e.parentNode.insertBefore(t,e)}function ot(t,e){e.nextSibling?rt(t,e.nextSibling):e.parentNode.appendChild(t)}function st(t){t.parentNode.removeChild(t)}function at(t,e){e.firstChild?rt(t,e.firstChild):e.appendChild(t)}function lt(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function ct(t,e,i,n){t.addEventListener(e,i,n)}function ht(t,e,i){t.removeEventListener(e,i)}function ut(t){var e=t.className;return"object"==typeof e&&(e=e.baseVal||""),e}function pt(t,e){nn&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function ft(t,e){if(t.classList)t.classList.add(e);else{var i=" "+ut(t)+" ";i.indexOf(" "+e+" ")<0&&pt(t,(i+e).trim())}}function dt(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+ut(t)+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");pt(t,i.trim())}t.className||t.removeAttribute("class")}function vt(t,e){var i,n;if(At(t)&&wt(t.content)&&(t=t.content),t.hasChildNodes())for(gt(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function gt(t){for(var e;e=t.firstChild,mt(e);)t.removeChild(e);for(;e=t.lastChild,mt(e);)t.removeChild(e)}function mt(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function At(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function bt(t,e){var i=Un.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function yt(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;i=l.length){for(var t=0;t=97&&e<=122||e>=65&&e<=90?"ident":e>=49&&e<=57?"number":"else"}function Ut(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(s(e)?u(e):"*"+e)}function Pt(t){function e(){var e=t[h+1];if(u===dr&&"'"===e||u===vr&&'"'===e)return h++,n="\\"+e,f[or](),!0}var i,n,r,o,s,a,l,c=[],h=-1,u=cr,p=0,f=[];for(f[sr]=function(){void 0!==r&&(c.push(r),r=void 0)},f[or]=function(){void 0===r?r=n:r+=n},f[ar]=function(){f[or](),p++},f[lr]=function(){if(p>0)p--,u=fr,f[or]();else{if(p=0,r=Ut(r),r===!1)return!1;f[sr]()}};null!=u;)if(h++,i=t[h],"\\"!==i||!e()){if(o=$t(i),l=Ar[u],s=l[o]||l.else||mr,s===mr)return;if(u=s[0],a=f[s[1]],a&&(n=s[2],n=void 0===n?i:n,a()===!1))return;if(u===gr)return c.raw=t,c}}function Wt(t){var e=rr.get(t);return e||(e=Pt(t),e&&rr.put(t,e)),e}function Jt(t,e){return ee(e).get(t)}function Yt(t,e,i){var r=t;if("string"==typeof e&&(e=Pt(e)),!e||!b(t))return!1;for(var o,s,a=0,l=e.length;a-1?i.replace(Or,Zt):i,e+"scope."+i)}function Zt(t,e){return Dr[e]}function Kt(t){kr.test(t),Dr.length=0;var e=t.replace(Br,Gt).replace(xr,"");return e=(" "+e).replace(Qr,qt).replace(Or,Zt),Xt(e)}function Xt(t){try{return new Function("scope","return "+t+";")}catch(t){return Vt}}function te(t){var e=Wt(t);if(e)return function(t,i){Yt(t,e,i)}}function ee(t,e){t=t.trim();var i=yr.get(t);if(i)return e&&!i.set&&(i.set=te(i.exp)),i;var n={exp:t};return n.get=ie(t)&&t.indexOf("[")<0?Xt("scope."+t):Kt(t),e&&(n.set=te(t)),yr.put(t,n),n}function ie(t){return Nr.test(t)&&!Ir.test(t)&&"Math."!==t.slice(0,5)}function ne(){Mr.length=0,Sr.length=0,Fr={},Rr={},Tr=!1}function re(){for(var t=!0;t;)t=!1,oe(Mr),oe(Sr),Mr.length?t=!0:(Xi&&Un.devtools&&Xi.emit("flush"),ne())}function oe(t){for(var e=0;e0){var s=o+(n?e:kt(e));r=Kr.get(s),r||(r=qe(i,t.$options,!0),Kr.put(s,r))}else r=qe(i,t.$options,!0);this.linker=r}function Ce(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__v_frag;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__v_frag}return t}}function we(t){for(var e=-1,i=new Array(Math.floor(t));++e47&&e<58?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&e<91)?e:yo[t]});return i=[].concat.apply([],i),function(e){if(i.indexOf(e.keyCode)>-1)return t.call(this,e)}}function Ne(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Qe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ie(t){return function(e){if(e.target===e.currentTarget)return t.call(this,e)}}function De(t){if(xo[t])return xo[t];var e=ze(t);return xo[t]=xo[e]=e,e}function ze(t){t=d(t);var e=p(t),i=e.charAt(0).toUpperCase()+e.slice(1);Eo||(Eo=document.createElement("div"));var n,r=Co.length;if("filter"!==e&&e in Eo.style)return{kebab:t,camel:e};for(;r--;)if(n=wo[r]+i,n in Eo.style)return{kebab:Co[r]+t,camel:n}}function Me(t){var e=[];if(qi(t))for(var i=0,n=t.length;i=r?i():t[o].call(e,n)}var r=t.length,o=0;t[0].call(e,n)}function Re(t,e,i){for(var n,r,o,a,l,c,h,u=[],f=i.$options.propsData,v=Object.keys(e),g=v.length;g--;)if(r=v[g],n=e[r]||$o,l=p(r),Uo.test(l)){if(h={name:r,path:l,options:n,mode:Lo.ONE_WAY,raw:null},o=d(r),null===(a=it(t,o))&&(null!==(a=it(t,o+".sync"))?h.mode=Lo.TWO_WAY:null!==(a=it(t,o+".once"))&&(h.mode=Lo.ONE_TIME)),null!==a)h.raw=a,c=$(a),a=c.expression,h.filters=c.filters,s(a)&&!c.filters?h.optimizedLiteral=!0:h.dynamic=!0,h.parentPath=a;else if(null!==(a=et(t,o)))h.raw=a;else if(f&&null!==(a=f[r]||f[l]))h.raw=a;else;u.push(h)}return Te(u)}function Te(t){return function(e,i){e._props={};for(var n,r,s,a,l,p=e.$options.propsData,f=t.length;f--;)if(n=t[f],l=n.raw,r=n.path,s=n.options,e._props[r]=n,p&&o(p,r)&&He(e,n,p[r]),null===l)He(e,n,void 0);else if(n.dynamic)n.mode===Lo.ONE_TIME?(a=(i||e._context||e).$get(n.parentPath),He(e,n,a)):e._context?e._bindDir({name:"prop",def:Wo,prop:n},null,null,i):He(e,n,e.$get(n.parentPath));else if(n.optimizedLiteral){var v=u(l);a=v===l?h(c(l)):v,He(e,n,a)}else a=s.type===Boolean&&(""===l||l===d(n.name))||l,He(e,n,a)}}function je(t,e,i,n){var r=e.dynamic&&ie(e.parentPath),o=i;void 0===o&&(o=$e(t,e)),o=Pe(e,o,t);var s=o!==i;Ue(e,o,t)||(o=void 0),r&&!s?St(function(){n(o)}):n(o)}function He(t,e,i){je(t,e,i,function(i){Ht(t,e.path,i)})}function Le(t,e,i){je(t,e,i,function(i){t[e.path]=i})}function $e(t,e){var i=e.options;if(!o(i,"default"))return i.type!==Boolean&&void 0;var n=i.default;return b(n),"function"==typeof n&&i.type!==Function?n.call(t):n}function Ue(t,e,i){if(!t.options.required&&(null===t.raw||null==e))return!0;var n=t.options,r=n.type,o=!r,s=[];if(r){qi(r)||(r=[r]);for(var a=0;ae?-1:t===e?0:1}),e=0,i=a.length;ef.priority)&&(f=p,h=r.name,a=mi(r.name),s=r.value,c=l[1],u=l[2]));return f?vi(t,c,s,i,f,h,u,a):void 0}function di(){}function vi(t,e,i,n,r,o,s,a){var l=$(i),c={name:e,arg:s,expression:l.expression,filters:l.filters,raw:i,attr:o,modifiers:a,def:r};"for"!==e&&"router-view"!==e||(c.ref=yt(t));var h=function(t,e,i,n,r){c.ref&&Ht((n||t).$refs,c.ref,null),t._bindDir(c,e,i,n,r)};return h.terminal=!0,h}function gi(t,e){function i(t,e,i){var n=i&&bi(i),r=!n&&$(o);v.push({name:t,attr:s,raw:a,def:e,arg:c,modifiers:h,expression:r&&r.expression,filters:r&&r.filters,interp:i,hasOneTime:n})}for(var n,r,o,s,a,l,c,h,u,p,f,d=t.length,v=[];d--;)if(n=t[d],r=s=n.name,o=a=n.value,p=W(o),c=null,h=mi(r),r=r.replace(ss,""),p)o=J(p),c=r,i("bind",To.bind,p);else if(as.test(r))h.literal=!ns.test(r),i("transition",is.transition);else if(rs.test(r))c=r.replace(rs,""),i("on",To.on);else if(ns.test(r))l=r.replace(ns,""),"style"===l||"class"===l?i(l,is[l]):(c=l,i("bind",To.bind));else if(f=r.match(os)){if(l=f[1],c=f[2],"else"===l)continue;u=zt(e,"directives",l,!0),u&&i(l,u)}if(v.length)return Ai(v)}function mi(t){var e=Object.create(null),i=t.match(ss);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function Ai(t){return function(e,i,n,r,o){for(var s=t.length;s--;)e._bindDir(t[s],i,n,r,o)}}function bi(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function yi(t){return"SCRIPT"===t.tagName&&(!t.hasAttribute("type")||"text/javascript"===t.getAttribute("type"))}function _i(t,e){return e&&(e._containerAttrs=wi(t)),At(t)&&(t=fe(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=vt(t),t=Ci(t,e))),wt(t)&&(at(bt("v-start",!0),t),t.appendChild(bt("v-end",!0))),t}function Ci(t,e){var i=e.template,n=fe(i,!0);if(n){var r=n.firstChild;if(!r)return n;var o=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body,n.childNodes.length>1||1!==r.nodeType||"component"===o||zt(e,"components",o)||nt(r,"is")||zt(e,"elementDirectives",o)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?n:(e._replacerAttrs=wi(r),ki(t,r),r)):(t.appendChild(n),t)}}function wi(t){if(1===t.nodeType&&t.hasAttributes())return m(t.attributes)}function ki(t,e){for(var i,n,r=t.attributes,o=r.length;o--;)i=r[o].name,n=r[o].value,e.hasAttribute(i)||hs.test(i)?"class"===i&&!W(n)&&(n=n.trim())&&n.split(/\s+/).forEach(function(t){ft(e,t)}):e.setAttribute(i,n)}function xi(t,e){if(e){for(var i,n,r=t._slotContents=Object.create(null),o=0,s=e.children.length;o1?m(i):i;var r=e&&i.some(function(t){return t._fromParent});r&&(n=!1);for(var o=m(arguments,1),s=0,a=i.length;se?o:-o}var i=null,n=void 0;t=ms(t);var r=m(arguments,1),o=r[r.length-1];"number"==typeof o?(o=o<0?-1:1,r=r.length>1?r.slice(0,-1):r):o=1;var s=r[0];return s?("function"==typeof s?i=function(t,e){return s(t,e)*o}:(n=Array.prototype.concat.apply([],r),i=function(t,r,o){return o=o||0,o>=n.length-1?e(t,r,o):e(t,r,o)||i(t,r,o+1)}),t.slice().sort(i)):t}function Li(t,e){var i;if(y(t)){var n=Object.keys(t);for(i=n.length;i--;)if(Li(t[n[i]],e))return!0}else if(qi(t)){for(i=t.length;i--;)if(Li(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function $i(t){function e(t){return new Function("return function "+v(t)+" (options) { this._init(options) }")()}t.options={directives:To,elementDirectives:gs,filters:bs,transitions:{},components:{},partials:{},replace:!0},t.util=ir,t.config=Un,t.set=n,t.delete=r,t.nextTick=pn,t.compiler=us,t.FragmentFactory=_e,t.internalDirectives=is,t.parsers={path:br,text:Hn,template:qr,directive:Mn,expression:zr},t.cid=0;var i=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var o=t.name||n.options.name,s=e(o||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=i++,s.options=Dt(n.options,t),s.super=n,s.extend=n.extend,Un._assetTypes.forEach(function(t){s[t]=n[t]}),o&&(s.options.components[o]=s),r&&(t._Ctor=s),s},t.use=function(t){if(!t.installed){var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},t.mixin=function(e){t.options=Dt(t.options,e)},Un._assetTypes.forEach(function(e){t[e]=function(i,n){return n?("component"===e&&y(n)&&(n.name||(n.name=i),n=t.extend(n)),this.options[e+"s"][i]=n,n):this.options[e+"s"][i]}}),A(t.transition,Wn)}var Ui=Object.prototype.hasOwnProperty,Pi=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Wi=/-(\w)/g,Ji=/([^-])([A-Z])/g,Yi=/(?:^|[-_\/])(\w)/g,Vi=Object.prototype.toString,Gi="[object Object]",qi=Array.isArray,Zi="__proto__"in{},Ki="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Xi=Ki&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,tn=Ki&&window.navigator.userAgent.toLowerCase(),en=tn&&tn.indexOf("trident")>0,nn=tn&&tn.indexOf("msie 9.0")>0,rn=tn&&tn.indexOf("android")>0,on=tn&&/iphone|ipad|ipod|ios/.test(tn),sn=void 0,an=void 0,ln=void 0,cn=void 0;if(Ki&&!nn){var hn=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,un=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;sn=hn?"WebkitTransition":"transition",an=hn?"webkitTransitionEnd":"transitionend",ln=un?"WebkitAnimation":"animation",cn=un?"webkitAnimationEnd":"animationend"}var pn=function(){function t(){i=!1;var t=e.slice(0);e.length=0;for(var n=0;n=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),_(Kn,"$remove",function(t){if(this.length){var e=w(this,t);return e>-1?this.splice(e,1):void 0}});var tr=Object.getOwnPropertyNames(Xn),er=!0;Ft.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;i",""],tr:[2,""],col:[2,""]};Pr.td=Pr.th=[3,""],Pr.option=Pr.optgroup=[1,'"],Pr.thead=Pr.tbody=Pr.colgroup=Pr.caption=Pr.tfoot=[1,""],Pr.g=Pr.defs=Pr.symbol=Pr.use=Pr.image=Pr.text=Pr.circle=Pr.ellipse=Pr.line=Pr.path=Pr.polygon=Pr.polyline=Pr.rect=[1,'"];var Wr=/<([\w:-]+)/,Jr=/?\w+?;/,Yr=/