shzl-datav 0.1.0 → 0.1.1
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.
- package/package.json +2 -7
- package/.eslintrc.js +0 -348
- package/babel.config.js +0 -12
- package/commitlint.config.js +0 -56
- package/jest.config.js +0 -3
- package/karma.conf.js +0 -15
- package/package-lock.json +0 -22312
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -19
- package/public/logo.png +0 -0
- package/src/App.vue +0 -23
- package/src/assets/imgs/bar_icon1.png +0 -0
- package/src/assets/imgs/bar_icon2.png +0 -0
- package/src/assets/imgs/bar_icon3.png +0 -0
- package/src/assets/imgs/bar_icon4.png +0 -0
- package/src/assets/imgs/bar_icon5.png +0 -0
- package/src/assets/imgs/bar_icon6.png +0 -0
- package/src/assets/imgs/charts/ring-bg-1.png +0 -0
- package/src/assets/imgs/charts/ring-bg-2.png +0 -0
- package/src/assets/imgs/charts/ring-bg-3.png +0 -0
- package/src/components/TowerCharts-components.vue +0 -44
- package/src/components/Zebra-components.vue +0 -63
- package/src/example/chart1.vue +0 -96
- package/src/example/map.vue +0 -60
- package/src/main.js +0 -15
- package/src/mixins/decimal.js +0 -9
- package/src/mixins/geometry.js +0 -86
- package/src/mixins/layer.js +0 -94
- package/src/mixins/map.js +0 -8
- package/src/mixins/options.js +0 -9
- package/src/mixins/uiComponent.js +0 -105
- package/src/packages/hx-charts/RangeBar.vue +0 -268
- package/src/packages/hx-charts/RingPerChart.vue +0 -202
- package/src/packages/hx-charts/ZebraCharts.vue +0 -199
- package/src/packages/hx-charts/towerCharts.vue +0 -190
- package/src/packages/icon.vue +0 -29
- package/src/packages/import-echarts.js +0 -58
- package/src/packages/index.js +0 -47
- package/src/packages/map/maptalks/MaptalksMap.vue +0 -306
- package/src/packages/map/maptalks/geometries/MaptalksMarker.vue +0 -60
- package/src/packages/map/maptalks/layers/MaptalksTileLayer.vue +0 -136
- package/src/packages/map/maptalks/layers/MaptalksVectorLayer.vue +0 -125
- package/src/packages/map/maptalks/ui/MaptalksInfoWindow.vue +0 -98
- package/src/router/index.js +0 -12
- package/src/router/router.js +0 -15
- package/src/styles/_var.scss +0 -45
- package/src/styles/animation.css +0 -11
- package/src/styles/icon.js +0 -10
- package/src/styles/index.scss +0 -9
- package/src/utils/index.js +0 -108
- package/src/utils/map/bindEvent.js +0 -16
- package/src/utils/map/capitalize.js +0 -12
- package/src/utils/map/index.js +0 -5
- package/src/utils/map/mergeProps.js +0 -29
- package/src/utils/map/omit.js +0 -30
- package/src/utils/map/watchProps.js +0 -31
- package/vue.config.js +0 -4
- package/webpack.config.js +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shzl-datav",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -15,12 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "./lib/shzl-datav.common.js",
|
|
17
17
|
"files": [
|
|
18
|
-
"lib/*"
|
|
19
|
-
"dist/*",
|
|
20
|
-
"src/*",
|
|
21
|
-
"public/*",
|
|
22
|
-
"*.json",
|
|
23
|
-
"*.js"
|
|
18
|
+
"lib/*"
|
|
24
19
|
],
|
|
25
20
|
"dependencies": {
|
|
26
21
|
"core-js": "^3.6.5",
|
package/.eslintrc.js
DELETED
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
|
|
4
|
-
parserOptions: {
|
|
5
|
-
parser: 'babel-eslint',
|
|
6
|
-
sourceType: 'module'
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
env: {
|
|
10
|
-
browser: true,
|
|
11
|
-
node: true,
|
|
12
|
-
es6: true
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
extends: ['plugin:vue/recommended', 'eslint:recommended'],
|
|
16
|
-
|
|
17
|
-
// add your custom rules here
|
|
18
|
-
// it is base on https://github.com/vuejs/eslint-config-vue
|
|
19
|
-
rules: {
|
|
20
|
-
'vue/max-attributes-per-line': [
|
|
21
|
-
2,
|
|
22
|
-
{
|
|
23
|
-
singleline: 10,
|
|
24
|
-
multiline: {
|
|
25
|
-
max: 1,
|
|
26
|
-
allowFirstLine: false
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
'vue/singleline-html-element-content-newline': 'off',
|
|
31
|
-
'vue/multiline-html-element-content-newline': 'off',
|
|
32
|
-
'vue/name-property-casing': [
|
|
33
|
-
'error',
|
|
34
|
-
'PascalCase'
|
|
35
|
-
],
|
|
36
|
-
'vue/no-v-html': 'off',
|
|
37
|
-
'accessor-pairs': 2,
|
|
38
|
-
'arrow-spacing': [
|
|
39
|
-
2,
|
|
40
|
-
{
|
|
41
|
-
before: true,
|
|
42
|
-
after: true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
'block-spacing': [
|
|
46
|
-
2,
|
|
47
|
-
'always'
|
|
48
|
-
],
|
|
49
|
-
'brace-style': [
|
|
50
|
-
2,
|
|
51
|
-
'1tbs',
|
|
52
|
-
{
|
|
53
|
-
allowSingleLine: true
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
camelcase: [
|
|
57
|
-
0,
|
|
58
|
-
{
|
|
59
|
-
properties: 'always'
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
'comma-dangle': [
|
|
63
|
-
2,
|
|
64
|
-
'never'
|
|
65
|
-
],
|
|
66
|
-
'comma-spacing': [
|
|
67
|
-
2,
|
|
68
|
-
{
|
|
69
|
-
before: false,
|
|
70
|
-
after: true
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
'comma-style': [
|
|
74
|
-
2,
|
|
75
|
-
'last'
|
|
76
|
-
],
|
|
77
|
-
'constructor-super': 2,
|
|
78
|
-
curly: [
|
|
79
|
-
2,
|
|
80
|
-
'multi-line'
|
|
81
|
-
],
|
|
82
|
-
'dot-location': [
|
|
83
|
-
2,
|
|
84
|
-
'property'
|
|
85
|
-
],
|
|
86
|
-
'eol-last': 2,
|
|
87
|
-
eqeqeq: [
|
|
88
|
-
'error',
|
|
89
|
-
'always',
|
|
90
|
-
{
|
|
91
|
-
null: 'ignore'
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
'generator-star-spacing': [
|
|
95
|
-
2,
|
|
96
|
-
{
|
|
97
|
-
before: true,
|
|
98
|
-
after: true
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
'handle-callback-err': [
|
|
102
|
-
2,
|
|
103
|
-
'^(err|error)$'
|
|
104
|
-
],
|
|
105
|
-
indent: [
|
|
106
|
-
2,
|
|
107
|
-
2,
|
|
108
|
-
{
|
|
109
|
-
SwitchCase: 1
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
'jsx-quotes': [
|
|
113
|
-
2,
|
|
114
|
-
'prefer-single'
|
|
115
|
-
],
|
|
116
|
-
'key-spacing': [
|
|
117
|
-
2,
|
|
118
|
-
{
|
|
119
|
-
beforeColon: false,
|
|
120
|
-
afterColon: true
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
'keyword-spacing': [
|
|
124
|
-
2,
|
|
125
|
-
{
|
|
126
|
-
before: true,
|
|
127
|
-
after: true
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
'new-cap': [
|
|
131
|
-
2,
|
|
132
|
-
{
|
|
133
|
-
newIsCap: true,
|
|
134
|
-
capIsNew: false
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
'new-parens': 2,
|
|
138
|
-
'no-array-constructor': 2,
|
|
139
|
-
'no-caller': 2,
|
|
140
|
-
'no-console': 'off',
|
|
141
|
-
'no-class-assign': 2,
|
|
142
|
-
'no-cond-assign': 2,
|
|
143
|
-
'no-const-assign': 2,
|
|
144
|
-
'no-control-regex': 0,
|
|
145
|
-
'no-delete-var': 2,
|
|
146
|
-
'no-dupe-args': 2,
|
|
147
|
-
'no-dupe-class-members': 2,
|
|
148
|
-
'no-dupe-keys': 2,
|
|
149
|
-
'no-duplicate-case': 2,
|
|
150
|
-
'no-empty-character-class': 2,
|
|
151
|
-
'no-empty-pattern': 2,
|
|
152
|
-
'no-eval': 2,
|
|
153
|
-
'no-ex-assign': 2,
|
|
154
|
-
'no-extend-native': 2,
|
|
155
|
-
'no-extra-bind': 2,
|
|
156
|
-
'no-extra-boolean-cast': 2,
|
|
157
|
-
'no-extra-parens': [
|
|
158
|
-
2,
|
|
159
|
-
'functions'
|
|
160
|
-
],
|
|
161
|
-
'no-fallthrough': 2,
|
|
162
|
-
'no-floating-decimal': 2,
|
|
163
|
-
'no-func-assign': 2,
|
|
164
|
-
'no-implied-eval': 2,
|
|
165
|
-
'no-inner-declarations': [
|
|
166
|
-
2,
|
|
167
|
-
'functions'
|
|
168
|
-
],
|
|
169
|
-
'no-invalid-regexp': 2,
|
|
170
|
-
'no-irregular-whitespace': 2,
|
|
171
|
-
'no-iterator': 2,
|
|
172
|
-
'no-label-var': 2,
|
|
173
|
-
'no-labels': [
|
|
174
|
-
2,
|
|
175
|
-
{
|
|
176
|
-
allowLoop: false,
|
|
177
|
-
allowSwitch: false
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
'no-lone-blocks': 2,
|
|
181
|
-
'no-mixed-spaces-and-tabs': 2,
|
|
182
|
-
'no-multi-spaces': 2,
|
|
183
|
-
'no-multi-str': 2,
|
|
184
|
-
'no-multiple-empty-lines': [
|
|
185
|
-
2,
|
|
186
|
-
{
|
|
187
|
-
max: 1
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
'no-native-reassign': 2,
|
|
191
|
-
'no-negated-in-lhs': 2,
|
|
192
|
-
'no-new-object': 2,
|
|
193
|
-
'no-new-require': 2,
|
|
194
|
-
'no-new-symbol': 2,
|
|
195
|
-
'no-new-wrappers': 2,
|
|
196
|
-
'no-obj-calls': 2,
|
|
197
|
-
'no-octal': 2,
|
|
198
|
-
'no-octal-escape': 2,
|
|
199
|
-
'no-path-concat': 2,
|
|
200
|
-
'no-proto': 2,
|
|
201
|
-
'no-redeclare': 2,
|
|
202
|
-
'no-regex-spaces': 2,
|
|
203
|
-
'no-return-assign': [
|
|
204
|
-
2,
|
|
205
|
-
'except-parens'
|
|
206
|
-
],
|
|
207
|
-
'no-self-assign': 2,
|
|
208
|
-
'no-self-compare': 2,
|
|
209
|
-
'no-sequences': 2,
|
|
210
|
-
'no-shadow-restricted-names': 2,
|
|
211
|
-
'no-spaced-func': 2,
|
|
212
|
-
'no-sparse-arrays': 2,
|
|
213
|
-
'no-this-before-super': 2,
|
|
214
|
-
'no-throw-literal': 2,
|
|
215
|
-
'no-trailing-spaces': 2,
|
|
216
|
-
'no-undef': 2,
|
|
217
|
-
'no-undef-init': 2,
|
|
218
|
-
'no-unexpected-multiline': 2,
|
|
219
|
-
'no-unmodified-loop-condition': 2,
|
|
220
|
-
'no-unneeded-ternary': [
|
|
221
|
-
2,
|
|
222
|
-
{
|
|
223
|
-
defaultAssignment: false
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
'no-unreachable': 2,
|
|
227
|
-
'no-unsafe-finally': 2,
|
|
228
|
-
'no-unused-vars': [
|
|
229
|
-
2,
|
|
230
|
-
{
|
|
231
|
-
vars: 'all',
|
|
232
|
-
args: 'none'
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
'no-useless-call': 2,
|
|
236
|
-
'no-useless-computed-key': 2,
|
|
237
|
-
'no-useless-constructor': 2,
|
|
238
|
-
'no-useless-escape': 0,
|
|
239
|
-
'no-whitespace-before-property': 2,
|
|
240
|
-
'no-with': 2,
|
|
241
|
-
'one-var': [
|
|
242
|
-
2,
|
|
243
|
-
{
|
|
244
|
-
initialized: 'never'
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
'operator-linebreak': [
|
|
248
|
-
2,
|
|
249
|
-
'after',
|
|
250
|
-
{
|
|
251
|
-
overrides: {
|
|
252
|
-
'?': 'before',
|
|
253
|
-
':': 'before'
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
'padded-blocks': [
|
|
258
|
-
2,
|
|
259
|
-
'never'
|
|
260
|
-
],
|
|
261
|
-
quotes: [
|
|
262
|
-
2,
|
|
263
|
-
'single',
|
|
264
|
-
{
|
|
265
|
-
avoidEscape: true,
|
|
266
|
-
allowTemplateLiterals: true
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
semi: [
|
|
270
|
-
2,
|
|
271
|
-
'never'
|
|
272
|
-
],
|
|
273
|
-
'semi-spacing': [
|
|
274
|
-
2,
|
|
275
|
-
{
|
|
276
|
-
before: false,
|
|
277
|
-
after: true
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
'space-before-blocks': [
|
|
281
|
-
2,
|
|
282
|
-
'always'
|
|
283
|
-
],
|
|
284
|
-
'space-before-function-paren': [
|
|
285
|
-
2,
|
|
286
|
-
'never'
|
|
287
|
-
],
|
|
288
|
-
'space-in-parens': [
|
|
289
|
-
2,
|
|
290
|
-
'never'
|
|
291
|
-
],
|
|
292
|
-
'space-infix-ops': 2,
|
|
293
|
-
'space-unary-ops': [
|
|
294
|
-
2,
|
|
295
|
-
{
|
|
296
|
-
words: true,
|
|
297
|
-
nonwords: false
|
|
298
|
-
}
|
|
299
|
-
],
|
|
300
|
-
'spaced-comment': [
|
|
301
|
-
2,
|
|
302
|
-
'always',
|
|
303
|
-
{
|
|
304
|
-
markers: [
|
|
305
|
-
'global',
|
|
306
|
-
'globals',
|
|
307
|
-
'eslint',
|
|
308
|
-
'eslint-disable',
|
|
309
|
-
'*package',
|
|
310
|
-
'!',
|
|
311
|
-
','
|
|
312
|
-
]
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
'template-curly-spacing': [
|
|
316
|
-
2,
|
|
317
|
-
'never'
|
|
318
|
-
],
|
|
319
|
-
'use-isnan': 2,
|
|
320
|
-
'valid-typeof': 2,
|
|
321
|
-
'wrap-iife': [
|
|
322
|
-
2,
|
|
323
|
-
'any'
|
|
324
|
-
],
|
|
325
|
-
'yield-star-spacing': [
|
|
326
|
-
2,
|
|
327
|
-
'both'
|
|
328
|
-
],
|
|
329
|
-
yoda: [
|
|
330
|
-
2,
|
|
331
|
-
'never'
|
|
332
|
-
],
|
|
333
|
-
'prefer-const': 2,
|
|
334
|
-
'no-debugger': 0,
|
|
335
|
-
'object-curly-spacing': [
|
|
336
|
-
2,
|
|
337
|
-
'always',
|
|
338
|
-
{
|
|
339
|
-
objectsInObjects: false
|
|
340
|
-
}
|
|
341
|
-
],
|
|
342
|
-
'array-bracket-spacing': [
|
|
343
|
-
2,
|
|
344
|
-
'never'
|
|
345
|
-
],
|
|
346
|
-
'vue/no-use-v-if-with-v-for': 'off'
|
|
347
|
-
}
|
|
348
|
-
}
|
package/babel.config.js
DELETED
package/commitlint.config.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
ignores: [(commit) => commit.includes('init')],
|
|
3
|
-
extends: ['@commitlint/config-conventional'],
|
|
4
|
-
parserPreset: {
|
|
5
|
-
parserOpts: {
|
|
6
|
-
headerPattern: /^(\w*|[\u4e00-\u9fa5]*)(?:[\(\(](.*)[\)\)])?[\:\:] (.*)/,
|
|
7
|
-
headerCorrespondence: ['type', 'scope', 'subject'],
|
|
8
|
-
referenceActions: [
|
|
9
|
-
'close',
|
|
10
|
-
'closes',
|
|
11
|
-
'closed',
|
|
12
|
-
'fix',
|
|
13
|
-
'fixes',
|
|
14
|
-
'fixed',
|
|
15
|
-
'resolve',
|
|
16
|
-
'resolves',
|
|
17
|
-
'resolved'
|
|
18
|
-
],
|
|
19
|
-
issuePrefixes: ['#'],
|
|
20
|
-
noteKeywords: ['BREAKING CHANGE', '不兼容变更'],
|
|
21
|
-
fieldPattern: /^-(.*?)-$/,
|
|
22
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,
|
|
23
|
-
revertCorrespondence: ['header', 'hash'],
|
|
24
|
-
warn() {},
|
|
25
|
-
mergePattern: null,
|
|
26
|
-
mergeCorrespondence: null
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
rules: {
|
|
30
|
-
'body-leading-blank': [2, 'always'],
|
|
31
|
-
'footer-leading-blank': [1, 'always'],
|
|
32
|
-
'header-max-length': [2, 'always', 108],
|
|
33
|
-
'subject-empty': [2, 'never'],
|
|
34
|
-
'type-empty': [2, 'never'],
|
|
35
|
-
'type-enum': [
|
|
36
|
-
2,
|
|
37
|
-
'always',
|
|
38
|
-
[
|
|
39
|
-
'feat', // 新功能
|
|
40
|
-
'fix', // 修复bug
|
|
41
|
-
'perf',
|
|
42
|
-
'style', // 代码格式修改,没有任何代码语义的变化
|
|
43
|
-
'docs', // 文档、注释修改
|
|
44
|
-
'test', // 测试
|
|
45
|
-
'refactor', // 代码重构
|
|
46
|
-
'build', // 发布版本
|
|
47
|
-
'ci',
|
|
48
|
-
'chore',
|
|
49
|
-
'revert',
|
|
50
|
-
'wip',
|
|
51
|
-
'workflow',
|
|
52
|
-
'types'
|
|
53
|
-
]
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
}
|
package/jest.config.js
DELETED
package/karma.conf.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var webpackConfig = require('@vue/cli-service/webpack.config')
|
|
2
|
-
|
|
3
|
-
module.exports = function (config) {
|
|
4
|
-
config.set({
|
|
5
|
-
frameworks: ['mocha'],
|
|
6
|
-
files: ['tests/**/*.spec.js'],
|
|
7
|
-
preprocessors: {
|
|
8
|
-
'**/*.spec.js': ['webpack', 'sourcemap']
|
|
9
|
-
},
|
|
10
|
-
autoWatch: true,
|
|
11
|
-
webpack: webpackConfig,
|
|
12
|
-
reporters: ['spec'],
|
|
13
|
-
browsers: ['ChromeHeadless']
|
|
14
|
-
})
|
|
15
|
-
}
|