openatc-components 0.5.80 → 0.5.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/build/package.config.js +62 -58
  2. package/build/package.dev.config.js +114 -107
  3. package/build/package.prod.config.js +167 -160
  4. package/build/utils.js +109 -101
  5. package/index.html +16 -0
  6. package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
  7. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  8. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  9. package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
  10. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
  11. package/package/kisscomps/components/MessageBox/index.vue +1 -1
  12. package/package/kisscomps/components/OverviewComponent/index.vue +0 -6
  13. package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
  14. package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
  15. package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
  16. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
  17. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
  18. package/package/kisscomps/components/Stages/index.vue +2 -3
  19. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
  20. package/package/kisscomps/components/overView/index.vue +0 -6
  21. package/package/kisscomps/components/patternConfig/index.vue +1 -1
  22. package/package/kisscomps/index.js +7 -2
  23. package/package/kissui.js +321283 -0
  24. package/package/kissui.min.js +1 -1
  25. package/package.json +1 -1
  26. package/src/App.vue +2 -0
  27. package/src/i18n/index.js +20 -2
  28. package/src/i18n/language/ar.js +685 -0
  29. package/src/i18n/language/en.js +69 -1157
  30. package/src/i18n/language/index.js +6 -0
  31. package/src/i18n/language/ru.js +132 -1027
  32. package/src/i18n/language/zh.js +65 -1150
  33. package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
  34. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
  35. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  36. package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
  37. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
  38. package/src/kisscomps/components/MessageBox/index.vue +1 -1
  39. package/src/kisscomps/components/OverviewComponent/index.vue +0 -6
  40. package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
  41. package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
  42. package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
  43. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
  44. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
  45. package/src/kisscomps/components/Stages/index.vue +2 -3
  46. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
  47. package/src/kisscomps/components/overView/index.vue +0 -6
  48. package/src/kisscomps/components/patternConfig/index.vue +1 -1
  49. package/src/kisscomps/index.js +7 -2
  50. package/src/utils/ControlFormat.js +0 -8
  51. package/src/utils/fault.js +3 -1
  52. package/src/utils/faultcode.js +37 -36
  53. package/src/utils/i18nDirection.js +37 -0
  54. package/src/utils/phasedesc.js +0 -4
  55. package/src/utils/responseMessage.js +4 -0
@@ -1,160 +1,167 @@
1
- const webpack = require('webpack')
2
- const merge = require('webpack-merge')
3
- const path = require('path')
4
- const utils = require('./utils')
5
- const vueLoaderConfig = require('./vue-loader.conf')
6
- const config = require('../config')
7
- const baseWebpackConfig = require('./package.config')
8
- const ExtractTextPlugin = require('extract-text-webpack-plugin')
9
- const extractScss = new ExtractTextPlugin('/kissui.min.css')
10
- const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
11
- const CopyWebpackPlugin = require('copy-webpack-plugin')
12
- const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13
-
14
- function resolve(dir) {
15
- return path.join(__dirname, '..', dir)
16
- }
17
- const createLintingRule = () => ({
18
- test: /\.(js|vue)$/,
19
- loader: 'eslint-loader',
20
- enforce: 'pre',
21
- include: [resolve('src'), resolve('test')],
22
- options: {
23
- formatter: require('eslint-friendly-formatter'),
24
- emitWarning: !config.dev.showEslintErrorsInOverlay
25
- }
26
- })
27
-
28
- module.exports = merge(baseWebpackConfig, {
29
- output: {
30
- filename: '[name].min.js'
31
- },
32
- module: {
33
- rules: [
34
- ...(config.dev.useEslint ? [createLintingRule()] : []),
35
- {
36
- test: /\.vue$/,
37
- loader: 'vue-loader',
38
- options: vueLoaderConfig
39
- },
40
- {
41
- test: /\.js$/,
42
- loader: 'babel-loader',
43
- include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'),
44
- resolve('../src/lib')
45
- ]
46
- },
47
- {
48
- test: /\.svg$/,
49
- loader: 'svg-sprite-loader',
50
- include: [resolve('src/icons')],
51
- options: {
52
- symbolId: 'icon-[name]'
53
- }
54
- },
55
- {
56
- test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
57
- loader: 'url-loader',
58
- exclude: [resolve('src/icons')],
59
- options: {
60
- limit: 10000,
61
- name: utils.assetsPath('img/[name].[hash:7].[ext]')
62
- }
63
- },
64
- {
65
- test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
66
- loader: 'url-loader',
67
- options: {
68
- limit: 10000,
69
- name: utils.assetsPath('media/[name].[hash:7].[ext]')
70
- }
71
- },
72
- {
73
- test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
74
- loader: 'url-loader',
75
- options: {
76
- limit: 10000,
77
- name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
78
- }
79
- },
80
- {
81
- test: /\.css$/,
82
- use: [
83
- //'sass-loader',
84
- 'css-loader',
85
- //'autoprefixer-loader'
86
- ]
87
- },
88
- {
89
- test: /\.scss$/,
90
- use: [
91
- 'style-loader',
92
- 'css-loader',
93
- 'sass-loader'
94
- ]
95
- },
96
- ],
97
- loaders: [{
98
- test: /\.scss$/,
99
- loader: extractScss.extract(['css-loader', 'sass-loader'])
100
- }]
101
- },
102
- plugins: [
103
- new webpack.DefinePlugin({
104
- 'process.env': {
105
- NODE_ENV: '"production"'
106
- }
107
- }),
108
- new webpack.ProvidePlugin({
109
- $: 'jquery',
110
- jQuery: 'jquery',
111
- jquery: 'jquery',
112
- 'window.jQuery': 'jquery'
113
- }),
114
- // new webpack.optimize.OccurrenceOrderPlugin(),
115
- // new webpack.optimize.UglifyJsPlugin({
116
- // uglifyOptions: {
117
- // ie8: false,
118
- // output: {
119
- // comments: false,
120
- // beautify: false
121
- // },
122
- // mangle: {
123
- // keep_fnames: true
124
- // },
125
- // compress: {
126
- // warnings: false,
127
- // drop_console: true
128
- // }
129
- // }
130
- // }),
131
- new UglifyJsPlugin({
132
- uglifyOptions: {
133
- ie8: false,
134
- output: {
135
- comments: false,
136
- beautify: false
137
- },
138
- mangle: {
139
- keep_fnames: true
140
- },
141
- compress: {
142
- warnings: false,
143
- drop_console: true
144
- }
145
- },
146
- sourceMap: config.build.productionSourceMap,
147
- parallel: true
148
- }),
149
- extractScss,
150
- new OptimizeCSSPlugin({
151
- cssProcessorOptions: config.build.productionSourceMap
152
- ? { safe: true, map: { inline: false } }
153
- : { safe: true }
154
- }),
155
- new CopyWebpackPlugin([
156
- // {output}/file.txt
157
- {from: `./src/kisscomps`, to: `./kisscomps`}
158
- ])
159
- ]
160
- })
1
+ const webpack = require('webpack')
2
+ const merge = require('webpack-merge')
3
+ const path = require('path')
4
+ const utils = require('./utils')
5
+ const vueLoaderConfig = require('./vue-loader.conf')
6
+ const config = require('../config')
7
+ const baseWebpackConfig = require('./package.config')
8
+ const ExtractTextPlugin = require('extract-text-webpack-plugin')
9
+ const extractScss = new ExtractTextPlugin('/kissui.min.css')
10
+ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
11
+ const CopyWebpackPlugin = require('copy-webpack-plugin')
12
+ const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13
+
14
+ // RTL 镜像 loader(ADR-15/ADR-16):组件库产物 CSS 由 vue-style-loader 运行时注入,
15
+ // 消费方 postcss 摸不到,必须在库自身构建链中串联。
16
+ const rtlLoader = {
17
+ loader: path.resolve(__dirname, '../../../scripts/i18n/rtl-loader.js')
18
+ }
19
+
20
+ function resolve(dir) {
21
+ return path.join(__dirname, '..', dir)
22
+ }
23
+ const createLintingRule = () => ({
24
+ test: /\.(js|vue)$/,
25
+ loader: 'eslint-loader',
26
+ enforce: 'pre',
27
+ include: [resolve('src'), resolve('test')],
28
+ options: {
29
+ formatter: require('eslint-friendly-formatter'),
30
+ emitWarning: !config.dev.showEslintErrorsInOverlay
31
+ }
32
+ })
33
+
34
+ module.exports = merge(baseWebpackConfig, {
35
+ output: {
36
+ filename: '[name].min.js'
37
+ },
38
+ module: {
39
+ rules: [
40
+ ...(config.dev.useEslint ? [createLintingRule()] : []),
41
+ {
42
+ test: /\.vue$/,
43
+ loader: 'vue-loader',
44
+ options: vueLoaderConfig
45
+ },
46
+ {
47
+ test: /\.js$/,
48
+ loader: 'babel-loader',
49
+ include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'),
50
+ resolve('../src/lib')
51
+ ]
52
+ },
53
+ {
54
+ test: /\.svg$/,
55
+ loader: 'svg-sprite-loader',
56
+ include: [resolve('src/icons')],
57
+ options: {
58
+ symbolId: 'icon-[name]'
59
+ }
60
+ },
61
+ {
62
+ test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
63
+ loader: 'url-loader',
64
+ exclude: [resolve('src/icons')],
65
+ options: {
66
+ limit: 10000,
67
+ name: utils.assetsPath('img/[name].[hash:7].[ext]')
68
+ }
69
+ },
70
+ {
71
+ test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
72
+ loader: 'url-loader',
73
+ options: {
74
+ limit: 10000,
75
+ name: utils.assetsPath('media/[name].[hash:7].[ext]')
76
+ }
77
+ },
78
+ {
79
+ test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
80
+ loader: 'url-loader',
81
+ options: {
82
+ limit: 10000,
83
+ name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
84
+ }
85
+ },
86
+ {
87
+ test: /\.css$/,
88
+ use: [
89
+ //'sass-loader',
90
+ 'css-loader',
91
+ //'autoprefixer-loader'
92
+ ]
93
+ },
94
+ {
95
+ test: /\.scss$/,
96
+ use: [
97
+ 'style-loader',
98
+ 'css-loader',
99
+ rtlLoader,
100
+ 'sass-loader'
101
+ ]
102
+ },
103
+ ],
104
+ loaders: [{
105
+ test: /\.scss$/,
106
+ loader: extractScss.extract(['css-loader', rtlLoader, 'sass-loader'])
107
+ }]
108
+ },
109
+ plugins: [
110
+ new webpack.DefinePlugin({
111
+ 'process.env': {
112
+ NODE_ENV: '"production"'
113
+ }
114
+ }),
115
+ new webpack.ProvidePlugin({
116
+ $: 'jquery',
117
+ jQuery: 'jquery',
118
+ jquery: 'jquery',
119
+ 'window.jQuery': 'jquery'
120
+ }),
121
+ // new webpack.optimize.OccurrenceOrderPlugin(),
122
+ // new webpack.optimize.UglifyJsPlugin({
123
+ // uglifyOptions: {
124
+ // ie8: false,
125
+ // output: {
126
+ // comments: false,
127
+ // beautify: false
128
+ // },
129
+ // mangle: {
130
+ // keep_fnames: true
131
+ // },
132
+ // compress: {
133
+ // warnings: false,
134
+ // drop_console: true
135
+ // }
136
+ // }
137
+ // }),
138
+ new UglifyJsPlugin({
139
+ uglifyOptions: {
140
+ ie8: false,
141
+ output: {
142
+ comments: false,
143
+ beautify: false
144
+ },
145
+ mangle: {
146
+ keep_fnames: true
147
+ },
148
+ compress: {
149
+ warnings: false,
150
+ drop_console: true
151
+ }
152
+ },
153
+ sourceMap: config.build.productionSourceMap,
154
+ parallel: true
155
+ }),
156
+ extractScss,
157
+ new OptimizeCSSPlugin({
158
+ cssProcessorOptions: config.build.productionSourceMap
159
+ ? { safe: true, map: { inline: false } }
160
+ : { safe: true }
161
+ }),
162
+ new CopyWebpackPlugin([
163
+ // {output}/file.txt
164
+ {from: `./src/kisscomps`, to: `./kisscomps`}
165
+ ])
166
+ ]
167
+ })
package/build/utils.js CHANGED
@@ -1,101 +1,109 @@
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
- }
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
+ // RTL 镜像 loader(ADR-15 工具链唯一落点 / ADR-16 哨兵形态):
33
+ // scripts/i18n/rtl-loader.js 自带 postcss 6 + postcss-rtlcss 依赖,与工程构建依赖隔离。
34
+ // 执行序:rtlcss 先处理源 CSS,随后 postcssLoader(autoprefixer 等)
35
+ // 作用于翻转产物(含 [dir="rtl"] 规则)。
36
+ const rtlLoader = {
37
+ loader: path.resolve(__dirname, '../../../scripts/i18n/rtl-loader.js')
38
+ }
39
+
40
+ // generate loader string to be used with extract text plugin
41
+ function generateLoaders (loader, loaderOptions) {
42
+ const loaders = options.usePostCSS ? [cssLoader, postcssLoader, rtlLoader] : [cssLoader, rtlLoader]
43
+
44
+ if (loader) {
45
+ loaders.push({
46
+ loader: loader + '-loader',
47
+ options: Object.assign({}, loaderOptions, {
48
+ sourceMap: options.sourceMap
49
+ })
50
+ })
51
+ }
52
+
53
+ // Extract CSS when that option is specified
54
+ // (which is the case during production build)
55
+ if (options.extract) {
56
+ return ExtractTextPlugin.extract({
57
+ use: loaders,
58
+ fallback: 'vue-style-loader'
59
+ })
60
+ } else {
61
+ return ['vue-style-loader'].concat(loaders)
62
+ }
63
+ }
64
+
65
+ // https://vue-loader.vuejs.org/en/configurations/extract-css.html
66
+ return {
67
+ css: generateLoaders(),
68
+ postcss: generateLoaders(),
69
+ less: generateLoaders('less'),
70
+ sass: generateLoaders('sass', { indentedSyntax: true }),
71
+ scss: generateLoaders('sass'),
72
+ stylus: generateLoaders('stylus'),
73
+ styl: generateLoaders('stylus')
74
+ }
75
+ }
76
+
77
+ // Generate loaders for standalone style files (outside of .vue)
78
+ exports.styleLoaders = function (options) {
79
+ const output = []
80
+ const loaders = exports.cssLoaders(options)
81
+
82
+ for (const extension in loaders) {
83
+ const loader = loaders[extension]
84
+ output.push({
85
+ test: new RegExp('\\.' + extension + '$'),
86
+ use: loader
87
+ })
88
+ }
89
+
90
+ return output
91
+ }
92
+
93
+ exports.createNotifierCallback = () => {
94
+ const notifier = require('node-notifier')
95
+
96
+ return (severity, errors) => {
97
+ if (severity !== 'error') return
98
+
99
+ const error = errors[0]
100
+ const filename = error.file && error.file.split('!').pop()
101
+
102
+ notifier.notify({
103
+ title: packageConfig.name,
104
+ message: severity + ': ' + error.name,
105
+ subtitle: filename || '',
106
+ icon: path.join(__dirname, 'logo.png')
107
+ })
108
+ }
109
+ }
package/index.html CHANGED
@@ -4,6 +4,22 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
6
6
  <title>openatc-components</title>
7
+ <script>
8
+ // 首帧前设置 lang/dir,避免 RTL 切换闪烁
9
+ ;(function () {
10
+ try {
11
+ var ls = window.localStorage
12
+ var arOn = ls.getItem('ar_enabled') !== 'false'
13
+ var rtlOn = ls.getItem('rtl_enabled') !== 'false'
14
+ var lang = ls.getItem('intl_language') || 'zh'
15
+ if (lang === 'ar' && !arOn) lang = 'en'
16
+ window.__AR_ENABLED__ = arOn
17
+ window.__RTL_ENABLED__ = rtlOn
18
+ document.documentElement.setAttribute('lang', lang)
19
+ document.documentElement.setAttribute('dir', lang === 'ar' && rtlOn ? 'rtl' : 'ltr')
20
+ } catch (e) {}
21
+ })()
22
+ </script>
7
23
  </head>
8
24
  <body>
9
25
  <div id="app"></div>
@@ -12,7 +12,7 @@
12
12
  <template>
13
13
  <div class="direction-list-configuration">
14
14
  <div class="dir-config-row">
15
- <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.desc')}}:</div>
15
+ <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.desc')}}{{$i18n.locale === 'zh' ? ':' : ': '}}</div>
16
16
  <div class="dir-btn lane-dir">
17
17
  <div class="each-icon" v-for="(item, index) in laneList" :key="index" :class="item.disabled ? 'disabled-icon': ''">
18
18
  <el-tooltip class="item" effect="dark" :content="item.name" placement="bottom-start">
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
  </div>
29
29
  <div class="dir-config-row">
30
- <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.peddesc')}}:</div>
30
+ <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.peddesc')}}{{$i18n.locale === 'zh' ? ':' : ': '}}</div>
31
31
  <div class="dir-btn ped-dir">
32
32
  <div class="each-icon" v-for="(item, index) in pedList" :key="index" :class="item.disabled ? 'disabled-icon': ''">
33
33
  <el-tooltip class="item" effect="dark" :content="item.name" placement="bottom-start">