@juzhenfe/modules 2.0.7 → 2.2.0
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.
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
markers:
|
|
4
|
-
|
|
5
|
-
default: () => any[];
|
|
6
|
-
};
|
|
7
|
-
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "click")[], "update" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
2
|
+
markers: any;
|
|
3
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "click")[], "update" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
8
4
|
markers?: unknown;
|
|
9
5
|
} & {
|
|
10
|
-
markers:
|
|
6
|
+
markers: any;
|
|
11
7
|
} & {}> & {
|
|
12
8
|
onUpdate?: (...args: any[]) => any;
|
|
13
9
|
onClick?: (...args: any[]) => any;
|
|
14
10
|
}, {
|
|
15
|
-
markers:
|
|
11
|
+
markers: any;
|
|
16
12
|
}>;
|
|
17
13
|
export default _default;
|
package/dist/types/a-map.d.ts
CHANGED
|
@@ -30,12 +30,19 @@ declare namespace JuzhenAMap {
|
|
|
30
30
|
type ANIMATION_TYPE = 'AMAP_ANIMATION_NONE' | 'AMAP_ANIMATION_DROP' | 'AMAP_ANIMATION_BOUNCE'
|
|
31
31
|
|
|
32
32
|
interface MarkerOptions {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
position?: LngLat;
|
|
34
|
+
|
|
35
35
|
anchor?: string;
|
|
36
|
+
|
|
36
37
|
offset?: [number, number];
|
|
38
|
+
|
|
37
39
|
icon?: string;
|
|
38
|
-
|
|
40
|
+
lng?: number;
|
|
41
|
+
lat?: number;
|
|
42
|
+
iconWidth?: number;
|
|
43
|
+
iconHeight?: number;
|
|
44
|
+
|
|
45
|
+
content?: string | Document;
|
|
39
46
|
bubble?: boolean;
|
|
40
47
|
visible?: boolean;
|
|
41
48
|
zIndex?: number;
|
|
@@ -45,7 +52,6 @@ declare namespace JuzhenAMap {
|
|
|
45
52
|
label?: string;
|
|
46
53
|
animation?: ANIMATION_TYPE;
|
|
47
54
|
update?(marker: any): any;
|
|
48
|
-
marker?: Marker;
|
|
49
55
|
[key: string]: any;
|
|
50
56
|
}
|
|
51
57
|
|
|
@@ -63,6 +69,7 @@ declare namespace JuzhenAMap {
|
|
|
63
69
|
setCenter(center: LngLat): any;
|
|
64
70
|
remove(marker: Marker): any;
|
|
65
71
|
addControl(plugin: any): any;
|
|
72
|
+
add(data: any): any;
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
interface MapsEvent {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
plugin(plugins: string[], cb: Function): any;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
interface Window {
|
|
2
|
+
AMap: {
|
|
3
|
+
Map: new (ele: string, opt?: JuzhenAMap.MapOptions) => JuzhenAMap.Map;
|
|
4
|
+
Marker: new (opt?: JuzhenAMap.MarkerOptions) => any;
|
|
5
|
+
Pixel: new (x: number, y: number) => any;
|
|
6
|
+
plugin(plugins: string[], cb: Function): any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
14
9
|
}
|
package/package.json
CHANGED
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@juzhenfe/modules",
|
|
3
|
-
"version": "2.0
|
|
4
|
-
"main": "dist/index.min.js",
|
|
5
|
-
"types": "dist/packages/modules/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite --force",
|
|
8
|
-
"build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
|
|
9
|
-
"clean": "rimraf dist",
|
|
10
|
-
"build:type": "node ./build/build-type.js",
|
|
11
|
-
"build:es": "npm run clean && lerna bootstrap && npm run build && npm run build:type",
|
|
12
|
-
"pub": "npm publish --access public",
|
|
13
|
-
"version": "npm run build:es && npm run pub"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@babel/core": "^7.15.8",
|
|
20
|
-
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
21
|
-
"@babel/preset-env": "^7.15.8",
|
|
22
|
-
"@juzhenfe/page-model": "^1.11.7",
|
|
23
|
-
"@juzhenfe/request": "^1.6.1",
|
|
24
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
25
|
-
"@rollup/plugin-commonjs": "^18.1.0",
|
|
26
|
-
"@rollup/plugin-image": "^2.0.6",
|
|
27
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
28
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
29
|
-
"@rollup/plugin-typescript": "^8.2.1",
|
|
30
|
-
"@vitejs/plugin-vue": "^1.2.3",
|
|
31
|
-
"@vitejs/plugin-vue-jsx": "^1.1.5",
|
|
32
|
-
"@vue/compiler-sfc": "^3.1.2",
|
|
33
|
-
"clipboard": "^2.0.8",
|
|
34
|
-
"core-js": "^3.15.1",
|
|
35
|
-
"cross-env": "^7.0.3",
|
|
36
|
-
"element-plus": "^1.1.0-beta.20",
|
|
37
|
-
"lerna": "^4.0.0",
|
|
38
|
-
"rimraf": "^3.0.2",
|
|
39
|
-
"rollup
|
|
40
|
-
"rollup-plugin-
|
|
41
|
-
"rollup-plugin-
|
|
42
|
-
"rollup-plugin-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"vue
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@juzhenfe/modules",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"main": "dist/index.min.js",
|
|
5
|
+
"types": "dist/packages/modules/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "lerna bootstrap && vite --force",
|
|
8
|
+
"build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
|
|
9
|
+
"clean": "rimraf dist",
|
|
10
|
+
"build:type": "node ./build/build-type.js",
|
|
11
|
+
"build:es": "npm run clean && lerna bootstrap && npm run build && npm run build:type",
|
|
12
|
+
"pub": "npm publish --access public",
|
|
13
|
+
"version": "npm run build:es && npm run pub"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@babel/core": "^7.15.8",
|
|
20
|
+
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
21
|
+
"@babel/preset-env": "^7.15.8",
|
|
22
|
+
"@juzhenfe/page-model": "^1.11.7",
|
|
23
|
+
"@juzhenfe/request": "^1.6.1",
|
|
24
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
25
|
+
"@rollup/plugin-commonjs": "^18.1.0",
|
|
26
|
+
"@rollup/plugin-image": "^2.0.6",
|
|
27
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
28
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
29
|
+
"@rollup/plugin-typescript": "^8.2.1",
|
|
30
|
+
"@vitejs/plugin-vue": "^1.2.3",
|
|
31
|
+
"@vitejs/plugin-vue-jsx": "^1.1.5",
|
|
32
|
+
"@vue/compiler-sfc": "^3.1.2",
|
|
33
|
+
"clipboard": "^2.0.8",
|
|
34
|
+
"core-js": "^3.15.1",
|
|
35
|
+
"cross-env": "^7.0.3",
|
|
36
|
+
"element-plus": "^1.1.0-beta.20",
|
|
37
|
+
"lerna": "^4.0.0",
|
|
38
|
+
"rimraf": "^3.0.2",
|
|
39
|
+
"rollup": "^2.60.1",
|
|
40
|
+
"rollup-plugin-scss": "^2.6.1",
|
|
41
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
42
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
43
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
44
|
+
"sass": "^1.43.4",
|
|
45
|
+
"the-answer": "^1.0.0",
|
|
46
|
+
"typescript": "^4.3.4",
|
|
47
|
+
"vite": "^2.6.7",
|
|
48
|
+
"vue": "^3.2.20",
|
|
49
|
+
"vue-router": "^4.0.12",
|
|
50
|
+
"vue-tsc": "^0.1.7"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"echarts": "^5.1.2"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/dist/index.min.css
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
.uploader .upload-item {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
vertical-align: top;
|
|
4
|
-
text-align: center;
|
|
5
|
-
margin-right: 10px;
|
|
6
|
-
margin-bottom: 10px;
|
|
7
|
-
position: relative;
|
|
8
|
-
background-color: #fbfdff;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
width: 98px;
|
|
12
|
-
height: 98px;
|
|
13
|
-
line-height: 98px;
|
|
14
|
-
font-size: 0;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
border: 1px solid #ddd; }
|
|
17
|
-
.uploader .upload-item.empty {
|
|
18
|
-
border: 1px dashed #c0ccda; }
|
|
19
|
-
.uploader .upload-item.slot {
|
|
20
|
-
border: none; }
|
|
21
|
-
.uploader .upload-item.image {
|
|
22
|
-
width: 98px;
|
|
23
|
-
height: 98px;
|
|
24
|
-
line-height: 98px;
|
|
25
|
-
font-size: 0; }
|
|
26
|
-
.uploader .upload-item.image > div:first-child {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%; }
|
|
29
|
-
.uploader .upload-item.image.has-value {
|
|
30
|
-
border: 1px solid #c0ccda; }
|
|
31
|
-
.uploader .upload-item.video {
|
|
32
|
-
width: 300px;
|
|
33
|
-
height: 200px;
|
|
34
|
-
line-height: 200px; }
|
|
35
|
-
.uploader .upload-item.video .uploader-icon {
|
|
36
|
-
font-size: 50px; }
|
|
37
|
-
.uploader .upload-item.audio {
|
|
38
|
-
width: 300px;
|
|
39
|
-
height: 100px;
|
|
40
|
-
line-height: 100px; }
|
|
41
|
-
.uploader .upload-item.audio .uploader-icon {
|
|
42
|
-
font-size: 50px; }
|
|
43
|
-
.uploader .upload-item .upload-img {
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
background-repeat: no-repeat;
|
|
47
|
-
background-position: center;
|
|
48
|
-
background-size: contain; }
|
|
49
|
-
.uploader .upload-item audio {
|
|
50
|
-
vertical-align: middle; }
|
|
51
|
-
.uploader .upload-item .image-wrap {
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: 100%; }
|
|
54
|
-
.uploader .upload-item .video-wrap, .uploader .upload-item video {
|
|
55
|
-
height: 100%;
|
|
56
|
-
width: 100%; }
|
|
57
|
-
.uploader .upload-item .file-wrap {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
vertical-align: middle;
|
|
63
|
-
font-size: 12px;
|
|
64
|
-
white-space: pre-wrap;
|
|
65
|
-
word-break: break-all;
|
|
66
|
-
color: #666;
|
|
67
|
-
line-height: 1.2;
|
|
68
|
-
padding: 0 5px; }
|
|
69
|
-
.uploader .upload-item .file-wrap .file-name {
|
|
70
|
-
margin-top: 4px; }
|
|
71
|
-
.uploader .upload-item .uploader-icon {
|
|
72
|
-
font-size: 28px;
|
|
73
|
-
color: #8c939d;
|
|
74
|
-
text-align: center;
|
|
75
|
-
vertical-align: middle; }
|
|
76
|
-
.uploader .upload-item:hover .uploader__item-actions {
|
|
77
|
-
z-index: 1;
|
|
78
|
-
opacity: 1; }
|
|
79
|
-
|
|
80
|
-
.uploader .uploader__item-actions {
|
|
81
|
-
position: absolute;
|
|
82
|
-
top: 0;
|
|
83
|
-
left: 0;
|
|
84
|
-
width: 100%;
|
|
85
|
-
height: 30px;
|
|
86
|
-
line-height: 30px;
|
|
87
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
88
|
-
font-size: 16px;
|
|
89
|
-
color: #fff;
|
|
90
|
-
z-index: -1;
|
|
91
|
-
opacity: 0;
|
|
92
|
-
transition: all .3s; }
|
|
93
|
-
.uploader .uploader__item-actions > span {
|
|
94
|
-
margin: 0 4px; }
|
|
95
|
-
|
|
96
|
-
.tinymce-container {
|
|
97
|
-
position: relative;
|
|
98
|
-
line-height: normal; }
|
|
99
|
-
.tinymce-container .tinymce-container > > > .mce-fullscreen {
|
|
100
|
-
z-index: 10000; }
|
|
101
|
-
.tinymce-container .tinymce-textarea {
|
|
102
|
-
visibility: hidden;
|
|
103
|
-
z-index: -1; }
|
|
104
|
-
.tinymce-container .editor-custom-btn-container {
|
|
105
|
-
position: absolute;
|
|
106
|
-
right: 4px;
|
|
107
|
-
top: 4px;
|
|
108
|
-
z-index: 2; }
|
|
109
|
-
.tinymce-container .fullscreen .editor-custom-btn-container {
|
|
110
|
-
z-index: 10000;
|
|
111
|
-
position: fixed; }
|
|
112
|
-
.tinymce-container .editor-upload-btn {
|
|
113
|
-
display: inline-block; }
|
|
114
|
-
|
|
115
|
-
.jz_long-input .el-long-input textarea {
|
|
116
|
-
padding-right: 40px;
|
|
117
|
-
resize: none;
|
|
118
|
-
border: none;
|
|
119
|
-
border-radius: 0;
|
|
120
|
-
border-bottom: 1px solid #bfcbd9; }
|
|
121
|
-
|
|
122
|
-
.jz_long-input .content-length {
|
|
123
|
-
position: absolute;
|
|
124
|
-
right: 0;
|
|
125
|
-
color: #666;
|
|
126
|
-
font-size: 14px; }
|
|
127
|
-
|
|
128
|
-
.juzhen-images {
|
|
129
|
-
font-size: 0;
|
|
130
|
-
line-height: 1; }
|
|
131
|
-
.juzhen-images .img-item {
|
|
132
|
-
display: inline-block;
|
|
133
|
-
background-position: center;
|
|
134
|
-
background-repeat: no-repeat;
|
|
135
|
-
box-sizing: border-box; }
|
|
136
|
-
.juzhen-images .img-item.isclick {
|
|
137
|
-
cursor: pointer; }
|
|
138
|
-
.juzhen-images .img-item.avatar {
|
|
139
|
-
border-radius: 50%; }
|
|
140
|
-
.juzhen-images .img-item.border {
|
|
141
|
-
border: 1px solid #E8E8E8; }
|
|
142
|
-
.juzhen-images .img-item + .img-item {
|
|
143
|
-
margin-left: 10px; }
|
|
144
|
-
|
|
145
|
-
.juzhen-amap[data-v-1b01b54a] {
|
|
146
|
-
position: relative; }
|
|
147
|
-
|
|
148
|
-
.map-container[data-v-1b01b54a] {
|
|
149
|
-
height: 100%; }
|
|
150
|
-
|
|
151
|
-
.map-search[data-v-1b01b54a] {
|
|
152
|
-
position: absolute;
|
|
153
|
-
top: 10px;
|
|
154
|
-
right: 10px;
|
|
155
|
-
z-index: 9;
|
|
156
|
-
width: 200px; }
|
|
157
|
-
|
|
158
|
-
.chart[data-v-68fa3b9e] {
|
|
159
|
-
height: 100%; }
|
|
160
|
-
|
|
161
|
-
.file-icon[data-v-03dc6aae] {
|
|
162
|
-
width: 36px;
|
|
163
|
-
height: 36px; }
|
|
164
|
-
|
|
165
|
-
.uploader_loading-mask {
|
|
166
|
-
position: absolute;
|
|
167
|
-
top: 0;
|
|
168
|
-
left: 0;
|
|
169
|
-
right: 0;
|
|
170
|
-
bottom: 0;
|
|
171
|
-
background-color: rgba(255, 255, 255, 0.9);
|
|
172
|
-
z-index: 1; }
|
|
173
|
-
.uploader_loading-mask .loading-content {
|
|
174
|
-
position: absolute;
|
|
175
|
-
top: 50%;
|
|
176
|
-
transform: translateY(-50%);
|
|
177
|
-
left: 0;
|
|
178
|
-
right: 0;
|
|
179
|
-
line-height: 1;
|
|
180
|
-
text-align: center;
|
|
181
|
-
font-size: 12px; }
|
|
182
|
-
.uploader_loading-mask .loading-text {
|
|
183
|
-
color: #666;
|
|
184
|
-
padding: 0.5em 0; }
|
|
185
|
-
.uploader_loading-mask .progress-box {
|
|
186
|
-
display: inline-block;
|
|
187
|
-
position: relative;
|
|
188
|
-
height: 10px;
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
width: 80%;
|
|
191
|
-
background-color: #8c939d;
|
|
192
|
-
border-radius: 10px; }
|
|
193
|
-
.uploader_loading-mask .progress-bar {
|
|
194
|
-
position: absolute;
|
|
195
|
-
left: 0;
|
|
196
|
-
top: 0;
|
|
197
|
-
bottom: 0;
|
|
198
|
-
background-color: #42b983;
|
|
199
|
-
z-index: 1; }
|
|
200
|
-
.uploader_loading-mask .btn-cancel {
|
|
201
|
-
color: #999; }
|