meixioacomponent 1.1.38 → 1.1.40

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 (49) hide show
  1. package/lib/components/base/baseGuide/GuideControl.d.ts +44 -44
  2. package/lib/components/base/baseGuide/GuideControl.js +238 -238
  3. package/lib/components/dynamicmount/DynamicMountClass.d.ts +15 -15
  4. package/lib/components/dynamicmount/DynamicMountClass.js +65 -65
  5. package/lib/components/dynamicmount/index.d.ts +4 -4
  6. package/lib/components/dynamicmount/index.js +71 -71
  7. package/lib/components/index.d.ts +104 -104
  8. package/lib/components/index.js +221 -221
  9. package/lib/config/LinkViewClass.d.ts +56 -56
  10. package/lib/config/LinkViewClass.js +154 -154
  11. package/lib/config/componentConfig.d.ts +3 -3
  12. package/lib/config/componentConfig.js +71 -71
  13. package/lib/config/uploadRequest.d.ts +2 -2
  14. package/lib/config/uploadRequest.js +87 -87
  15. package/lib/config/use/UseGuide.d.ts +8 -8
  16. package/lib/config/use/UseGuide.js +33 -33
  17. package/lib/config/use/UseImg.d.ts +9 -9
  18. package/lib/config/use/UseImg.js +41 -41
  19. package/lib/config/use/UseUpload.d.ts +12 -12
  20. package/lib/config/use/UseUpload.js +79 -79
  21. package/lib/config/use/UseViewVideo.d.ts +11 -11
  22. package/lib/config/use/UseViewVideo.js +41 -41
  23. package/lib/config/use/WaitPlugin.d.ts +25 -25
  24. package/lib/config/use/WaitPlugin.js +106 -106
  25. package/lib/config/use/useWait.d.ts +4 -4
  26. package/lib/config/use/useWait.js +21 -21
  27. package/lib/meixioacomponent.common.js +41937 -41938
  28. package/lib/meixioacomponent.umd.js +41971 -41972
  29. package/lib/meixioacomponent.umd.min.js +28 -28
  30. package/lib/typings/type.d.ts +394 -394
  31. package/lib/typings/type.js +2 -2
  32. package/lib/useType/useType.d.ts +27 -27
  33. package/lib/useType/useType.js +89 -89
  34. package/package.json +1 -1
  35. package/packages/components/base/baseNumberInput/index.vue +9 -13
  36. package/packages/components/base/baseText/index.vue +2 -1
  37. package/packages/components/dynamicmount/DynamicMountClass.js +64 -64
  38. package/packages/components/dynamicmount/index.js +69 -69
  39. package/packages/components/index.js +218 -218
  40. package/packages/config/LinkViewClass.js +152 -152
  41. package/packages/config/componentConfig.js +68 -68
  42. package/packages/config/use/UseGuide.js +43 -43
  43. package/packages/config/use/UseImg.js +41 -41
  44. package/packages/config/use/UseUpload.js +80 -80
  45. package/packages/config/use/UseViewVideo.js +40 -40
  46. package/packages/config/use/WaitPlugin.js +106 -106
  47. package/packages/config/use/useWait.js +18 -18
  48. package/packages/typings/type.js +2 -2
  49. package/packages/useType/useType.js +90 -90
@@ -1,65 +1,65 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const componentConfig_1 = __importDefault(require("../../config/componentConfig"));
7
- class DynamicMountClass {
8
- constructor(dynamicMount) {
9
- this.params = dynamicMount;
10
- this.domComponent = null;
11
- this.refComponent = null;
12
- this.mountdCb = null;
13
- this.destroyCb = null;
14
- }
15
- init() {
16
- this.domComponent = componentConfig_1.default.Vue.prototype.$dynmaicMount({
17
- mountedDom: this.params.mountedDom,
18
- vueComponent: this.params.vueComponent,
19
- componentProps: this.params.componentProps,
20
- customClassName: this.params.customClassName,
21
- zIndex: this.params.zIndex ? this.params.zIndex : '9999',
22
- });
23
- this.refComponent = this.domComponent.componentMounted;
24
- this.refComponent.$on('hook:destroyed', () => {
25
- this.destroy();
26
- });
27
- this.refComponent.$on('hook:mounted', () => {
28
- this.mounted();
29
- });
30
- }
31
- getComponent() {
32
- return this.refComponent;
33
- }
34
- on(type, cb) {
35
- switch (type) {
36
- case 'mounted':
37
- this.mountdCb = cb;
38
- break;
39
- case 'destroyed':
40
- this.destroyCb = cb;
41
- break;
42
- default:
43
- break;
44
- }
45
- }
46
- mounted() {
47
- if (this.mountdCb) {
48
- this.mountdCb(this.refComponent);
49
- }
50
- }
51
- destroy() {
52
- if (this.destroyCb) {
53
- this.destroyCb(this.refComponent);
54
- }
55
- componentConfig_1.default.Vue.component(`${this.domComponent.$options.name}`, null);
56
- delete componentConfig_1.default.Vue.options.components[`${this.domComponent.$options.name}`];
57
- // @ts-ignore
58
- this.params = null;
59
- this.domComponent = null;
60
- this.refComponent = null;
61
- this.mountdCb = null;
62
- this.destroyCb = null;
63
- }
64
- }
65
- exports.default = DynamicMountClass;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const componentConfig_1 = __importDefault(require("../../config/componentConfig"));
7
+ class DynamicMountClass {
8
+ constructor(dynamicMount) {
9
+ this.params = dynamicMount;
10
+ this.domComponent = null;
11
+ this.refComponent = null;
12
+ this.mountdCb = null;
13
+ this.destroyCb = null;
14
+ }
15
+ init() {
16
+ this.domComponent = componentConfig_1.default.Vue.prototype.$dynmaicMount({
17
+ mountedDom: this.params.mountedDom,
18
+ vueComponent: this.params.vueComponent,
19
+ componentProps: this.params.componentProps,
20
+ customClassName: this.params.customClassName,
21
+ zIndex: this.params.zIndex ? this.params.zIndex : '9999',
22
+ });
23
+ this.refComponent = this.domComponent.componentMounted;
24
+ this.refComponent.$on('hook:destroyed', () => {
25
+ this.destroy();
26
+ });
27
+ this.refComponent.$on('hook:mounted', () => {
28
+ this.mounted();
29
+ });
30
+ }
31
+ getComponent() {
32
+ return this.refComponent;
33
+ }
34
+ on(type, cb) {
35
+ switch (type) {
36
+ case 'mounted':
37
+ this.mountdCb = cb;
38
+ break;
39
+ case 'destroyed':
40
+ this.destroyCb = cb;
41
+ break;
42
+ default:
43
+ break;
44
+ }
45
+ }
46
+ mounted() {
47
+ if (this.mountdCb) {
48
+ this.mountdCb(this.refComponent);
49
+ }
50
+ }
51
+ destroy() {
52
+ if (this.destroyCb) {
53
+ this.destroyCb(this.refComponent);
54
+ }
55
+ componentConfig_1.default.Vue.component(`${this.domComponent.$options.name}`, null);
56
+ delete componentConfig_1.default.Vue.options.components[`${this.domComponent.$options.name}`];
57
+ // @ts-ignore
58
+ this.params = null;
59
+ this.domComponent = null;
60
+ this.refComponent = null;
61
+ this.mountdCb = null;
62
+ this.destroyCb = null;
63
+ }
64
+ }
65
+ exports.default = DynamicMountClass;
@@ -1,5 +1,5 @@
1
- declare const _default: {
2
- install(Vue: any, options?: {}): void;
3
- };
4
- export default _default;
1
+ declare const _default: {
2
+ install(Vue: any, options?: {}): void;
3
+ };
4
+ export default _default;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,71 +1,71 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- // @ts-ignore
7
- const dynamicMount_vue_1 = __importDefault(require("./dynamicMount.vue"));
8
- const componentConfig_1 = __importDefault(require("../../config/componentConfig"));
9
- //使用方法
10
- // this.$dynmaicMount({
11
- // mountedDom: "",
12
- // vueComponent: "",
13
- // componentProps: "",
14
- // customClassName:"",
15
- // });
16
- const Insert = (options) => {
17
- const ComponentInsertConstructor = componentConfig_1.default.Vue.extend(dynamicMount_vue_1.default);
18
- componentConfig_1.default.setDynamicId();
19
- let id = componentConfig_1.default.dynamicId;
20
- const componentInsertConstructor = new ComponentInsertConstructor();
21
- // @ts-ignore
22
- componentInsertConstructor.vm = componentInsertConstructor.$mount();
23
- // @ts-ignore
24
- componentInsertConstructor.dom = componentInsertConstructor.vm.$el;
25
- // @ts-ignore
26
- componentInsertConstructor.mountedDom = options.mountedDom;
27
- // @ts-ignore
28
- componentInsertConstructor.vm.id = id;
29
- // @ts-ignore
30
- componentInsertConstructor.vm.vueComponent = options.vueComponent;
31
- // @ts-ignore
32
- componentInsertConstructor.componentProps = options.componentProps;
33
- // @ts-ignore
34
- componentInsertConstructor.vm.init();
35
- let ele = document.createElement('div');
36
- ele.setAttribute('id', `dynamic-${id}`);
37
- let className;
38
- if (options.customClassName != null) {
39
- className = `dynamic ${options.customClassName}`;
40
- }
41
- else {
42
- className = 'dynamic';
43
- }
44
- ele.setAttribute('class', className);
45
- if (options.mountedDom) {
46
- ele.style.height = '100%';
47
- // @ts-ignore
48
- componentInsertConstructor.vm.$el.style.height = '100%';
49
- }
50
- else {
51
- ele.style.position = `fixed`;
52
- ele.style.zIndex = options.zIndex || '9999';
53
- ele.style.top = `0px`;
54
- ele.style.left = `0px`;
55
- }
56
- // @ts-ignore
57
- ele.appendChild(componentInsertConstructor.dom);
58
- if (options.mountedDom) {
59
- options.mountedDom.appendChild(ele);
60
- }
61
- else {
62
- document.body.appendChild(ele);
63
- }
64
- // @ts-ignore
65
- return componentInsertConstructor.vm;
66
- };
67
- exports.default = {
68
- install(Vue, options = {}) {
69
- Vue.prototype.$dynmaicMount = Insert;
70
- },
71
- };
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ // @ts-ignore
7
+ const dynamicMount_vue_1 = __importDefault(require("./dynamicMount.vue"));
8
+ const componentConfig_1 = __importDefault(require("../../config/componentConfig"));
9
+ //使用方法
10
+ // this.$dynmaicMount({
11
+ // mountedDom: "",
12
+ // vueComponent: "",
13
+ // componentProps: "",
14
+ // customClassName:"",
15
+ // });
16
+ const Insert = (options) => {
17
+ const ComponentInsertConstructor = componentConfig_1.default.Vue.extend(dynamicMount_vue_1.default);
18
+ componentConfig_1.default.setDynamicId();
19
+ let id = componentConfig_1.default.dynamicId;
20
+ const componentInsertConstructor = new ComponentInsertConstructor();
21
+ // @ts-ignore
22
+ componentInsertConstructor.vm = componentInsertConstructor.$mount();
23
+ // @ts-ignore
24
+ componentInsertConstructor.dom = componentInsertConstructor.vm.$el;
25
+ // @ts-ignore
26
+ componentInsertConstructor.mountedDom = options.mountedDom;
27
+ // @ts-ignore
28
+ componentInsertConstructor.vm.id = id;
29
+ // @ts-ignore
30
+ componentInsertConstructor.vm.vueComponent = options.vueComponent;
31
+ // @ts-ignore
32
+ componentInsertConstructor.componentProps = options.componentProps;
33
+ // @ts-ignore
34
+ componentInsertConstructor.vm.init();
35
+ let ele = document.createElement('div');
36
+ ele.setAttribute('id', `dynamic-${id}`);
37
+ let className;
38
+ if (options.customClassName != null) {
39
+ className = `dynamic ${options.customClassName}`;
40
+ }
41
+ else {
42
+ className = 'dynamic';
43
+ }
44
+ ele.setAttribute('class', className);
45
+ if (options.mountedDom) {
46
+ ele.style.height = '100%';
47
+ // @ts-ignore
48
+ componentInsertConstructor.vm.$el.style.height = '100%';
49
+ }
50
+ else {
51
+ ele.style.position = `fixed`;
52
+ ele.style.zIndex = options.zIndex || '9999';
53
+ ele.style.top = `0px`;
54
+ ele.style.left = `0px`;
55
+ }
56
+ // @ts-ignore
57
+ ele.appendChild(componentInsertConstructor.dom);
58
+ if (options.mountedDom) {
59
+ options.mountedDom.appendChild(ele);
60
+ }
61
+ else {
62
+ document.body.appendChild(ele);
63
+ }
64
+ // @ts-ignore
65
+ return componentInsertConstructor.vm;
66
+ };
67
+ exports.default = {
68
+ install(Vue, options = {}) {
69
+ Vue.prototype.$dynmaicMount = Insert;
70
+ },
71
+ };
@@ -1,105 +1,105 @@
1
- import DynamicMountClass from "./dynamicmount/DynamicMountClass";
2
- import useWait from "../config/use/useWait";
3
- import LinkViewClass from "../config/LinkViewClass";
4
- declare const meixioacomponent: {
5
- install: (Vue: any) => void;
6
- componentConfig: import("../typings/type").componentConfigType;
7
- meixicomponents: any[];
8
- baseAnchor: any;
9
- baseAppendix: any;
10
- baseArea: any;
11
- baseAvatar: any;
12
- baseButtonHandle: any;
13
- baseDefaultSvg: any;
14
- baseDialog: any;
15
- baseDialogTable: any;
16
- baseDrawer: any;
17
- baseEdito: any;
18
- baseFixedHeader: any;
19
- Icon: any;
20
- baseImageViewer: any;
21
- baseImg: any;
22
- baseInforWrap: any;
23
- baseLineInfoGroup: any;
24
- baseLineInfoItem: any;
25
- basePageHeader: any;
26
- basePagination: any;
27
- basePlainTable: any;
28
- baseSection: any;
29
- baseSkeleton: any;
30
- baseSvg: any;
31
- baseTimeTypeSelect: any;
32
- baseToggle: any;
33
- baseUploadItem: any;
34
- baseUpload: any;
35
- upload: any;
36
- baseDialogForm: any;
37
- baseForm: any;
38
- baseFormWrap: any;
39
- baseProTable: any;
40
- baseMoverVerifiBar: any;
41
- baseTimeLine: any;
42
- baseUploadImgAndName: any;
43
- basePopoverButton: any;
44
- baseTreeSelect: any;
45
- baseUploadTemplate: any;
46
- baseNumberInput: any;
47
- baseStoreSelect: any;
48
- baseFormItem: any;
49
- baseSingleImgUpload: any;
50
- baseGuide: any;
51
- baseText: any;
52
- baseTag: any;
53
- elDatePicker: any;
54
- oaProTableSearch: any;
55
- baseWait: any;
56
- Theme: any;
57
- SelectStore: any;
58
- useImg: {
59
- dynamicMount: import("../typings/type").DynamicMountInterface | null;
60
- toView(list: any[]): void;
61
- destroy: () => void;
62
- };
63
- UseDrag: any;
64
- UseResize: any;
65
- useUpload: {
66
- cbList: any[];
67
- dynamicMount: import("../typings/type").DynamicMountInterface | null;
68
- lock: Boolean;
69
- toUpload(uploadList: any, cb: any, isOss: any): boolean;
70
- uploadEd(evt?: null): void;
71
- appendUploadItem(list: any): void;
72
- };
73
- useFixedHeader: any;
74
- useCropper: any;
75
- useViewVideo: {
76
- component: import("../typings/type").DynamicMountInterface | null;
77
- playVideo(resource: string): void;
78
- switchVideoResource(): void;
79
- createVideoComponent(resource: any): void;
80
- unMountedVideo(): void;
81
- };
82
- useGuide: {
83
- guideComponent: import("../typings/type").DynamicMountInterface | null;
84
- startGuide(params: import("../typings/type").UseGuideParamsType): void;
85
- };
86
- DynamicMountClass: typeof DynamicMountClass;
87
- useWait: typeof useWait;
88
- LinkViewClass: typeof LinkViewClass;
89
- useTableColumnParamsType: () => {
90
- useTypeByProTableParams: (paramsList: import("../typings/type").ProTableParamsType[]) => import("../typings/type").ProTableParamsType[];
91
- useTypeByPlainTableParams: (paramsList: import("../typings/type").PlainTableParamsType[]) => import("../typings/type").PlainTableParamsType[];
92
- };
93
- useFormItemParamsType: () => {
94
- useTypeByInputFormItem: (params: import("../typings/type").FormItemInputParam) => import("../typings/type").FormItemInputParam;
95
- useTypeTextareaFormItem: (params: import("../typings/type").FormItemTextareaParam) => import("../typings/type").FormItemTextareaParam;
96
- useTypeNumberFormItem: (params: import("../typings/type").FormItemNumberParam) => import("../typings/type").FormItemNumberParam;
97
- useTypeSelectFormItem: (params: import("../typings/type").FormItemSelectParam) => import("../typings/type").FormItemSelectParam;
98
- useTypeTimeFormItem: (params: import("../typings/type").FormItemTimeParam) => import("../typings/type").FormItemTimeParam;
99
- useTypeRadioFormItem: (params: import("../typings/type").FormItemRadioParam) => import("../typings/type").FormItemRadioParam;
100
- useTypeSingleUploadFormItem: (params: import("../typings/type").FormItemSingleUploadParam) => import("../typings/type").FormItemSingleUploadParam;
101
- };
102
- useProScreenParamsItem: (proScreenItem: import("../typings/type").TableProScreenInterFace, auth?: boolean) => import("../typings/type").TableProScreenInterFace | null;
103
- };
104
- export default meixioacomponent;
1
+ import DynamicMountClass from "./dynamicmount/DynamicMountClass";
2
+ import useWait from "../config/use/useWait";
3
+ import LinkViewClass from "../config/LinkViewClass";
4
+ declare const meixioacomponent: {
5
+ install: (Vue: any) => void;
6
+ componentConfig: import("../typings/type").componentConfigType;
7
+ meixicomponents: any[];
8
+ baseAnchor: any;
9
+ baseAppendix: any;
10
+ baseArea: any;
11
+ baseAvatar: any;
12
+ baseButtonHandle: any;
13
+ baseDefaultSvg: any;
14
+ baseDialog: any;
15
+ baseDialogTable: any;
16
+ baseDrawer: any;
17
+ baseEdito: any;
18
+ baseFixedHeader: any;
19
+ Icon: any;
20
+ baseImageViewer: any;
21
+ baseImg: any;
22
+ baseInforWrap: any;
23
+ baseLineInfoGroup: any;
24
+ baseLineInfoItem: any;
25
+ basePageHeader: any;
26
+ basePagination: any;
27
+ basePlainTable: any;
28
+ baseSection: any;
29
+ baseSkeleton: any;
30
+ baseSvg: any;
31
+ baseTimeTypeSelect: any;
32
+ baseToggle: any;
33
+ baseUploadItem: any;
34
+ baseUpload: any;
35
+ upload: any;
36
+ baseDialogForm: any;
37
+ baseForm: any;
38
+ baseFormWrap: any;
39
+ baseProTable: any;
40
+ baseMoverVerifiBar: any;
41
+ baseTimeLine: any;
42
+ baseUploadImgAndName: any;
43
+ basePopoverButton: any;
44
+ baseTreeSelect: any;
45
+ baseUploadTemplate: any;
46
+ baseNumberInput: any;
47
+ baseStoreSelect: any;
48
+ baseFormItem: any;
49
+ baseSingleImgUpload: any;
50
+ baseGuide: any;
51
+ baseText: any;
52
+ baseTag: any;
53
+ elDatePicker: any;
54
+ oaProTableSearch: any;
55
+ baseWait: any;
56
+ Theme: any;
57
+ SelectStore: any;
58
+ useImg: {
59
+ dynamicMount: import("../typings/type").DynamicMountInterface | null;
60
+ toView(list: any[]): void;
61
+ destroy: () => void;
62
+ };
63
+ UseDrag: any;
64
+ UseResize: any;
65
+ useUpload: {
66
+ cbList: any[];
67
+ dynamicMount: import("../typings/type").DynamicMountInterface | null;
68
+ lock: Boolean;
69
+ toUpload(uploadList: any, cb: any, isOss: any): boolean;
70
+ uploadEd(evt?: null): void;
71
+ appendUploadItem(list: any): void;
72
+ };
73
+ useFixedHeader: any;
74
+ useCropper: any;
75
+ useViewVideo: {
76
+ component: import("../typings/type").DynamicMountInterface | null;
77
+ playVideo(resource: string): void;
78
+ switchVideoResource(): void;
79
+ createVideoComponent(resource: any): void;
80
+ unMountedVideo(): void;
81
+ };
82
+ useGuide: {
83
+ guideComponent: import("../typings/type").DynamicMountInterface | null;
84
+ startGuide(params: import("../typings/type").UseGuideParamsType): void;
85
+ };
86
+ DynamicMountClass: typeof DynamicMountClass;
87
+ useWait: typeof useWait;
88
+ LinkViewClass: typeof LinkViewClass;
89
+ useTableColumnParamsType: () => {
90
+ useTypeByProTableParams: (paramsList: import("../typings/type").ProTableParamsType[]) => import("../typings/type").ProTableParamsType[];
91
+ useTypeByPlainTableParams: (paramsList: import("../typings/type").PlainTableParamsType[]) => import("../typings/type").PlainTableParamsType[];
92
+ };
93
+ useFormItemParamsType: () => {
94
+ useTypeByInputFormItem: (params: import("../typings/type").FormItemInputParam) => import("../typings/type").FormItemInputParam;
95
+ useTypeTextareaFormItem: (params: import("../typings/type").FormItemTextareaParam) => import("../typings/type").FormItemTextareaParam;
96
+ useTypeNumberFormItem: (params: import("../typings/type").FormItemNumberParam) => import("../typings/type").FormItemNumberParam;
97
+ useTypeSelectFormItem: (params: import("../typings/type").FormItemSelectParam) => import("../typings/type").FormItemSelectParam;
98
+ useTypeTimeFormItem: (params: import("../typings/type").FormItemTimeParam) => import("../typings/type").FormItemTimeParam;
99
+ useTypeRadioFormItem: (params: import("../typings/type").FormItemRadioParam) => import("../typings/type").FormItemRadioParam;
100
+ useTypeSingleUploadFormItem: (params: import("../typings/type").FormItemSingleUploadParam) => import("../typings/type").FormItemSingleUploadParam;
101
+ };
102
+ useProScreenParamsItem: (proScreenItem: import("../typings/type").TableProScreenInterFace, auth?: boolean) => import("../typings/type").TableProScreenInterFace | null;
103
+ };
104
+ export default meixioacomponent;
105
105
  //# sourceMappingURL=index.d.ts.map