@juzhenfe/modules 2.1.1 → 2.2.3

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
- type: PropType<JuzhenAMap.MarkerOptions[]>;
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: JuzhenAMap.MarkerOptions[];
6
+ markers: any;
11
7
  } & {}> & {
12
8
  onUpdate?: (...args: any[]) => any;
13
9
  onClick?: (...args: any[]) => any;
14
10
  }, {
15
- markers: JuzhenAMap.MarkerOptions[];
11
+ markers: any;
16
12
  }>;
17
13
  export default _default;
@@ -1,44 +1,30 @@
1
- import { PropType } from "vue";
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  modelValue: {
4
- type: PropType<JuzhenAMap.LngLat>;
5
3
  default: () => number[];
6
4
  };
7
5
  options: {
8
- type: PropType<JuzhenAMap.MapOptions>;
9
6
  default: () => {};
10
7
  };
11
8
  height: {
12
- type: PropType<string | number>;
13
9
  default: string;
14
10
  };
15
11
  width: {
16
- type: PropType<string | number>;
17
12
  default: string;
18
13
  };
19
14
  markers: {
20
- type: PropType<JuzhenAMap.MarkerOptions[]>;
21
15
  default: () => any[];
22
16
  };
23
17
  search: {
24
- type: PropType<boolean>;
18
+ type: BooleanConstructor;
25
19
  default: boolean;
26
20
  };
27
21
  useCenter: {
28
22
  type: BooleanConstructor;
29
23
  default: boolean;
30
24
  };
31
- }, {
32
- mapId: string;
33
- useStyle: import("vue").ComputedRef<{
34
- height: string;
35
- width: string;
36
- }>;
37
- useMarkers: import("vue").ComputedRef<JuzhenAMap.MarkerOptions[]>;
38
- provideMap: (fn: Function) => void;
39
- updateModelValue: (value: JuzhenAMap.LngLat) => void;
40
- markerClick: (e: JuzhenAMap.MapsEvent) => void;
41
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "initMap" | "markerClick" | "click")[], "update:modelValue" | "initMap" | "markerClick" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
25
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "initMap" | "markerClick" | "click")[], "update:modelValue" | "initMap" | "markerClick" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
42
28
  modelValue?: unknown;
43
29
  options?: unknown;
44
30
  height?: unknown;
@@ -47,12 +33,12 @@ declare const _default: import("vue").DefineComponent<{
47
33
  search?: unknown;
48
34
  useCenter?: unknown;
49
35
  } & {
36
+ width: string;
37
+ height: string;
50
38
  search: boolean;
51
- modelValue: JuzhenAMap.LngLat;
39
+ modelValue: number[];
52
40
  options: {};
53
- height: string | number;
54
- width: string | number;
55
- markers: JuzhenAMap.MarkerOptions[];
41
+ markers: any[];
56
42
  useCenter: boolean;
57
43
  } & {}> & {
58
44
  "onUpdate:modelValue"?: (...args: any[]) => any;
@@ -60,12 +46,12 @@ declare const _default: import("vue").DefineComponent<{
60
46
  onMarkerClick?: (...args: any[]) => any;
61
47
  onClick?: (...args: any[]) => any;
62
48
  }, {
49
+ width: string;
50
+ height: string;
63
51
  search: boolean;
64
- modelValue: JuzhenAMap.LngLat;
52
+ modelValue: number[];
65
53
  options: {};
66
- height: string | number;
67
- width: string | number;
68
- markers: JuzhenAMap.MarkerOptions[];
54
+ markers: any[];
69
55
  useCenter: boolean;
70
56
  }>;
71
57
  export default _default;
@@ -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
- map?: Map;
34
- position: LngLat;
33
+ position?: LngLat;
34
+
35
35
  anchor?: string;
36
+
36
37
  offset?: [number, number];
38
+
37
39
  icon?: string;
38
- content?: string | HTMLDocument;
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
 
@@ -61,8 +67,10 @@ declare namespace JuzhenAMap {
61
67
  interface Map {
62
68
  on(eventName: string, fn: Function): any;
63
69
  setCenter(center: LngLat): any;
70
+ setZoom(zoom: number): any;
64
71
  remove(marker: Marker): any;
65
72
  addControl(plugin: any): any;
73
+ add(data: any): any;
66
74
  }
67
75
 
68
76
  interface MapsEvent {
@@ -1,14 +1,9 @@
1
- import { JuzhenAMap } from "./a-map";
2
-
3
- declare global {
4
- interface Window {
5
- AMap: {
6
- Map: new (ele: string, opt?: JuzhenAMap.MapOptions) => JuzhenAMap.Map;
7
- Marker: new (opt?: JuzhenAMap.MarkerOptions) => any;
8
- Pixel: new (x: number, y: number) => any;
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,54 +1,55 @@
1
- {
2
- "name": "@juzhenfe/modules",
3
- "version": "2.1.1",
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-plugin-scss": "^2.6.1",
40
- "rollup-plugin-terser": "^7.0.2",
41
- "rollup-plugin-typescript2": "^0.30.0",
42
- "rollup-plugin-vue": "^6.0.0",
43
- "sass": "^1.43.4",
44
- "the-answer": "^1.0.0",
45
- "typescript": "^4.3.4",
46
- "vite": "^2.6.7",
47
- "vue": "^3.2.20",
48
- "vue-router": "^4.0.12",
49
- "vue-tsc": "^0.1.7"
50
- },
51
- "dependencies": {
52
- "echarts": "^5.1.2"
53
- }
54
- }
1
+ {
2
+ "name": "@juzhenfe/modules",
3
+ "version": "2.2.3",
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
+ }
@@ -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
- .uploader_loading-mask {
162
- position: absolute;
163
- top: 0;
164
- left: 0;
165
- right: 0;
166
- bottom: 0;
167
- background-color: rgba(255, 255, 255, 0.9);
168
- z-index: 1; }
169
- .uploader_loading-mask .loading-content {
170
- position: absolute;
171
- top: 50%;
172
- transform: translateY(-50%);
173
- left: 0;
174
- right: 0;
175
- line-height: 1;
176
- text-align: center;
177
- font-size: 12px; }
178
- .uploader_loading-mask .loading-text {
179
- color: #666;
180
- padding: 0.5em 0; }
181
- .uploader_loading-mask .progress-box {
182
- display: inline-block;
183
- position: relative;
184
- height: 10px;
185
- overflow: hidden;
186
- width: 80%;
187
- background-color: #8c939d;
188
- border-radius: 10px; }
189
- .uploader_loading-mask .progress-bar {
190
- position: absolute;
191
- left: 0;
192
- top: 0;
193
- bottom: 0;
194
- background-color: #42b983;
195
- z-index: 1; }
196
- .uploader_loading-mask .btn-cancel {
197
- color: #999; }
198
-
199
- .file-icon[data-v-03dc6aae] {
200
- width: 36px;
201
- height: 36px; }
@@ -1,6 +0,0 @@
1
- export default function setupStyle(height: string | number, width: string | number): {
2
- useStyle: import("vue").ComputedRef<{
3
- height: string;
4
- width: string;
5
- }>;
6
- };