@juzhenfe/modules 2.8.6 → 2.8.8

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 (36) hide show
  1. package/dist/dev/src/config.d.ts +1 -0
  2. package/dist/index.min.css +1 -279
  3. package/dist/index.min.js +3 -3
  4. package/dist/packages/a-map/index.d.ts +1 -1
  5. package/dist/packages/a-map/src/components/marker/index.vue.d.ts +6 -8
  6. package/dist/packages/a-map/src/components/search/index.vue.d.ts +8 -8
  7. package/dist/packages/a-map/src/index.vue.d.ts +8 -9
  8. package/dist/packages/cascader/index.d.ts +1 -1
  9. package/dist/packages/cascader/src/index.vue.d.ts +6 -6
  10. package/dist/packages/city-picker/index.d.ts +1 -1
  11. package/dist/packages/city-picker/src/index.vue.d.ts +6 -6
  12. package/dist/packages/city-picker-v2/index.d.ts +1 -1
  13. package/dist/packages/city-picker-v2/src/components/city-list.vue.d.ts +9 -12
  14. package/dist/packages/city-picker-v2/src/index.vue.d.ts +10 -12
  15. package/dist/packages/ck-editor/index.d.ts +1 -1
  16. package/dist/packages/ck-editor/src/editor.vue.d.ts +13 -18
  17. package/dist/packages/ck-editor/src/index.vue.d.ts +18 -24
  18. package/dist/packages/editor/index.d.ts +1 -1
  19. package/dist/packages/editor/src/editor.vue.d.ts +11 -15
  20. package/dist/packages/editor/src/index.vue.d.ts +14 -18
  21. package/dist/packages/file-upload/index.d.ts +1 -1
  22. package/dist/packages/file-upload/src/index.vue.d.ts +7 -7
  23. package/dist/packages/images/index.d.ts +1 -1
  24. package/dist/packages/images/src/index.vue.d.ts +5 -5
  25. package/dist/packages/long-input/index.d.ts +1 -1
  26. package/dist/packages/long-input/src/index.vue.d.ts +6 -6
  27. package/dist/packages/td-map/index.d.ts +1 -1
  28. package/dist/packages/td-map/src/components/marker/index.vue.d.ts +6 -8
  29. package/dist/packages/td-map/src/components/search/index.vue.d.ts +8 -8
  30. package/dist/packages/td-map/src/index.vue.d.ts +8 -9
  31. package/dist/packages/upload/index.d.ts +1 -1
  32. package/dist/packages/upload/src/components/file-icon/index.vue.d.ts +5 -5
  33. package/dist/packages/upload/src/components/loading/index.vue.d.ts +5 -5
  34. package/dist/packages/upload/src/index.vue.d.ts +33 -10
  35. package/dist/types/upload.d.ts +21 -0
  36. package/package.json +53 -52
@@ -1,16 +1,16 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  url: {
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
- }, {
6
+ }>, {
7
7
  fileicon: import("vue").ComputedRef<any>;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
9
  url: {
10
10
  type: StringConstructor;
11
11
  default: string;
12
12
  };
13
- }>>, {
13
+ }>> & Readonly<{}>, {
14
14
  url: string;
15
- }>;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
16
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  mode: {
3
3
  type: StringConstructor;
4
4
  default: string;
@@ -7,9 +7,9 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: ObjectConstructor;
8
8
  default: () => {};
9
9
  };
10
- }, {
10
+ }>, {
11
11
  cancelUpload: () => void;
12
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  mode: {
14
14
  type: StringConstructor;
15
15
  default: string;
@@ -18,8 +18,8 @@ declare const _default: import("vue").DefineComponent<{
18
18
  type: ObjectConstructor;
19
19
  default: () => {};
20
20
  };
21
- }>>, {
21
+ }>> & Readonly<{}>, {
22
22
  mode: string;
23
23
  progress: Record<string, any>;
24
- }>;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from "vue";
2
- declare const _default: import("vue").DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  modelValue: {
4
4
  type: StringConstructor;
5
5
  default: string;
@@ -24,6 +24,10 @@ declare const _default: import("vue").DefineComponent<{
24
24
  type: FunctionConstructor;
25
25
  default: any;
26
26
  };
27
+ srcTransform: {
28
+ type: FunctionConstructor;
29
+ default: any;
30
+ };
27
31
  data: {
28
32
  type: PropType<{
29
33
  [key: string]: any;
@@ -80,9 +84,9 @@ declare const _default: import("vue").DefineComponent<{
80
84
  type: PropType<(file: JuzhenUpload.MyFile) => void>;
81
85
  default: () => void;
82
86
  };
83
- }, {
87
+ }>, {
84
88
  srcList: import("vue").ComputedRef<string[]>;
85
- showSrcList: import("vue").ComputedRef<string[]>;
89
+ showSrcList: import("vue").Ref<string[], string[]>;
86
90
  useMode: import("vue").ComputedRef<string>;
87
91
  progresses: import("vue").Ref<{
88
92
  progressEvent: any;
@@ -95,6 +99,17 @@ declare const _default: import("vue").DefineComponent<{
95
99
  token: any;
96
100
  cancel: (message?: string) => void;
97
101
  };
102
+ }[], JuzhenUpload.UploadProgress[] | {
103
+ progressEvent: any;
104
+ loaded: number;
105
+ total: number;
106
+ percent: string;
107
+ isComplete: boolean;
108
+ gid: string;
109
+ source: {
110
+ token: any;
111
+ cancel: (message?: string) => void;
112
+ };
98
113
  }[]>;
99
114
  useStyle: import("vue").ComputedRef<{
100
115
  width: string;
@@ -113,7 +128,7 @@ declare const _default: import("vue").DefineComponent<{
113
128
  cancelUploadByGid: (gid: string) => void;
114
129
  formatFileName: (src: string) => string;
115
130
  typeList: import("vue").ComputedRef<string[]>;
116
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
131
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
117
132
  modelValue: {
118
133
  type: StringConstructor;
119
134
  default: string;
@@ -138,6 +153,10 @@ declare const _default: import("vue").DefineComponent<{
138
153
  type: FunctionConstructor;
139
154
  default: any;
140
155
  };
156
+ srcTransform: {
157
+ type: FunctionConstructor;
158
+ default: any;
159
+ };
141
160
  data: {
142
161
  type: PropType<{
143
162
  [key: string]: any;
@@ -194,17 +213,18 @@ declare const _default: import("vue").DefineComponent<{
194
213
  type: PropType<(file: JuzhenUpload.MyFile) => void>;
195
214
  default: () => void;
196
215
  };
197
- }>>, {
198
- data: {
199
- path: string;
200
- };
201
- mode: "image" | "video" | "file" | "audio";
216
+ }>> & Readonly<{}>, {
202
217
  modelValue: string;
203
218
  sperator: string;
204
219
  base64: boolean;
205
220
  url: string;
206
221
  getSrc: Function;
207
222
  settleResult: Function;
223
+ srcTransform: Function;
224
+ data: {
225
+ [key: string]: any;
226
+ };
227
+ mode: "image" | "video" | "file" | "audio";
208
228
  accept: string;
209
229
  mult: boolean;
210
230
  qiniu: boolean;
@@ -216,5 +236,8 @@ declare const _default: import("vue").DefineComponent<{
216
236
  onUploadProgress: (index: number, progressInfo: any) => void;
217
237
  onUploadSuccess: (src: JuzhenUpload.UploadResultModel) => void;
218
238
  onUploadError: (file: JuzhenUpload.MyFile) => void;
219
- }>;
239
+ }, {}, {
240
+ UploadLoading: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
241
+ FileIcon: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
242
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
220
243
  export default _default;
@@ -27,11 +27,32 @@ declare namespace JuzhenUpload {
27
27
  }
28
28
 
29
29
  interface NormalUploadConfig {
30
+ /**
31
+ * 文件url前缀拼接地址
32
+ */
30
33
  fileUrl: string;
34
+ /**
35
+ * 是否需要拼接文件url前缀
36
+ */
31
37
  isFileUrlAppendToUrl?: boolean;
38
+ /**
39
+ * 上传api地址
40
+ */
32
41
  uploadUrl: string;
42
+ /**
43
+ * 如何获取src
44
+ */
33
45
  getSrc?: (result: any) => string;
46
+ /**
47
+ * 如何判断是否上传成功
48
+ * @param result 上传结果
49
+ * @returns 是否上传成功
50
+ */
34
51
  settleResult?: (result: any) => boolean
52
+ /**
53
+ * src转换方法
54
+ */
55
+ srcTransform?: (src: string) => Promise<string>;
35
56
  }
36
57
 
37
58
  interface InstallOptions {
package/package.json CHANGED
@@ -1,52 +1,53 @@
1
- {
2
- "name": "@juzhenfe/modules",
3
- "version": "2.8.6",
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": "^2.0.5",
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.8.6",
48
- "vue": "^3.2.31",
49
- "vue-router": "^4.0.12",
50
- "vue-tsc": "^0.1.7"
51
- }
52
- }
1
+ {
2
+ "name": "@juzhenfe/modules",
3
+ "version": "2.8.8",
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": "^2.0.5",
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.37.0",
43
+ "rollup-plugin-vue": "^6.0.0",
44
+ "sass": "^1.43.4",
45
+ "the-answer": "^1.0.0",
46
+ "tslib": "^2.8.1",
47
+ "typescript": "^4.3.4",
48
+ "vite": "^2.8.6",
49
+ "vue": "^3.2.31",
50
+ "vue-router": "^4.0.12",
51
+ "vue-tsc": "^0.1.7"
52
+ }
53
+ }