├── .DS_Store
├── LICENSE
├── README.md
├── build
├── build.js
├── check-versions.js
├── logo.png
├── utils.js
├── vue-loader.conf.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
├── docs
├── index.html
└── static
│ ├── css
│ ├── app.474adf1df5817ed79c5026da158d64d2.css
│ ├── app.474adf1df5817ed79c5026da158d64d2.css.map
│ ├── app.d93218f5ae212d238fd0ac4b25ad04b5.css
│ └── app.d93218f5ae212d238fd0ac4b25ad04b5.css.map
│ └── js
│ ├── app.7c262fc0e48646b22507.js
│ ├── app.7c262fc0e48646b22507.js.map
│ ├── app.d656102e76584fd15d32.js
│ ├── app.d656102e76584fd15d32.js.map
│ ├── manifest.3ad1d5771e9b13dbdad2.js
│ ├── manifest.3ad1d5771e9b13dbdad2.js.map
│ ├── vendor.5a47af9e6224c6c83e9a.js
│ └── vendor.5a47af9e6224c6c83e9a.js.map
├── index.html
├── package-lock.json
├── package.json
├── src
├── App.vue
├── assets
│ └── logo.png
├── components
│ └── treeDrag.vue
└── main.js
└── static
├── css
├── app.474adf1df5817ed79c5026da158d64d2.css
└── app.474adf1df5817ed79c5026da158d64d2.css.map
└── js
├── app.7c262fc0e48646b22507.js
├── app.7c262fc0e48646b22507.js.map
├── manifest.3ad1d5771e9b13dbdad2.js
├── manifest.3ad1d5771e9b13dbdad2.js.map
├── vendor.5a47af9e6224c6c83e9a.js
└── vendor.5a47af9e6224c6c83e9a.js.map
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/powhd/treeDrag/dd14b96976ff89038d5cf4a600f0ee8126b1ae4f/.DS_Store
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 mall
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 示例:https://powhd.github.io/treeDrag/
2 |
3 | 运行步骤:
4 |
5 | 1.npm install
6 |
7 | 2.npm run dev
8 |
9 | 3.打开 http://localhost:8080/#/
10 |
11 | # treeDrag
12 | 依赖vue-draggable进行树形拖拽
13 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | require('./check-versions')()
3 |
4 | process.env.NODE_ENV = 'production'
5 |
6 | const ora = require('ora')
7 | const rm = require('rimraf')
8 | const path = require('path')
9 | const chalk = require('chalk')
10 | const webpack = require('webpack')
11 | const config = require('../config')
12 | const webpackConfig = require('./webpack.prod.conf')
13 |
14 | const spinner = ora('building for production...')
15 | spinner.start()
16 |
17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18 | if (err) throw err
19 | webpack(webpackConfig, (err, stats) => {
20 | spinner.stop()
21 | if (err) throw err
22 | process.stdout.write(stats.toString({
23 | colors: true,
24 | modules: false,
25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26 | chunks: false,
27 | chunkModules: false
28 | }) + '\n\n')
29 |
30 | if (stats.hasErrors()) {
31 | console.log(chalk.red(' Build failed with errors.\n'))
32 | process.exit(1)
33 | }
34 |
35 | console.log(chalk.cyan(' Build complete.\n'))
36 | console.log(chalk.yellow(
37 | ' Tip: built files are meant to be served over an HTTP server.\n' +
38 | ' Opening index.html over file:// won\'t work.\n'
39 | ))
40 | })
41 | })
42 |
--------------------------------------------------------------------------------
/build/check-versions.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const chalk = require('chalk')
3 | const semver = require('semver')
4 | const packageConfig = require('../package.json')
5 | const shell = require('shelljs')
6 |
7 | function exec (cmd) {
8 | return require('child_process').execSync(cmd).toString().trim()
9 | }
10 |
11 | const versionRequirements = [
12 | {
13 | name: 'node',
14 | currentVersion: semver.clean(process.version),
15 | versionRequirement: packageConfig.engines.node
16 | }
17 | ]
18 |
19 | if (shell.which('npm')) {
20 | versionRequirements.push({
21 | name: 'npm',
22 | currentVersion: exec('npm --version'),
23 | versionRequirement: packageConfig.engines.npm
24 | })
25 | }
26 |
27 | module.exports = function () {
28 | const warnings = []
29 |
30 | for (let i = 0; i < versionRequirements.length; i++) {
31 | const mod = versionRequirements[i]
32 |
33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
34 | warnings.push(mod.name + ': ' +
35 | chalk.red(mod.currentVersion) + ' should be ' +
36 | chalk.green(mod.versionRequirement)
37 | )
38 | }
39 | }
40 |
41 | if (warnings.length) {
42 | console.log('')
43 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
44 | console.log()
45 |
46 | for (let i = 0; i < warnings.length; i++) {
47 | const warning = warnings[i]
48 | console.log(' ' + warning)
49 | }
50 |
51 | console.log()
52 | process.exit(1)
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/build/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/powhd/treeDrag/dd14b96976ff89038d5cf4a600f0ee8126b1ae4f/build/logo.png
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const config = require('../config')
4 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
5 | const packageConfig = require('../package.json')
6 |
7 | exports.assetsPath = function (_path) {
8 | const assetsSubDirectory = process.env.NODE_ENV === 'production'
9 | ? config.build.assetsSubDirectory
10 | : config.dev.assetsSubDirectory
11 |
12 | return path.posix.join(assetsSubDirectory, _path)
13 | }
14 |
15 | exports.cssLoaders = function (options) {
16 | options = options || {}
17 |
18 | const cssLoader = {
19 | loader: 'css-loader',
20 | options: {
21 | sourceMap: options.sourceMap
22 | }
23 | }
24 |
25 | const postcssLoader = {
26 | loader: 'postcss-loader',
27 | options: {
28 | sourceMap: options.sourceMap
29 | }
30 | }
31 |
32 | // generate loader string to be used with extract text plugin
33 | function generateLoaders (loader, loaderOptions) {
34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
35 |
36 | if (loader) {
37 | loaders.push({
38 | loader: loader + '-loader',
39 | options: Object.assign({}, loaderOptions, {
40 | sourceMap: options.sourceMap
41 | })
42 | })
43 | }
44 |
45 | // Extract CSS when that option is specified
46 | // (which is the case during production build)
47 | if (options.extract) {
48 | return ExtractTextPlugin.extract({
49 | use: loaders,
50 | fallback: 'vue-style-loader'
51 | })
52 | } else {
53 | return ['vue-style-loader'].concat(loaders)
54 | }
55 | }
56 |
57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html
58 | return {
59 | css: generateLoaders(),
60 | postcss: generateLoaders(),
61 | less: generateLoaders('less'),
62 | sass: generateLoaders('sass', { indentedSyntax: true }),
63 | scss: generateLoaders('sass'),
64 | stylus: generateLoaders('stylus'),
65 | styl: generateLoaders('stylus')
66 | }
67 | }
68 |
69 | // Generate loaders for standalone style files (outside of .vue)
70 | exports.styleLoaders = function (options) {
71 | const output = []
72 | const loaders = exports.cssLoaders(options)
73 |
74 | for (const extension in loaders) {
75 | const loader = loaders[extension]
76 | output.push({
77 | test: new RegExp('\\.' + extension + '$'),
78 | use: loader
79 | })
80 | }
81 |
82 | return output
83 | }
84 |
85 | exports.createNotifierCallback = () => {
86 | const notifier = require('node-notifier')
87 |
88 | return (severity, errors) => {
89 | if (severity !== 'error') return
90 |
91 | const error = errors[0]
92 | const filename = error.file && error.file.split('!').pop()
93 |
94 | notifier.notify({
95 | title: packageConfig.name,
96 | message: severity + ': ' + error.name,
97 | subtitle: filename || '',
98 | icon: path.join(__dirname, 'logo.png')
99 | })
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const config = require('../config')
4 | const isProduction = process.env.NODE_ENV === 'production'
5 | const sourceMapEnabled = isProduction
6 | ? config.build.productionSourceMap
7 | : config.dev.cssSourceMap
8 |
9 | module.exports = {
10 | loaders: utils.cssLoaders({
11 | sourceMap: sourceMapEnabled,
12 | extract: isProduction
13 | }),
14 | cssSourceMap: sourceMapEnabled,
15 | cacheBusting: config.dev.cacheBusting,
16 | transformToRequire: {
17 | video: ['src', 'poster'],
18 | source: 'src',
19 | img: 'src',
20 | image: 'xlink:href'
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const config = require('../config')
5 | const vueLoaderConfig = require('./vue-loader.conf')
6 |
7 | function resolve (dir) {
8 | return path.join(__dirname, '..', dir)
9 | }
10 |
11 | const createLintingRule = () => ({
12 | test: /\.(js|vue)$/,
13 | loader: 'eslint-loader',
14 | enforce: 'pre',
15 | include: [resolve('src'), resolve('test')],
16 | options: {
17 | formatter: require('eslint-friendly-formatter'),
18 | emitWarning: !config.dev.showEslintErrorsInOverlay
19 | }
20 | })
21 |
22 | module.exports = {
23 | context: path.resolve(__dirname, '../'),
24 | entry: {
25 | app: './src/main.js'
26 | },
27 | output: {
28 | path: config.build.assetsRoot,
29 | filename: '[name].js',
30 | publicPath: process.env.NODE_ENV === 'production'
31 | ? config.build.assetsPublicPath
32 | : config.dev.assetsPublicPath
33 | },
34 | resolve: {
35 | extensions: ['.js', '.vue', '.json'],
36 | alias: {
37 | 'vue$': 'vue/dist/vue.esm.js',
38 | '@': resolve('src'),
39 | }
40 | },
41 | module: {
42 | rules: [
43 | ...(config.dev.useEslint ? [createLintingRule()] : []),
44 | {
45 | test: /\.vue$/,
46 | loader: 'vue-loader',
47 | options: vueLoaderConfig
48 | },
49 | {
50 | test: /\.js$/,
51 | loader: 'babel-loader',
52 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
53 | },
54 | {
55 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
56 | loader: 'url-loader',
57 | options: {
58 | limit: 10000,
59 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
60 | }
61 | },
62 | {
63 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
64 | loader: 'url-loader',
65 | options: {
66 | limit: 10000,
67 | name: utils.assetsPath('media/[name].[hash:7].[ext]')
68 | }
69 | },
70 | {
71 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
72 | loader: 'url-loader',
73 | options: {
74 | limit: 10000,
75 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
76 | }
77 | }
78 | ]
79 | },
80 | node: {
81 | // prevent webpack from injecting useless setImmediate polyfill because Vue
82 | // source contains it (although only uses it if it's native).
83 | setImmediate: false,
84 | // prevent webpack from injecting mocks to Node native modules
85 | // that does not make sense for the client
86 | dgram: 'empty',
87 | fs: 'empty',
88 | net: 'empty',
89 | tls: 'empty',
90 | child_process: 'empty'
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const webpack = require('webpack')
4 | const config = require('../config')
5 | const merge = require('webpack-merge')
6 | const path = require('path')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
11 | const portfinder = require('portfinder')
12 |
13 | const HOST = process.env.HOST
14 | const PORT = process.env.PORT && Number(process.env.PORT)
15 |
16 | const devWebpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
19 | },
20 | // cheap-module-eval-source-map is faster for development
21 | devtool: config.dev.devtool,
22 |
23 | // these devServer options should be customized in /config/index.js
24 | devServer: {
25 | clientLogLevel: 'warning',
26 | historyApiFallback: {
27 | rewrites: [
28 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
29 | ],
30 | },
31 | hot: true,
32 | contentBase: false, // since we use CopyWebpackPlugin.
33 | compress: true,
34 | host: HOST || config.dev.host,
35 | port: PORT || config.dev.port,
36 | open: config.dev.autoOpenBrowser,
37 | overlay: config.dev.errorOverlay
38 | ? { warnings: false, errors: true }
39 | : false,
40 | publicPath: config.dev.assetsPublicPath,
41 | proxy: config.dev.proxyTable,
42 | quiet: true, // necessary for FriendlyErrorsPlugin
43 | watchOptions: {
44 | poll: config.dev.poll,
45 | }
46 | },
47 | plugins: [
48 | new webpack.DefinePlugin({
49 | 'process.env': require('../config/dev.env')
50 | }),
51 | new webpack.HotModuleReplacementPlugin(),
52 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
53 | new webpack.NoEmitOnErrorsPlugin(),
54 | // https://github.com/ampedandwired/html-webpack-plugin
55 | new HtmlWebpackPlugin({
56 | filename: 'index.html',
57 | template: 'index.html',
58 | inject: true
59 | }),
60 | // copy custom static assets
61 | new CopyWebpackPlugin([
62 | {
63 | from: path.resolve(__dirname, '../static'),
64 | to: config.dev.assetsSubDirectory,
65 | ignore: ['.*']
66 | }
67 | ])
68 | ]
69 | })
70 |
71 | module.exports = new Promise((resolve, reject) => {
72 | portfinder.basePort = process.env.PORT || config.dev.port
73 | portfinder.getPort((err, port) => {
74 | if (err) {
75 | reject(err)
76 | } else {
77 | // publish the new Port, necessary for e2e tests
78 | process.env.PORT = port
79 | // add port to devServer config
80 | devWebpackConfig.devServer.port = port
81 |
82 | // Add FriendlyErrorsPlugin
83 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
84 | compilationSuccessInfo: {
85 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
86 | },
87 | onErrors: config.dev.notifyOnErrors
88 | ? utils.createNotifierCallback()
89 | : undefined
90 | }))
91 |
92 | resolve(devWebpackConfig)
93 | }
94 | })
95 | })
96 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const webpack = require('webpack')
5 | const config = require('../config')
6 | const merge = require('webpack-merge')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13 |
14 | const env = process.env.NODE_ENV === 'testing'
15 | ? require('../config/test.env')
16 | : require('../config/prod.env')
17 |
18 | const webpackConfig = merge(baseWebpackConfig, {
19 | module: {
20 | rules: utils.styleLoaders({
21 | sourceMap: config.build.productionSourceMap,
22 | extract: true,
23 | usePostCSS: true
24 | })
25 | },
26 | devtool: config.build.productionSourceMap ? config.build.devtool : false,
27 | output: {
28 | path: config.build.assetsRoot,
29 | publicPath:'./',
30 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
31 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
32 | },
33 | plugins: [
34 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
35 | new webpack.DefinePlugin({
36 | 'process.env': env
37 | }),
38 | new UglifyJsPlugin({
39 | uglifyOptions: {
40 | compress: {
41 | warnings: false
42 | }
43 | },
44 | sourceMap: config.build.productionSourceMap,
45 | parallel: true
46 | }),
47 | // extract css into its own file
48 | new ExtractTextPlugin({
49 | filename: utils.assetsPath('css/[name].[contenthash].css'),
50 | // Setting the following option to `false` will not extract CSS from codesplit chunks.
51 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
52 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
53 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
54 | allChunks: true,
55 | }),
56 | // Compress extracted CSS. We are using this plugin so that possible
57 | // duplicated CSS from different components can be deduped.
58 | new OptimizeCSSPlugin({
59 | cssProcessorOptions: config.build.productionSourceMap
60 | ? { safe: true, map: { inline: false } }
61 | : { safe: true }
62 | }),
63 | // generate dist index.html with correct asset hash for caching.
64 | // you can customize output by editing /index.html
65 | // see https://github.com/ampedandwired/html-webpack-plugin
66 | new HtmlWebpackPlugin({
67 | filename: process.env.NODE_ENV === 'testing'
68 | ? 'index.html'
69 | : config.build.index,
70 | template: 'index.html',
71 | inject: true,
72 | minify: {
73 | removeComments: true,
74 | collapseWhitespace: true,
75 | removeAttributeQuotes: true
76 | // more options:
77 | // https://github.com/kangax/html-minifier#options-quick-reference
78 | },
79 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
80 | chunksSortMode: 'dependency'
81 | }),
82 | // keep module.id stable when vendor modules does not change
83 | new webpack.HashedModuleIdsPlugin(),
84 | // enable scope hoisting
85 | new webpack.optimize.ModuleConcatenationPlugin(),
86 | // split vendor js into its own file
87 | new webpack.optimize.CommonsChunkPlugin({
88 | name: 'vendor',
89 | minChunks (module) {
90 | // any required modules inside node_modules are extracted to vendor
91 | return (
92 | module.resource &&
93 | /\.js$/.test(module.resource) &&
94 | module.resource.indexOf(
95 | path.join(__dirname, '../node_modules')
96 | ) === 0
97 | )
98 | }
99 | }),
100 | // extract webpack runtime and module manifest to its own file in order to
101 | // prevent vendor hash from being updated whenever app bundle is updated
102 | new webpack.optimize.CommonsChunkPlugin({
103 | name: 'manifest',
104 | minChunks: Infinity
105 | }),
106 | // This instance extracts shared chunks from code splitted chunks and bundles them
107 | // in a separate chunk, similar to the vendor chunk
108 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
109 | new webpack.optimize.CommonsChunkPlugin({
110 | name: 'app',
111 | async: 'vendor-async',
112 | children: true,
113 | minChunks: 3
114 | }),
115 |
116 | // copy custom static assets
117 | new CopyWebpackPlugin([
118 | {
119 | from: path.resolve(__dirname, '../static'),
120 | to: config.build.assetsSubDirectory,
121 | ignore: ['.*']
122 | }
123 | ])
124 | ]
125 | })
126 |
127 | if (config.build.productionGzip) {
128 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
129 |
130 | webpackConfig.plugins.push(
131 | new CompressionWebpackPlugin({
132 | asset: '[path].gz[query]',
133 | algorithm: 'gzip',
134 | test: new RegExp(
135 | '\\.(' +
136 | config.build.productionGzipExtensions.join('|') +
137 | ')$'
138 | ),
139 | threshold: 10240,
140 | minRatio: 0.8
141 | })
142 | )
143 | }
144 |
145 | if (config.build.bundleAnalyzerReport) {
146 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
147 | webpackConfig.plugins.push(new BundleAnalyzerPlugin())
148 | }
149 |
150 | module.exports = webpackConfig
151 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | // Template version: 1.3.1
3 | // see http://vuejs-templates.github.io/webpack for documentation.
4 |
5 | const path = require('path')
6 |
7 | module.exports = {
8 | dev: {
9 |
10 | // Paths
11 | assetsSubDirectory: 'static',
12 | assetsPublicPath: '/',
13 | proxyTable: {},
14 |
15 | // Various Dev Server settings
16 | host: 'localhost', // can be overwritten by process.env.HOST
17 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18 | autoOpenBrowser: false,
19 | errorOverlay: true,
20 | notifyOnErrors: true,
21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22 |
23 | // Use Eslint Loader?
24 | // If true, your code will be linted during bundling and
25 | // linting errors and warnings will be shown in the console.
26 | useEslint: false,
27 | // If true, eslint errors and warnings will also be shown in the error overlay
28 | // in the browser.
29 | showEslintErrorsInOverlay: false,
30 |
31 | /**
32 | * Source Maps
33 | */
34 |
35 | // https://webpack.js.org/configuration/devtool/#development
36 | devtool: 'cheap-module-eval-source-map',
37 |
38 | // If you have problems debugging vue-files in devtools,
39 | // set this to false - it *may* help
40 | // https://vue-loader.vuejs.org/en/options.html#cachebusting
41 | cacheBusting: true,
42 |
43 | cssSourceMap: true
44 | },
45 |
46 | build: {
47 | // Template for index.html
48 | index: path.resolve(__dirname, '../docs/index.html'),
49 |
50 | // Paths
51 | assetsRoot: path.resolve(__dirname, '../docs'),
52 | assetsSubDirectory: 'static',
53 | assetsPublicPath: '/',
54 |
55 | /**
56 | * Source Maps
57 | */
58 |
59 | productionSourceMap: true,
60 | // https://webpack.js.org/configuration/devtool/#production
61 | devtool: '#source-map',
62 |
63 | // Gzip off by default as many popular static hosts such as
64 | // Surge or Netlify already gzip all static assets for you.
65 | // Before setting to `true`, make sure to:
66 | // npm install --save-dev compression-webpack-plugin
67 | productionGzip: false,
68 | productionGzipExtensions: ['js', 'css'],
69 |
70 | // Run the build command with an extra argument to
71 | // View the bundle analyzer report after build finishes:
72 | // `npm run build --report`
73 | // Set to `true` or `false` to always turn it on or off
74 | bundleAnalyzerReport: process.env.npm_config_report
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const devEnv = require('./dev.env')
4 |
5 | module.exports = merge(devEnv, {
6 | NODE_ENV: '"testing"'
7 | })
8 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
treedrag
--------------------------------------------------------------------------------
/docs/static/css/app.474adf1df5817ed79c5026da158d64d2.css:
--------------------------------------------------------------------------------
1 | #app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}.treeDrag[data-v-611bb5d5]{width:300px;margin-left:auto;margin-right:auto}.leverFirst[data-v-611bb5d5]{border:1px solid gray;width:300px;height:80px;line-height:80px;text-align:center;font-size:20px;margin:1px 0;cursor:move}.leverSecond[data-v-611bb5d5]{border:1px solid #bbb;width:300px;height:60px;line-height:60px;text-align:center;font-size:16px;margin:1px 0;cursor:move}.leverThird[data-v-611bb5d5]{border:1px solid #eee;width:300px;height:40px;line-height:40px;text-align:center;font-size:14px;margin:1px 0;cursor:move}
2 | /*# sourceMappingURL=app.474adf1df5817ed79c5026da158d64d2.css.map */
--------------------------------------------------------------------------------
/docs/static/css/app.474adf1df5817ed79c5026da158d64d2.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["app.474adf1df5817ed79c5026da158d64d2.css"],"names":[],"mappings":"AACA,KACE,8CAAoD,AACpD,mCAAoC,AACpC,kCAAmC,AACnC,kBAAmB,AACnB,cAAe,AACf,eAAiB,CAClB,AAED,2BACE,YAAY,AACZ,iBAAiB,AACjB,iBAAkB,CACnB,AACD,6BACE,sBAAuB,AACvB,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd,AACD,8BACE,sBAA0B,AAC1B,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd,AACD,6BACE,sBAA0B,AAC1B,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd","file":"app.474adf1df5817ed79c5026da158d64d2.css","sourcesContent":["\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n\n.treeDrag[data-v-611bb5d5]{\n width:300px;\n margin-left:auto;\n margin-right:auto;\n}\n.leverFirst[data-v-611bb5d5]{\n border: 1px solid gray;\n width:300px;\n height:80px;\n line-height: 80px;\n text-align: center;\n font-size:20px;\n margin:1px 0px;\n cursor: move;\n}\n.leverSecond[data-v-611bb5d5]{\n border: 1px solid #BBBBBB;\n width:300px;\n height:60px;\n line-height: 60px;\n text-align: center;\n font-size:16px;\n margin:1px 0px;\n cursor: move;\n}\n.leverThird[data-v-611bb5d5]{\n border: 1px solid #EEEEEE;\n width:300px;\n height:40px;\n line-height: 40px;\n text-align: center;\n font-size:14px;\n margin:1px 0px;\n cursor: move;\n}\n"]}
--------------------------------------------------------------------------------
/docs/static/css/app.d93218f5ae212d238fd0ac4b25ad04b5.css:
--------------------------------------------------------------------------------
1 | #app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}.treeDrag[data-v-28498f56]{width:300px;color:#fff;margin-left:auto;margin-right:auto}.firstLevel[data-v-28498f56]{background:#d2691e}.SecondLevel[data-v-28498f56]{background:peru}.leverThird[data-v-28498f56]{background:tan}.leverFirst[data-v-28498f56]{border:1px solid gray;width:300px;height:80px;line-height:80px;text-align:center;font-size:20px;margin:1px 0;cursor:move}.leverSecond[data-v-28498f56]{border:1px solid #bbb;width:300px;height:60px;line-height:60px;text-align:center;font-size:16px;margin:1px 0;cursor:move}.leverThird[data-v-28498f56]{border:1px solid #eee;width:300px;height:40px;line-height:40px;text-align:center;font-size:14px;margin:1px 0;cursor:move}
2 | /*# sourceMappingURL=app.d93218f5ae212d238fd0ac4b25ad04b5.css.map */
--------------------------------------------------------------------------------
/docs/static/css/app.d93218f5ae212d238fd0ac4b25ad04b5.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["app.d93218f5ae212d238fd0ac4b25ad04b5.css"],"names":[],"mappings":"AACA,KACE,8CAAoD,AACpD,mCAAoC,AACpC,kCAAmC,AACnC,kBAAmB,AACnB,cAAe,AACf,eAAiB,CAClB,AAED,2BACE,YAAY,AACZ,WAAY,AACZ,iBAAiB,AACjB,iBAAkB,CACnB,AACD,6BACE,kBAAmB,CACpB,AACD,8BACE,eAAmB,CACpB,AACD,6BACE,cAAmB,CACpB,AACD,6BACE,sBAAuB,AACvB,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd,AACD,8BACE,sBAA0B,AAC1B,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd,AACD,6BACE,sBAA0B,AAC1B,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd","file":"app.d93218f5ae212d238fd0ac4b25ad04b5.css","sourcesContent":["\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n\n.treeDrag[data-v-28498f56]{\n width:300px;\n color: #fff;\n margin-left:auto;\n margin-right:auto;\n}\n.firstLevel[data-v-28498f56]{\n background:#D2691E;\n}\n.SecondLevel[data-v-28498f56]{\n background:#CD853F;\n}\n.leverThird[data-v-28498f56]{\n background:#D2B48C;\n}\n.leverFirst[data-v-28498f56]{\n border: 1px solid gray;\n width:300px;\n height:80px;\n line-height: 80px;\n text-align: center;\n font-size:20px;\n margin:1px 0px;\n cursor: move;\n}\n.leverSecond[data-v-28498f56]{\n border: 1px solid #BBBBBB;\n width:300px;\n height:60px;\n line-height: 60px;\n text-align: center;\n font-size:16px;\n margin:1px 0px;\n cursor: move;\n}\n.leverThird[data-v-28498f56]{\n border: 1px solid #EEEEEE;\n width:300px;\n height:40px;\n line-height: 40px;\n text-align: center;\n font-size:14px;\n margin:1px 0px;\n cursor: move;\n}\n"]}
--------------------------------------------------------------------------------
/docs/static/js/app.7c262fc0e48646b22507.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([1],{NHnr:function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a("7+uW"),r=a("DAYN"),i={name:"treeDrag",components:{draggable:a.n(r).a},data:()=>({data:[{name:"我是一级分类1",id:1,children:[{name:"我是二级分类10",id:10,children:[{name:"我是三级分类100",id:100},{name:"我是三级分类101",id:101}]},{name:"我是二级分类11",id:11,children:[{name:"我是三级分类110",id:110},{name:"我是三级分类111",id:101}]}]},{name:"我是一级分类2",id:2,children:[{name:"我是二级分类20",id:20,children:[{name:"我是三级分类210",id:200}]}]}]})},d={render:function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("div",{staticClass:"treeDrag"},[a("draggable",{attrs:{list:e.data,options:{forceFallback:!0}}},e._l(e.data,function(n){return a("div",{key:n.id},[a("div",{staticClass:"leverFirst"},[e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),a("draggable",{attrs:{list:n.children,options:{forceFallback:!0}}},e._l(n.children,function(n){return a("div",{key:n.id},[a("div",{staticClass:"leverSecond"},[e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),a("draggable",{attrs:{list:n.children,options:{forceFallback:!0}}},e._l(n.children,function(n){return a("div",{key:n.id},[a("div",{staticClass:"leverThird"},[e._v("\n "+e._s(n.name)+"\n ")])])}),0)],1)}),0)],1)}),0)],1)},staticRenderFns:[]};var c={name:"App",components:{treeDrag:a("VU/8")(i,d,!1,function(e){a("Wzc8")},"data-v-611bb5d5",null).exports}},l={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("treeDrag")],1)},staticRenderFns:[]};var s=a("VU/8")(c,l,!1,function(e){a("e/9Z")},null,null).exports;t.a.config.productionTip=!1,new t.a({el:"#app",components:{App:s},template:""})},Wzc8:function(e,n){},"e/9Z":function(e,n){}},["NHnr"]);
2 | //# sourceMappingURL=app.7c262fc0e48646b22507.js.map
--------------------------------------------------------------------------------
/docs/static/js/app.7c262fc0e48646b22507.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///src/components/treeDrag.vue","webpack:///./src/components/treeDrag.vue?4007","webpack:///./src/components/treeDrag.vue","webpack:///src/App.vue","webpack:///./src/App.vue?f78b","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["treeDrag","name","components","draggable","a","data","id","children","components_treeDrag","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","list","options","forceFallback","_l","item","key","_v","_s","it","ele","staticRenderFns","App","__webpack_require__","normalizeComponent","ssrContext","selectortype_template_index_0_src_App","src_App","App_normalizeComponent","Vue","config","productionTip","el","template"],"mappings":"iIA4BAA,GACAC,KAAA,WACAC,YAAAC,iBAAAC,GACAC,KAAA,MAEAA,OACAJ,KAAA,UACAK,GAAA,EACAC,WACAN,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,MAEAL,KAAA,YACAK,GAAA,QAGAL,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,MAEAL,KAAA,YACAK,GAAA,UAIAL,KAAA,UACAK,GAAA,EACAC,WACAN,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,aC9DeE,GADEC,OAFjB,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,aAAuBF,EAAA,aAAkBG,OAAOC,KAAAR,EAAAL,KAAAc,SAA2BC,eAAA,KAAwBV,EAAAW,GAAAX,EAAA,cAAAY,GAAkC,OAAAR,EAAA,OAAiBS,IAAAD,EAAAhB,KAAYQ,EAAA,OAAYE,YAAA,eAAyBN,EAAAc,GAAA,eAAAd,EAAAe,GAAAH,EAAArB,MAAA,gBAAAS,EAAAc,GAAA,KAAAV,EAAA,aAAsFG,OAAOC,KAAAI,EAAAf,SAAAY,SAAgCC,eAAA,KAAwBV,EAAAW,GAAAC,EAAA,kBAAAI,GAAqC,OAAAZ,EAAA,OAAiBS,IAAAG,EAAApB,KAAUQ,EAAA,OAAYE,YAAA,gBAA0BN,EAAAc,GAAA,iBAAAd,EAAAe,GAAAC,EAAAzB,MAAA,kBAAAS,EAAAc,GAAA,KAAAV,EAAA,aAAwFG,OAAOC,KAAAQ,EAAAnB,SAAAY,SAA8BC,eAAA,KAAwBV,EAAAW,GAAAK,EAAA,kBAAAC,GAAoC,OAAAb,EAAA,OAAiBS,IAAAI,EAAArB,KAAWQ,EAAA,OAAYE,YAAA,eAAyBN,EAAAc,GAAA,uBAAAd,EAAAe,GAAAE,EAAA1B,MAAA,4BAA2E,SAAS,SAAS,QAEl3B2B,oBCCjB,ICMAC,GACA5B,KAAA,MACAC,YACIF,SDTqB8B,EAAQ,OAcjCC,CACE/B,EACAQ,GATF,EAVA,SAAAwB,GACEF,EAAQ,SAaV,kBAEA,MAUgC,UEvBjBG,GADExB,OAFP,WAAgB,IAAaG,EAAbD,KAAaE,eAA0BC,EAAvCH,KAAuCI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBG,OAAOX,GAAA,SAAYQ,EAAA,iBAE7Fc,oBCChC,IAuBeM,EAvBUJ,EAAQ,OAcjBK,CACdN,EACAI,GAT6B,EAV/B,SAAoBD,GAClBF,EAAQ,SAaS,KAEU,MAUG,QCrBhCM,IAAIC,OAAOC,eAAgB,EAG3B,IAAIF,KACFG,GAAI,OACJrC,YAAc2B,OACdW,SAAU","file":"static/js/app.7c262fc0e48646b22507.js","sourcesContent":["\n \n
\n \n
\n {{item.name}}\n
\n
\n \n
\n {{it.name}}\n
\n
\n \n \n
\n \n
\n \n
\n\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/treeDrag.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"treeDrag\"},[_c('draggable',{attrs:{\"list\":_vm.data,\"options\":{ forceFallback: true }}},_vm._l((_vm.data),function(item){return _c('div',{key:item.id},[_c('div',{staticClass:\"leverFirst\"},[_vm._v(\"\\n \"+_vm._s(item.name)+\"\\n \")]),_vm._v(\" \"),_c('draggable',{attrs:{\"list\":item.children,\"options\":{ forceFallback: true }}},_vm._l((item.children),function(it){return _c('div',{key:it.id},[_c('div',{staticClass:\"leverSecond\"},[_vm._v(\"\\n \"+_vm._s(it.name)+\"\\n \")]),_vm._v(\" \"),_c('draggable',{attrs:{\"list\":it.children,\"options\":{ forceFallback: true }}},_vm._l((it.children),function(ele){return _c('div',{key:ele.id},[_c('div',{staticClass:\"leverThird\"},[_vm._v(\"\\n \"+_vm._s(ele.name)+\"\\n \")])])}),0)],1)}),0)],1)}),0)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-611bb5d5\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/treeDrag.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-611bb5d5\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./treeDrag.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./treeDrag.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./treeDrag.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-611bb5d5\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./treeDrag.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-611bb5d5\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/treeDrag.vue\n// module id = null\n// module chunks = ","\n \n \n
\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('treeDrag')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-24e8c79a\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-24e8c79a\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-24e8c79a\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// 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 Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n components: { App },\n template: ''\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
--------------------------------------------------------------------------------
/docs/static/js/app.d656102e76584fd15d32.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([1],{"9h0J":function(e,n){},NHnr:function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a("7+uW"),i=a("DAYN"),r={name:"treeDrag",components:{draggable:a.n(i).a},data:()=>({data:[{name:"我是一级分类1",id:1,children:[{name:"我是二级分类10",id:10,children:[{name:"我是三级分类100",id:100},{name:"我是三级分类101",id:101}]},{name:"我是二级分类11",id:11,children:[{name:"我是三级分类110",id:110},{name:"我是三级分类111",id:101}]}]},{name:"我是一级分类2",id:2,children:[{name:"我是二级分类20",id:20,children:[{name:"我是三级分类210",id:200}]}]}]})},s={render:function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("div",{staticClass:"treeDrag"},[a("draggable",{attrs:{list:e.data,options:{forceFallback:!0}}},e._l(e.data,function(n){return a("div",{key:n.id,staticClass:"firstLevel"},[a("div",{staticClass:"leverFirst"},[e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),a("draggable",{attrs:{list:n.children,options:{forceFallback:!0}}},e._l(n.children,function(n){return a("div",{key:n.id,staticClass:"SecondLevel"},[a("div",{staticClass:"leverSecond"},[e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),a("draggable",{attrs:{list:n.children,options:{forceFallback:!0}}},e._l(n.children,function(n){return a("div",{key:n.id,staticClass:"ThirdLevel"},[a("div",{staticClass:"leverThird"},[e._v("\n "+e._s(n.name)+"\n ")])])}),0)],1)}),0)],1)}),0)],1)},staticRenderFns:[]};var l={name:"App",components:{treeDrag:a("VU/8")(r,s,!1,function(e){a("9h0J")},"data-v-28498f56",null).exports}},d={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("treeDrag")],1)},staticRenderFns:[]};var c=a("VU/8")(l,d,!1,function(e){a("e/9Z")},null,null).exports;t.a.config.productionTip=!1,new t.a({el:"#app",components:{App:c},template:""})},"e/9Z":function(e,n){}},["NHnr"]);
2 | //# sourceMappingURL=app.d656102e76584fd15d32.js.map
--------------------------------------------------------------------------------
/docs/static/js/app.d656102e76584fd15d32.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///src/components/treeDrag.vue","webpack:///./src/components/treeDrag.vue?a8af","webpack:///./src/components/treeDrag.vue","webpack:///src/App.vue","webpack:///./src/App.vue?f78b","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["treeDrag","name","components","draggable","a","data","id","children","components_treeDrag","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","list","options","forceFallback","_l","item","key","_v","_s","it","ele","staticRenderFns","App","__webpack_require__","normalizeComponent","ssrContext","selectortype_template_index_0_src_App","src_App","App_normalizeComponent","Vue","config","productionTip","el","template"],"mappings":"wJA4BAA,GACAC,KAAA,WACAC,YAAAC,iBAAAC,GACAC,KAAA,MAEAA,OACAJ,KAAA,UACAK,GAAA,EACAC,WACAN,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,MAEAL,KAAA,YACAK,GAAA,QAGAL,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,MAEAL,KAAA,YACAK,GAAA,UAIAL,KAAA,UACAK,GAAA,EACAC,WACAN,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,aC9DeE,GADEC,OAFjB,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,aAAuBF,EAAA,aAAkBG,OAAOC,KAAAR,EAAAL,KAAAc,SAA2BC,eAAA,KAAwBV,EAAAW,GAAAX,EAAA,cAAAY,GAAkC,OAAAR,EAAA,OAAiBS,IAAAD,EAAAhB,GAAAU,YAAA,eAAqCF,EAAA,OAAYE,YAAA,eAAyBN,EAAAc,GAAA,eAAAd,EAAAe,GAAAH,EAAArB,MAAA,gBAAAS,EAAAc,GAAA,KAAAV,EAAA,aAAsFG,OAAOC,KAAAI,EAAAf,SAAAY,SAAgCC,eAAA,KAAwBV,EAAAW,GAAAC,EAAA,kBAAAI,GAAqC,OAAAZ,EAAA,OAAiBS,IAAAG,EAAApB,GAAAU,YAAA,gBAAoCF,EAAA,OAAYE,YAAA,gBAA0BN,EAAAc,GAAA,iBAAAd,EAAAe,GAAAC,EAAAzB,MAAA,kBAAAS,EAAAc,GAAA,KAAAV,EAAA,aAAwFG,OAAOC,KAAAQ,EAAAnB,SAAAY,SAA8BC,eAAA,KAAwBV,EAAAW,GAAAK,EAAA,kBAAAC,GAAoC,OAAAb,EAAA,OAAiBS,IAAAI,EAAArB,GAAAU,YAAA,eAAoCF,EAAA,OAAYE,YAAA,eAAyBN,EAAAc,GAAA,uBAAAd,EAAAe,GAAAE,EAAA1B,MAAA,4BAA2E,SAAS,SAAS,QAE97B2B,oBCCjB,ICMAC,GACA5B,KAAA,MACAC,YACIF,SDTqB8B,EAAQ,OAcjCC,CACE/B,EACAQ,GATF,EAVA,SAAAwB,GACEF,EAAQ,SAaV,kBAEA,MAUgC,UEvBjBG,GADExB,OAFP,WAAgB,IAAaG,EAAbD,KAAaE,eAA0BC,EAAvCH,KAAuCI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBG,OAAOX,GAAA,SAAYQ,EAAA,iBAE7Fc,oBCChC,IAuBeM,EAvBUJ,EAAQ,OAcjBK,CACdN,EACAI,GAT6B,EAV/B,SAAoBD,GAClBF,EAAQ,SAaS,KAEU,MAUG,QCrBhCM,IAAIC,OAAOC,eAAgB,EAG3B,IAAIF,KACFG,GAAI,OACJrC,YAAc2B,OACdW,SAAU","file":"static/js/app.d656102e76584fd15d32.js","sourcesContent":["\n \n
\n \n
\n {{item.name}}\n
\n
\n \n
\n {{it.name}}\n
\n
\n \n \n
\n \n
\n \n
\n\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/treeDrag.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"treeDrag\"},[_c('draggable',{attrs:{\"list\":_vm.data,\"options\":{ forceFallback: true }}},_vm._l((_vm.data),function(item){return _c('div',{key:item.id,staticClass:\"firstLevel\"},[_c('div',{staticClass:\"leverFirst\"},[_vm._v(\"\\n \"+_vm._s(item.name)+\"\\n \")]),_vm._v(\" \"),_c('draggable',{attrs:{\"list\":item.children,\"options\":{ forceFallback: true }}},_vm._l((item.children),function(it){return _c('div',{key:it.id,staticClass:\"SecondLevel\"},[_c('div',{staticClass:\"leverSecond\"},[_vm._v(\"\\n \"+_vm._s(it.name)+\"\\n \")]),_vm._v(\" \"),_c('draggable',{attrs:{\"list\":it.children,\"options\":{ forceFallback: true }}},_vm._l((it.children),function(ele){return _c('div',{key:ele.id,staticClass:\"ThirdLevel\"},[_c('div',{staticClass:\"leverThird\"},[_vm._v(\"\\n \"+_vm._s(ele.name)+\"\\n \")])])}),0)],1)}),0)],1)}),0)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-28498f56\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/treeDrag.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-28498f56\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./treeDrag.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./treeDrag.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./treeDrag.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-28498f56\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./treeDrag.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-28498f56\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/treeDrag.vue\n// module id = null\n// module chunks = ","\n \n \n
\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('treeDrag')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-24e8c79a\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-24e8c79a\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-24e8c79a\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// 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 Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n components: { App },\n template: ''\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
--------------------------------------------------------------------------------
/docs/static/js/manifest.3ad1d5771e9b13dbdad2.js:
--------------------------------------------------------------------------------
1 | !function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a
2 |
3 |
4 |
5 |
6 | treedrag
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "treedrag",
3 | "version": "1.0.0",
4 | "description": "Drag and drop in a tree",
5 | "author": "pow",
6 | "private": true,
7 | "scripts": {
8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9 | "start": "npm run dev",
10 | "unit": "jest --config test/unit/jest.conf.js --coverage",
11 | "test": "npm run unit",
12 | "lint": "eslint --ext .js,.vue src test/unit",
13 | "build": "node build/build.js"
14 | },
15 | "dependencies": {
16 | "vue": "^2.5.2",
17 | "vuedraggable": "^2.17.0"
18 | },
19 | "devDependencies": {
20 | "autoprefixer": "^7.1.2",
21 | "babel-core": "^6.22.1",
22 | "babel-eslint": "^8.2.1",
23 | "babel-helper-vue-jsx-merge-props": "^2.0.3",
24 | "babel-jest": "^21.0.2",
25 | "babel-loader": "^7.1.1",
26 | "babel-plugin-dynamic-import-node": "^1.2.0",
27 | "babel-plugin-syntax-jsx": "^6.18.0",
28 | "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
29 | "babel-plugin-transform-runtime": "^6.22.0",
30 | "babel-plugin-transform-vue-jsx": "^3.5.0",
31 | "babel-preset-env": "^1.3.2",
32 | "babel-preset-stage-2": "^6.22.0",
33 | "chalk": "^2.0.1",
34 | "copy-webpack-plugin": "^4.0.1",
35 | "css-loader": "^0.28.0",
36 | "eslint": "^4.15.0",
37 | "eslint-config-standard": "^10.2.1",
38 | "eslint-friendly-formatter": "^3.0.0",
39 | "eslint-loader": "^1.7.1",
40 | "eslint-plugin-import": "^2.7.0",
41 | "eslint-plugin-node": "^5.2.0",
42 | "eslint-plugin-promise": "^3.4.0",
43 | "eslint-plugin-standard": "^3.0.1",
44 | "eslint-plugin-vue": "^4.0.0",
45 | "extract-text-webpack-plugin": "^3.0.0",
46 | "file-loader": "^1.1.4",
47 | "friendly-errors-webpack-plugin": "^1.6.1",
48 | "html-webpack-plugin": "^2.30.1",
49 | "jest": "^22.0.4",
50 | "jest-serializer-vue": "^0.3.0",
51 | "node-notifier": "^5.1.2",
52 | "optimize-css-assets-webpack-plugin": "^3.2.0",
53 | "ora": "^1.2.0",
54 | "portfinder": "^1.0.13",
55 | "postcss-import": "^11.0.0",
56 | "postcss-loader": "^2.0.8",
57 | "postcss-url": "^7.2.1",
58 | "rimraf": "^2.6.0",
59 | "semver": "^5.3.0",
60 | "shelljs": "^0.7.6",
61 | "uglifyjs-webpack-plugin": "^1.1.1",
62 | "url-loader": "^0.5.8",
63 | "vue-jest": "^1.0.2",
64 | "vue-loader": "^13.3.0",
65 | "vue-style-loader": "^3.0.1",
66 | "vue-template-compiler": "^2.5.2",
67 | "webpack": "^3.6.0",
68 | "webpack-bundle-analyzer": "^2.9.0",
69 | "webpack-dev-server": "^2.9.1",
70 | "webpack-merge": "^4.1.0"
71 | },
72 | "engines": {
73 | "node": ">= 6.0.0",
74 | "npm": ">= 3.0.0"
75 | },
76 | "browserslist": [
77 | "> 1%",
78 | "last 2 versions",
79 | "not ie <= 8"
80 | ]
81 | }
82 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
17 |
18 |
28 |
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/powhd/treeDrag/dd14b96976ff89038d5cf4a600f0ee8126b1ae4f/src/assets/logo.png
--------------------------------------------------------------------------------
/src/components/treeDrag.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{item.name}}
7 |
8 |
9 |
10 |
11 | {{it.name}}
12 |
13 |
14 |
15 |
16 | {{ele.name}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
74 |
75 |
76 |
124 |
--------------------------------------------------------------------------------
/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 Vue from 'vue'
4 | import App from './App'
5 |
6 | Vue.config.productionTip = false
7 |
8 | /* eslint-disable no-new */
9 | new Vue({
10 | el: '#app',
11 | components: { App },
12 | template: ''
13 | })
14 |
--------------------------------------------------------------------------------
/static/css/app.474adf1df5817ed79c5026da158d64d2.css:
--------------------------------------------------------------------------------
1 | #app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}.treeDrag[data-v-611bb5d5]{width:300px;margin-left:auto;margin-right:auto}.leverFirst[data-v-611bb5d5]{border:1px solid gray;width:300px;height:80px;line-height:80px;text-align:center;font-size:20px;margin:1px 0;cursor:move}.leverSecond[data-v-611bb5d5]{border:1px solid #bbb;width:300px;height:60px;line-height:60px;text-align:center;font-size:16px;margin:1px 0;cursor:move}.leverThird[data-v-611bb5d5]{border:1px solid #eee;width:300px;height:40px;line-height:40px;text-align:center;font-size:14px;margin:1px 0;cursor:move}
2 | /*# sourceMappingURL=app.474adf1df5817ed79c5026da158d64d2.css.map */
--------------------------------------------------------------------------------
/static/css/app.474adf1df5817ed79c5026da158d64d2.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["app.474adf1df5817ed79c5026da158d64d2.css"],"names":[],"mappings":"AACA,KACE,8CAAoD,AACpD,mCAAoC,AACpC,kCAAmC,AACnC,kBAAmB,AACnB,cAAe,AACf,eAAiB,CAClB,AAED,2BACE,YAAY,AACZ,iBAAiB,AACjB,iBAAkB,CACnB,AACD,6BACE,sBAAuB,AACvB,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd,AACD,8BACE,sBAA0B,AAC1B,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd,AACD,6BACE,sBAA0B,AAC1B,YAAY,AACZ,YAAY,AACZ,iBAAkB,AAClB,kBAAmB,AACnB,eAAe,AACf,aAAe,AACf,WAAa,CACd","file":"app.474adf1df5817ed79c5026da158d64d2.css","sourcesContent":["\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n\n.treeDrag[data-v-611bb5d5]{\n width:300px;\n margin-left:auto;\n margin-right:auto;\n}\n.leverFirst[data-v-611bb5d5]{\n border: 1px solid gray;\n width:300px;\n height:80px;\n line-height: 80px;\n text-align: center;\n font-size:20px;\n margin:1px 0px;\n cursor: move;\n}\n.leverSecond[data-v-611bb5d5]{\n border: 1px solid #BBBBBB;\n width:300px;\n height:60px;\n line-height: 60px;\n text-align: center;\n font-size:16px;\n margin:1px 0px;\n cursor: move;\n}\n.leverThird[data-v-611bb5d5]{\n border: 1px solid #EEEEEE;\n width:300px;\n height:40px;\n line-height: 40px;\n text-align: center;\n font-size:14px;\n margin:1px 0px;\n cursor: move;\n}\n"]}
--------------------------------------------------------------------------------
/static/js/app.7c262fc0e48646b22507.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([1],{NHnr:function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=a("7+uW"),r=a("DAYN"),i={name:"treeDrag",components:{draggable:a.n(r).a},data:()=>({data:[{name:"我是一级分类1",id:1,children:[{name:"我是二级分类10",id:10,children:[{name:"我是三级分类100",id:100},{name:"我是三级分类101",id:101}]},{name:"我是二级分类11",id:11,children:[{name:"我是三级分类110",id:110},{name:"我是三级分类111",id:101}]}]},{name:"我是一级分类2",id:2,children:[{name:"我是二级分类20",id:20,children:[{name:"我是三级分类210",id:200}]}]}]})},d={render:function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("div",{staticClass:"treeDrag"},[a("draggable",{attrs:{list:e.data,options:{forceFallback:!0}}},e._l(e.data,function(n){return a("div",{key:n.id},[a("div",{staticClass:"leverFirst"},[e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),a("draggable",{attrs:{list:n.children,options:{forceFallback:!0}}},e._l(n.children,function(n){return a("div",{key:n.id},[a("div",{staticClass:"leverSecond"},[e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),a("draggable",{attrs:{list:n.children,options:{forceFallback:!0}}},e._l(n.children,function(n){return a("div",{key:n.id},[a("div",{staticClass:"leverThird"},[e._v("\n "+e._s(n.name)+"\n ")])])}),0)],1)}),0)],1)}),0)],1)},staticRenderFns:[]};var c={name:"App",components:{treeDrag:a("VU/8")(i,d,!1,function(e){a("Wzc8")},"data-v-611bb5d5",null).exports}},l={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("treeDrag")],1)},staticRenderFns:[]};var s=a("VU/8")(c,l,!1,function(e){a("e/9Z")},null,null).exports;t.a.config.productionTip=!1,new t.a({el:"#app",components:{App:s},template:""})},Wzc8:function(e,n){},"e/9Z":function(e,n){}},["NHnr"]);
2 | //# sourceMappingURL=app.7c262fc0e48646b22507.js.map
--------------------------------------------------------------------------------
/static/js/app.7c262fc0e48646b22507.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///src/components/treeDrag.vue","webpack:///./src/components/treeDrag.vue?4007","webpack:///./src/components/treeDrag.vue","webpack:///src/App.vue","webpack:///./src/App.vue?f78b","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["treeDrag","name","components","draggable","a","data","id","children","components_treeDrag","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","list","options","forceFallback","_l","item","key","_v","_s","it","ele","staticRenderFns","App","__webpack_require__","normalizeComponent","ssrContext","selectortype_template_index_0_src_App","src_App","App_normalizeComponent","Vue","config","productionTip","el","template"],"mappings":"iIA4BAA,GACAC,KAAA,WACAC,YAAAC,iBAAAC,GACAC,KAAA,MAEAA,OACAJ,KAAA,UACAK,GAAA,EACAC,WACAN,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,MAEAL,KAAA,YACAK,GAAA,QAGAL,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,MAEAL,KAAA,YACAK,GAAA,UAIAL,KAAA,UACAK,GAAA,EACAC,WACAN,KAAA,WACAK,GAAA,GACAC,WACAN,KAAA,YACAK,GAAA,aC9DeE,GADEC,OAFjB,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,aAAuBF,EAAA,aAAkBG,OAAOC,KAAAR,EAAAL,KAAAc,SAA2BC,eAAA,KAAwBV,EAAAW,GAAAX,EAAA,cAAAY,GAAkC,OAAAR,EAAA,OAAiBS,IAAAD,EAAAhB,KAAYQ,EAAA,OAAYE,YAAA,eAAyBN,EAAAc,GAAA,eAAAd,EAAAe,GAAAH,EAAArB,MAAA,gBAAAS,EAAAc,GAAA,KAAAV,EAAA,aAAsFG,OAAOC,KAAAI,EAAAf,SAAAY,SAAgCC,eAAA,KAAwBV,EAAAW,GAAAC,EAAA,kBAAAI,GAAqC,OAAAZ,EAAA,OAAiBS,IAAAG,EAAApB,KAAUQ,EAAA,OAAYE,YAAA,gBAA0BN,EAAAc,GAAA,iBAAAd,EAAAe,GAAAC,EAAAzB,MAAA,kBAAAS,EAAAc,GAAA,KAAAV,EAAA,aAAwFG,OAAOC,KAAAQ,EAAAnB,SAAAY,SAA8BC,eAAA,KAAwBV,EAAAW,GAAAK,EAAA,kBAAAC,GAAoC,OAAAb,EAAA,OAAiBS,IAAAI,EAAArB,KAAWQ,EAAA,OAAYE,YAAA,eAAyBN,EAAAc,GAAA,uBAAAd,EAAAe,GAAAE,EAAA1B,MAAA,4BAA2E,SAAS,SAAS,QAEl3B2B,oBCCjB,ICMAC,GACA5B,KAAA,MACAC,YACIF,SDTqB8B,EAAQ,OAcjCC,CACE/B,EACAQ,GATF,EAVA,SAAAwB,GACEF,EAAQ,SAaV,kBAEA,MAUgC,UEvBjBG,GADExB,OAFP,WAAgB,IAAaG,EAAbD,KAAaE,eAA0BC,EAAvCH,KAAuCI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBG,OAAOX,GAAA,SAAYQ,EAAA,iBAE7Fc,oBCChC,IAuBeM,EAvBUJ,EAAQ,OAcjBK,CACdN,EACAI,GAT6B,EAV/B,SAAoBD,GAClBF,EAAQ,SAaS,KAEU,MAUG,QCrBhCM,IAAIC,OAAOC,eAAgB,EAG3B,IAAIF,KACFG,GAAI,OACJrC,YAAc2B,OACdW,SAAU","file":"static/js/app.7c262fc0e48646b22507.js","sourcesContent":["\n \n
\n \n
\n {{item.name}}\n
\n
\n \n
\n {{it.name}}\n
\n
\n \n \n
\n \n
\n \n
\n\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/treeDrag.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"treeDrag\"},[_c('draggable',{attrs:{\"list\":_vm.data,\"options\":{ forceFallback: true }}},_vm._l((_vm.data),function(item){return _c('div',{key:item.id},[_c('div',{staticClass:\"leverFirst\"},[_vm._v(\"\\n \"+_vm._s(item.name)+\"\\n \")]),_vm._v(\" \"),_c('draggable',{attrs:{\"list\":item.children,\"options\":{ forceFallback: true }}},_vm._l((item.children),function(it){return _c('div',{key:it.id},[_c('div',{staticClass:\"leverSecond\"},[_vm._v(\"\\n \"+_vm._s(it.name)+\"\\n \")]),_vm._v(\" \"),_c('draggable',{attrs:{\"list\":it.children,\"options\":{ forceFallback: true }}},_vm._l((it.children),function(ele){return _c('div',{key:ele.id},[_c('div',{staticClass:\"leverThird\"},[_vm._v(\"\\n \"+_vm._s(ele.name)+\"\\n \")])])}),0)],1)}),0)],1)}),0)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-611bb5d5\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/treeDrag.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-611bb5d5\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./treeDrag.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./treeDrag.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./treeDrag.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-611bb5d5\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./treeDrag.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-611bb5d5\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/treeDrag.vue\n// module id = null\n// module chunks = ","\n \n \n
\n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('treeDrag')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-24e8c79a\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-24e8c79a\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-24e8c79a\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// 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 Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n components: { App },\n template: ''\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
--------------------------------------------------------------------------------
/static/js/manifest.3ad1d5771e9b13dbdad2.js:
--------------------------------------------------------------------------------
1 | !function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var C=/-(\w)/g,w=b(function(e){return e.replace(C,function(e,t){return t?t.toUpperCase():""})}),x=b(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),$=/\B([A-Z])/g,k=b(function(e){return e.replace($,"-$1").toLowerCase()});var A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function O(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function S(e,t){for(var n in t)e[n]=t[n];return e}function T(e){for(var t={},n=0;n0,G=q&&q.indexOf("edge/")>0,Z=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===W),Q=(q&&/chrome\/\d+/.test(q),{}.watch),ee=!1;if(z)try{var te={};Object.defineProperty(te,"passive",{get:function(){ee=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var ne=function(){return void 0===V&&(V=!z&&!Y&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),V},re=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);oe="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=D,ce=0,le=function(){this.id=ce++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){g(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===k(e)){var c=Fe(String,i.type);(c<0||s0&&(ct((l=e(l,(n||"")+"_"+c))[0])&&ct(f)&&(s[u]=me(f.text+l[0].text),l.shift()),s.push.apply(s,l)):a(l)?ct(f)?s[u]=me(f.text+l):""!==l&&s.push(me(l)):ct(l)&&ct(f)?s[u]=me(f.text+l.text):(o(t._isVList)&&i(l.tag)&&r(l.key)&&i(n)&&(l.key="__vlist"+n+"_"+c+"__"),s.push(l)));return s}(e):void 0}function ct(e){return i(e)&&i(e.text)&&!1===e.isComment}function lt(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function ut(e){return e.isComment&&e.asyncFactory}function ft(e){if(Array.isArray(e))for(var t=0;tTt&&$t[n].id>e.id;)n--;$t.splice(n+1,0,e)}else $t.push(e);Ot||(Ot=!0,Ze(Dt))}}(this)},Nt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Be(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Nt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Nt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Nt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var It={enumerable:!0,configurable:!0,get:D,set:D};function Mt(e,t,n){It.get=function(){return this[t][n]},It.set=function(e){this[t][n]=e},Object.defineProperty(e,n,It)}function Lt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||we(!1);var a=function(o){i.push(o);var a=je(o,t,n,e);ke(r,o,a),o in e||Mt(e,"_props",o)};for(var s in t)a(s);we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?D:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){fe();try{return e.call(t,t)}catch(e){return Be(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&_(r,o)||B(o)||Mt(e,"_data",o)}$e(t,!0)}(e):$e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ne();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Nt(e,a||D,D,jt)),i in e||Pt(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Q&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function vn(e){this._init(e)}function hn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Me(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)Mt(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)Pt(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,P.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=S({},a.options),i[r]=a,a}}function mn(e){return e&&(e.Ctor.options.name||e.tag)}function gn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function yn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=mn(a.componentOptions);s&&!t(s)&&_n(n,o,r,i)}}}function _n(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=fn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(dn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&ht(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=mt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return un(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return un(e,t,n,r,i,!0)};var o=r&&r.data;ke(e,"$attrs",o&&o.attrs||n,null,!0),ke(e,"$listeners",t._parentListeners||n,null,!0)}(t),xt(t,"beforeCreate"),function(e){var t=Ut(e.$options.inject,e);t&&(we(!1),Object.keys(t).forEach(function(n){ke(e,n,t[n])}),we(!0))}(t),Lt(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(vn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ae,e.prototype.$delete=Oe,e.prototype.$watch=function(e,t,n){if(l(t))return Bt(this,e,t,n);(n=n||{}).user=!0;var r=new Nt(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Be(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(vn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?O(n):n;for(var r=O(arguments,1),i=0,o=n.length;iparseInt(this.max)&&_n(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:S,mergeOptions:Me,defineReactive:ke},e.set=Ae,e.delete=Oe,e.nextTick=Ze,e.options=Object.create(null),P.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,S(e.options.components,Cn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),hn(e),function(e){P.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(vn),Object.defineProperty(vn.prototype,"$isServer",{get:ne}),Object.defineProperty(vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(vn,"FunctionalRenderContext",{value:en}),vn.version="2.5.21";var wn=v("style,class"),xn=v("input,textarea,option,select,progress"),$n=function(e,t,n){return"value"===n&&xn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},kn=v("contenteditable,draggable,spellcheck"),An=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),On="http://www.w3.org/1999/xlink",Sn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Tn=function(e){return Sn(e)?e.slice(6,e.length):""},Dn=function(e){return null==e||!1===e};function En(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Nn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Nn(t,n.data));return function(e,t){if(i(e)||i(t))return In(e,Mn(t));return""}(t.staticClass,t.class)}function Nn(e,t){return{staticClass:In(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function In(e,t){return e?t?e+" "+t:e:t||""}function Mn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r-1?or(e,t,n):An(t)?Dn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):kn(t)?e.setAttribute(t,Dn(n)||"false"===n?"false":"true"):Sn(t)?Dn(n)?e.removeAttributeNS(On,Tn(t)):e.setAttributeNS(On,t,n):or(e,t,n)}function or(e,t,n){if(Dn(n))e.removeAttribute(t);else{if(K&&!J&&("TEXTAREA"===e.tagName||"INPUT"===e.tagName)&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var ar={create:rr,update:rr};function sr(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=En(t),c=n._transitionClasses;i(c)&&(s=In(s,Mn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var cr,lr,ur,fr,dr,pr,vr={create:sr,update:sr},hr=/[\w).+\-_$\]]/;function mr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&hr.test(h)||(l=!0)}}else void 0===i?(p=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:e.slice(0,fr),key:'"'+e.slice(fr+1)+'"'}:{exp:e,key:null};lr=e,fr=dr=pr=0;for(;!Dr();)Er(ur=Tr())?Ir(ur):91===ur&&Nr(ur);return{exp:e.slice(0,dr),key:e.slice(dr+1,pr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Tr(){return lr.charCodeAt(++fr)}function Dr(){return fr>=cr}function Er(e){return 34===e||39===e}function Nr(e){var t=1;for(dr=fr;!Dr();)if(Er(e=Tr()))Ir(e);else if(91===e&&t++,93===e&&t--,0===t){pr=fr;break}}function Ir(e){for(var t=e;!Dr()&&(e=Tr())!==t;);}var Mr,Lr="__r",jr="__c";function Pr(e,t,n){var r=Mr;return function i(){null!==t.apply(null,arguments)&&Fr(e,i,n,r)}}function Rr(e,t,n,r){var i;t=(i=t)._withTask||(i._withTask=function(){qe=!0;try{return i.apply(null,arguments)}finally{qe=!1}}),Mr.addEventListener(e,t,ee?{capture:n,passive:r}:n)}function Fr(e,t,n,r){(r||Mr).removeEventListener(e,t._withTask||t,n)}function Br(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Mr=t.elm,function(e){if(i(e[Lr])){var t=K?"change":"input";e[t]=[].concat(e[Lr],e[t]||[]),delete e[Lr]}i(e[jr])&&(e.change=[].concat(e[jr],e.change||[]),delete e[jr])}(n),it(n,o,Rr,Fr,Pr,t.context),Mr=void 0}}var Ur={create:Br,update:Br};function Hr(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=S({},c)),s)r(c[n])&&(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=o;var l=r(o)?"":String(o);Vr(a,l)&&(a.value=l)}else a[n]=o}}}function Vr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Xr={create:Hr,update:Hr},zr=b(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Yr(e){var t=Wr(e.style);return e.staticStyle?S(e.staticStyle,t):t}function Wr(e){return Array.isArray(e)?T(e):"string"==typeof e?zr(e):e}var qr,Kr=/^--/,Jr=/\s*!important$/,Gr=function(e,t,n){if(Kr.test(t))e.style.setProperty(t,n);else if(Jr.test(n))e.style.setProperty(t,n.replace(Jr,""),"important");else{var r=Qr(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(ni).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ii(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ni).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function oi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&S(t,ai(e.name||"v")),S(t,e),t}return"string"==typeof e?ai(e):void 0}}var ai=b(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),si=z&&!J,ci="transition",li="animation",ui="transition",fi="transitionend",di="animation",pi="animationend";si&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ui="WebkitTransition",fi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(di="WebkitAnimation",pi="webkitAnimationEnd"));var vi=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function hi(e){vi(function(){vi(e)})}function mi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ri(e,t))}function gi(e,t){e._transitionClasses&&g(e._transitionClasses,t),ii(e,t)}function yi(e,t,n){var r=bi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ci?fi:pi,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout(function(){c0&&(n=ci,u=a,f=o.length):t===li?l>0&&(n=li,u=l,f=c.length):f=(n=(u=Math.max(a,l))>0?a>l?ci:li:null)?n===ci?o.length:c.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===ci&&_i.test(r[ui+"Property"])}}function Ci(e,t){for(;e.length1}function Oi(e,t){!0!==t.data.show&&xi(t)}var Si=function(e){var t,n,s={},c=e.modules,l=e.nodeOps;for(t=0;tv?_(e,r(n[g+1])?null:n[g+1].elm,n,p,g,o):p>g&&C(0,t,d,v)}(d,h,g,n,u):i(g)?(i(e.text)&&l.setTextContent(d,""),_(d,null,g,0,g.length-1,n)):i(h)?C(0,h,0,h.length-1):i(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),i(v)&&i(p=v.hook)&&i(p=p.postpatch)&&p(e,t)}}}function k(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(I(Ii(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ni(e,t){return t.every(function(t){return!I(t,e)})}function Ii(e){return"_value"in e?e._value:e.value}function Mi(e){e.target.composing=!0}function Li(e){e.target.composing&&(e.target.composing=!1,ji(e.target,"input"))}function ji(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Pi(e){return!e.componentInstance||e.data&&e.data.transition?e:Pi(e.componentInstance._vnode)}var Ri={model:Ti,show:{bind:function(e,t,n){var r=t.value,i=(n=Pi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,xi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Pi(n)).data&&n.data.transition?(n.data.show=!0,r?xi(n,function(){e.style.display=e.__vOriginalDisplay}):$i(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Fi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Bi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Bi(ft(t.children)):e}function Ui(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[w(o)]=i[o];return t}function Hi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Vi=function(e){return e.tag||ut(e)},Xi=function(e){return"show"===e.name},zi={name:"transition",props:Fi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Vi)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Bi(i);if(!o)return i;if(this._leaving)return Hi(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ui(this),l=this._vnode,u=Bi(l);if(o.data.directives&&o.data.directives.some(Xi)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!ut(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var f=u.data.transition=S({},c);if("out-in"===r)return this._leaving=!0,ot(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Hi(e,i);if("in-out"===r){if(ut(o))return l;var d,p=function(){d()};ot(c,"afterEnter",p),ot(c,"enterCancelled",p),ot(f,"delayLeave",function(e){d=e})}}return i}}},Yi=S({tag:String,moveClass:String},Fi);function Wi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function qi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ki(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Yi.mode;var Ji={Transition:zi,TransitionGroup:{props:Yi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=bt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ui(this),s=0;s-1?Bn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Bn[e]=/HTMLUnknownElement/.test(t.toString())},S(vn.options.directives,Ri),S(vn.options.components,Ji),vn.prototype.__patch__=z?Si:D,vn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=he),xt(e,"beforeMount"),new Nt(e,function(){e._update(e._render(),n)},D,{before:function(){e._isMounted&&!e._isDestroyed&&xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,xt(e,"mounted")),e}(this,e=e&&z?Hn(e):void 0,t)},z&&setTimeout(function(){F.devtools&&re&&re.emit("init",vn)},0);var Gi=/\{\{((?:.|\r?\n)+?)\}\}/g,Zi=/[-.*+?^${}()|[\]\/\\]/g,Qi=b(function(e){var t=e[0].replace(Zi,"\\$&"),n=e[1].replace(Zi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function eo(e,t){var n=t?Qi(t):Gi;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=mr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,lo="[a-zA-Z_][\\w\\-\\.]*",uo="((?:"+lo+"\\:)?"+lo+")",fo=new RegExp("^<"+uo),po=/^\s*(\/?)>/,vo=new RegExp("^<\\/"+uo+"[^>]*>"),ho=/^]+>/i,mo=/^",""":'"',"&":"&","
":"\n"," ":"\t"},Co=/&(?:lt|gt|quot|amp);/g,wo=/&(?:lt|gt|quot|amp|#10|#9);/g,xo=v("pre,textarea",!0),$o=function(e,t){return e&&xo(e)&&"\n"===t[0]};function ko(e,t){var n=t?wo:Co;return e.replace(n,function(e){return bo[e]})}var Ao,Oo,So,To,Do,Eo,No,Io,Mo=/^@|^v-on:/,Lo=/^v-|^@|^:/,jo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Po=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ro=/^\(|\)$/g,Fo=/:(.*)$/,Bo=/^:|^v-bind:/,Uo=/\.[^.]+/g,Ho=b(io);function Vo(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),d=e.replace(f,function(e,n,r){return l=r.length,yo(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),$o(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-d.length,e=d,A(u,c-l,c)}else{var p=e.indexOf("<");if(0===p){if(mo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v)),x(v+3);continue}}if(go.test(e)){var h=e.indexOf("]>");if(h>=0){x(h+2);continue}}var m=e.match(ho);if(m){x(m[0].length);continue}var g=e.match(vo);if(g){var y=c;x(g[0].length),A(g[1],y,c);continue}var _=$();if(_){k(_),$o(_.tagName,e)&&x(1);continue}}var b=void 0,C=void 0,w=void 0;if(p>=0){for(C=e.slice(p);!(vo.test(C)||fo.test(C)||mo.test(C)||go.test(C)||(w=C.indexOf("<",1))<0);)p+=w,C=e.slice(p);b=e.substring(0,p),x(p)}p<0&&(b=e,e=""),t.chars&&b&&t.chars(b)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function $(){var t=e.match(fo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(po))&&(r=e.match(co));)x(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&so(n)&&A(r),s(n)&&r===n&&A(n));for(var l=a(n)||!!c,u=e.attrs.length,f=new Array(u),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:Ao,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,l){var u=r&&r.ns||Io(e);K&&"svg"===u&&(o=function(e){for(var t=[],n=0;n-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),$r(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Sr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Sr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Sr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=kr(e,"value")||"null";br(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),$r(e,"change",Sr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Lr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Sr(t,u);c&&(f="if($event.target.composing)return;"+f),br(e,"value","("+t+")"),$r(e,l,f,null,!0),(s||a)&&$r(e,"blur","$forceUpdate()")}(e,r,i);else if(!F.isReservedTag(o))return Or(e,r,i),!1;return!0},text:function(e,t){t.value&&br(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&br(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:oo,mustUseProp:$n,canBeLeftOpenTag:ao,isReservedTag:Rn,getTagNamespace:Fn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Zo)},na=b(function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function ra(e,t){e&&(Qo=na(t.staticKeys||""),ea=t.isReservedTag||E,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!ea(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Qo)))}(t);if(1===t.type){if(!ea(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,oa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,aa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},sa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ca=function(e){return"if("+e+")return null;"},la={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ca("$event.target !== $event.currentTarget"),ctrl:ca("!$event.ctrlKey"),shift:ca("!$event.shiftKey"),alt:ca("!$event.altKey"),meta:ca("!$event.metaKey"),left:ca("'button' in $event && $event.button !== 0"),middle:ca("'button' in $event && $event.button !== 1"),right:ca("'button' in $event && $event.button !== 2")};function ua(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":'+fa(r,e[r])+",";return n.slice(0,-1)+"}"}function fa(e,t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return fa(e,t)}).join(",")+"]";var n=oa.test(t.value),r=ia.test(t.value);if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(la[s])o+=la[s],aa[s]&&a.push(s);else if("exact"===s){var c=t.modifiers;o+=ca(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!('button' in $event)&&"+e.map(da).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(n?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":t.value)+"}"}return n||r?t.value:"function($event){"+t.value+"}"}function da(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=aa[e],r=sa[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var pa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:D},va=function(e){this.options=e,this.warn=e.warn||yr,this.transforms=_r(e.modules,"transformCode"),this.dataGenFns=_r(e.modules,"genData"),this.directives=S(S({},pa),e.directives);var t=e.isReservedTag||E;this.maybeComponent=function(e){return!(t(e.tag)&&!e.component)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ha(e,t){var n=new va(t);return{render:"with(this){return "+(e?ma(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function ma(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ga(e,t);if(e.once&&!e.onceProcessed)return ya(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";0;return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||ma)(e,t)+"})"}(e,t);if(e.if&&!e.ifProcessed)return _a(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=wa(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return w(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:wa(t,n,!0);return"_c("+e+","+ba(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ba(e,t));var i=e.inlineTemplate?null:wa(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'',Ta.innerHTML.indexOf("
")>0}var Ia=!!z&&Na(!1),Ma=!!z&&Na(!0),La=b(function(e){var t=Hn(e);return t&&t.innerHTML}),ja=vn.prototype.$mount;vn.prototype.$mount=function(e,t){if((e=e&&Hn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=La(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=Ea(r,{shouldDecodeNewlines:Ia,shouldDecodeNewlinesForHref:Ma,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ja.call(this,e,t)},vn.compile=Ea,t.a=vn}).call(t,n("DuR2"))},DAYN:function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;var r=Object.assign||function(e){for(var t=1;t*"),this._sortable=new e(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},isCloning:function(){return!!this.options&&!!this.options.group&&"clone"===this.options.group.pull},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){for(var t in e)-1==c.indexOf(t)&&this._sortable.option(t,e[t])},deep:!0},realList:function(){this.computeIndexes()}},methods:{getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1==this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick(function(){e.visibleIndexes=function(e,t,n){if(!e)return[];var r=e.map(function(e){return e.elm}),o=[].concat(i(t)).map(function(e){return r.indexOf(e)});return n?o.filter(function(e){return-1!==e}):o}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode)})},getUnderlyingVm:function(e){var t=function(e,t){return e.map(function(e){return e.elm}).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=[].concat(i(this.value));e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,e)};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var o=i.realList,a={list:o,component:i};if(t!==n&&o&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return r(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),l=e.item},onDragAdd:function(e){this.updateEvenemt(e);var n=e.item._underlying_vm_;if(void 0!==n){t(e.item);var r=this.getVmIndex(e.newIndex);this.spliceList(r,0,n),this.computeIndexes();var i={element:n,newIndex:r};this.emitChanges({added:i})}},onDragRemove:function(e){if(this.updateEvenemt(e),n(this.rootContainer,e.item,e.oldIndex),this.isCloning)t(e.clone);else{var r=this.context.index;this.spliceList(r,1);var i={element:this.context.element,oldIndex:r};this.resetTransitionData(r),this.emitChanges({removed:i})}},onDragUpdate:function(e){this.updateEvenemt(e),t(e.item),n(e.from,e.item,e.oldIndex);var r=this.context.index,i=this.getVmIndex(e.newIndex);this.updatePosition(r,i);var o={element:this.context.element,oldIndex:r,newIndex:i};this.emitChanges({moved:o})},updateEvenemt:function(e){this.updateProperty(e,"newIndex"),this.updateProperty(e,"oldIndex")},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=[].concat(i(t.to.children)).filter(function(e){return"none"!==e.style.display}),r=n.indexOf(t.related),o=e.component.getVmIndex(r);return-1!=n.indexOf(l)||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,a=this.computeFutureIndex(i,e);return r(o,{futureIndex:a}),r(e,{relatedContext:i,draggedContext:o}),n(e,t)},onDragEnd:function(e){this.computeIndexes(),l=null}}}}Array.from||(Array.from=function(e){return[].slice.call(e)});var o=n("Lokx");e.exports=t(o)}()},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},Lokx:function(e,t,n){var r,i;
8 | /**!
9 | * Sortable
10 | * @author RubaXa
11 | * @license MIT
12 | */
13 | /**!
14 | * Sortable
15 | * @author RubaXa
16 | * @license MIT
17 | */
18 | !function(o){"use strict";void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,n,r,i,o,a,s,c,l,u,f,d,p,v,h,m,g,y,_,b,C={},w=/\s+/g,x=/left|right|inline/,$="Sortable"+(new Date).getTime(),k=window,A=k.document,O=k.parseInt,S=k.setTimeout,T=k.jQuery||k.Zepto,D=k.Polymer,E=!1,N="draggable"in A.createElement("div"),I=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((b=A.createElement("x")).style.cssText="pointer-events:auto","auto"===b.style.pointerEvents),M=!1,L=Math.abs,j=Math.min,P=[],R=[],F=re(function(e,t,n){if(n&&t.scroll){var r,i,o,a,u,f,d=n[$],p=t.scrollSensitivity,v=t.scrollSpeed,h=e.clientX,m=e.clientY,g=window.innerWidth,y=window.innerHeight;if(c!==n&&(s=t.scroll,c=n,l=t.scrollFn,!0===s)){s=n;do{if(s.offsetWidth-1:i==e)}}var n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){E={capture:!1,passive:!1}}}))}catch(e){}function U(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=ie({},t),e[$]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==U.supportPointer};for(var r in n)!(r in t)&&(t[r]=n[r]);for(var i in B(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&N,z(e,"mousedown",this._onTapStart),z(e,"touchstart",this._onTapStart),t.supportPointer&&z(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(z(e,"dragover",this),z(e,"dragenter",this)),R.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function H(t,n){"clone"!==t.lastPullMode&&(n=!0),r&&r.state!==n&&(q(r,"display",n?"none":""),n||r.state&&(t.options.group.revertClone?(i.insertBefore(r,o),t._animate(e,r)):i.insertBefore(r,e)),r.state=n)}function V(e,t,n){if(e){n=n||A;do{if(">*"===t&&e.parentNode===n||ne(e,t))return e}while(e=X(e))}return null}function X(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function z(e,t,n){e.addEventListener(t,n,E)}function Y(e,t,n){e.removeEventListener(t,n,E)}function W(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(w," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(w," ")}}function q(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return A.defaultView&&A.defaultView.getComputedStyle?n=A.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function K(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i*"!==t&&!ne(e,t)||n++;return n}function ne(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),r=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(r)||[]).length!=t.length)}return!1}function re(e,t){var n,r;return function(){void 0===n&&(n=arguments,r=this,S(function(){1===n.length?e.call(r,n[0]):e.apply(r,n),n=void 0},t))}}function ie(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function oe(e){return D&&D.dom?D.dom(e).cloneNode(!0):T?T(e).clone(!0)[0]:e.cloneNode(!0)}function ae(e){return S(e,0)}function se(e){return clearTimeout(e)}return U.prototype={constructor:U,_onTapStart:function(t){var n,r=this,i=this.el,o=this.options,s=o.preventOnFilter,c=t.type,l=t.touches&&t.touches[0],u=(l||t).target,f=t.target.shadowRoot&&t.path&&t.path[0]||u,d=o.filter;if(function(e){var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&P.push(r)}}(i),!e&&!(/mousedown|pointerdown/.test(c)&&0!==t.button||o.disabled)&&!f.isContentEditable&&(u=V(u,o.draggable,i))&&a!==u){if(n=te(u,o.draggable),"function"==typeof d){if(d.call(this,t,u,this))return J(r,f,"filter",u,i,i,n),void(s&&t.preventDefault())}else if(d&&(d=d.split(",").some(function(e){if(e=V(f,e.trim(),i))return J(r,e,"filter",u,i,i,n),!0})))return void(s&&t.preventDefault());o.handle&&!V(f,o.handle,i)||this._prepareDragStart(t,l,u,n)}},_prepareDragStart:function(n,r,s,c){var l,u=this,f=u.el,d=u.options,v=f.ownerDocument;s&&!e&&s.parentNode===f&&(g=n,i=f,t=(e=s).parentNode,o=e.nextSibling,a=s,h=d.group,p=c,this._lastX=(r||n).clientX,this._lastY=(r||n).clientY,e.style["will-change"]="all",l=function(){u._disableDelayedDrag(),e.draggable=u.nativeDraggable,W(e,d.chosenClass,!0),u._triggerDragStart(n,r),J(u,i,"choose",e,i,i,p)},d.ignore.split(",").forEach(function(t){K(e,t.trim(),Z)}),z(v,"mouseup",u._onDrop),z(v,"touchend",u._onDrop),z(v,"touchcancel",u._onDrop),z(v,"selectstart",u),d.supportPointer&&z(v,"pointercancel",u._onDrop),d.delay?(z(v,"mouseup",u._disableDelayedDrag),z(v,"touchend",u._disableDelayedDrag),z(v,"touchcancel",u._disableDelayedDrag),z(v,"mousemove",u._disableDelayedDrag),z(v,"touchmove",u._disableDelayedDrag),d.supportPointer&&z(v,"pointermove",u._disableDelayedDrag),u._dragStartTimer=S(l,d.delay)):l())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),Y(e,"mouseup",this._disableDelayedDrag),Y(e,"touchend",this._disableDelayedDrag),Y(e,"touchcancel",this._disableDelayedDrag),Y(e,"mousemove",this._disableDelayedDrag),Y(e,"touchmove",this._disableDelayedDrag),Y(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(t,n){(n=n||("touch"==t.pointerType?t:null))?(g={target:e,clientX:n.clientX,clientY:n.clientY},this._onDragStart(g,"touch")):this.nativeDraggable?(z(e,"dragend",this),z(i,"dragstart",this._onDragStart)):this._onDragStart(g,!0);try{A.selection?ae(function(){A.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(i&&e){var t=this.options;W(e,t.ghostClass,!0),W(e,t.dragClass,!1),U.active=this,J(this,i,"start",e,i,i,p)}else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,I||q(n,"display","none");var e=A.elementFromPoint(y.clientX,y.clientY),t=e,r=R.length;if(e&&e.shadowRoot&&(t=e=e.shadowRoot.elementFromPoint(y.clientX,y.clientY)),t)do{if(t[$]){for(;r--;)R[r]({clientX:y.clientX,clientY:y.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);I||q(n,"display","")}},_onTouchMove:function(e){if(g){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=o.clientX-g.clientX+i.x,s=o.clientY-g.clientY+i.y,c=e.touches?"translate3d("+a+"px,"+s+"px,0)":"translate("+a+"px,"+s+"px)";if(!U.active){if(r&&j(L(o.clientX-this._lastX),L(o.clientY-this._lastY))5||t.clientX-(n.left+n.width)>5}(v,a)){if(0!==v.children.length&&v.children[0]!==n&&v===a.target&&(s=v.lastElementChild),s){if(s.animated)return;l=s.getBoundingClientRect()}H(b,C),!1!==G(i,v,e,c,s,l,a)&&(e.contains(v)||(v.appendChild(e),t=v),this._animate(c,e),s&&this._animate(l,s))}else if(s&&!s.animated&&s!==e&&void 0!==s.parentNode[$]){u!==s&&(u=s,f=q(s),d=q(s.parentNode));var A=(l=s.getBoundingClientRect()).right-l.left,O=l.bottom-l.top,T=x.test(f.cssFloat+f.display)||"flex"==d.display&&0===d["flex-direction"].indexOf("row"),D=s.offsetWidth>e.offsetWidth,E=s.offsetHeight>e.offsetHeight,N=(T?(a.clientX-l.left)/A:(a.clientY-l.top)/O)>.5,I=s.nextElementSibling,L=!1;if(T){var j=e.offsetTop,P=s.offsetTop;L=j===P?s.previousElementSibling===e&&!D||N&&D:s.previousElementSibling===e||e.previousElementSibling===s?(a.clientY-l.top)/O>.5:P>j}else w||(L=I!==e&&!E||N&&E);var R=G(i,v,e,c,s,l,a,L);!1!==R&&(1!==R&&-1!==R||(L=1===R),M=!0,S(Q,30),H(b,C),e.contains(v)||(L&&!I?v.appendChild(e):s.parentNode.insertBefore(e,L?I:s)),t=e.parentNode,this._animate(c,e),this._animate(l,s))}}},_animate:function(e,t){var n=this.options.animation;if(n){var r=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),q(t,"transition","none"),q(t,"transform","translate3d("+(e.left-r.left)+"px,"+(e.top-r.top)+"px,0)"),t.offsetWidth,q(t,"transition","all "+n+"ms"),q(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=S(function(){q(t,"transition",""),q(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;Y(A,"touchmove",this._onTouchMove),Y(A,"pointermove",this._onTouchMove),Y(e,"mouseup",this._onDrop),Y(e,"touchend",this._onDrop),Y(e,"pointerup",this._onDrop),Y(e,"touchcancel",this._onDrop),Y(e,"pointercancel",this._onDrop),Y(e,"selectstart",this)},_onDrop:function(a){var s=this.el,c=this.options;clearInterval(this._loopId),clearInterval(C.pid),clearTimeout(this._dragStartTimer),se(this._cloneId),se(this._dragStartId),Y(A,"mouseover",this),Y(A,"mousemove",this._onTouchMove),this.nativeDraggable&&(Y(A,"drop",this),Y(s,"dragstart",this._onDragStart)),this._offUpEvents(),a&&(_&&(a.preventDefault(),!c.dropBubble&&a.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),i!==t&&"clone"===U.active.lastPullMode||r&&r.parentNode&&r.parentNode.removeChild(r),e&&(this.nativeDraggable&&Y(e,"dragend",this),Z(e),e.style["will-change"]="",W(e,this.options.ghostClass,!1),W(e,this.options.chosenClass,!1),J(this,i,"unchoose",e,t,i,p),i!==t?(v=te(e,c.draggable))>=0&&(J(null,t,"add",e,t,i,p,v),J(this,i,"remove",e,t,i,p,v),J(null,t,"sort",e,t,i,p,v),J(this,i,"sort",e,t,i,p,v)):e.nextSibling!==o&&(v=te(e,c.draggable))>=0&&(J(this,i,"update",e,t,i,p,v),J(this,i,"sort",e,t,i,p,v)),U.active&&(null!=v&&-1!==v||(v=p),J(this,i,"end",e,t,i,p,v),this.save()))),this._nulling()},_nulling:function(){i=e=t=n=o=r=a=s=c=g=y=_=v=u=f=m=h=U.active=null,P.forEach(function(e){e.checked=!0}),P.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragover":case"dragenter":e&&(this._onDragOver(t),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.preventDefault()}(t));break;case"mouseover":this._onDrop(t);break;case"selectstart":t.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r