meixioacomponent 0.6.44 → 0.9.11

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 (101) hide show
  1. package/Meixioacomponent-ver-0.9.01.md +80 -0
  2. package/README.md +1 -1
  3. package/babel.config.js +4 -11
  4. package/jsconfig.json +19 -0
  5. package/lib/components/base/baseGuide/GuideControl.d.ts +30 -0
  6. package/lib/components/base/baseGuide/GuideControl.d.ts.map +1 -0
  7. package/lib/components/base/baseGuide/GuideControl.js +165 -0
  8. package/lib/components/dynamicmount/DynamicMountClass.d.ts +16 -0
  9. package/lib/components/dynamicmount/DynamicMountClass.d.ts.map +1 -0
  10. package/lib/components/dynamicmount/DynamicMountClass.js +56 -0
  11. package/lib/components/dynamicmount/index.d.ts +5 -0
  12. package/lib/components/dynamicmount/index.d.ts.map +1 -0
  13. package/lib/components/dynamicmount/index.js +53 -0
  14. package/lib/components/index.d.ts +95 -0
  15. package/lib/components/index.d.ts.map +1 -0
  16. package/lib/components/index.js +209 -0
  17. package/lib/config/LinkViewClass.d.ts +50 -0
  18. package/lib/config/LinkViewClass.d.ts.map +1 -0
  19. package/lib/config/LinkViewClass.js +118 -0
  20. package/lib/config/componentConfig.d.ts +4 -0
  21. package/lib/config/componentConfig.d.ts.map +1 -0
  22. package/lib/config/componentConfig.js +68 -0
  23. package/lib/config/use/UseGuide.d.ts +9 -0
  24. package/lib/config/use/UseGuide.d.ts.map +1 -0
  25. package/lib/config/use/UseGuide.js +29 -0
  26. package/lib/config/use/UseImg.d.ts +10 -0
  27. package/lib/config/use/UseImg.d.ts.map +1 -0
  28. package/lib/config/use/UseImg.js +39 -0
  29. package/lib/config/use/UseViewVideo.d.ts +12 -0
  30. package/lib/config/use/UseViewVideo.d.ts.map +1 -0
  31. package/lib/config/use/UseViewVideo.js +40 -0
  32. package/lib/config/use/WaitPlugin.d.ts +26 -0
  33. package/lib/config/use/WaitPlugin.d.ts.map +1 -0
  34. package/lib/config/use/WaitPlugin.js +106 -0
  35. package/lib/config/use/useWait.d.ts +5 -0
  36. package/lib/config/use/useWait.d.ts.map +1 -0
  37. package/lib/config/use/useWait.js +21 -0
  38. package/lib/demo.html +1 -8
  39. package/lib/meixioacomponent.common.js +79284 -111832
  40. package/lib/meixioacomponent.umd.js +79285 -111832
  41. package/lib/meixioacomponent.umd.min.js +111 -93
  42. package/lib/typings/type.d.ts +342 -0
  43. package/lib/typings/type.d.ts.map +1 -0
  44. package/lib/typings/type.js +2 -0
  45. package/lib/useType/useType.d.ts +27 -0
  46. package/lib/useType/useType.d.ts.map +1 -0
  47. package/lib/useType/useType.js +82 -0
  48. package/package.json +28 -22
  49. package/packages/components/base/baseAnchor/baseAnchor.vue +1 -0
  50. package/packages/components/base/baseGuide/GuideControl.ts +182 -0
  51. package/packages/components/base/baseGuide/guideContent.vue +14 -14
  52. package/packages/components/base/baseGuide/{guideHightLight.vue → guideLight.vue} +23 -16
  53. package/packages/components/base/baseGuide/guideMixins.js +1 -1
  54. package/packages/components/base/baseGuide/index.vue +7 -5
  55. package/packages/components/base/baseText/index.vue +2 -0
  56. package/packages/components/base/baseTimeLine/baseTimeLineRight.vue +1 -1
  57. package/packages/components/dynamicmount/DynamicMountClass.ts +67 -0
  58. package/packages/components/dynamicmount/index.ts +51 -0
  59. package/packages/components/index.js +200 -205
  60. package/packages/components/index.ts +217 -0
  61. package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +2 -2
  62. package/packages/components/proPageTable/oaProTableSearch/oa_pro-table-search.vue +2 -0
  63. package/packages/components/proPageTable/oa_pro_table.vue +16 -3
  64. package/packages/config/LinkViewClass.js +91 -117
  65. package/packages/config/LinkViewClass.ts +163 -0
  66. package/packages/config/{componentConfig.js → componentConfig.ts} +18 -17
  67. package/packages/config/uploadRequest.js +1 -1
  68. package/packages/config/use/UseGuide.ts +34 -0
  69. package/packages/config/use/UseImg.ts +44 -0
  70. package/packages/config/use/UseResize.js +7 -7
  71. package/packages/config/use/UseUpload.js +1 -1
  72. package/packages/config/use/UseViewVideo.ts +47 -0
  73. package/packages/config/use/{WaitPlugin.js → WaitPlugin.ts} +26 -13
  74. package/packages/config/use/useCropper.js +1 -1
  75. package/packages/config/use/useFixedHeader.js +1 -1
  76. package/packages/config/use/{useWait.js → useWait.ts} +2 -1
  77. package/packages/typings/type.js +2 -0
  78. package/packages/typings/type.ts +389 -0
  79. package/packages/useType/useType.ts +127 -0
  80. package/public/favicon.ico +0 -0
  81. package/public/index.html +17 -0
  82. package/tsconfig.json +120 -0
  83. package/vue.config.js +29 -20
  84. package/.idea/inspectionProfiles/Project_Default.xml +0 -10
  85. package/.idea/jsLibraryMappings.xml +0 -6
  86. package/.idea/meixioacomponent.iml +0 -12
  87. package/.idea/modules.xml +0 -8
  88. package/.idea/vcs.xml +0 -6
  89. package/.idea/watcherTasks.xml +0 -4
  90. package/lib/fonts/element-icons.535877f5.woff +0 -0
  91. package/lib/fonts/element-icons.732389de.ttf +0 -0
  92. package/packages/components/base/baseGuide/GuideControl.js +0 -152
  93. package/packages/components/dynamicmount/DynamicMount.js +0 -55
  94. package/packages/components/dynamicmount/index.js +0 -49
  95. package/packages/config/use/UseGuide.js +0 -31
  96. package/packages/config/use/UseImg.js +0 -39
  97. package/packages/config/use/UseViewVideo.js +0 -42
  98. package/types/Icon.ts +0 -21
  99. package/types/components.d.ts +0 -5
  100. package/types/index.d.ts +0 -3
  101. package/types/meixioacomponent.d.ts +0 -17
@@ -0,0 +1,80 @@
1
+ # MEIXiOAComponent 更新公告(0.9.01-ver)
2
+
3
+ ## 变更
4
+ ### 升级Cli工具,引入TS
5
+ ### 剔除多余代码,打包后大小缩小了200多KB
6
+
7
+ ## 新增
8
+ ### 公共函数大部分使用TS进行重构,方便开发时使用。目前支持TS类型的公共函数
9
+ ### useImg
10
+ #### 全局预览图片
11
+ ### useVIewVIdeo
12
+ #### 全局播放视频
13
+ ### useGuide
14
+ #### 全局使用引导组件
15
+ ### DynamicMountClass
16
+ #### 函数式挂载Vue组件
17
+ ### useWait
18
+ #### 使用全局wait加载组件
19
+ ### LinkViewClass
20
+ #### 配合页面表格组件使用的表格配置类
21
+
22
+ ## 新增
23
+ ### 补全表格与表单TS类型函数
24
+ ##### 因为所有前端项目都是基于JS来进行开发的,目前对所有插件的代码提示支持并不是特别友好,所以组件库暴露了这几种函数来做到类型与代码提示的支持(也是基于IDE的扩展功能来实现的,webstorm与VScode都支持,VScode支持的还更友好,算是某种意义上的曲线救国)。
25
+
26
+ ### useTableColumnParamsType
27
+ #### 返回plain/pro表格的头部配置类型函数
28
+ ```javascript
29
+
30
+ // 分别返回 pro页面表格与plain表格的头部配置
31
+ const {useTypeByPlainTableParams,useTypeByProTableParams} = meixioacomponent.useTableColumnParamsType();
32
+
33
+ ```
34
+ #### 举例
35
+ ![图片](assets/IMG_1.png)
36
+
37
+ ### useFormItemParamsType
38
+ #### 返回表单的7种类型的配置类型函数
39
+ ```javascript
40
+ //分别返回表单控制的7种类型配置函数
41
+ const {
42
+ // input类型
43
+ useTypeByInputFormItem,
44
+ // 数字类型
45
+ useTypeNumberFormItem,
46
+ // 单选框类型
47
+ useTypeRadioFormItem,
48
+ // 下拉选择框类型
49
+ useTypeSelectFormItem,
50
+ // 单文件上传类型
51
+ useTypeSingleUploadFormItem,
52
+ // 时间选择类型
53
+ useTypeTimeFormItem,
54
+ // 文本域类型
55
+ useTypeTextareaFormItem
56
+ } = meixioacomponent.useFormItemParamsType();
57
+ ```
58
+ #### 举例
59
+ ![图片](assets/IMG_2.png)
60
+
61
+ ## 组件变更
62
+
63
+ ### base-text
64
+ #### 修改当类型为money并且数量为0时,由暂无数据变更为¥:0。
65
+
66
+ ## 组件修复
67
+
68
+ ### bsae-guide
69
+ #### 修复当挂载的组件的不存在时,由渲染变更为直接关闭引导组件。
70
+ #### 修复引导组件底部判断逻辑。
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # meixioacomponent
1
+ # meixigoodstablecontrol
2
2
 
3
3
  ## Project setup
4
4
  ```
package/babel.config.js CHANGED
@@ -1,13 +1,6 @@
1
1
  module.exports = {
2
- presets: ["@vue/cli-plugin-babel/preset"],
3
- plugins: [
4
- [
5
- "component",
6
- {
7
- libraryName: "element-ui",
8
- styleLibraryName: "theme-chalk",
9
- },
2
+ presets: [
3
+ '@vue/cli-plugin-babel/preset'
10
4
  ],
11
- ['@babel/plugin-proposal-optional-chaining']
12
- ],
13
- };
5
+ plugins: [['@babel/plugin-proposal-optional-chaining']]
6
+ }
package/jsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "esnext",
5
+ "baseUrl": "./",
6
+ "moduleResolution": "node",
7
+ "paths": {
8
+ "@/*": [
9
+ "src/*"
10
+ ]
11
+ },
12
+ "lib": [
13
+ "esnext",
14
+ "dom",
15
+ "dom.iterable",
16
+ "scripthost"
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,30 @@
1
+ import { DynamicMountInterface, GuideControlInterface, GuideStepsType } from "../../../typings/type";
2
+ declare class GuideControl implements GuideControlInterface {
3
+ isOverlay: boolean;
4
+ steps: GuideStepsType[];
5
+ show: boolean;
6
+ component: any;
7
+ current: number;
8
+ guideLight?: DynamicMountInterface | null;
9
+ guideContent?: DynamicMountInterface | null;
10
+ guideLightPosition: string | null;
11
+ constructor(defaultCurrent: number, steps: GuideStepsType[], component: any);
12
+ onStartGuide(): void;
13
+ createGuideOverlay(): void;
14
+ createGuideLight(): void;
15
+ createGuideContent(): void;
16
+ setGuideLightPosition(position: any): void;
17
+ getGuideHandleButtonConfig(value: any): {
18
+ text: string;
19
+ type: string;
20
+ click: () => void;
21
+ }[];
22
+ onNextStepClick: () => void;
23
+ onPrevStepClick: () => void;
24
+ onFinish: () => void;
25
+ onSkip: () => void;
26
+ beforeDestroy(): void;
27
+ destroyComponent(): void;
28
+ }
29
+ export default GuideControl;
30
+ //# sourceMappingURL=GuideControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GuideControl.d.ts","sourceRoot":"","sources":["../../../../packages/components/base/baseGuide/GuideControl.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAEnG,cAAM,YAAa,YAAW,qBAAqB;IAC/C,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,GAAG,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;IACzC,YAAY,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC3C,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;gBAErB,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,GAAG;IAc3E,YAAY;IAkBZ,kBAAkB;IASlB,gBAAgB;IAgBhB,kBAAkB;IAiBlB,qBAAqB,CAAC,QAAQ,KAAA;IAK9B,0BAA0B,CAAC,KAAK,KAAA;;;;;IA+BhC,eAAe,aAMd;IAED,eAAe,aAMd;IAED,QAAQ,aAOP;IACD,MAAM,aAOL;IAED,aAAa;IAOb,gBAAgB;CAcnB;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,165 @@
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 guideContent_vue_1 = __importDefault(require("./guideContent.vue"));
7
+ const guideLight_vue_1 = __importDefault(require("./guideLight.vue"));
8
+ const DynamicMountClass_1 = __importDefault(require("../../dynamicmount/DynamicMountClass"));
9
+ class GuideControl {
10
+ constructor(defaultCurrent, steps, component) {
11
+ // 点击下一步的操作
12
+ this.onNextStepClick = () => {
13
+ this.current += 1;
14
+ try {
15
+ this.component.onNextStepClick(this.current);
16
+ }
17
+ catch (error) {
18
+ }
19
+ };
20
+ this.onPrevStepClick = () => {
21
+ this.current -= 1;
22
+ try {
23
+ this.component.onNextStepClick(this.current);
24
+ }
25
+ catch (error) {
26
+ }
27
+ };
28
+ this.onFinish = () => {
29
+ try {
30
+ this.component.onFinish(this.current);
31
+ }
32
+ catch (error) {
33
+ }
34
+ finally {
35
+ this.beforeDestroy();
36
+ }
37
+ };
38
+ this.onSkip = () => {
39
+ try {
40
+ this.component.onSkip(this.current);
41
+ }
42
+ catch (error) {
43
+ }
44
+ finally {
45
+ this.beforeDestroy();
46
+ }
47
+ };
48
+ this.isOverlay = true;
49
+ this.steps = steps;
50
+ this.show = false;
51
+ this.component = component;
52
+ this.current = defaultCurrent;
53
+ // guideLight 组件
54
+ this.guideLight = null;
55
+ // 引导组件的内容
56
+ this.guideContent = null;
57
+ // 引导需要展示的位置
58
+ this.guideLightPosition = null;
59
+ }
60
+ onStartGuide() {
61
+ setTimeout(() => {
62
+ this.component.$on('hook:destroyed', () => {
63
+ this.destroyComponent();
64
+ });
65
+ this.show = true;
66
+ if (this.isOverlay) {
67
+ this.createGuideOverlay();
68
+ }
69
+ if (!this.guideLight) {
70
+ this.createGuideLight();
71
+ }
72
+ }, 500);
73
+ }
74
+ // 创建遮罩层
75
+ createGuideOverlay() {
76
+ const { zIndex } = this.component;
77
+ let overlay = document.createElement('div');
78
+ overlay.setAttribute('class', 'base-guide-overlay');
79
+ overlay.style.zIndex = String(zIndex - 2);
80
+ document.body.appendChild(overlay);
81
+ }
82
+ // 创建高亮层
83
+ createGuideLight() {
84
+ const { zIndex } = this.component;
85
+ this.guideLight = new DynamicMountClass_1.default({
86
+ zIndex: zIndex - 1,
87
+ vueComponent: guideLight_vue_1.default,
88
+ componentProps: { _guideControl: this },
89
+ });
90
+ this.guideLight.on('mounted', (component) => {
91
+ console.log(component);
92
+ });
93
+ this.guideLight.on('destroyed', () => {
94
+ });
95
+ this.guideLight.init();
96
+ }
97
+ // 创建引导内容
98
+ createGuideContent() {
99
+ const { zIndex } = this.component;
100
+ if (!this.guideContent) {
101
+ this.guideContent = new DynamicMountClass_1.default({
102
+ zIndex: zIndex,
103
+ vueComponent: guideContent_vue_1.default,
104
+ componentProps: { _guideControl: this },
105
+ });
106
+ this.guideContent.on('mounted', (component) => {
107
+ });
108
+ this.guideContent.on('destroyed', () => {
109
+ });
110
+ this.guideContent.init();
111
+ }
112
+ }
113
+ // 设置引导的位置
114
+ setGuideLightPosition(position) {
115
+ this.guideLightPosition = position;
116
+ }
117
+ // 获取操作按钮配置
118
+ getGuideHandleButtonConfig(value) {
119
+ const stepLength = this.steps.length;
120
+ if (value === 0 && stepLength > 1) {
121
+ return [
122
+ { text: '跳过', type: 'info', click: this.onSkip },
123
+ { text: '下一步', type: 'primary', click: this.onNextStepClick },
124
+ ];
125
+ }
126
+ else if (value === stepLength - 1) {
127
+ if (stepLength === 1) {
128
+ return [
129
+ { text: '跳过', type: 'info', click: this.onSkip },
130
+ { text: '完成', type: 'primary', click: this.onFinish },
131
+ ];
132
+ }
133
+ else {
134
+ return [
135
+ { text: '上一步', type: 'info', click: this.onPrevStepClick },
136
+ { text: '完成', type: 'primary', click: this.onFinish },
137
+ ];
138
+ }
139
+ }
140
+ else {
141
+ return [
142
+ { text: '跳过', type: 'info', click: this.onSkip },
143
+ { text: '上一步', type: 'info', click: this.onPrevStepClick },
144
+ { text: '下一步', type: 'primary', click: this.onNextStepClick },
145
+ ];
146
+ }
147
+ }
148
+ beforeDestroy() {
149
+ let node = document.getElementsByClassName('base-guide-overlay')[0];
150
+ document.body.removeChild(node);
151
+ this.component.onDestroy();
152
+ }
153
+ destroyComponent() {
154
+ if (this.guideLight) {
155
+ let _guideLight = this.guideLight.getComponent();
156
+ _guideLight[`onDestroy`]();
157
+ }
158
+ if (this.guideContent) {
159
+ let _guideContent = this.guideContent.getComponent();
160
+ _guideContent[`onDestroy`]();
161
+ }
162
+ document.body.style.overflow = 'auto';
163
+ }
164
+ }
165
+ exports.default = GuideControl;
@@ -0,0 +1,16 @@
1
+ import { DynamicMountInterface, DynamicMountParams } from "../../typings/type";
2
+ declare class DynamicMountClass implements DynamicMountInterface {
3
+ destroyCb: null | Function;
4
+ mountdCb: null | Function;
5
+ domComponent: any;
6
+ params: DynamicMountParams;
7
+ refComponent: any;
8
+ constructor(dynamicMount: any);
9
+ init(): void;
10
+ getComponent(): object;
11
+ on(type: 'mounted' | 'destroyed', cb: Function): void;
12
+ private mounted;
13
+ private destroy;
14
+ }
15
+ export default DynamicMountClass;
16
+ //# sourceMappingURL=DynamicMountClass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicMountClass.d.ts","sourceRoot":"","sources":["../../../packages/components/dynamicmount/DynamicMountClass.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAE,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE7E,cAAM,iBAAkB,YAAW,qBAAqB;IACpD,SAAS,EAAE,IAAI,GAAG,QAAQ,CAAA;IAC1B,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAA;IACzB,YAAY,EAAE,GAAG,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,YAAY,EAAE,GAAG,CAAC;gBAEN,YAAY,KAAA;IAQjB,IAAI;IAgBJ,YAAY,IAAI,MAAM;IAItB,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,EAAE,EAAE,EAAE,QAAQ;IAarD,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,OAAO;CAOlB;AAED,eAAe,iBAAiB,CAAA"}
@@ -0,0 +1,56 @@
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 vue_1 = __importDefault(require("vue"));
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 = vue_1.default.prototype.$dynmaicMount({
17
+ mountedDom: this.params.mountedDom,
18
+ vueComponent: this.params.vueComponent,
19
+ componentProps: this.params.componentProps,
20
+ zIndex: this.params.zIndex ? this.params.zIndex : '9999',
21
+ });
22
+ this.refComponent = this.domComponent.componentMounted;
23
+ this.refComponent.$on('hook:destroyed', () => {
24
+ this.destroy();
25
+ });
26
+ this.refComponent.$on('hook:mounted', () => {
27
+ this.mounted();
28
+ });
29
+ }
30
+ getComponent() {
31
+ return this.refComponent;
32
+ }
33
+ on(type, cb) {
34
+ switch (type) {
35
+ case 'mounted':
36
+ this.mountdCb = cb;
37
+ break;
38
+ case 'destroyed':
39
+ this.destroyCb = cb;
40
+ break;
41
+ default:
42
+ break;
43
+ }
44
+ }
45
+ mounted() {
46
+ if (this.mountdCb) {
47
+ this.mountdCb(this.refComponent);
48
+ }
49
+ }
50
+ destroy() {
51
+ if (this.destroyCb) {
52
+ this.destroyCb(this.refComponent);
53
+ }
54
+ }
55
+ }
56
+ exports.default = DynamicMountClass;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ install(Vue: any, options?: {}): void;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/components/dynamicmount/index.ts"],"names":[],"mappings":";;;AA8CA,wBAIC"}
@@ -0,0 +1,53 @@
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 vue_1 = __importDefault(require("vue"));
7
+ const dynamicMount_vue_1 = __importDefault(require("./dynamicMount.vue"));
8
+ const componentConfig_1 = __importDefault(require("../../config/componentConfig"));
9
+ const ComponentInsertConstructor = vue_1.default.extend(dynamicMount_vue_1.default);
10
+ //使用方法
11
+ // this.$dynmaicMount({
12
+ // mountedDom: "",
13
+ // vueComponent: "",
14
+ // componentProps: "",
15
+ // });
16
+ const Insert = (options) => {
17
+ componentConfig_1.default.setDynamicId();
18
+ let id = componentConfig_1.default.dynamicId;
19
+ const componentInsertConstructor = new ComponentInsertConstructor();
20
+ componentInsertConstructor.vm = componentInsertConstructor.$mount();
21
+ componentInsertConstructor.dom = componentInsertConstructor.vm.$el;
22
+ componentInsertConstructor.mountedDom = options.mountedDom;
23
+ componentInsertConstructor.vm.id = id;
24
+ componentInsertConstructor.vm.vueComponent = options.vueComponent;
25
+ componentInsertConstructor.componentProps = options.componentProps;
26
+ componentInsertConstructor.vm.init();
27
+ let ele = document.createElement('div');
28
+ ele.setAttribute('id', `dynamic-${id}`);
29
+ ele.setAttribute('class', 'dynamic');
30
+ if (options.mountedDom) {
31
+ ele.style.height = '100%';
32
+ componentInsertConstructor.vm.$el.style.height = '100%';
33
+ }
34
+ else {
35
+ ele.style.position = `fixed`;
36
+ ele.style.zIndex = options.zIndex || '9999';
37
+ ele.style.top = `0px`;
38
+ ele.style.left = `0px`;
39
+ }
40
+ ele.appendChild(componentInsertConstructor.dom);
41
+ if (options.mountedDom) {
42
+ options.mountedDom.appendChild(ele);
43
+ }
44
+ else {
45
+ document.body.appendChild(ele);
46
+ }
47
+ return componentInsertConstructor.vm;
48
+ };
49
+ exports.default = {
50
+ install(Vue, options = {}) {
51
+ Vue.prototype.$dynmaicMount = Insert;
52
+ },
53
+ };
@@ -0,0 +1,95 @@
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
+ basePopoverButton: any;
43
+ baseTreeSelect: any;
44
+ baseUploadTemplate: any;
45
+ baseNumberInput: any;
46
+ baseStoreSelect: any;
47
+ baseFormItem: any;
48
+ baseSingleImgUpload: any;
49
+ baseGuide: any;
50
+ baseText: any;
51
+ baseTag: any;
52
+ oaProTableSearch: any;
53
+ baseWait: any;
54
+ Theme: any;
55
+ SelectStore: any;
56
+ useImg: {
57
+ dynamicMount: import("../typings/type").DynamicMountInterface | null;
58
+ toView(list: any[]): void;
59
+ destroy(): void;
60
+ };
61
+ UseDrag: any;
62
+ UseResize: any;
63
+ useUpload: any;
64
+ useFixedHeader: any;
65
+ useCropper: any;
66
+ useViewVideo: {
67
+ component: import("../typings/type").DynamicMountInterface | null;
68
+ playVideo(resource: string): void;
69
+ switchVideoResource(): void;
70
+ createVideoComponent(resource: any): void;
71
+ unMountedVideo(): void;
72
+ };
73
+ useGuide: {
74
+ guideComponent: import("../typings/type").DynamicMountInterface | null;
75
+ startGuide(params: import("../typings/type").UseGuideParamsType): void;
76
+ };
77
+ DynamicMountClass: typeof DynamicMountClass;
78
+ useWait: typeof useWait;
79
+ LinkViewClass: typeof LinkViewClass;
80
+ useTableColumnParamsType: () => {
81
+ useTypeByProTableParams: (paramsList: import("../typings/type").ProTableParamsType[]) => import("../typings/type").ProTableParamsType[];
82
+ useTypeByPlainTableParams: (paramsList: import("../typings/type").PlainTableParamsType[]) => import("../typings/type").PlainTableParamsType[];
83
+ };
84
+ useFormItemParamsType: () => {
85
+ useTypeByInputFormItem: (params: import("../typings/type").FormItemInputParam) => import("../typings/type").FormItemInputParam;
86
+ useTypeTextareaFormItem: (params: import("../typings/type").FormItemTextareaParam) => import("../typings/type").FormItemTextareaParam;
87
+ useTypeNumberFormItem: (params: import("../typings/type").FormItemNumberParam) => import("../typings/type").FormItemNumberParam;
88
+ useTypeSelectFormItem: (params: import("../typings/type").FormItemSelectParam) => import("../typings/type").FormItemSelectParam;
89
+ useTypeTimeFormItem: (params: import("../typings/type").FormItemTimeParam) => import("../typings/type").FormItemTimeParam;
90
+ useTypeRadioFormItem: (params: import("../typings/type").FormItemRadioParam) => import("../typings/type").FormItemRadioParam;
91
+ useTypeSingleUploadFormItem: (params: import("../typings/type").FormItemSingleUploadParam) => import("../typings/type").FormItemSingleUploadParam;
92
+ };
93
+ };
94
+ export default meixioacomponent;
95
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/index.ts"],"names":[],"mappings":"AAqDA,OAAO,iBAAiB,MAAM,kCAAkC,CAAA;AAGhE,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAS5C,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAiFpD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoErB,CAAA;AAED,eAAe,gBAAgB,CAAA"}