├── .babelrc
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── README.md
├── build
├── build.js
├── check-versions.js
├── dev-client.js
├── dev-server.js
├── utils.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
├── prod.env.js
└── test.env.js
├── dist
├── index.html
└── static
│ ├── css
│ ├── app.a6be58f77d26a433f495f45c43424607.css
│ └── app.a6be58f77d26a433f495f45c43424607.css.map
│ ├── fonts
│ ├── element-icons.a61be9c.eot
│ └── element-icons.b02bdc1.ttf
│ ├── img
│ └── element-icons.09162bc.svg
│ └── js
│ ├── 0.d2b7da16b61db3decf6f.js
│ ├── 0.d2b7da16b61db3decf6f.js.map
│ ├── 1.8292511606e5d27e8a7e.js
│ ├── 1.8292511606e5d27e8a7e.js.map
│ ├── 2.cb0bbb345d0c1b3e367c.js
│ ├── 2.cb0bbb345d0c1b3e367c.js.map
│ ├── 3.0674de2e8edeebebe0c6.js
│ ├── 3.0674de2e8edeebebe0c6.js.map
│ ├── app.790d4bd29225505b7c20.js
│ ├── app.790d4bd29225505b7c20.js.map
│ ├── manifest.ba2388ad769836077e4c.js
│ ├── manifest.ba2388ad769836077e4c.js.map
│ ├── vendor.017075be208acab76aa6.js
│ └── vendor.017075be208acab76aa6.js.map
├── index.html
├── package.json
├── src
├── App.vue
├── assets
│ └── logo.png
├── components
│ ├── Register.vue
│ ├── UnRegister.vue
│ └── common
│ │ ├── Container.vue
│ │ ├── NavMenu.vue
│ │ ├── TopBar.vue
│ │ └── style.scss
├── main.js
├── pages
│ ├── home
│ │ └── home.vue
│ ├── question
│ │ └── question.vue
│ ├── table
│ │ └── index.vue
│ └── user
│ │ └── index.vue
├── routes.js
└── store
│ ├── actions.js
│ ├── getters.js
│ ├── mutations.js
│ └── store.js
├── static
└── .gitkeep
└── test
├── e2e
├── custom-assertions
│ └── elementCount.js
├── nightwatch.conf.js
├── runner.js
└── specs
│ └── test.js
└── unit
├── .eslintrc
├── index.js
├── karma.conf.js
└── specs
└── Hello.spec.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015", "stage-2"],
3 | "plugins": ["transform-runtime"],
4 | "comments": false
5 | }
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | build/*.js
2 | config/*.js
3 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | parser: 'babel-eslint',
4 | parserOptions: {
5 | sourceType: 'module'
6 | },
7 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
8 | extends: 'standard',
9 | // required to lint *.vue files
10 | plugins: [
11 | 'html'
12 | ],
13 | // add your custom rules here
14 | 'rules': {
15 | // allow paren-less arrow functions
16 | 'arrow-parens': 0,
17 | // allow async-await
18 | 'generator-star-spacing': 0,
19 | // allow debugger during development
20 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | # dist/
4 | npm-debug.log
5 | test/unit/coverage
6 | test/e2e/reports
7 | selenium-debug.log
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-template-with-element-ui
2 |
3 | > A Vue.js template with element UI.
4 |
5 | [LIVE DEME](https://tmpbook.github.io/vue-template-with-element-ui/)
6 |
7 | ## Build Setup
8 |
9 | ``` bash
10 | # install dependencies
11 | npm install
12 |
13 | # serve with hot reload at localhost:8080
14 | npm run dev
15 |
16 | # build for production with minification
17 | npm run build
18 |
19 | # run unit tests
20 | npm run unit
21 |
22 | # run e2e tests
23 | npm run e2e
24 |
25 | # run all tests
26 | npm test
27 | ```
28 |
29 | For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
30 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | // https://github.com/shelljs/shelljs
2 | require('./check-versions')()
3 | require('shelljs/global')
4 | env.NODE_ENV = 'production'
5 |
6 | var path = require('path')
7 | var config = require('../config')
8 | var ora = require('ora')
9 | var webpack = require('webpack')
10 | var webpackConfig = require('./webpack.prod.conf')
11 |
12 | console.log(
13 | ' Tip:\n' +
14 | ' Built files are meant to be served over an HTTP server.\n' +
15 | ' Opening index.html over file:// won\'t work.\n'
16 | )
17 |
18 | var spinner = ora('building for production...')
19 | spinner.start()
20 |
21 | var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
22 | rm('-rf', assetsPath)
23 | mkdir('-p', assetsPath)
24 | cp('-R', 'static/*', assetsPath)
25 |
26 | webpack(webpackConfig, function (err, stats) {
27 | spinner.stop()
28 | if (err) throw err
29 | process.stdout.write(stats.toString({
30 | colors: true,
31 | modules: false,
32 | children: false,
33 | chunks: false,
34 | chunkModules: false
35 | }) + '\n')
36 | })
37 |
--------------------------------------------------------------------------------
/build/check-versions.js:
--------------------------------------------------------------------------------
1 | var semver = require('semver')
2 | var chalk = require('chalk')
3 | var packageConfig = require('../package.json')
4 | var exec = function (cmd) {
5 | return require('child_process')
6 | .execSync(cmd).toString().trim()
7 | }
8 |
9 | var versionRequirements = [
10 | {
11 | name: 'node',
12 | currentVersion: semver.clean(process.version),
13 | versionRequirement: packageConfig.engines.node
14 | },
15 | {
16 | name: 'npm',
17 | currentVersion: exec('npm --version'),
18 | versionRequirement: packageConfig.engines.npm
19 | }
20 | ]
21 |
22 | module.exports = function () {
23 | var warnings = []
24 | for (var i = 0; i < versionRequirements.length; i++) {
25 | var mod = versionRequirements[i]
26 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
27 | warnings.push(mod.name + ': ' +
28 | chalk.red(mod.currentVersion) + ' should be ' +
29 | chalk.green(mod.versionRequirement)
30 | )
31 | }
32 | }
33 |
34 | if (warnings.length) {
35 | console.log('')
36 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
37 | console.log()
38 | for (var i = 0; i < warnings.length; i++) {
39 | var warning = warnings[i]
40 | console.log(' ' + warning)
41 | }
42 | console.log()
43 | process.exit(1)
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/build/dev-client.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | require('eventsource-polyfill')
3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4 |
5 | hotClient.subscribe(function (event) {
6 | if (event.action === 'reload') {
7 | window.location.reload()
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/build/dev-server.js:
--------------------------------------------------------------------------------
1 | require('./check-versions')()
2 | var config = require('../config')
3 | if (!process.env.NODE_ENV) process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
4 | var path = require('path')
5 | var express = require('express')
6 | var webpack = require('webpack')
7 | var opn = require('opn')
8 | var proxyMiddleware = require('http-proxy-middleware')
9 | var webpackConfig = process.env.NODE_ENV === 'testing'
10 | ? require('./webpack.prod.conf')
11 | : require('./webpack.dev.conf')
12 |
13 | // default port where dev server listens for incoming traffic
14 | var port = process.env.PORT || config.dev.port
15 | // Define HTTP proxies to your custom API backend
16 | // https://github.com/chimurai/http-proxy-middleware
17 | var proxyTable = config.dev.proxyTable
18 |
19 | var app = express()
20 | var compiler = webpack(webpackConfig)
21 |
22 | var devMiddleware = require('webpack-dev-middleware')(compiler, {
23 | publicPath: webpackConfig.output.publicPath,
24 | stats: {
25 | colors: true,
26 | chunks: false
27 | }
28 | })
29 |
30 | var hotMiddleware = require('webpack-hot-middleware')(compiler)
31 | // force page reload when html-webpack-plugin template changes
32 | compiler.plugin('compilation', function (compilation) {
33 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
34 | hotMiddleware.publish({ action: 'reload' })
35 | cb()
36 | })
37 | })
38 |
39 | // proxy api requests
40 | Object.keys(proxyTable).forEach(function (context) {
41 | var options = proxyTable[context]
42 | if (typeof options === 'string') {
43 | options = { target: options }
44 | }
45 | app.use(proxyMiddleware(context, options))
46 | })
47 |
48 | // handle fallback for HTML5 history API
49 | app.use(require('connect-history-api-fallback')())
50 |
51 | // serve webpack bundle output
52 | app.use(devMiddleware)
53 |
54 | // enable hot-reload and state-preserving
55 | // compilation error display
56 | app.use(hotMiddleware)
57 |
58 | // serve pure static assets
59 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
60 | app.use(staticPath, express.static('./static'))
61 |
62 | module.exports = app.listen(port, function (err) {
63 | if (err) {
64 | console.log(err)
65 | return
66 | }
67 | var uri = 'http://localhost:' + port
68 | console.log('Listening at ' + uri + '\n')
69 |
70 | // when env is testing, don't need open it
71 | if (process.env.NODE_ENV !== 'testing') {
72 | opn(uri)
73 | }
74 | })
75 |
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
4 |
5 | exports.assetsPath = function (_path) {
6 | var assetsSubDirectory = process.env.NODE_ENV === 'production'
7 | ? config.build.assetsSubDirectory
8 | : config.dev.assetsSubDirectory
9 | return path.posix.join(assetsSubDirectory, _path)
10 | }
11 |
12 | exports.cssLoaders = function (options) {
13 | options = options || {}
14 | // generate loader string to be used with extract text plugin
15 | function generateLoaders (loaders) {
16 | var sourceLoader = loaders.map(function (loader) {
17 | var extraParamChar
18 | if (/\?/.test(loader)) {
19 | loader = loader.replace(/\?/, '-loader?')
20 | extraParamChar = '&'
21 | } else {
22 | loader = loader + '-loader'
23 | extraParamChar = '?'
24 | }
25 | return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
26 | }).join('!')
27 |
28 | // Extract CSS when that option is specified
29 | // (which is the case during production build)
30 | if (options.extract) {
31 | return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
32 | } else {
33 | return ['vue-style-loader', sourceLoader].join('!')
34 | }
35 | }
36 |
37 | // http://vuejs.github.io/vue-loader/en/configurations/extract-css.html
38 | return {
39 | css: generateLoaders(['css']),
40 | postcss: generateLoaders(['css']),
41 | less: generateLoaders(['css', 'less']),
42 | sass: generateLoaders(['css', 'sass?indentedSyntax']),
43 | scss: generateLoaders(['css', 'sass']),
44 | stylus: generateLoaders(['css', 'stylus']),
45 | styl: generateLoaders(['css', 'stylus'])
46 | }
47 | }
48 |
49 | // Generate loaders for standalone style files (outside of .vue)
50 | exports.styleLoaders = function (options) {
51 | var output = []
52 | var loaders = exports.cssLoaders(options)
53 | for (var extension in loaders) {
54 | var loader = loaders[extension]
55 | output.push({
56 | test: new RegExp('\\.' + extension + '$'),
57 | loader: loader
58 | })
59 | }
60 | return output
61 | }
62 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var utils = require('./utils')
4 | var projectRoot = path.resolve(__dirname, '../')
5 |
6 | var env = process.env.NODE_ENV
7 | // check env & config/index.js to decide whether to enable CSS source maps for the
8 | // various preprocessor loaders added to vue-loader at the end of this file
9 | var cssSourceMapDev = (env === 'development' && config.dev.cssSourceMap)
10 | var cssSourceMapProd = (env === 'production' && config.build.productionSourceMap)
11 | var useCssSourceMap = cssSourceMapDev || cssSourceMapProd
12 |
13 | module.exports = {
14 | entry: {
15 | app: './src/main.js'
16 | },
17 | output: {
18 | path: config.build.assetsRoot,
19 | publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath,
20 | filename: '[name].js'
21 | },
22 | resolve: {
23 | extensions: ['', '.js', '.vue', '.json'],
24 | fallback: [path.join(__dirname, '../node_modules')],
25 | alias: {
26 | 'vue$': 'vue/dist/vue.common.js',
27 | 'src': path.resolve(__dirname, '../src'),
28 | 'assets': path.resolve(__dirname, '../src/assets'),
29 | 'components': path.resolve(__dirname, '../src/components')
30 | }
31 | },
32 | resolveLoader: {
33 | fallback: [path.join(__dirname, '../node_modules')]
34 | },
35 | module: {
36 | preLoaders: [
37 | {
38 | test: /\.vue$/,
39 | loader: 'eslint',
40 | include: projectRoot,
41 | exclude: /node_modules/
42 | },
43 | {
44 | test: /\.js$/,
45 | loader: 'eslint',
46 | include: projectRoot,
47 | exclude: /node_modules/
48 | }
49 | ],
50 | loaders: [
51 | {
52 | test: /\.sass$/,
53 | loaders: ['style', 'css', 'sass']
54 | },
55 | {
56 | test: /\.vue$/,
57 | loader: 'vue'
58 | },
59 | {
60 | test: /\.js$/,
61 | loader: 'babel',
62 | include: projectRoot,
63 | exclude: /node_modules/
64 | },
65 | {
66 | test: /\.json$/,
67 | loader: 'json'
68 | },
69 | {
70 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
71 | loader: 'url',
72 | query: {
73 | limit: 10000,
74 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
75 | }
76 | },
77 | {
78 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
79 | loader: 'url',
80 | query: {
81 | limit: 10000,
82 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
83 | }
84 | }
85 | ]
86 | },
87 | eslint: {
88 | formatter: require('eslint-friendly-formatter')
89 | },
90 | vue: {
91 | loaders: utils.cssLoaders({ sourceMap: useCssSourceMap }),
92 | postcss: [
93 | require('autoprefixer')({
94 | browsers: ['last 2 versions']
95 | })
96 | ]
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | var config = require('../config')
2 | var webpack = require('webpack')
3 | var merge = require('webpack-merge')
4 | var utils = require('./utils')
5 | var baseWebpackConfig = require('./webpack.base.conf')
6 | var HtmlWebpackPlugin = require('html-webpack-plugin')
7 |
8 | // add hot-reload related code to entry chunks
9 | Object.keys(baseWebpackConfig.entry).forEach(function (name) {
10 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
11 | })
12 |
13 | module.exports = merge(baseWebpackConfig, {
14 | module: {
15 | loaders: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
16 | },
17 | // eval-source-map is faster for development
18 | devtool: '#eval-source-map',
19 | plugins: [
20 | new webpack.DefinePlugin({
21 | 'process.env': config.dev.env
22 | }),
23 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
24 | new webpack.optimize.OccurrenceOrderPlugin(),
25 | new webpack.HotModuleReplacementPlugin(),
26 | new webpack.NoErrorsPlugin(),
27 | // https://github.com/ampedandwired/html-webpack-plugin
28 | new HtmlWebpackPlugin({
29 | filename: 'index.html',
30 | template: 'index.html',
31 | inject: true
32 | })
33 | ]
34 | })
35 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var utils = require('./utils')
4 | var webpack = require('webpack')
5 | var merge = require('webpack-merge')
6 | var baseWebpackConfig = require('./webpack.base.conf')
7 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
8 | var HtmlWebpackPlugin = require('html-webpack-plugin')
9 | var env = process.env.NODE_ENV === 'testing'
10 | ? require('../config/test.env')
11 | : config.build.env
12 |
13 | var webpackConfig = merge(baseWebpackConfig, {
14 | module: {
15 | loaders: utils.styleLoaders({ sourceMap: config.build.productionSourceMap, extract: true })
16 | },
17 | devtool: config.build.productionSourceMap ? '#source-map' : false,
18 | output: {
19 | path: config.build.assetsRoot,
20 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
21 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
22 | },
23 | vue: {
24 | loaders: utils.cssLoaders({
25 | sourceMap: config.build.productionSourceMap,
26 | extract: true
27 | })
28 | },
29 | plugins: [
30 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
31 | new webpack.DefinePlugin({
32 | 'process.env': env
33 | }),
34 | new webpack.optimize.UglifyJsPlugin({
35 | compress: {
36 | warnings: false
37 | }
38 | }),
39 | new webpack.optimize.OccurrenceOrderPlugin(),
40 | // extract css into its own file
41 | new ExtractTextPlugin(utils.assetsPath('css/[name].[contenthash].css')),
42 | // generate dist index.html with correct asset hash for caching.
43 | // you can customize output by editing /index.html
44 | // see https://github.com/ampedandwired/html-webpack-plugin
45 | new HtmlWebpackPlugin({
46 | filename: process.env.NODE_ENV === 'testing'
47 | ? 'index.html'
48 | : config.build.index,
49 | template: 'index.html',
50 | inject: true,
51 | minify: {
52 | removeComments: true,
53 | collapseWhitespace: true,
54 | removeAttributeQuotes: true
55 | // more options:
56 | // https://github.com/kangax/html-minifier#options-quick-reference
57 | },
58 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
59 | chunksSortMode: 'dependency'
60 | }),
61 | // split vendor js into its own file
62 | new webpack.optimize.CommonsChunkPlugin({
63 | name: 'vendor',
64 | minChunks: function (module, count) {
65 | // any required modules inside node_modules are extracted to vendor
66 | return (
67 | module.resource &&
68 | /\.js$/.test(module.resource) &&
69 | module.resource.indexOf(
70 | path.join(__dirname, '../node_modules')
71 | ) === 0
72 | )
73 | }
74 | }),
75 | // extract webpack runtime and module manifest to its own file in order to
76 | // prevent vendor hash from being updated whenever app bundle is updated
77 | new webpack.optimize.CommonsChunkPlugin({
78 | name: 'manifest',
79 | chunks: ['vendor']
80 | })
81 | ]
82 | })
83 |
84 | if (config.build.productionGzip) {
85 | var CompressionWebpackPlugin = require('compression-webpack-plugin')
86 |
87 | webpackConfig.plugins.push(
88 | new CompressionWebpackPlugin({
89 | asset: '[path].gz[query]',
90 | algorithm: 'gzip',
91 | test: new RegExp(
92 | '\\.(' +
93 | config.build.productionGzipExtensions.join('|') +
94 | ')$'
95 | ),
96 | threshold: 10240,
97 | minRatio: 0.8
98 | })
99 | )
100 | }
101 |
102 | module.exports = webpackConfig
103 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 |
4 | module.exports = {
5 | build: {
6 | env: require('./prod.env'),
7 | index: path.resolve(__dirname, '../dist/index.html'),
8 | assetsRoot: path.resolve(__dirname, '../dist'),
9 | assetsSubDirectory: 'static',
10 | assetsPublicPath: '',
11 | productionSourceMap: true,
12 | // Gzip off by default as many popular static hosts such as
13 | // Surge or Netlify already gzip all static assets for you.
14 | // Before setting to `true`, make sure to:
15 | // npm install --save-dev compression-webpack-plugin
16 | productionGzip: false,
17 | productionGzipExtensions: ['js', 'css']
18 | },
19 | dev: {
20 | env: require('./dev.env'),
21 | port: 8080,
22 | assetsSubDirectory: 'static',
23 | assetsPublicPath: '/',
24 | proxyTable: {},
25 | // CSS Sourcemaps off by default because relative paths are "buggy"
26 | // with this option, according to the CSS-Loader README
27 | // (https://github.com/webpack/css-loader#sourcemaps)
28 | // In our experience, they generally work as expected,
29 | // just be aware of this issue when enabling this option.
30 | cssSourceMap: false
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var devEnv = require('./dev.env')
3 |
4 | module.exports = merge(devEnv, {
5 | NODE_ENV: '"testing"'
6 | })
7 |
--------------------------------------------------------------------------------
/dist/index.html:
--------------------------------------------------------------------------------
1 |
vue-template-with-element-ui
--------------------------------------------------------------------------------
/dist/static/fonts/element-icons.a61be9c.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tmpbook/vue-template-with-element-ui/13d43e79116bb32c9dde865e7efcde376a67c821/dist/static/fonts/element-icons.a61be9c.eot
--------------------------------------------------------------------------------
/dist/static/fonts/element-icons.b02bdc1.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tmpbook/vue-template-with-element-ui/13d43e79116bb32c9dde865e7efcde376a67c821/dist/static/fonts/element-icons.b02bdc1.ttf
--------------------------------------------------------------------------------
/dist/static/img/element-icons.09162bc.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
147 |
--------------------------------------------------------------------------------
/dist/static/js/0.d2b7da16b61db3decf6f.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([0,4],[,,,,,,,,,function(t,n,e){t.exports=!e(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,,,,,,,,,,,function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var o=e(92),u=r(o);n.default=u.default||function(t){for(var n=1;n0?r:e)(t)}},function(t,n,e){var r=e(27),o=e(26);t.exports=function(t){return r(o(t))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(24),u=r(o),i=e(17);n.default={computed:(0,u.default)({},(0,i.mapGetters)({users:"unregisterdUsers"})),methods:{registerUser:function(t){this.$store.dispatch("register",t.id)}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(24),u=r(o),i=e(17);n.default={computed:(0,u.default)({},(0,i.mapGetters)({users:"registerdUsers",total:"totalRegistrations"})),methods:{unregisterUser:function(t){this.$store.commit({type:"unregister",userId:t.userId})}}}},,,,,,function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(145),u=r(o),i=e(146),c=r(i);n.default={components:{Register:u.default,UnRegister:c.default}}},function(t,n,e){t.exports={default:e(93),__esModule:!0}},function(t,n,e){e(119),t.exports=e(25).Object.assign},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(29),o=e(115),u=e(114);t.exports=function(t){return function(n,e,i){var c,f=r(n),s=o(f.length),a=u(i,s);if(t&&e!=e){for(;s>a;)if(c=f[a++],c!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===e)return t||a||0;return!t&&-1}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(94);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(12),o=e(11).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(11),o=e(25),u=e(98),i=e(103),c="prototype",f=function(t,n,e){var s,a,l,p=t&f.F,d=t&f.G,v=t&f.S,y=t&f.P,_=t&f.B,h=t&f.W,x=d?o:o[n]||(o[n]={}),b=x[c],g=d?r:v?r[n]:(r[n]||{})[c];d&&(e=n);for(s in e)a=!p&&g&&void 0!==g[s],a&&s in x||(l=a?g[s]:e[s],x[s]=d&&"function"!=typeof g[s]?e[s]:_&&a?u(l,r):h&&g[s]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[c]=t[c],n}(l):y&&"function"==typeof l?u(Function.call,l):l,y&&((x.virtual||(x.virtual={}))[s]=l,t&f.R&&b&&!b[s]&&i(b,s,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(106),o=e(111);t.exports=e(9)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){t.exports=!e(9)&&!e(10)(function(){return 7!=Object.defineProperty(e(99)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){"use strict";var r=e(109),o=e(107),u=e(110),i=e(116),c=e(27),f=Object.assign;t.exports=!f||e(10)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r})?function(t,n){for(var e=i(t),f=arguments.length,s=1,a=o.f,l=u.f;f>s;)for(var p,d=c(arguments[s++]),v=a?r(d).concat(a(d)):r(d),y=v.length,_=0;y>_;)l.call(d,p=v[_++])&&(e[p]=d[p]);return e}:f},function(t,n,e){var r=e(95),o=e(104),u=e(117),i=Object.defineProperty;n.f=e(9)?Object.defineProperty:function(t,n,e){if(r(t),n=u(n,!0),r(e),o)try{return i(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(102),o=e(29),u=e(96)(!1),i=e(112)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,s=[];for(e in c)e!=i&&r(c,e)&&s.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~u(s,e)||s.push(e));return s}},function(t,n,e){var r=e(108),o=e(100);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(113)("keys"),o=e(118);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(11),o="__core-js_shared__",u=r[o]||(r[o]={});t.exports=function(t){return u[t]||(u[t]={})}},function(t,n,e){var r=e(28),o=Math.max,u=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):u(t,n)}},function(t,n,e){var r=e(28),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(26);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(12);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(101);r(r.S+r.F,"Object",{assign:e(105)})},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){var r,o;r=e(84);var u=e(160);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=u.render,o.staticRenderFns=u.staticRenderFns,t.exports=r},function(t,n,e){var r,o;r=e(85);var u=e(161);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=u.render,o.staticRenderFns=u.staticRenderFns,t.exports=r},,,,,,,function(t,n,e){var r,o;r=e(91);var u=e(163);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=u.render,o.staticRenderFns=u.staticRenderFns,t.exports=r},,,,,,,function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("h3",[t._v("未注册用户")]),t._v(" "),t._l(t.users,function(n){return e("div",[e("h4",[t._v(t._s(n.name))]),t._v(" "),e("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){t.registerUser(n)}}},[t._v("注册")]),t._v(" "),e("hr")],1)})],2)},staticRenderFns:[]}},function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("h3",[t._v("已注册用户 ("+t._s(t.total)+")")]),t._v(" "),t._l(t.users,function(n){return e("div",[e("h4",[t._v(t._s(n.name))]),t._v(" "),e("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){t.unregisterUser(n)}}},[t._v("注销")]),t._v(" "),e("hr")],1)})],2)},staticRenderFns:[]}},,function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-around"}},[e("el-col",{attrs:{span:11}},[e("register")],1),t._v(" "),e("el-col",{attrs:{span:11}},[e("un-register")],1)],1)],1)},staticRenderFns:[]}}]);
2 | //# sourceMappingURL=0.d2b7da16b61db3decf6f.js.map
--------------------------------------------------------------------------------
/dist/static/js/0.d2b7da16b61db3decf6f.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///static/js/0.d2b7da16b61db3decf6f.js","webpack:///./~/core-js/library/modules/_descriptors.js","webpack:///./~/core-js/library/modules/_fails.js","webpack:///./~/core-js/library/modules/_global.js","webpack:///./~/core-js/library/modules/_is-object.js","webpack:///./~/babel-runtime/helpers/extends.js","webpack:///./~/core-js/library/modules/_core.js","webpack:///./~/core-js/library/modules/_defined.js","webpack:///./~/core-js/library/modules/_iobject.js","webpack:///./~/core-js/library/modules/_to-integer.js","webpack:///./~/core-js/library/modules/_to-iobject.js","webpack:///Register.vue","webpack:///UnRegister.vue","webpack:///index.vue","webpack:///./~/babel-runtime/core-js/object/assign.js","webpack:///./~/core-js/library/fn/object/assign.js","webpack:///./~/core-js/library/modules/_a-function.js","webpack:///./~/core-js/library/modules/_an-object.js","webpack:///./~/core-js/library/modules/_array-includes.js","webpack:///./~/core-js/library/modules/_cof.js","webpack:///./~/core-js/library/modules/_ctx.js","webpack:///./~/core-js/library/modules/_dom-create.js","webpack:///./~/core-js/library/modules/_enum-bug-keys.js","webpack:///./~/core-js/library/modules/_export.js","webpack:///./~/core-js/library/modules/_has.js","webpack:///./~/core-js/library/modules/_hide.js","webpack:///./~/core-js/library/modules/_ie8-dom-define.js","webpack:///./~/core-js/library/modules/_object-assign.js","webpack:///./~/core-js/library/modules/_object-dp.js","webpack:///./~/core-js/library/modules/_object-gops.js","webpack:///./~/core-js/library/modules/_object-keys-internal.js","webpack:///./~/core-js/library/modules/_object-keys.js","webpack:///./~/core-js/library/modules/_object-pie.js","webpack:///./~/core-js/library/modules/_property-desc.js","webpack:///./~/core-js/library/modules/_shared-key.js","webpack:///./~/core-js/library/modules/_shared.js","webpack:///./~/core-js/library/modules/_to-index.js","webpack:///./~/core-js/library/modules/_to-length.js","webpack:///./~/core-js/library/modules/_to-object.js","webpack:///./~/core-js/library/modules/_to-primitive.js","webpack:///./~/core-js/library/modules/_uid.js","webpack:///./~/core-js/library/modules/es6.object.assign.js","webpack:///./src/components/Register.vue","webpack:///./src/components/UnRegister.vue","webpack:///./src/pages/user/index.vue","webpack:///./src/components/Register.vue?9460","webpack:///./src/components/UnRegister.vue?3b5a","webpack:///./src/pages/user/index.vue?4807"],"names":["webpackJsonp","module","exports","__webpack_require__","Object","defineProperty","get","a","exec","e","global","window","Math","self","Function","__g","it","_interopRequireDefault","obj","__esModule","default","_assign","_assign2","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","core","version","__e","undefined","TypeError","cof","propertyIsEnumerable","split","ceil","floor","isNaN","IObject","defined","value","_extends2","_extends3","_vuex","computed","mapGetters","users","methods","registerUser","user","this","$store","dispatch","id","total","unregisterUser","registration","commit","type","userId","_Register","_Register2","_UnRegister","_UnRegister2","components","Register","UnRegister","assign","isObject","toIObject","toLength","toIndex","IS_INCLUDES","$this","el","fromIndex","O","index","toString","slice","aFunction","fn","that","b","c","apply","document","is","createElement","ctx","hide","PROTOTYPE","$export","name","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","expProto","C","virtual","R","U","dP","createDesc","object","f","getKeys","gOPS","pIE","toObject","$assign","A","Symbol","K","forEach","k","keys","join","T","aLen","getSymbols","isEnum","concat","j","anObject","IE8_DOM_DEFINE","toPrimitive","Attributes","getOwnPropertySymbols","has","arrayIndexOf","IE_PROTO","names","result","push","$keys","enumBugKeys","bitmap","enumerable","configurable","writable","shared","uid","SHARED","store","toInteger","max","min","val","valueOf","px","random","__vue_exports__","__vue_options__","__vue_template__","options","render","staticRenderFns","_vm","_h","$createElement","_c","_self","_v","_l","_s","attrs","size","on","click","$event","staticClass","justify","span"],"mappings":"AAAAA,cAAc,EAAE,IACT,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CAED,SAASC,EAAQC,EAASC,GCVhCF,EAAAC,SAAAC,EAAA,eACA,MAAsE,IAAtEC,OAAAC,kBAAiC,KAAQC,IAAA,WAAgB,YAAaC,KDkBhE,SAASN,EAAQC,GEpBvBD,EAAAC,QAAA,SAAAM,GACA,IACA,QAAAA,IACG,MAAAC,GACH,YF4BM,SAASR,EAAQC,GG/BvB,GAAAQ,GAAAT,EAAAC,QAAA,mBAAAS,gBAAAC,WACAD,OAAA,mBAAAE,YAAAD,WAAAC,KAAAC,SAAA,gBACA,iBAAAC,WAAAL,IHsCM,SAAST,EAAQC,GIzCvBD,EAAAC,QAAA,SAAAc,GACA,sBAAAA,GAAA,OAAAA,EAAA,kBAAAA,KJ+CQ,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CAEF,SAASf,EAAQC,EAASC,GK5DhC,YAQA,SAAAc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AD,IAAAF,CAC1E,OAAAE,GAAA,OAAAA,EAAA,UACAU,YAAA,SACAL,OACAvH,KAAA,OACA6H,QAAA,kBAEGX,EAAA,UACHK,OACAO,KAAA,MAEGZ,EAAA,gBAAAH,EAAAK,GAAA,KAAAF,EAAA,UACHK,OACAO,KAAA,MAEGZ,EAAA,4BACFJ","file":"static/js/0.d2b7da16b61db3decf6f.js","sourcesContent":["webpackJsonp([0,4],[\n/* 0 */,\n/* 1 */,\n/* 2 */,\n/* 3 */,\n/* 4 */,\n/* 5 */,\n/* 6 */,\n/* 7 */,\n/* 8 */,\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Thank's IE8 for his funny defineProperty\n\tmodule.exports = !__webpack_require__(10)(function(){\n\t return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n\t});\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t return typeof it === 'object' ? it !== null : typeof it === 'function';\n\t};\n\n/***/ },\n/* 13 */,\n/* 14 */,\n/* 15 */,\n/* 16 */,\n/* 17 */,\n/* 18 */,\n/* 19 */,\n/* 20 */,\n/* 21 */,\n/* 22 */,\n/* 23 */,\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _assign = __webpack_require__(92);\n\t\n\tvar _assign2 = _interopRequireDefault(_assign);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = _assign2.default || function (target) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t var source = arguments[i];\n\t\n\t for (var key in source) {\n\t if (Object.prototype.hasOwnProperty.call(source, key)) {\n\t target[key] = source[key];\n\t }\n\t }\n\t }\n\t\n\t return target;\n\t};\n\n/***/ },\n/* 25 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '2.4.0'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 26 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(97);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 28 */\n/***/ function(module, exports) {\n\n\t// 7.1.4 ToInteger\n\tvar ceil = Math.ceil\n\t , floor = Math.floor;\n\tmodule.exports = function(it){\n\t return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n\t};\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// to indexed object, toObject with fallback for non-array-like ES3 strings\n\tvar IObject = __webpack_require__(27)\n\t , defined = __webpack_require__(26);\n\tmodule.exports = function(it){\n\t return IObject(defined(it));\n\t};\n\n/***/ },\n/* 30 */,\n/* 31 */,\n/* 32 */,\n/* 33 */,\n/* 34 */,\n/* 35 */,\n/* 36 */,\n/* 37 */,\n/* 38 */,\n/* 39 */,\n/* 40 */,\n/* 41 */,\n/* 42 */,\n/* 43 */,\n/* 44 */,\n/* 45 */,\n/* 46 */,\n/* 47 */,\n/* 48 */,\n/* 49 */,\n/* 50 */,\n/* 51 */,\n/* 52 */,\n/* 53 */,\n/* 54 */,\n/* 55 */,\n/* 56 */,\n/* 57 */,\n/* 58 */,\n/* 59 */,\n/* 60 */,\n/* 61 */,\n/* 62 */,\n/* 63 */,\n/* 64 */,\n/* 65 */,\n/* 66 */,\n/* 67 */,\n/* 68 */,\n/* 69 */,\n/* 70 */,\n/* 71 */,\n/* 72 */,\n/* 73 */,\n/* 74 */,\n/* 75 */,\n/* 76 */,\n/* 77 */,\n/* 78 */,\n/* 79 */,\n/* 80 */,\n/* 81 */,\n/* 82 */,\n/* 83 */,\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _extends2 = __webpack_require__(24);\n\t\n\tvar _extends3 = _interopRequireDefault(_extends2);\n\t\n\tvar _vuex = __webpack_require__(17);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t computed: (0, _extends3.default)({}, (0, _vuex.mapGetters)({\n\t users: 'unregisterdUsers'\n\t })),\n\t methods: {\n\t registerUser: function registerUser(user) {\n\t this.$store.dispatch('register', user.id);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _extends2 = __webpack_require__(24);\n\t\n\tvar _extends3 = _interopRequireDefault(_extends2);\n\t\n\tvar _vuex = __webpack_require__(17);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t computed: (0, _extends3.default)({}, (0, _vuex.mapGetters)({\n\t users: 'registerdUsers',\n\t total: 'totalRegistrations'\n\t })),\n\t methods: {\n\t unregisterUser: function unregisterUser(registration) {\n\t this.$store.commit({\n\t type: 'unregister',\n\t userId: registration.userId\n\t });\n\t }\n\t }\n\t};\n\n/***/ },\n/* 86 */,\n/* 87 */,\n/* 88 */,\n/* 89 */,\n/* 90 */,\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _Register = __webpack_require__(145);\n\t\n\tvar _Register2 = _interopRequireDefault(_Register);\n\t\n\tvar _UnRegister = __webpack_require__(146);\n\t\n\tvar _UnRegister2 = _interopRequireDefault(_UnRegister);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t components: {\n\t Register: _Register2.default,\n\t UnRegister: _UnRegister2.default\n\t }\n\t};\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(93), __esModule: true };\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(119);\n\tmodule.exports = __webpack_require__(25).Object.assign;\n\n/***/ },\n/* 94 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar isObject = __webpack_require__(12);\n\tmodule.exports = function(it){\n\t if(!isObject(it))throw TypeError(it + ' is not an object!');\n\t return it;\n\t};\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// false -> Array#indexOf\n\t// true -> Array#includes\n\tvar toIObject = __webpack_require__(29)\n\t , toLength = __webpack_require__(115)\n\t , toIndex = __webpack_require__(114);\n\tmodule.exports = function(IS_INCLUDES){\n\t return function($this, el, fromIndex){\n\t var O = toIObject($this)\n\t , length = toLength(O.length)\n\t , index = toIndex(fromIndex, length)\n\t , value;\n\t // Array#includes uses SameValueZero equality algorithm\n\t if(IS_INCLUDES && el != el)while(length > index){\n\t value = O[index++];\n\t if(value != value)return true;\n\t // Array#toIndex ignores holes, Array#includes - not\n\t } else for(;length > index; index++)if(IS_INCLUDES || index in O){\n\t if(O[index] === el)return IS_INCLUDES || index || 0;\n\t } return !IS_INCLUDES && -1;\n\t };\n\t};\n\n/***/ },\n/* 97 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\t\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(94);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar isObject = __webpack_require__(12)\n\t , document = __webpack_require__(11).document\n\t // in old IE typeof document.createElement is 'object'\n\t , is = isObject(document) && isObject(document.createElement);\n\tmodule.exports = function(it){\n\t return is ? document.createElement(it) : {};\n\t};\n\n/***/ },\n/* 100 */\n/***/ function(module, exports) {\n\n\t// IE 8- don't enum bug keys\n\tmodule.exports = (\n\t 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n\t).split(',');\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(11)\n\t , core = __webpack_require__(25)\n\t , ctx = __webpack_require__(98)\n\t , hide = __webpack_require__(103)\n\t , PROTOTYPE = 'prototype';\n\t\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , expProto = exports[PROTOTYPE]\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && target[key] !== undefined;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(a, b, c){\n\t if(this instanceof C){\n\t switch(arguments.length){\n\t case 0: return new C;\n\t case 1: return new C(a);\n\t case 2: return new C(a, b);\n\t } return new C(a, b, c);\n\t } return C.apply(this, arguments);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n\t if(IS_PROTO){\n\t (exports.virtual || (exports.virtual = {}))[key] = out;\n\t // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n\t if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);\n\t }\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\t$export.U = 64; // safe\n\t$export.R = 128; // real proto method for `library` \n\tmodule.exports = $export;\n\n/***/ },\n/* 102 */\n/***/ function(module, exports) {\n\n\tvar hasOwnProperty = {}.hasOwnProperty;\n\tmodule.exports = function(it, key){\n\t return hasOwnProperty.call(it, key);\n\t};\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar dP = __webpack_require__(106)\n\t , createDesc = __webpack_require__(111);\n\tmodule.exports = __webpack_require__(9) ? function(object, key, value){\n\t return dP.f(object, key, createDesc(1, value));\n\t} : function(object, key, value){\n\t object[key] = value;\n\t return object;\n\t};\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = !__webpack_require__(9) && !__webpack_require__(10)(function(){\n\t return Object.defineProperty(__webpack_require__(99)('div'), 'a', {get: function(){ return 7; }}).a != 7;\n\t});\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar getKeys = __webpack_require__(109)\n\t , gOPS = __webpack_require__(107)\n\t , pIE = __webpack_require__(110)\n\t , toObject = __webpack_require__(116)\n\t , IObject = __webpack_require__(27)\n\t , $assign = Object.assign;\n\t\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = !$assign || __webpack_require__(10)(function(){\n\t var A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , aLen = arguments.length\n\t , index = 1\n\t , getSymbols = gOPS.f\n\t , isEnum = pIE.f;\n\t while(aLen > index){\n\t var S = IObject(arguments[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t } return T;\n\t} : $assign;\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar anObject = __webpack_require__(95)\n\t , IE8_DOM_DEFINE = __webpack_require__(104)\n\t , toPrimitive = __webpack_require__(117)\n\t , dP = Object.defineProperty;\n\t\n\texports.f = __webpack_require__(9) ? Object.defineProperty : function defineProperty(O, P, Attributes){\n\t anObject(O);\n\t P = toPrimitive(P, true);\n\t anObject(Attributes);\n\t if(IE8_DOM_DEFINE)try {\n\t return dP(O, P, Attributes);\n\t } catch(e){ /* empty */ }\n\t if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');\n\t if('value' in Attributes)O[P] = Attributes.value;\n\t return O;\n\t};\n\n/***/ },\n/* 107 */\n/***/ function(module, exports) {\n\n\texports.f = Object.getOwnPropertySymbols;\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar has = __webpack_require__(102)\n\t , toIObject = __webpack_require__(29)\n\t , arrayIndexOf = __webpack_require__(96)(false)\n\t , IE_PROTO = __webpack_require__(112)('IE_PROTO');\n\t\n\tmodule.exports = function(object, names){\n\t var O = toIObject(object)\n\t , i = 0\n\t , result = []\n\t , key;\n\t for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);\n\t // Don't enum bug & hidden keys\n\t while(names.length > i)if(has(O, key = names[i++])){\n\t ~arrayIndexOf(result, key) || result.push(key);\n\t }\n\t return result;\n\t};\n\n/***/ },\n/* 109 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.14 / 15.2.3.14 Object.keys(O)\n\tvar $keys = __webpack_require__(108)\n\t , enumBugKeys = __webpack_require__(100);\n\t\n\tmodule.exports = Object.keys || function keys(O){\n\t return $keys(O, enumBugKeys);\n\t};\n\n/***/ },\n/* 110 */\n/***/ function(module, exports) {\n\n\texports.f = {}.propertyIsEnumerable;\n\n/***/ },\n/* 111 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(bitmap, value){\n\t return {\n\t enumerable : !(bitmap & 1),\n\t configurable: !(bitmap & 2),\n\t writable : !(bitmap & 4),\n\t value : value\n\t };\n\t};\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar shared = __webpack_require__(113)('keys')\n\t , uid = __webpack_require__(118);\n\tmodule.exports = function(key){\n\t return shared[key] || (shared[key] = uid(key));\n\t};\n\n/***/ },\n/* 113 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(11)\n\t , SHARED = '__core-js_shared__'\n\t , store = global[SHARED] || (global[SHARED] = {});\n\tmodule.exports = function(key){\n\t return store[key] || (store[key] = {});\n\t};\n\n/***/ },\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar toInteger = __webpack_require__(28)\n\t , max = Math.max\n\t , min = Math.min;\n\tmodule.exports = function(index, length){\n\t index = toInteger(index);\n\t return index < 0 ? max(index + length, 0) : min(index, length);\n\t};\n\n/***/ },\n/* 115 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.15 ToLength\n\tvar toInteger = __webpack_require__(28)\n\t , min = Math.min;\n\tmodule.exports = function(it){\n\t return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n\t};\n\n/***/ },\n/* 116 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(26);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 117 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.1 ToPrimitive(input [, PreferredType])\n\tvar isObject = __webpack_require__(12);\n\t// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n\t// and the second argument - flag - preferred type is a string\n\tmodule.exports = function(it, S){\n\t if(!isObject(it))return it;\n\t var fn, val;\n\t if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n\t if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\n\t if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n\t throw TypeError(\"Can't convert object to primitive value\");\n\t};\n\n/***/ },\n/* 118 */\n/***/ function(module, exports) {\n\n\tvar id = 0\n\t , px = Math.random();\n\tmodule.exports = function(key){\n\t return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n\t};\n\n/***/ },\n/* 119 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(101);\n\t\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(105)});\n\n/***/ },\n/* 120 */,\n/* 121 */,\n/* 122 */,\n/* 123 */,\n/* 124 */,\n/* 125 */,\n/* 126 */,\n/* 127 */,\n/* 128 */,\n/* 129 */,\n/* 130 */,\n/* 131 */,\n/* 132 */,\n/* 133 */,\n/* 134 */,\n/* 135 */,\n/* 136 */,\n/* 137 */,\n/* 138 */,\n/* 139 */,\n/* 140 */,\n/* 141 */,\n/* 142 */,\n/* 143 */,\n/* 144 */,\n/* 145 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(84)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(160)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 146 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(85)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(161)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 147 */,\n/* 148 */,\n/* 149 */,\n/* 150 */,\n/* 151 */,\n/* 152 */,\n/* 153 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(91)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(163)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 154 */,\n/* 155 */,\n/* 156 */,\n/* 157 */,\n/* 158 */,\n/* 159 */,\n/* 160 */\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', [_c('h3', [_vm._v(\"未注册用户\")]), _vm._v(\" \"), _vm._l((_vm.users), function(user) {\n\t return _c('div', [_c('h4', [_vm._v(_vm._s(user.name))]), _vm._v(\" \"), _c('el-button', {\n\t attrs: {\n\t \"type\": \"success\",\n\t \"size\": \"small\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.registerUser(user)\n\t }\n\t }\n\t }, [_vm._v(\"注册\")]), _vm._v(\" \"), _c('hr')], 1)\n\t })], 2)\n\t},staticRenderFns: []}\n\n/***/ },\n/* 161 */\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', [_c('h3', [_vm._v(\"已注册用户 (\" + _vm._s(_vm.total) + \")\")]), _vm._v(\" \"), _vm._l((_vm.users), function(user) {\n\t return _c('div', [_c('h4', [_vm._v(_vm._s(user.name))]), _vm._v(\" \"), _c('el-button', {\n\t attrs: {\n\t \"type\": \"danger\",\n\t \"size\": \"small\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.unregisterUser(user)\n\t }\n\t }\n\t }, [_vm._v(\"注销\")]), _vm._v(\" \"), _c('hr')], 1)\n\t })], 2)\n\t},staticRenderFns: []}\n\n/***/ },\n/* 162 */,\n/* 163 */\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', [_c('el-row', {\n\t staticClass: \"row-bg\",\n\t attrs: {\n\t \"type\": \"flex\",\n\t \"justify\": \"space-around\"\n\t }\n\t }, [_c('el-col', {\n\t attrs: {\n\t \"span\": 11\n\t }\n\t }, [_c('register')], 1), _vm._v(\" \"), _c('el-col', {\n\t attrs: {\n\t \"span\": 11\n\t }\n\t }, [_c('un-register')], 1)], 1)], 1)\n\t},staticRenderFns: []}\n\n/***/ }\n]);\n\n\n// WEBPACK FOOTER //\n// static/js/0.d2b7da16b61db3decf6f.js","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_descriptors.js\n// module id = 9\n// module chunks = 0","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_fails.js\n// module id = 10\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_global.js\n// module id = 11\n// module chunks = 0","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_is-object.js\n// module id = 12\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/helpers/extends.js\n// module id = 24\n// module chunks = 0","var core = module.exports = {version: '2.4.0'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_core.js\n// module id = 25\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_defined.js\n// module id = 26\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_iobject.js\n// module id = 27\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-integer.js\n// module id = 28\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject')\n , defined = require('./_defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-iobject.js\n// module id = 29\n// module chunks = 0","\n \n \n
未注册用户
\n
\n
{{ user.name }}
\n 注册\n
\n \n \n
\n\n\n\n\n\n// WEBPACK FOOTER //\n// Register.vue?04871ebd","\n \n \n
已注册用户 ({{ total }})
\n
\n
{{ user.name }}
\n 注销\n
\n \n \n
\n\n\n\n\n\n// WEBPACK FOOTER //\n// UnRegister.vue?190d3f5f","\n \n \n \n \n \n
\n\n\n\n\n\n// WEBPACK FOOTER //\n// index.vue?13e77850","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/babel-runtime/core-js/object/assign.js\n// module id = 92\n// module chunks = 0","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/fn/object/assign.js\n// module id = 93\n// module chunks = 0","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_a-function.js\n// module id = 94\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_an-object.js\n// module id = 95\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject')\n , toLength = require('./_to-length')\n , toIndex = require('./_to-index');\nmodule.exports = function(IS_INCLUDES){\n return function($this, el, fromIndex){\n var O = toIObject($this)\n , length = toLength(O.length)\n , index = toIndex(fromIndex, length)\n , value;\n // Array#includes uses SameValueZero equality algorithm\n if(IS_INCLUDES && el != el)while(length > index){\n value = O[index++];\n if(value != value)return true;\n // Array#toIndex ignores holes, Array#includes - not\n } else for(;length > index; index++)if(IS_INCLUDES || index in O){\n if(O[index] === el)return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_array-includes.js\n// module id = 96\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_cof.js\n// module id = 97\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_ctx.js\n// module id = 98\n// module chunks = 0","var isObject = require('./_is-object')\n , document = require('./_global').document\n // in old IE typeof document.createElement is 'object'\n , is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it){\n return is ? document.createElement(it) : {};\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_dom-create.js\n// module id = 99\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_enum-bug-keys.js\n// module id = 100\n// module chunks = 0","var global = require('./_global')\n , core = require('./_core')\n , ctx = require('./_ctx')\n , hide = require('./_hide')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , expProto = exports[PROTOTYPE]\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(a, b, c){\n if(this instanceof C){\n switch(arguments.length){\n case 0: return new C;\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if(IS_PROTO){\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library` \nmodule.exports = $export;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_export.js\n// module id = 101\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_has.js\n// module id = 102\n// module chunks = 0","var dP = require('./_object-dp')\n , createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function(object, key, value){\n return dP.f(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_hide.js\n// module id = 103\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function(){\n return Object.defineProperty(require('./_dom-create')('div'), 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_ie8-dom-define.js\n// module id = 104\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys')\n , gOPS = require('./_object-gops')\n , pIE = require('./_object-pie')\n , toObject = require('./_to-object')\n , IObject = require('./_iobject')\n , $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function(){\n var A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , aLen = arguments.length\n , index = 1\n , getSymbols = gOPS.f\n , isEnum = pIE.f;\n while(aLen > index){\n var S = IObject(arguments[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n } return T;\n} : $assign;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-assign.js\n// module id = 105\n// module chunks = 0","var anObject = require('./_an-object')\n , IE8_DOM_DEFINE = require('./_ie8-dom-define')\n , toPrimitive = require('./_to-primitive')\n , dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes){\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if(IE8_DOM_DEFINE)try {\n return dP(O, P, Attributes);\n } catch(e){ /* empty */ }\n if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');\n if('value' in Attributes)O[P] = Attributes.value;\n return O;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-dp.js\n// module id = 106\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-gops.js\n// module id = 107\n// module chunks = 0","var has = require('./_has')\n , toIObject = require('./_to-iobject')\n , arrayIndexOf = require('./_array-includes')(false)\n , IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function(object, names){\n var O = toIObject(object)\n , i = 0\n , result = []\n , key;\n for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while(names.length > i)if(has(O, key = names[i++])){\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-keys-internal.js\n// module id = 108\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal')\n , enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O){\n return $keys(O, enumBugKeys);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-keys.js\n// module id = 109\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-pie.js\n// module id = 110\n// module chunks = 0","module.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_property-desc.js\n// module id = 111\n// module chunks = 0","var shared = require('./_shared')('keys')\n , uid = require('./_uid');\nmodule.exports = function(key){\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_shared-key.js\n// module id = 112\n// module chunks = 0","var global = require('./_global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_shared.js\n// module id = 113\n// module chunks = 0","var toInteger = require('./_to-integer')\n , max = Math.max\n , min = Math.min;\nmodule.exports = function(index, length){\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-index.js\n// module id = 114\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-length.js\n// module id = 115\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-object.js\n// module id = 116\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function(it, S){\n if(!isObject(it))return it;\n var fn, val;\n if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\n if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-primitive.js\n// module id = 117\n// module chunks = 0","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_uid.js\n// module id = 118\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./_object-assign')});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/es6.object.assign.js\n// module id = 119\n// module chunks = 0","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./Register.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-4ecd9b12!vue-loader/lib/selector?type=template&index=0!./Register.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Register.vue\n// module id = 145\n// module chunks = 0","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./UnRegister.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-653a8ea0!vue-loader/lib/selector?type=template&index=0!./UnRegister.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/UnRegister.vue\n// module id = 146\n// module chunks = 0","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./index.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-9f274524!vue-loader/lib/selector?type=template&index=0!./index.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/user/index.vue\n// module id = 153\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h3', [_vm._v(\"未注册用户\")]), _vm._v(\" \"), _vm._l((_vm.users), function(user) {\n return _c('div', [_c('h4', [_vm._v(_vm._s(user.name))]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"success\",\n \"size\": \"small\"\n },\n on: {\n \"click\": function($event) {\n _vm.registerUser(user)\n }\n }\n }, [_vm._v(\"注册\")]), _vm._v(\" \"), _c('hr')], 1)\n })], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-4ecd9b12!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/Register.vue\n// module id = 160\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h3', [_vm._v(\"已注册用户 (\" + _vm._s(_vm.total) + \")\")]), _vm._v(\" \"), _vm._l((_vm.users), function(user) {\n return _c('div', [_c('h4', [_vm._v(_vm._s(user.name))]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"danger\",\n \"size\": \"small\"\n },\n on: {\n \"click\": function($event) {\n _vm.unregisterUser(user)\n }\n }\n }, [_vm._v(\"注销\")]), _vm._v(\" \"), _c('hr')], 1)\n })], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-653a8ea0!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/UnRegister.vue\n// module id = 161\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('el-row', {\n staticClass: \"row-bg\",\n attrs: {\n \"type\": \"flex\",\n \"justify\": \"space-around\"\n }\n }, [_c('el-col', {\n attrs: {\n \"span\": 11\n }\n }, [_c('register')], 1), _vm._v(\" \"), _c('el-col', {\n attrs: {\n \"span\": 11\n }\n }, [_c('un-register')], 1)], 1)], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-9f274524!./~/vue-loader/lib/selector.js?type=template&index=0!./src/pages/user/index.vue\n// module id = 163\n// module chunks = 0"],"sourceRoot":""}
--------------------------------------------------------------------------------
/dist/static/js/2.cb0bbb345d0c1b3e367c.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([2,4],{90:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{tableData3:[{date:"2016-05-03",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333},{date:"2016-05-02",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333},{date:"2016-05-04",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333},{date:"2016-05-01",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333},{date:"2016-05-08",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333},{date:"2016-05-06",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333},{date:"2016-05-07",name:"王小虎",province:"上海",city:"普陀区",address:"上海市普陀区金沙江路 1518 弄",detailAddress:"金沙江路 1518 弄",zip:200333}]}}}},152:function(e,t,a){var d,r;d=a(90);var s=a(155);r=d=d||{},"object"!=typeof d.default&&"function"!=typeof d.default||(r=d=d.default),"function"==typeof r&&(r=r.options),r.render=s.render,r.staticRenderFns=s.staticRenderFns,e.exports=d},155:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData3}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:{default:function(t){return[a("p",[e._v("省: "+e._s(t.row.province))]),e._v(" "),a("p",[e._v("市: "+e._s(t.row.city))]),e._v(" "),a("p",[e._v("住址: "+e._s(t.row.detailAddress))]),e._v(" "),a("p",[e._v("邮编: "+e._s(t.row.zip))])]}}}),e._v(" "),a("el-table-column",{attrs:{label:"日期",prop:"date"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}})],1)],1)},staticRenderFns:[]}}});
2 | //# sourceMappingURL=2.cb0bbb345d0c1b3e367c.js.map
--------------------------------------------------------------------------------
/dist/static/js/2.cb0bbb345d0c1b3e367c.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///static/js/2.cb0bbb345d0c1b3e367c.js","webpack:///index.vue?dc47","webpack:///./src/pages/table/index.vue","webpack:///./src/pages/table/index.vue?ec68"],"names":["webpackJsonp","90","module","exports","Object","defineProperty","value","default","data","tableData3","date","name","province","city","address","detailAddress","zip","152","__webpack_require__","__vue_exports__","__vue_options__","__vue_template__","options","render","staticRenderFns","155","_vm","this","_h","$createElement","_c","_self","staticStyle","width","attrs","type","scopedSlots","props","_v","_s","row","label","prop"],"mappings":"AAAAA,cAAc,EAAE,IAEVC,GACA,SAASC,EAAQC,GAEtB,YAEAC,QAAOC,eAAeF,EAAS,cAC7BG,OAAO,IAETH,EAAQI,SACNC,KAAM,WACJ,OACEC,aACEC,KCgBT,aDfSC,KCgBT,MDfSC,SCgBT,KDfSC,KCgBT,MDfSC,QCgBT,oBDfSC,cCgBT,cDfSC,ICgBT,SDdSN,KCgBT,aDfSC,KCgBT,MDfSC,SCgBT,KDfSC,KCgBT,MDfSC,QCgBT,oBDfSC,cCgBT,cDfSC,ICgBT,SDdSN,KCgBT,aDfSC,KCgBT,MDfSC,SCgBT,KDfSC,KCgBT,MDfSC,QCgBT,oBDfSC,cCgBT,cDfSC,ICgBT,SDdSN,KCgBT,aDfSC,KCgBT,MDfSC,S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,GAAA,KAAAR,EAAA,KAAAJ,EAAAY,GAAA,OAAAZ,EAAAa,GAAAF,EAAAG,IAAAxB,aAGGU,EAAAY,GAAA,KAAAR,EAAA,mBACHI,OACAO,MAAA,KACAC,KAAA,UAEGhB,EAAAY,GAAA,KAAAR,EAAA,mBACHI,OACAO,MAAA,KACAC,KAAA,WAEG,QACFlB","file":"static/js/2.cb0bbb345d0c1b3e367c.js","sourcesContent":["webpackJsonp([2,4],{\n\n/***/ 90:\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t data: function data() {\n\t return {\n\t tableData3: [{\n\t date: '2016-05-03',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }, {\n\t date: '2016-05-02',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }, {\n\t date: '2016-05-04',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }, {\n\t date: '2016-05-01',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }, {\n\t date: '2016-05-08',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }, {\n\t date: '2016-05-06',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }, {\n\t date: '2016-05-07',\n\t name: '王小虎',\n\t province: '上海',\n\t city: '普陀区',\n\t address: '上海市普陀区金沙江路 1518 弄',\n\t detailAddress: '金沙江路 1518 弄',\n\t zip: 200333\n\t }]\n\t };\n\t }\n\t};\n\n/***/ },\n\n/***/ 152:\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(90)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(155)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n\n/***/ 155:\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', [_c('el-table', {\n\t staticStyle: {\n\t \"width\": \"100%\"\n\t },\n\t attrs: {\n\t \"data\": _vm.tableData3\n\t }\n\t }, [_c('el-table-column', {\n\t attrs: {\n\t \"type\": \"expand\"\n\t },\n\t scopedSlots: {\n\t default: function(props) {\n\t return [_c('p', [_vm._v(\"省: \" + _vm._s(props.row.province))]), _vm._v(\" \"), _c('p', [_vm._v(\"市: \" + _vm._s(props.row.city))]), _vm._v(\" \"), _c('p', [_vm._v(\"住址: \" + _vm._s(props.row.detailAddress))]), _vm._v(\" \"), _c('p', [_vm._v(\"邮编: \" + _vm._s(props.row.zip))])]\n\t }\n\t }\n\t }), _vm._v(\" \"), _c('el-table-column', {\n\t attrs: {\n\t \"label\": \"日期\",\n\t \"prop\": \"date\"\n\t }\n\t }), _vm._v(\" \"), _c('el-table-column', {\n\t attrs: {\n\t \"label\": \"姓名\",\n\t \"prop\": \"name\"\n\t }\n\t })], 1)], 1)\n\t},staticRenderFns: []}\n\n/***/ }\n\n});\n\n\n// WEBPACK FOOTER //\n// static/js/2.cb0bbb345d0c1b3e367c.js","\n \n
\n \n \n 省: {{ props.row.province }}
\n 市: {{ props.row.city }}
\n 住址: {{ props.row.detailAddress }}
\n 邮编: {{ props.row.zip }}
\n \n \n \n \n \n \n \n\n\n\n\n\n// WEBPACK FOOTER //\n// index.vue?fb7279aa","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./index.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-0fa83621!vue-loader/lib/selector?type=template&index=0!./index.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/table/index.vue\n// module id = 152\n// module chunks = 2","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('el-table', {\n staticStyle: {\n \"width\": \"100%\"\n },\n attrs: {\n \"data\": _vm.tableData3\n }\n }, [_c('el-table-column', {\n attrs: {\n \"type\": \"expand\"\n },\n scopedSlots: {\n default: function(props) {\n return [_c('p', [_vm._v(\"省: \" + _vm._s(props.row.province))]), _vm._v(\" \"), _c('p', [_vm._v(\"市: \" + _vm._s(props.row.city))]), _vm._v(\" \"), _c('p', [_vm._v(\"住址: \" + _vm._s(props.row.detailAddress))]), _vm._v(\" \"), _c('p', [_vm._v(\"邮编: \" + _vm._s(props.row.zip))])]\n }\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"label\": \"日期\",\n \"prop\": \"date\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"label\": \"姓名\",\n \"prop\": \"name\"\n }\n })], 1)], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-0fa83621!./~/vue-loader/lib/selector.js?type=template&index=0!./src/pages/table/index.vue\n// module id = 155\n// module chunks = 2"],"sourceRoot":""}
--------------------------------------------------------------------------------
/dist/static/js/3.0674de2e8edeebebe0c6.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([3,4],{88:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{activeName:"1"}}}},150:function(e,t,i){var a,n;a=i(88);var v=i(156);n=a=a||{},"object"!=typeof a.default&&"function"!=typeof a.default||(n=a=a.default),"function"==typeof n&&(n=n.options),n.render=v.render,n.staticRenderFns=v.staticRenderFns,e.exports=a},156:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-collapse",{directives:[{name:"model",rawName:"v-model",value:e.activeName,expression:"activeName"}],attrs:{accordion:""},domProps:{value:e.activeName},on:{input:function(t){e.activeName=t}}},[i("el-collapse-item",{attrs:{title:"一致性 Consistency",name:"1"}},[i("div",[e._v("与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;")]),e._v(" "),i("div",[e._v("在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。")])]),e._v(" "),i("el-collapse-item",{attrs:{title:"反馈 Feedback",name:"2"}},[i("div",[e._v("控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;")]),e._v(" "),i("div",[e._v("页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。")])]),e._v(" "),i("el-collapse-item",{attrs:{title:"效率 Efficiency",name:"3"}},[i("div",[e._v("简化流程:设计简洁直观的操作流程;")]),e._v(" "),i("div",[e._v("清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;")]),e._v(" "),i("div",[e._v("帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。")])]),e._v(" "),i("el-collapse-item",{attrs:{title:"可控 Controllability",name:"4"}},[i("div",[e._v("用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;")]),e._v(" "),i("div",[e._v("结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。")])])],1)],1)},staticRenderFns:[]}}});
2 | //# sourceMappingURL=3.0674de2e8edeebebe0c6.js.map
--------------------------------------------------------------------------------
/dist/static/js/3.0674de2e8edeebebe0c6.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///static/js/3.0674de2e8edeebebe0c6.js","webpack:///home.vue","webpack:///./src/pages/home/home.vue","webpack:///./src/pages/home/home.vue?8522"],"names":["webpackJsonp","88","module","exports","Object","defineProperty","value","default","data","activeName","150","__webpack_require__","__vue_exports__","__vue_options__","__vue_template__","options","render","staticRenderFns","156","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","expression","attrs","accordion","domProps","on","input","$event","title","_v"],"mappings":"AAAAA,cAAc,EAAE,IAEVC,GACA,SAASC,EAAQC,GAEtB,YAEAC,QAAOC,eAAeF,EAAS,cAC7BG,OAAO,IAETH,EAAQI,SACNC,KAAM,WACJ,OACEC,WCeP,QDRMC,IACA,SAASR,EAAQC,EAASQ,GErBhC,GAAAC,GAAAC,CAIAD,GAAAD,EAAA,GAGA,IAAAG,GAAAH,EAAA,IACAE,GAAAD,QAEA,gBAAAA,GAAAL,SACA,kBAAAK,GAAAL,UAEAM,EAAAD,IAAAL,SAEA,kBAAAM,KACAA,IAAAE,SAGAF,EAAAG,OAAAF,EAAAE,OACAH,EAAAI,gBAAAH,EAAAG,gBAEAf,EAAAC,QAAAS,GF4BMM,IACA,SAAShB,EAAQC,GGnDvBD,EAAAC,SAAgBa,OAAA,WAAmB,GAAAG,GAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,CAC1E,OAAAE,GAAA,OAAAA,EAAA,eACAE,aACAC,KAAA,QACAC,QAAA,UACArB,MAAAa,EAAA,WACAS,WAAA,eAEAC,OACAC,UAAA,IAEAC,UACAzB,MAAAa,EAAA,YAEAa,IACAC,MAAA,SAAAC,GACAf,EAAAV,WAAAyB,MAGGX,EAAA,oBACHM,OACAM,MAAA,kBACAT,KAAA,OAEGH,EAAA,OAAAJ,EAAAiB,GAAA,2CAAAjB,EAAAiB,GAAA,KAAAb,EAAA,OAAAJ,EAAAiB,GAAA,kDAAAjB,EAAAiB,GAAA,KAAAb,EAAA,oBACHM,OACAM,MAAA,cACAT,KAAA,OAEGH,EAAA,OAAAJ,EAAAiB,GAAA,sCAAAjB,EAAAiB,GAAA,KAAAb,EAAA,OAAAJ,EAAAiB,GAAA,oCAAAjB,EAAAiB,GAAA,KAAAb,EAAA,oBACHM,OACAM,MAAA,gBACAT,KAAA,OAEGH,EAAA,OAAAJ,EAAAiB,GAAA,uBAAAjB,EAAAiB,GAAA,KAAAb,EAAA,OAAAJ,EAAAiB,GAAA,qCAAAjB,EAAAiB,GAAA,KAAAb,EAAA,OAAAJ,EAAAiB,GAAA,2CAAAjB,EAAAiB,GAAA,KAAAb,EAAA,oBACHM,OACAM,MAAA,qBACAT,KAAA,OAEGH,EAAA,OAAAJ,EAAAiB,GAAA,0CAAAjB,EAAAiB,GAAA,KAAAb,EAAA,OAAAJ,EAAAiB,GAAA,kDACFnB","file":"static/js/3.0674de2e8edeebebe0c6.js","sourcesContent":["webpackJsonp([3,4],{\n\n/***/ 88:\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t data: function data() {\n\t return {\n\t activeName: '1'\n\t };\n\t }\n\t};\n\n/***/ },\n\n/***/ 150:\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(88)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(156)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n\n/***/ 156:\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', [_c('el-collapse', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.activeName),\n\t expression: \"activeName\"\n\t }],\n\t attrs: {\n\t \"accordion\": \"\"\n\t },\n\t domProps: {\n\t \"value\": (_vm.activeName)\n\t },\n\t on: {\n\t \"input\": function($event) {\n\t _vm.activeName = $event\n\t }\n\t }\n\t }, [_c('el-collapse-item', {\n\t attrs: {\n\t \"title\": \"一致性 Consistency\",\n\t \"name\": \"1\"\n\t }\n\t }, [_c('div', [_vm._v(\"与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。\")])]), _vm._v(\" \"), _c('el-collapse-item', {\n\t attrs: {\n\t \"title\": \"反馈 Feedback\",\n\t \"name\": \"2\"\n\t }\n\t }, [_c('div', [_vm._v(\"控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。\")])]), _vm._v(\" \"), _c('el-collapse-item', {\n\t attrs: {\n\t \"title\": \"效率 Efficiency\",\n\t \"name\": \"3\"\n\t }\n\t }, [_c('div', [_vm._v(\"简化流程:设计简洁直观的操作流程;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。\")])]), _vm._v(\" \"), _c('el-collapse-item', {\n\t attrs: {\n\t \"title\": \"可控 Controllability\",\n\t \"name\": \"4\"\n\t }\n\t }, [_c('div', [_vm._v(\"用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。\")])])], 1)], 1)\n\t},staticRenderFns: []}\n\n/***/ }\n\n});\n\n\n// WEBPACK FOOTER //\n// static/js/3.0674de2e8edeebebe0c6.js","\n \n
\n \n 与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;
\n 在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。
\n \n \n 控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;
\n 页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。
\n \n \n 简化流程:设计简洁直观的操作流程;
\n 清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;
\n 帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。
\n \n \n 用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;
\n 结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。
\n \n \n\n\n\n\n// WEBPACK FOOTER //\n// home.vue?6be3b53c","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./home.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-1fbc61df!vue-loader/lib/selector?type=template&index=0!./home.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/home/home.vue\n// module id = 150\n// module chunks = 3","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('el-collapse', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.activeName),\n expression: \"activeName\"\n }],\n attrs: {\n \"accordion\": \"\"\n },\n domProps: {\n \"value\": (_vm.activeName)\n },\n on: {\n \"input\": function($event) {\n _vm.activeName = $event\n }\n }\n }, [_c('el-collapse-item', {\n attrs: {\n \"title\": \"一致性 Consistency\",\n \"name\": \"1\"\n }\n }, [_c('div', [_vm._v(\"与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。\")])]), _vm._v(\" \"), _c('el-collapse-item', {\n attrs: {\n \"title\": \"反馈 Feedback\",\n \"name\": \"2\"\n }\n }, [_c('div', [_vm._v(\"控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。\")])]), _vm._v(\" \"), _c('el-collapse-item', {\n attrs: {\n \"title\": \"效率 Efficiency\",\n \"name\": \"3\"\n }\n }, [_c('div', [_vm._v(\"简化流程:设计简洁直观的操作流程;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。\")])]), _vm._v(\" \"), _c('el-collapse-item', {\n attrs: {\n \"title\": \"可控 Controllability\",\n \"name\": \"4\"\n }\n }, [_c('div', [_vm._v(\"用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;\")]), _vm._v(\" \"), _c('div', [_vm._v(\"结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。\")])])], 1)], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-1fbc61df!./~/vue-loader/lib/selector.js?type=template&index=0!./src/pages/home/home.vue\n// module id = 156\n// module chunks = 3"],"sourceRoot":""}
--------------------------------------------------------------------------------
/dist/static/js/app.790d4bd29225505b7c20.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([6,4],{0:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n(138),n(137);var s=n(126),i=r(s),a=n(4),u=r(a),o=n(164),l=r(o),c=n(144),d=r(c),f=n(78),p=r(f),v=n(82);u.default.use(i.default),u.default.use(l.default);var _=new l.default({routes:p.default});new u.default({store:v.store,router:_,el:"#app",template:"",components:{App:d.default}})},78:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=[{path:"/",component:function(t){return n.e(3,function(e){var n=[e(150)];t.apply(null,n)}.bind(this))}},{path:"/question",component:function(t){return n.e(1,function(e){var n=[e(151)];t.apply(null,n)}.bind(this))}},{path:"/user",component:function(t){return n.e(0,function(e){var n=[e(153)];t.apply(null,n)}.bind(this))}},{path:"/table",component:function(t){return n.e(2,function(e){var n=[e(152)];t.apply(null,n)}.bind(this))}}]},79:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={register:function(t,e){var n=t.commit;setTimeout(function(){n("register",e)},500)}}},80:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={unregisterdUsers:function(t){return t.users.filter(function(t){return!t.registered})},registerdUsers:function(t){return t.registrations},totalRegistrations:function(t){return t.registrations.length}}},81:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={register:function(t,e){var n=new Date,r=t.users.find(function(t){return t.id===e});r.registered=!0;var s={userId:e,name:r.name,date:n.getMonth()+"/"+n.getDay()};t.registrations.push(s)},unregister:function(t,e){var n=t.users.find(function(t){return t.id===e.userId});n.registered=!1;var r=t.registrations.find(function(t){return t.userId===e.userId});t.registrations.splice(t.registrations.indexOf(r),1)}}},82:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.store=void 0;var s=n(4),i=r(s),a=n(17),u=r(a),o=n(80),l=r(o),c=n(81),d=r(c),f=n(79),p=r(f);i.default.use(u.default);var v={users:[{id:1,name:"Kevin",registered:!1},{id:3,name:"Aqua",registered:!1},{id:2,name:"Jim",registered:!1}],registrations:[]};e.store=new u.default.Store({state:v,getters:l.default,mutations:d.default,actions:p.default})},83:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),n(139);var s=n(148),i=r(s),a=n(147),u=r(a);e.default={name:"app",components:{NavMenu:i.default,Container:u.default}}},86:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=n(149),i=r(s);e.default={components:{TopBar:i.default}}},87:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{avatar_url:"http://img0.imgtn.bdimg.com/it/u=1787407765,2524017231&fm=11&gp=0.jpg"}},methods:{signOut:function(){console.log("退出登录")}}}},137:function(t,e){},138:function(t,e){},139:function(t,e){},141:function(t,e){},144:function(t,e,n){var r,s;r=n(83);var i=n(154);s=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(s=r=r.default),"function"==typeof s&&(s=s.options),s.render=i.render,s.staticRenderFns=i.staticRenderFns,t.exports=r},147:function(t,e,n){var r,s;n(141),r=n(86);var i=n(162);s=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(s=r=r.default),"function"==typeof s&&(s=s.options),s.render=i.render,s.staticRenderFns=i.staticRenderFns,t.exports=r},148:function(t,e,n){var r,s,i=n(158);s=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(s=r=r.default),"function"==typeof s&&(s=s.options),s.render=i.render,s.staticRenderFns=i.staticRenderFns,t.exports=r},149:function(t,e,n){var r,s;r=n(87);var i=n(159);s=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(s=r=r.default),"function"==typeof s&&(s=s.options),s.render=i.render,s.staticRenderFns=i.staticRenderFns,t.exports=r},154:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("NavMenu"),t._v(" "),n("Container")],1)},staticRenderFns:[]}},158:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-menu",{attrs:{"default-active":"1",id:"nav-menu",theme:"dark"}},[n("div",{staticClass:"logo"},[n("router-link",{attrs:{to:"/"}},[n("p",[t._v("tmpbook")])])],1),t._v(" "),n("el-submenu",{attrs:{index:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"el-icon-plus"}),t._v("导航一")]),t._v(" "),n("el-menu-item",{attrs:{index:"1-1"}},[n("router-link",{staticClass:"nav-link",attrs:{to:"/question"}},[n("i",{staticClass:"el-icon-document"}),t._v("Ajax Demo")])],1),t._v(" "),n("el-menu-item",{attrs:{index:"1-2"}},[n("router-link",{staticClass:"nav-link",attrs:{to:"/user"}},[n("i",{staticClass:"el-icon-document"}),t._v("Vuex(User)")])],1)],2),t._v(" "),n("el-menu-item",{attrs:{index:"2"}},[n("router-link",{staticClass:"nav-link",attrs:{to:"/table"}},[n("i",{staticClass:"el-icon-document"}),t._v("表格")])],1)],1)},staticRenderFns:[]}},159:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-row",{staticClass:"top-bar"},[n("div",{staticClass:"top-wrapper"},[n("div",{staticClass:"user-area pull-right"},[n("div",{staticClass:"user-avatar"},[n("span",{staticClass:"avatar-img",style:{backgroundImage:"url("+t.avatar_url+")"}}),t._v(" "),n("i",{staticClass:"el-icon-arrow-down"}),t._v(" "),n("div",{staticClass:"drop-menu"},[n("ul",[n("li",[n("i",{staticClass:"iconfont"},[t._v("")]),t._v("管理员")]),t._v(" "),n("li",{on:{click:t.signOut}},[n("i",{staticClass:"iconfont"},[t._v("")]),t._v("退出")])])])])]),t._v(" "),n("el-col",{staticClass:"search-area pull-right",attrs:{span:8}},[n("el-form",[n("el-form-item",[n("i",{staticClass:"el-icon-search"}),t._v(" "),n("el-input",{attrs:{placeholder:"搜索"}})],1)],1)],1)],1)])},staticRenderFns:[]}},162:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"container"}},[n("TopBar"),t._v(" "),n("transition",{attrs:{name:"slide-fade"}},[n("router-view",{staticClass:"content"})],1)],1)},staticRenderFns:[]}}});
2 | //# sourceMappingURL=app.790d4bd29225505b7c20.js.map
--------------------------------------------------------------------------------
/dist/static/js/app.790d4bd29225505b7c20.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///static/js/app.790d4bd29225505b7c20.js","webpack:///./src/main.js","webpack:///./src/routes.js","webpack:///./src/store/actions.js","webpack:///./src/store/getters.js","webpack:///./src/store/mutations.js","webpack:///./src/store/store.js","webpack:///App.vue","webpack:///Container.vue","webpack:///TopBar.vue","webpack:///./src/App.vue","webpack:///./src/components/common/Container.vue","webpack:///./src/components/common/NavMenu.vue","webpack:///./src/components/common/TopBar.vue","webpack:///./src/App.vue?16a9","webpack:///./src/components/common/NavMenu.vue?4e61","webpack:///./src/components/common/TopBar.vue?e157","webpack:///./src/components/common/Container.vue?e64a"],"names":["webpackJsonp","0","module","exports","__webpack_require__","_interopRequireDefault","obj","__esModule","default","_elementUi","_elementUi2","_vue","_vue2","_vueRouter","_vueRouter2","_App","_App2","_routes","_routes2","_store","use","router","routes","store","el","template","components","App","78","Object","defineProperty","value","path","component","resolve","e","__WEBPACK_AMD_REQUIRE_ARRAY__","apply","bind","this","79","register","_ref","userId","commit","setTimeout","80","unregisterdUsers","state","users","filter","user","registered","registerdUsers","registrations","totalRegistrations","length","81","date","Date","find","id","registration","name","getMonth","getDay","push","unregister","payload","splice","indexOf","82","undefined","_vuex","_vuex2","_getters","_getters2","_mutations","_mutations2","_actions","_actions2","Store","getters","mutations","actions","83","_NavMenu","_NavMenu2","_Container","_Container2","NavMenu","Container","86","_TopBar","_TopBar2","TopBar","87","data","avatar_url","methods","signOut","console","log","137","138","139","141","144","__vue_exports__","__vue_options__","__vue_template__","options","render","staticRenderFns","147","148","149","154","_vm","_h","$createElement","_c","_self","attrs","_v","158","default-active","theme","staticClass","to","index","slot","159","style","backgroundImage","on","click","span","placeholder","162"],"mappings":"AAAAA,cAAc,EAAE,IAEVC,EACA,SAASC,EAAQC,EAASC,GAE/B,YA4BA,SAASC,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GC/BxFF,EAAA,KACAA,EAAA,IACA,IAAAK,GAAAL,EAAA,KDSKM,EAAcL,EAAuBI,GCR1CE,EAAAP,EAAA,GDYKQ,EAAQP,EAAuBM,GCXpCE,EAAAT,EAAA,KDeKU,EAAcT,EAAuBQ,GCd1CE,EAAAX,EAAA,KDkBKY,EAAQX,EAAuBU,GCjBpCE,EAAAb,EAAA,IDq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OACHO,YAAA,yBACGP,EAAA,OACHO,YAAA,gBACGP,EAAA,QACHO,YAAA,aACAK,OACAC,gBAAA,OAAAhB,EAAApB,WAAA,OAEGoB,EAAAM,GAAA,KAAAH,EAAA,KACHO,YAAA,uBACGV,EAAAM,GAAA,KAAAH,EAAA,OACHO,YAAA,cACGP,EAAA,MAAAA,EAAA,MAAAA,EAAA,KACHO,YAAA,aACGV,EAAAM,GAAA,OAAAN,EAAAM,GAAA,SAAAN,EAAAM,GAAA,KAAAH,EAAA,MACHc,IACAC,MAAAlB,EAAAlB,WAEGqB,EAAA,KACHO,YAAA,aACGV,EAAAM,GAAA,OAAAN,EAAAM,GAAA,gBAAAN,EAAAM,GAAA,KAAAH,EAAA,UACHO,YAAA,yBACAL,OACAc,KAAA,KAEGhB,EAAA,WAAAA,EAAA,gBAAAA,EAAA,KACHO,YAAA,mBACGV,EAAAM,GAAA,KAAAH,EAAA,YACHE,OACAe,YAAA,SAEG,kBACFzB,qBhBwgBK0B,IACA,SAASzI,EAAQC,GiB/iBvBD,EAAAC,SAAgB6G,OAAA,WAAmB,GAAAM,GAAA/E,KAAagF,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,CAC1E,OAAAE,GAAA,OACAE,OACA9D,GAAA,eAEG4D,EAAA,UAAAH,EAAAM,GAAA,KAAAH,EAAA,cACHE,OACA5D,KAAA,gBAEG0D,EAAA,eACHO,YAAA,aACG,QACFf","file":"static/js/app.790d4bd29225505b7c20.js","sourcesContent":["webpackJsonp([6,4],{\n\n/***/ 0:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(138);\n\t\n\t__webpack_require__(137);\n\t\n\tvar _elementUi = __webpack_require__(126);\n\t\n\tvar _elementUi2 = _interopRequireDefault(_elementUi);\n\t\n\tvar _vue = __webpack_require__(4);\n\t\n\tvar _vue2 = _interopRequireDefault(_vue);\n\t\n\tvar _vueRouter = __webpack_require__(164);\n\t\n\tvar _vueRouter2 = _interopRequireDefault(_vueRouter);\n\t\n\tvar _App = __webpack_require__(144);\n\t\n\tvar _App2 = _interopRequireDefault(_App);\n\t\n\tvar _routes = __webpack_require__(78);\n\t\n\tvar _routes2 = _interopRequireDefault(_routes);\n\t\n\tvar _store = __webpack_require__(82);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t_vue2.default.use(_elementUi2.default);\n\t_vue2.default.use(_vueRouter2.default);\n\t\n\tvar router = new _vueRouter2.default({\n\t routes: _routes2.default\n\t});\n\t\n\tnew _vue2.default({\n\t store: _store.store,\n\t router: router,\n\t el: '#app',\n\t template: '',\n\t components: { App: _App2.default }\n\t});\n\n/***/ },\n\n/***/ 78:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = [{\n\t path: '/',\n\t component: function component(resolve) {\n\t return __webpack_require__.e/* require */(3, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(150)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this));\n\t }\n\t}, {\n\t path: '/question',\n\t component: function component(resolve) {\n\t return __webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(151)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this));\n\t }\n\t}, {\n\t path: '/user',\n\t component: function component(resolve) {\n\t return __webpack_require__.e/* require */(0, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(153)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this));\n\t }\n\t}, {\n\t path: '/table',\n\t component: function component(resolve) {\n\t return __webpack_require__.e/* require */(2, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(152)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this));\n\t }\n\t}];\n\n/***/ },\n\n/***/ 79:\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t register: function register(_ref, userId) {\n\t var commit = _ref.commit;\n\t\n\t setTimeout(function () {\n\t commit('register', userId);\n\t }, 500);\n\t }\n\t};\n\n/***/ },\n\n/***/ 80:\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t unregisterdUsers: function unregisterdUsers(state) {\n\t return state.users.filter(function (user) {\n\t return !user.registered;\n\t });\n\t },\n\t registerdUsers: function registerdUsers(state) {\n\t return state.registrations;\n\t },\n\t totalRegistrations: function totalRegistrations(state) {\n\t return state.registrations.length;\n\t }\n\t};\n\n/***/ },\n\n/***/ 81:\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t register: function register(state, userId) {\n\t var date = new Date();\n\t var user = state.users.find(function (user) {\n\t return user.id === userId;\n\t });\n\t user.registered = true;\n\t var registration = {\n\t userId: userId,\n\t name: user.name,\n\t date: date.getMonth() + '/' + date.getDay()\n\t };\n\t state.registrations.push(registration);\n\t },\n\t unregister: function unregister(state, payload) {\n\t var user = state.users.find(function (user) {\n\t return user.id === payload.userId;\n\t });\n\t user.registered = false;\n\t var registration = state.registrations.find(function (registration) {\n\t return registration.userId === payload.userId;\n\t });\n\t state.registrations.splice(state.registrations.indexOf(registration), 1);\n\t }\n\t};\n\n/***/ },\n\n/***/ 82:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.store = undefined;\n\t\n\tvar _vue = __webpack_require__(4);\n\t\n\tvar _vue2 = _interopRequireDefault(_vue);\n\t\n\tvar _vuex = __webpack_require__(17);\n\t\n\tvar _vuex2 = _interopRequireDefault(_vuex);\n\t\n\tvar _getters = __webpack_require__(80);\n\t\n\tvar _getters2 = _interopRequireDefault(_getters);\n\t\n\tvar _mutations = __webpack_require__(81);\n\t\n\tvar _mutations2 = _interopRequireDefault(_mutations);\n\t\n\tvar _actions = __webpack_require__(79);\n\t\n\tvar _actions2 = _interopRequireDefault(_actions);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t_vue2.default.use(_vuex2.default);\n\t\n\tvar state = {\n\t users: [{ id: 1, name: 'Kevin', registered: false }, { id: 3, name: 'Aqua', registered: false }, { id: 2, name: 'Jim', registered: false }],\n\t registrations: []\n\t};\n\t\n\tvar store = exports.store = new _vuex2.default.Store({\n\t state: state,\n\t getters: _getters2.default,\n\t mutations: _mutations2.default,\n\t actions: _actions2.default\n\t});\n\n/***/ },\n\n/***/ 83:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\t__webpack_require__(139);\n\t\n\tvar _NavMenu = __webpack_require__(148);\n\t\n\tvar _NavMenu2 = _interopRequireDefault(_NavMenu);\n\t\n\tvar _Container = __webpack_require__(147);\n\t\n\tvar _Container2 = _interopRequireDefault(_Container);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t name: 'app',\n\t components: {\n\t NavMenu: _NavMenu2.default,\n\t Container: _Container2.default\n\t }\n\t};\n\n/***/ },\n\n/***/ 86:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _TopBar = __webpack_require__(149);\n\t\n\tvar _TopBar2 = _interopRequireDefault(_TopBar);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t components: {\n\t TopBar: _TopBar2.default\n\t }\n\t};\n\n/***/ },\n\n/***/ 87:\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t data: function data() {\n\t return {\n\t avatar_url: 'http://img0.imgtn.bdimg.com/it/u=1787407765,2524017231&fm=11&gp=0.jpg'\n\t };\n\t },\n\t\n\t methods: {\n\t signOut: function signOut() {\n\t console.log('退出登录');\n\t }\n\t }\n\t};\n\n/***/ },\n\n/***/ 137:\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n\n/***/ 138:\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n\n/***/ 139:\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n\n/***/ 141:\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n\n/***/ 144:\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(83)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(154)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n\n/***/ 147:\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(141)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(86)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(162)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n\n/***/ 148:\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(158)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n\n/***/ 149:\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(87)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(159)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n\n/***/ 154:\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', {\n\t attrs: {\n\t \"id\": \"app\"\n\t }\n\t }, [_c('NavMenu'), _vm._v(\" \"), _c('Container')], 1)\n\t},staticRenderFns: []}\n\n/***/ },\n\n/***/ 158:\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('el-menu', {\n\t attrs: {\n\t \"default-active\": \"1\",\n\t \"id\": \"nav-menu\",\n\t \"theme\": \"dark\"\n\t }\n\t }, [_c('div', {\n\t staticClass: \"logo\"\n\t }, [_c('router-link', {\n\t attrs: {\n\t \"to\": \"/\"\n\t }\n\t }, [_c('p', [_vm._v(\"tmpbook\")])])], 1), _vm._v(\" \"), _c('el-submenu', {\n\t attrs: {\n\t \"index\": \"1\"\n\t }\n\t }, [_c('template', {\n\t slot: \"title\"\n\t }, [_c('i', {\n\t staticClass: \"el-icon-plus\"\n\t }), _vm._v(\"导航一\")]), _vm._v(\" \"), _c('el-menu-item', {\n\t attrs: {\n\t \"index\": \"1-1\"\n\t }\n\t }, [_c('router-link', {\n\t staticClass: \"nav-link\",\n\t attrs: {\n\t \"to\": \"/question\"\n\t }\n\t }, [_c('i', {\n\t staticClass: \"el-icon-document\"\n\t }), _vm._v(\"Ajax Demo\")])], 1), _vm._v(\" \"), _c('el-menu-item', {\n\t attrs: {\n\t \"index\": \"1-2\"\n\t }\n\t }, [_c('router-link', {\n\t staticClass: \"nav-link\",\n\t attrs: {\n\t \"to\": \"/user\"\n\t }\n\t }, [_c('i', {\n\t staticClass: \"el-icon-document\"\n\t }), _vm._v(\"Vuex(User)\")])], 1)], 2), _vm._v(\" \"), _c('el-menu-item', {\n\t attrs: {\n\t \"index\": \"2\"\n\t }\n\t }, [_c('router-link', {\n\t staticClass: \"nav-link\",\n\t attrs: {\n\t \"to\": \"/table\"\n\t }\n\t }, [_c('i', {\n\t staticClass: \"el-icon-document\"\n\t }), _vm._v(\"表格\")])], 1)], 1)\n\t},staticRenderFns: []}\n\n/***/ },\n\n/***/ 159:\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('el-row', {\n\t staticClass: \"top-bar\"\n\t }, [_c('div', {\n\t staticClass: \"top-wrapper\"\n\t }, [_c('div', {\n\t staticClass: \"user-area pull-right\"\n\t }, [_c('div', {\n\t staticClass: \"user-avatar\"\n\t }, [_c('span', {\n\t staticClass: \"avatar-img\",\n\t style: ({\n\t backgroundImage: 'url(' + _vm.avatar_url + ')'\n\t })\n\t }), _vm._v(\" \"), _c('i', {\n\t staticClass: \"el-icon-arrow-down\"\n\t }), _vm._v(\" \"), _c('div', {\n\t staticClass: \"drop-menu\"\n\t }, [_c('ul', [_c('li', [_c('i', {\n\t staticClass: \"iconfont\"\n\t }, [_vm._v(\"\")]), _vm._v(\"管理员\")]), _vm._v(\" \"), _c('li', {\n\t on: {\n\t \"click\": _vm.signOut\n\t }\n\t }, [_c('i', {\n\t staticClass: \"iconfont\"\n\t }, [_vm._v(\"\")]), _vm._v(\"退出\")])])])])]), _vm._v(\" \"), _c('el-col', {\n\t staticClass: \"search-area pull-right\",\n\t attrs: {\n\t \"span\": 8\n\t }\n\t }, [_c('el-form', [_c('el-form-item', [_c('i', {\n\t staticClass: \"el-icon-search\"\n\t }), _vm._v(\" \"), _c('el-input', {\n\t attrs: {\n\t \"placeholder\": \"搜索\"\n\t }\n\t })], 1)], 1)], 1)], 1)])\n\t},staticRenderFns: []}\n\n/***/ },\n\n/***/ 162:\n/***/ function(module, exports) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n\t return _c('div', {\n\t attrs: {\n\t \"id\": \"container\"\n\t }\n\t }, [_c('TopBar'), _vm._v(\" \"), _c('transition', {\n\t attrs: {\n\t \"name\": \"slide-fade\"\n\t }\n\t }, [_c('router-view', {\n\t staticClass: \"content\"\n\t })], 1)], 1)\n\t},staticRenderFns: []}\n\n/***/ }\n\n});\n\n\n// WEBPACK FOOTER //\n// static/js/app.790d4bd29225505b7c20.js","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport 'normalize.css'\nimport 'element-ui/lib/theme-default/index.css'\nimport Element from 'element-ui'\nimport Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport App from './App'\nimport routes from './routes'\nimport { store } from './store/store'\n\nVue.use(Element)\nVue.use(VueRouter)\n\nconst router = new VueRouter({\n routes\n})\n\n/* eslint-disable no-new */\nnew Vue({\n store,\n router,\n el: '#app',\n template: '',\n components: { App }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","export default [\n {\n path: '/',\n component: resolve => require(['./pages/home/home.vue'], resolve)\n },\n {\n path: '/question',\n component: resolve => require(['./pages/question/question'], resolve)\n },\n {\n path: '/user',\n component: resolve => require(['./pages/user'], resolve)\n },\n {\n path: '/table',\n component: resolve => require(['./pages/table'], resolve)\n }\n]\n\n\n\n// WEBPACK FOOTER //\n// ./src/routes.js","export default {\n register ({ commit }, userId) {\n setTimeout(() => {\n commit('register', userId)\n }, 500)\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/actions.js","export default {\n unregisterdUsers (state) {\n return state.users.filter(user => {\n return !user.registered\n })\n },\n registerdUsers (state) {\n return state.registrations\n },\n totalRegistrations (state) {\n return state.registrations.length\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/getters.js","export default {\n register (state, userId) {\n const date = new Date()\n const user = state.users.find(user => {\n return user.id === userId\n })\n user.registered = true\n const registration = {\n userId: userId,\n name: user.name,\n date: date.getMonth() + '/' + date.getDay()\n }\n state.registrations.push(registration)\n },\n unregister (state, payload) {\n const user = state.users.find(user => {\n return user.id === payload.userId\n })\n user.registered = false\n const registration = state.registrations.find(registration => {\n return registration.userId === payload.userId\n })\n state.registrations.splice(state.registrations.indexOf(registration), 1)\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/mutations.js","import Vue from 'vue'\nimport Vuex from 'vuex'\nVue.use(Vuex)\n\nimport getters from './getters'\nimport mutations from './mutations'\nimport actions from './actions'\n\nconst state = {\n users: [\n {id: 1, name: 'Kevin', registered: false},\n {id: 3, name: 'Aqua', registered: false},\n {id: 2, name: 'Jim', registered: false}\n ],\n registrations: []\n}\n\nexport const store = new Vuex.Store({\n state,\n getters,\n mutations,\n actions\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/store.js","\n \n \n \n
\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// App.vue?b4af0c0a","\n \n \n \n \n \n
\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// Container.vue?2398ccd6","\n \n \n
\n
\n \n \n \n \n \n \n \n
\n \n\n\n\n\n\n\n// WEBPACK FOOTER //\n// TopBar.vue?630b2e8b","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./App.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-0e325348!vue-loader/lib/selector?type=template&index=0!./App.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = 144\n// module chunks = 6","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* styles */\nrequire(\"!!./../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"extract\\\":true,\\\"remove\\\":true}!vue-style-loader!css-loader?sourceMap!vue-loader/lib/style-rewriter?id=data-v-7c30b01e!sass-loader?sourceMap!vue-loader/lib/selector?type=styles&index=0!./Container.vue\")\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./Container.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-7c30b01e!vue-loader/lib/selector?type=template&index=0!./Container.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/common/Container.vue\n// module id = 147\n// module chunks = 6","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-39208212!vue-loader/lib/selector?type=template&index=0!./NavMenu.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/common/NavMenu.vue\n// module id = 148\n// module chunks = 6","var __vue_exports__, __vue_options__\nvar __vue_styles__ = {}\n\n/* script */\n__vue_exports__ = require(\"!!babel-loader!vue-loader/lib/selector?type=script&index=0!./TopBar.vue\")\n\n/* template */\nvar __vue_template__ = require(\"!!vue-loader/lib/template-compiler?id=data-v-44b2f7be!vue-loader/lib/selector?type=template&index=0!./TopBar.vue\")\n__vue_options__ = __vue_exports__ = __vue_exports__ || {}\nif (\n typeof __vue_exports__.default === \"object\" ||\n typeof __vue_exports__.default === \"function\"\n) {\n__vue_options__ = __vue_exports__ = __vue_exports__.default\n}\nif (typeof __vue_options__ === \"function\") {\n __vue_options__ = __vue_options__.options\n}\n\n__vue_options__.render = __vue_template__.render\n__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\nmodule.exports = __vue_exports__\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/common/TopBar.vue\n// module id = 149\n// module chunks = 6","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"app\"\n }\n }, [_c('NavMenu'), _vm._v(\" \"), _c('Container')], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-0e325348!./~/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = 154\n// module chunks = 6","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('el-menu', {\n attrs: {\n \"default-active\": \"1\",\n \"id\": \"nav-menu\",\n \"theme\": \"dark\"\n }\n }, [_c('div', {\n staticClass: \"logo\"\n }, [_c('router-link', {\n attrs: {\n \"to\": \"/\"\n }\n }, [_c('p', [_vm._v(\"tmpbook\")])])], 1), _vm._v(\" \"), _c('el-submenu', {\n attrs: {\n \"index\": \"1\"\n }\n }, [_c('template', {\n slot: \"title\"\n }, [_c('i', {\n staticClass: \"el-icon-plus\"\n }), _vm._v(\"导航一\")]), _vm._v(\" \"), _c('el-menu-item', {\n attrs: {\n \"index\": \"1-1\"\n }\n }, [_c('router-link', {\n staticClass: \"nav-link\",\n attrs: {\n \"to\": \"/question\"\n }\n }, [_c('i', {\n staticClass: \"el-icon-document\"\n }), _vm._v(\"Ajax Demo\")])], 1), _vm._v(\" \"), _c('el-menu-item', {\n attrs: {\n \"index\": \"1-2\"\n }\n }, [_c('router-link', {\n staticClass: \"nav-link\",\n attrs: {\n \"to\": \"/user\"\n }\n }, [_c('i', {\n staticClass: \"el-icon-document\"\n }), _vm._v(\"Vuex(User)\")])], 1)], 2), _vm._v(\" \"), _c('el-menu-item', {\n attrs: {\n \"index\": \"2\"\n }\n }, [_c('router-link', {\n staticClass: \"nav-link\",\n attrs: {\n \"to\": \"/table\"\n }\n }, [_c('i', {\n staticClass: \"el-icon-document\"\n }), _vm._v(\"表格\")])], 1)], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-39208212!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/common/NavMenu.vue\n// module id = 158\n// module chunks = 6","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('el-row', {\n staticClass: \"top-bar\"\n }, [_c('div', {\n staticClass: \"top-wrapper\"\n }, [_c('div', {\n staticClass: \"user-area pull-right\"\n }, [_c('div', {\n staticClass: \"user-avatar\"\n }, [_c('span', {\n staticClass: \"avatar-img\",\n style: ({\n backgroundImage: 'url(' + _vm.avatar_url + ')'\n })\n }), _vm._v(\" \"), _c('i', {\n staticClass: \"el-icon-arrow-down\"\n }), _vm._v(\" \"), _c('div', {\n staticClass: \"drop-menu\"\n }, [_c('ul', [_c('li', [_c('i', {\n staticClass: \"iconfont\"\n }, [_vm._v(\"\")]), _vm._v(\"管理员\")]), _vm._v(\" \"), _c('li', {\n on: {\n \"click\": _vm.signOut\n }\n }, [_c('i', {\n staticClass: \"iconfont\"\n }, [_vm._v(\"\")]), _vm._v(\"退出\")])])])])]), _vm._v(\" \"), _c('el-col', {\n staticClass: \"search-area pull-right\",\n attrs: {\n \"span\": 8\n }\n }, [_c('el-form', [_c('el-form-item', [_c('i', {\n staticClass: \"el-icon-search\"\n }), _vm._v(\" \"), _c('el-input', {\n attrs: {\n \"placeholder\": \"搜索\"\n }\n })], 1)], 1)], 1)], 1)])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-44b2f7be!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/common/TopBar.vue\n// module id = 159\n// module chunks = 6","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"container\"\n }\n }, [_c('TopBar'), _vm._v(\" \"), _c('transition', {\n attrs: {\n \"name\": \"slide-fade\"\n }\n }, [_c('router-view', {\n staticClass: \"content\"\n })], 1)], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-7c30b01e!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/common/Container.vue\n// module id = 162\n// module chunks = 6"],"sourceRoot":""}
--------------------------------------------------------------------------------
/dist/static/js/manifest.ba2388ad769836077e4c.js:
--------------------------------------------------------------------------------
1 | !function(e){function t(a){if(n[a])return n[a].exports;var c=n[a]={exports:{},id:a,loaded:!1};return e[a].call(c.exports,c,c.exports,t),c.loaded=!0,c.exports}var a=window.webpackJsonp;window.webpackJsonp=function(r,d){for(var o,p,s=0,l=[];s
2 |
3 |
4 |
5 | vue-template-with-element-ui
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-template-with-element-ui",
3 | "version": "1.0.0",
4 | "description": "A Vue.js template with element UI.",
5 | "author": "tmpbook ",
6 | "private": true,
7 | "scripts": {
8 | "dev": "node build/dev-server.js",
9 | "build": "node build/build.js",
10 | "unit": "karma start test/unit/karma.conf.js --single-run",
11 | "e2e": "node test/e2e/runner.js",
12 | "test": "npm run unit && npm run e2e",
13 | "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
14 | },
15 | "dependencies": {
16 | "axios": "^0.15.3",
17 | "element-ui": "^1.1.2",
18 | "lodash": "^4.17.4",
19 | "normalize.css": "^5.0.0",
20 | "vue": "^2.1.0",
21 | "vue-router": "^2.1.1",
22 | "vuex": "^2.1.1"
23 | },
24 | "devDependencies": {
25 | "autoprefixer": "^6.4.0",
26 | "babel-core": "^6.0.0",
27 | "babel-eslint": "^7.0.0",
28 | "babel-loader": "^6.0.0",
29 | "babel-plugin-transform-runtime": "^6.0.0",
30 | "babel-preset-es2015": "^6.0.0",
31 | "babel-preset-stage-2": "^6.0.0",
32 | "babel-register": "^6.0.0",
33 | "chai": "^3.5.0",
34 | "chalk": "^1.1.3",
35 | "chromedriver": "^2.21.2",
36 | "connect-history-api-fallback": "^1.1.0",
37 | "cross-spawn": "^4.0.2",
38 | "css-loader": "^0.25.0",
39 | "eslint": "^3.7.1",
40 | "eslint-config-standard": "^6.1.0",
41 | "eslint-friendly-formatter": "^2.0.5",
42 | "eslint-loader": "^1.5.0",
43 | "eslint-plugin-html": "^1.3.0",
44 | "eslint-plugin-promise": "^3.4.0",
45 | "eslint-plugin-standard": "^2.0.1",
46 | "eventsource-polyfill": "^0.9.6",
47 | "express": "^4.13.3",
48 | "extract-text-webpack-plugin": "^1.0.1",
49 | "file-loader": "^0.9.0",
50 | "function-bind": "^1.0.2",
51 | "html-webpack-plugin": "^2.8.1",
52 | "http-proxy-middleware": "^0.17.2",
53 | "inject-loader": "^2.0.1",
54 | "isparta-loader": "^2.0.0",
55 | "json-loader": "^0.5.4",
56 | "karma": "^1.3.0",
57 | "karma-coverage": "^1.1.1",
58 | "karma-mocha": "^1.2.0",
59 | "karma-phantomjs-launcher": "^1.0.0",
60 | "karma-sinon-chai": "^1.2.0",
61 | "karma-sourcemap-loader": "^0.3.7",
62 | "karma-spec-reporter": "0.0.26",
63 | "karma-webpack": "^1.7.0",
64 | "lolex": "^1.4.0",
65 | "mocha": "^3.1.0",
66 | "nightwatch": "^0.9.8",
67 | "node-sass": "^4.1.1",
68 | "opn": "^4.0.2",
69 | "ora": "^0.3.0",
70 | "phantomjs-prebuilt": "^2.1.3",
71 | "sass-loader": "^4.1.1",
72 | "selenium-server": "2.53.1",
73 | "semver": "^5.3.0",
74 | "shelljs": "^0.7.4",
75 | "sinon": "^1.17.3",
76 | "sinon-chai": "^2.8.0",
77 | "url-loader": "^0.5.7",
78 | "vue-loader": "^10.0.0",
79 | "vue-style-loader": "^1.0.0",
80 | "vue-template-compiler": "^2.1.0",
81 | "webpack": "^1.14.0",
82 | "webpack-dev-middleware": "^1.8.3",
83 | "webpack-hot-middleware": "^2.12.2",
84 | "webpack-merge": "^0.14.1"
85 | },
86 | "engines": {
87 | "node": ">= 4.0.0",
88 | "npm": ">= 3.0.0"
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
21 |
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tmpbook/vue-template-with-element-ui/13d43e79116bb32c9dde865e7efcde376a67c821/src/assets/logo.png
--------------------------------------------------------------------------------
/src/components/Register.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
未注册用户
5 |
6 |
{{ user.name }}
7 | 注册
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/components/UnRegister.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
已注册用户 ({{ total }})
5 |
6 |
{{ user.name }}
7 | 注销
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/components/common/Container.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
19 |
--------------------------------------------------------------------------------
/src/components/common/NavMenu.vue:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
--------------------------------------------------------------------------------
/src/components/common/TopBar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
42 |
--------------------------------------------------------------------------------
/src/components/common/style.scss:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'iconfont';
3 | src: url('//at.alicdn.com/t/font_1476180127_2466838.eot'); /* IE9*/
4 | src: url('//at.alicdn.com/t/font_1476180127_2466838.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
5 | url('//at.alicdn.com/t/font_1476180127_2466838.woff') format('woff'), /* chrome、firefox */
6 | url('//at.alicdn.com/t/font_1476180127_2466838.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
7 | url('//at.alicdn.com/t/font_1476180127_2466838.svg#iconfont') format('svg'); /* iOS 4.1- */
8 | }
9 | .iconfont {
10 | font-family:"iconfont" !important;
11 | font-size:16px;
12 | font-style:normal;
13 | -webkit-font-smoothing: antialiased;
14 | -webkit-text-stroke-width: 0.2px;
15 | -moz-osx-font-smoothing: grayscale;
16 | }
17 | #app {
18 | display: flex;
19 | min-width: 800px;
20 | background-color: #1A191F;
21 | color: #dbdbdb;
22 | }
23 |
24 | // 顶栏样式
25 | .top-bar {
26 | height: 60px;
27 | .top-wrapper {
28 | flex: 1;
29 | margin-right: 64px;
30 | }
31 | .search-area {
32 | padding: 16px 10px;
33 | height: 100%;
34 | max-width: 320px;
35 | .el-form-item {
36 | margin: 0;
37 | border-radius: 16px;
38 | box-shadow: 0 5px 20px rgba(0,0,0,.3);
39 | .el-icon-search {
40 | top: 0;
41 | right: 0;
42 | font-size: 20px;
43 | position: absolute;
44 | z-index: 1;
45 | width: 32px;
46 | line-height: 32px;
47 | border-radius: 16px;
48 | text-align: center;
49 | background-color: #20202A;
50 | }
51 | }
52 | .el-form-item__content {
53 | line-height: 1;
54 | }
55 | .el-input {
56 | position: relative;
57 | height: 32px;
58 | input {
59 | height: 32px;
60 | border: none;
61 | float: right;
62 | color: #F9FAFC;
63 | opacity: 1;
64 | border-radius: 16px;
65 | background-color: #20202A;
66 | &::-webkit-input-placeholder {
67 | color: #C0CCDA;
68 | }
69 | &::-moz-placeholder {
70 | color: #C0CCDA;
71 | }
72 | &::-ms-input-placeholder {
73 | color: #C0CCDA;
74 | }
75 | }
76 | }
77 | }
78 | .user-area {
79 | padding: 16px 10px;
80 | display: inline-block;
81 | position: relative;
82 | &:hover {
83 | background-color: #20202A;
84 | .drop-menu {
85 | display: block;
86 | }
87 | }
88 | .user-avatar {
89 | height: 32px;
90 | .avatar-img {
91 | display: inline-block;
92 | width: 32px;
93 | height: 32px;
94 | border-radius: 16px;
95 | margin-right: 10px;
96 | vertical-align: middle;
97 | background: center no-repeat;
98 | background-size: cover;
99 | background-color: #D8D8D8;
100 | }
101 | .el-icon-arrow-down {
102 | vertical-align: middle;
103 | font-size: 12px;
104 | color: #C0CCDA;
105 | }
106 | }
107 | }
108 | .drop-menu {
109 | position: absolute;
110 | right: 0;
111 | top: 64px;
112 | display: none;
113 | width: 140px;
114 | z-index: 1;
115 | background-color: #20202A;
116 | box-shadow: 0 5px 20px rgba(0,0,0,.3);
117 | ul {
118 | list-style: none;
119 | margin: 0;
120 | padding: 0;
121 | }
122 | li {
123 | padding: 12px 20px;
124 | cursor: pointer;
125 | line-height: 1;
126 | font-size: 14px;
127 | &:hover {
128 | background-color: #2b3035;
129 | }
130 | }
131 | .iconfont {
132 | font-size: 20px;
133 | margin-right: 10px;
134 | }
135 | }
136 | }
137 |
138 | // 左侧导航栏样式
139 | #nav-menu {
140 | width: 200px;
141 | min-width: 200px;
142 | height: calc(100%-72px);
143 | border-radius: 0;
144 | background-color: #20202A;
145 | box-shadow: 5px 0 20px rgba(0,0,0,.3);
146 | .logo {
147 | width: 200px;
148 | height: 60px;
149 | text-align: center;
150 | background-color: #20202A;
151 | p {
152 | margin: 0;
153 | padding-top: 20px;
154 | font-size: 20px;
155 | color: white;
156 | }
157 | }
158 | .nav-link {
159 | display: block;
160 | }
161 | .el-menu {
162 | background-color: #1A191F;
163 | }
164 | .el-menu-item,
165 | .el-submenu .el-submenu__title {
166 | height: 44px;
167 | line-height: 44px;
168 | color: #dbdbdb;
169 | &:hover {
170 | background-color: #2b3035;
171 | }
172 | }
173 | .router-link-active {
174 | color: #03a9f4;
175 | }
176 | }
177 |
178 | // 内容区域样式
179 | #container {
180 | min-height: 100vh;
181 | flex: 1 auto;
182 | }
183 |
184 | // 公共样式
185 | .pull-left {
186 | float: left;
187 | }
188 | .pull-right {
189 | float: right;
190 | }
191 | [v-cloak] {
192 | display: none;
193 | }
194 | a {
195 | text-decoration: none;
196 | color: #C0CCDA;
197 | }
198 | .router-link-active {
199 | color: #20a0ff;
200 | }
201 |
202 | /* Enter and leave animations can use different */
203 | /* durations and timing functions. */
204 | // .slide-fade-enter-active {
205 | // animation: animate-in .6s;
206 | // }
207 | // .slide-fade-leave-active {
208 | // animation: animate-out .6s;
209 | // }
210 | // @keyframes animate-in {
211 | // 0% {
212 | // transform: scale(0);
213 | // }
214 | // 50% {
215 | // transform: scale(1.2);
216 | // }
217 | // 100% {
218 | // transform: scale(1);
219 | // }
220 | // }
221 | // @keyframes animate-out {
222 | // 0% {
223 | // transform: scale(1);
224 | // }
225 | // 50% {
226 | // transform: scale(1.2);
227 | // }
228 | // 100% {
229 | // transform: scale(0);
230 | // }
231 | // }
232 |
233 | /* 可以设置不同的进入和离开动画 */
234 | /* 设置持续时间和动画函数 */
235 | .slide-fade-enter-active {
236 | transition: all .3s ease;
237 | }
238 | .slide-fade-leave-active {
239 | transition: all 0s cubic-bezier(1.0, 0.5, 0.8, 1.0);
240 | }
241 | .slide-fade-enter, .slide-fade-leave-active {
242 | transform: translateX(10px);
243 | opacity: 0;
244 | }
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | // The Vue build version to load with the `import` command
2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 | import 'normalize.css'
4 | import 'element-ui/lib/theme-default/index.css'
5 | import Element from 'element-ui'
6 | import Vue from 'vue'
7 | import VueRouter from 'vue-router'
8 | import App from './App'
9 | import routes from './routes'
10 | import { store } from './store/store'
11 |
12 | Vue.use(Element)
13 | Vue.use(VueRouter)
14 |
15 | const router = new VueRouter({
16 | routes
17 | })
18 |
19 | /* eslint-disable no-new */
20 | new Vue({
21 | store,
22 | router,
23 | el: '#app',
24 | template: '',
25 | components: { App }
26 | })
27 |
--------------------------------------------------------------------------------
/src/pages/home/home.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;
6 | 在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。
7 |
8 |
9 | 控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;
10 | 页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。
11 |
12 |
13 | 简化流程:设计简洁直观的操作流程;
14 | 清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;
15 | 帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。
16 |
17 |
18 | 用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;
19 | 结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/pages/question/question.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{ yesno.answer }}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
62 |
--------------------------------------------------------------------------------
/src/pages/table/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 | 省: {{ props.row.province }}
9 | 市: {{ props.row.city }}
10 | 住址: {{ props.row.detailAddress }}
11 | 邮编: {{ props.row.zip }}
12 |
13 |
14 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/pages/user/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/routes.js:
--------------------------------------------------------------------------------
1 | export default [
2 | {
3 | path: '/',
4 | component: resolve => require(['./pages/home/home.vue'], resolve)
5 | },
6 | {
7 | path: '/question',
8 | component: resolve => require(['./pages/question/question'], resolve)
9 | },
10 | {
11 | path: '/user',
12 | component: resolve => require(['./pages/user'], resolve)
13 | },
14 | {
15 | path: '/table',
16 | component: resolve => require(['./pages/table'], resolve)
17 | }
18 | ]
19 |
--------------------------------------------------------------------------------
/src/store/actions.js:
--------------------------------------------------------------------------------
1 | export default {
2 | register ({ commit }, userId) {
3 | setTimeout(() => {
4 | commit('register', userId)
5 | }, 500)
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/src/store/getters.js:
--------------------------------------------------------------------------------
1 | export default {
2 | unregisterdUsers (state) {
3 | return state.users.filter(user => {
4 | return !user.registered
5 | })
6 | },
7 | registerdUsers (state) {
8 | return state.registrations
9 | },
10 | totalRegistrations (state) {
11 | return state.registrations.length
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/store/mutations.js:
--------------------------------------------------------------------------------
1 | export default {
2 | register (state, userId) {
3 | const date = new Date()
4 | const user = state.users.find(user => {
5 | return user.id === userId
6 | })
7 | user.registered = true
8 | const registration = {
9 | userId: userId,
10 | name: user.name,
11 | date: date.getMonth() + '/' + date.getDay()
12 | }
13 | state.registrations.push(registration)
14 | },
15 | unregister (state, payload) {
16 | const user = state.users.find(user => {
17 | return user.id === payload.userId
18 | })
19 | user.registered = false
20 | const registration = state.registrations.find(registration => {
21 | return registration.userId === payload.userId
22 | })
23 | state.registrations.splice(state.registrations.indexOf(registration), 1)
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/store/store.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Vuex from 'vuex'
3 | Vue.use(Vuex)
4 |
5 | import getters from './getters'
6 | import mutations from './mutations'
7 | import actions from './actions'
8 |
9 | const state = {
10 | users: [
11 | {id: 1, name: 'Kevin', registered: false},
12 | {id: 3, name: 'Aqua', registered: false},
13 | {id: 2, name: 'Jim', registered: false}
14 | ],
15 | registrations: []
16 | }
17 |
18 | export const store = new Vuex.Store({
19 | state,
20 | getters,
21 | mutations,
22 | actions
23 | })
24 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tmpbook/vue-template-with-element-ui/13d43e79116bb32c9dde865e7efcde376a67c821/static/.gitkeep
--------------------------------------------------------------------------------
/test/e2e/custom-assertions/elementCount.js:
--------------------------------------------------------------------------------
1 | // A custom Nightwatch assertion.
2 | // the name of the method is the filename.
3 | // can be used in tests like this:
4 | //
5 | // browser.assert.elementCount(selector, count)
6 | //
7 | // for how to write custom assertions see
8 | // http://nightwatchjs.org/guide#writing-custom-assertions
9 | exports.assertion = function (selector, count) {
10 | this.message = 'Testing if element <' + selector + '> has count: ' + count
11 | this.expected = count
12 | this.pass = function (val) {
13 | return val === this.expected
14 | }
15 | this.value = function (res) {
16 | return res.value
17 | }
18 | this.command = function (cb) {
19 | var self = this
20 | return this.api.execute(function (selector) {
21 | return document.querySelectorAll(selector).length
22 | }, [selector], function (res) {
23 | cb.call(self, res)
24 | })
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/test/e2e/nightwatch.conf.js:
--------------------------------------------------------------------------------
1 | require('babel-register')
2 | var config = require('../../config')
3 |
4 | // http://nightwatchjs.org/guide#settings-file
5 | module.exports = {
6 | src_folders: ['test/e2e/specs'],
7 | output_folder: 'test/e2e/reports',
8 | custom_assertions_path: ['test/e2e/custom-assertions'],
9 |
10 | selenium: {
11 | start_process: true,
12 | server_path: 'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.53.1.jar',
13 | host: '127.0.0.1',
14 | port: 4444,
15 | cli_args: {
16 | 'webdriver.chrome.driver': require('chromedriver').path
17 | }
18 | },
19 |
20 | test_settings: {
21 | default: {
22 | selenium_port: 4444,
23 | selenium_host: 'localhost',
24 | silent: true,
25 | globals: {
26 | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
27 | }
28 | },
29 |
30 | chrome: {
31 | desiredCapabilities: {
32 | browserName: 'chrome',
33 | javascriptEnabled: true,
34 | acceptSslCerts: true
35 | }
36 | },
37 |
38 | firefox: {
39 | desiredCapabilities: {
40 | browserName: 'firefox',
41 | javascriptEnabled: true,
42 | acceptSslCerts: true
43 | }
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/test/e2e/runner.js:
--------------------------------------------------------------------------------
1 | // 1. start the dev server using production config
2 | process.env.NODE_ENV = 'testing'
3 | var server = require('../../build/dev-server.js')
4 |
5 | // 2. run the nightwatch test suite against it
6 | // to run in additional browsers:
7 | // 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings"
8 | // 2. add it to the --env flag below
9 | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
10 | // For more information on Nightwatch's config file, see
11 | // http://nightwatchjs.org/guide#settings-file
12 | var opts = process.argv.slice(2)
13 | if (opts.indexOf('--config') === -1) {
14 | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
15 | }
16 | if (opts.indexOf('--env') === -1) {
17 | opts = opts.concat(['--env', 'chrome'])
18 | }
19 |
20 | var spawn = require('cross-spawn')
21 | var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
22 |
23 | runner.on('exit', function (code) {
24 | server.close()
25 | process.exit(code)
26 | })
27 |
28 | runner.on('error', function (err) {
29 | server.close()
30 | throw err
31 | })
32 |
--------------------------------------------------------------------------------
/test/e2e/specs/test.js:
--------------------------------------------------------------------------------
1 | // For authoring Nightwatch tests, see
2 | // http://nightwatchjs.org/guide#usage
3 |
4 | module.exports = {
5 | 'default e2e tests': function (browser) {
6 | // automatically uses dev Server port from /config.index.js
7 | // default: http://localhost:8080
8 | // see nightwatch.conf.js
9 | const devServer = browser.globals.devServerURL
10 |
11 | browser
12 | .url(devServer)
13 | .waitForElementVisible('#app', 5000)
14 | .assert.elementPresent('.hello')
15 | .assert.containsText('h1', 'Welcome to Your Vue.js App')
16 | .assert.elementCount('img', 1)
17 | .end()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/unit/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "mocha": true
4 | },
5 | "globals": {
6 | "expect": true,
7 | "sinon": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/test/unit/index.js:
--------------------------------------------------------------------------------
1 | // Polyfill fn.bind() for PhantomJS
2 | /* eslint-disable no-extend-native */
3 | Function.prototype.bind = require('function-bind')
4 |
5 | // require all test files (files that ends with .spec.js)
6 | const testsContext = require.context('./specs', true, /\.spec$/)
7 | testsContext.keys().forEach(testsContext)
8 |
9 | // require all src files except main.js for coverage.
10 | // you can also change this to match only the subset of files that
11 | // you want coverage for.
12 | const srcContext = require.context('src', true, /^\.\/(?!main(\.js)?$)/)
13 | srcContext.keys().forEach(srcContext)
14 |
--------------------------------------------------------------------------------
/test/unit/karma.conf.js:
--------------------------------------------------------------------------------
1 | // This is a karma config file. For more details see
2 | // http://karma-runner.github.io/0.13/config/configuration-file.html
3 | // we are also using it with karma-webpack
4 | // https://github.com/webpack/karma-webpack
5 |
6 | var path = require('path')
7 | var merge = require('webpack-merge')
8 | var baseConfig = require('../../build/webpack.base.conf')
9 | var utils = require('../../build/utils')
10 | var webpack = require('webpack')
11 | var projectRoot = path.resolve(__dirname, '../../')
12 |
13 | var webpackConfig = merge(baseConfig, {
14 | // use inline sourcemap for karma-sourcemap-loader
15 | module: {
16 | loaders: utils.styleLoaders()
17 | },
18 | devtool: '#inline-source-map',
19 | vue: {
20 | loaders: {
21 | js: 'isparta'
22 | }
23 | },
24 | plugins: [
25 | new webpack.DefinePlugin({
26 | 'process.env': require('../../config/test.env')
27 | })
28 | ]
29 | })
30 |
31 | // no need for app entry during tests
32 | delete webpackConfig.entry
33 |
34 | // make sure isparta loader is applied before eslint
35 | webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || []
36 | webpackConfig.module.preLoaders.unshift({
37 | test: /\.js$/,
38 | loader: 'isparta',
39 | include: path.resolve(projectRoot, 'src')
40 | })
41 |
42 | // only apply babel for test files when using isparta
43 | webpackConfig.module.loaders.some(function (loader, i) {
44 | if (loader.loader === 'babel') {
45 | loader.include = path.resolve(projectRoot, 'test/unit')
46 | return true
47 | }
48 | })
49 |
50 | module.exports = function (config) {
51 | config.set({
52 | // to run in additional browsers:
53 | // 1. install corresponding karma launcher
54 | // http://karma-runner.github.io/0.13/config/browsers.html
55 | // 2. add it to the `browsers` array below.
56 | browsers: ['PhantomJS'],
57 | frameworks: ['mocha', 'sinon-chai'],
58 | reporters: ['spec', 'coverage'],
59 | files: ['./index.js'],
60 | preprocessors: {
61 | './index.js': ['webpack', 'sourcemap']
62 | },
63 | webpack: webpackConfig,
64 | webpackMiddleware: {
65 | noInfo: true
66 | },
67 | coverageReporter: {
68 | dir: './coverage',
69 | reporters: [
70 | { type: 'lcov', subdir: '.' },
71 | { type: 'text-summary' }
72 | ]
73 | }
74 | })
75 | }
76 |
--------------------------------------------------------------------------------
/test/unit/specs/Hello.spec.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Hello from 'src/components/Hello'
3 |
4 | describe('Hello.vue', () => {
5 | it('should render correct contents', () => {
6 | const vm = new Vue({
7 | el: document.createElement('div'),
8 | render: (h) => h(Hello)
9 | })
10 | expect(vm.$el.querySelector('.hello h1').textContent)
11 | .to.equal('Welcome to Your Vue.js App')
12 | })
13 | })
14 |
--------------------------------------------------------------------------------