meixioacomponent 2.0.32 → 2.0.34
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.
- package/lib/components/index.d.ts +4 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +12 -2
- package/lib/config/componentConfig.js +1 -1
- package/lib/config/use/UseImg.d.ts.map +1 -1
- package/lib/config/use/UseImg.js +2 -0
- package/lib/config/use/{useWait.d.ts → UseWait.d.ts} +1 -1
- package/lib/config/use/UseWait.d.ts.map +1 -0
- package/lib/config/use/useConfirm/UseConfirm.d.ts +7 -0
- package/lib/config/use/useConfirm/UseConfirm.d.ts.map +1 -0
- package/lib/config/use/useConfirm/UseConfirm.js +33 -0
- package/lib/config/use/useConfirm/UseNotify.d.ts +7 -0
- package/lib/config/use/useConfirm/UseNotify.d.ts.map +1 -0
- package/lib/config/use/useConfirm/UseNotify.js +18 -0
- package/lib/config/use/useConfirm/executeConfirm.d.ts +3 -0
- package/lib/config/use/useConfirm/executeConfirm.d.ts.map +1 -0
- package/lib/config/use/useConfirm/executeConfirm.js +11 -0
- package/lib/config/use/useConfirm/registerConfirm.d.ts +5 -0
- package/lib/config/use/useConfirm/registerConfirm.d.ts.map +1 -0
- package/lib/config/use/useConfirm/registerConfirm.js +8 -0
- package/lib/meixioacomponent.common.js +707 -409
- package/lib/meixioacomponent.umd.js +703 -405
- package/lib/meixioacomponent.umd.min.js +2 -2
- package/lib/style/tableStyle.less +7 -14
- package/lib/style/tdesignStyle.less +5 -2
- package/lib/typings/type.d.ts +11 -0
- package/lib/typings/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/packages/components/base/baseArea/baseArea.vue +17 -6
- package/packages/components/base/baseDialog/index.vue +37 -15
- package/packages/components/base/baseDrawer/index.vue +6 -1
- package/packages/components/base/baseNumberInput/index.vue +52 -18
- package/packages/components/base/basePlainTable/basePlainTable.vue +40 -21
- package/packages/components/base/basePopoverButton/index.vue +16 -14
- package/packages/components/base/baseSection/baseSection.vue +1 -1
- package/packages/components/base/baseText/index.vue +20 -2
- package/packages/components/base/baseTreeSelect/index.vue +25 -15
- package/packages/components/base/baseUploadTemplate/index.vue +6 -4
- package/packages/components/base/baseWait/index.vue +1 -1
- package/packages/components/index.js +13 -3
- package/packages/components/index.ts +12 -1
- package/packages/components/mixins/tableSectionMixins.js +6 -3
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +19 -19
- package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +13 -6
- package/packages/components/proForm/proForm/pro_form.vue +13 -18
- package/packages/components/proPageTable/oaProTableSearch/oa_pro_screen_item.vue +2 -2
- package/packages/components/proPageTable/oa_pro_colum_config.vue +2 -4
- package/packages/components/proPageTable/oa_pro_table.vue +27 -9
- package/packages/components/searchHeader/searchHeader.vue +6 -7
- package/packages/components/style/tableStyle.less +7 -14
- package/packages/components/style/tdesignStyle.less +5 -2
- package/packages/config/componentConfig.js +1 -1
- package/packages/config/componentConfig.ts +1 -1
- package/packages/config/use/UseImg.js +3 -1
- package/packages/config/use/UseImg.ts +3 -1
- package/packages/config/use/useConfirm/UseConfirm.js +31 -0
- package/packages/config/use/useConfirm/UseConfirm.ts +35 -0
- package/packages/config/use/useConfirm/UseNotify.js +16 -0
- package/packages/config/use/useConfirm/UseNotify.ts +19 -0
- package/packages/config/use/useConfirm/executeConfirm.js +8 -0
- package/packages/config/use/useConfirm/executeConfirm.ts +6 -0
- package/packages/config/use/useConfirm/registerConfirm.js +8 -0
- package/packages/config/use/useConfirm/registerConfirm.ts +8 -0
- package/packages/typings/type.ts +361 -346
- package/lib/config/use/useWait.d.ts.map +0 -1
- package/packages/components/base/baseComment.zip +0 -0
- package/packages/config/useElement.js +0 -120
- /package/lib/config/use/{useWait.js → UseWait.js} +0 -0
- /package/packages/config/use/{useWait.js → UseWait.js} +0 -0
- /package/packages/config/use/{useWait.ts → UseWait.ts} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import DynamicMountClass from "./dynamicmount/DynamicMountClass";
|
|
2
|
-
import useWait from "../config/use/
|
|
2
|
+
import useWait from "../config/use/UseWait";
|
|
3
3
|
import LinkViewClass from "../config/LinkViewClass";
|
|
4
4
|
import 'tdesign-vue/es/style/index.css';
|
|
5
|
+
import { TypeByConfirmOptions, TypeByNotifyOptions, TypeByTheme } from "../typings/type";
|
|
5
6
|
declare const meixioacomponent: {
|
|
6
7
|
install: (Vue: any) => void;
|
|
7
8
|
componentConfig: import("../typings/type").componentConfigType;
|
|
@@ -100,6 +101,8 @@ declare const meixioacomponent: {
|
|
|
100
101
|
useTypeSingleUploadFormItem: (params: import("../typings/type").FormItemSingleUploadParam) => import("../typings/type").FormItemSingleUploadParam;
|
|
101
102
|
};
|
|
102
103
|
useProScreenParamsItem: (proScreenItem: import("../typings/type").TableProScreenInterFace, auth?: boolean) => import("../typings/type").TableProScreenInterFace | null;
|
|
104
|
+
useConfirm: (body: string, title: string, options: TypeByConfirmOptions) => Promise<unknown>;
|
|
105
|
+
useNotify: (type: TypeByTheme, options: TypeByNotifyOptions) => void;
|
|
103
106
|
};
|
|
104
107
|
export default meixioacomponent;
|
|
105
108
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/index.ts"],"names":[],"mappings":"AAwDA,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAGjE,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAS5C,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,OAAO,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/index.ts"],"names":[],"mappings":"AAwDA,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAGjE,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAS5C,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,OAAO,gCAAgC,CAAC;AAKxC,OAAO,EAAC,oBAAoB,EAAE,mBAAmB,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAuFvF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAoEC,MAAM,SAAS,MAAM,WAAW,oBAAoB;sBAGjD,WAAW,WAAW,mBAAmB;CAGlE,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -61,7 +61,7 @@ const componentConfig_1 = __importDefault(require("../config/componentConfig"));
|
|
|
61
61
|
const DynamicMountClass_1 = __importDefault(require("./dynamicmount/DynamicMountClass"));
|
|
62
62
|
const SelectStore_1 = __importDefault(require("../config/selectStore/SelectStore"));
|
|
63
63
|
//
|
|
64
|
-
const
|
|
64
|
+
const UseWait_1 = __importDefault(require("../config/use/UseWait"));
|
|
65
65
|
const UseImg_1 = __importDefault(require("../config/use/UseImg"));
|
|
66
66
|
const useDrag_1 = __importDefault(require("../config/use/useDrag"));
|
|
67
67
|
const UseResize_1 = __importDefault(require("../config/use/UseResize"));
|
|
@@ -75,6 +75,9 @@ require("tdesign-vue/es/style/index.css");
|
|
|
75
75
|
//组件库type类型
|
|
76
76
|
const useType_1 = require("../useType/useType");
|
|
77
77
|
const ProTableLocalConfigManage_1 = __importDefault(require("../config/ProTableLocalConfigManage/ProTableLocalConfigManage"));
|
|
78
|
+
const executeConfirm_1 = require("../config/use/useConfirm/executeConfirm");
|
|
79
|
+
const registerConfirm_1 = __importDefault(require("../config/use/useConfirm/registerConfirm"));
|
|
80
|
+
const UseNotify_1 = __importDefault(require("../config/use/useConfirm/UseNotify"));
|
|
78
81
|
const meixicomponents = [
|
|
79
82
|
baseAnchor_1.default,
|
|
80
83
|
baseAppendix_1.default,
|
|
@@ -134,6 +137,7 @@ const install = (Vue) => {
|
|
|
134
137
|
});
|
|
135
138
|
Vue.use(dynamicmount_1.default);
|
|
136
139
|
Vue.use(vue_cropper_1.default);
|
|
140
|
+
Vue.use(registerConfirm_1.default);
|
|
137
141
|
window[`meixiComponentPlugin`] = {
|
|
138
142
|
SelectStore: SelectStore_1.default,
|
|
139
143
|
UseDrag: useDrag_1.default,
|
|
@@ -212,12 +216,18 @@ const meixioacomponent = {
|
|
|
212
216
|
useViewVideo: UseViewVideo_1.default,
|
|
213
217
|
useGuide: UseGuide_1.default,
|
|
214
218
|
DynamicMountClass: DynamicMountClass_1.default,
|
|
215
|
-
useWait:
|
|
219
|
+
useWait: UseWait_1.default,
|
|
216
220
|
LinkViewClass: LinkViewClass_1.default,
|
|
217
221
|
//type 类型
|
|
218
222
|
useTableColumnParamsType: useType_1.useTableColumnParamsType,
|
|
219
223
|
useFormItemParamsType: useType_1.useFormItemParamsType,
|
|
220
224
|
useProScreenParamsItem: useType_1.useProScreenParamsItem,
|
|
225
|
+
useConfirm: (body, title, options) => {
|
|
226
|
+
return (0, executeConfirm_1.executeConfirm)(body, title, options);
|
|
227
|
+
},
|
|
228
|
+
useNotify: (type, options) => {
|
|
229
|
+
return new UseNotify_1.default().toMountedConfirm(type, options);
|
|
230
|
+
}
|
|
221
231
|
};
|
|
222
232
|
window[`meixioacomponent`] = meixioacomponent;
|
|
223
233
|
exports.default = meixioacomponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseImg.d.ts","sourceRoot":"","sources":["../../../packages/config/use/UseImg.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAG3E,cAAM,MAAO,YAAW,gBAAgB;IACpC,YAAY,EAAE,qBAAqB,GAAG,IAAI,CAAC;;IAM3C,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"UseImg.d.ts","sourceRoot":"","sources":["../../../packages/config/use/UseImg.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAG3E,cAAM,MAAO,YAAW,gBAAgB;IACpC,YAAY,EAAE,qBAAqB,GAAG,IAAI,CAAC;;IAM3C,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IAuBlB,OAAO,aAON;CACJ;AAED,QAAA,IAAI,MAAM,QAAe,CAAC;AAE1B,eAAe,MAAM,CAAC"}
|
package/lib/config/use/UseImg.js
CHANGED
|
@@ -23,6 +23,7 @@ class UseImg {
|
|
|
23
23
|
this.destroy();
|
|
24
24
|
}
|
|
25
25
|
componentConfig_1.default.Vue.nextTick(() => {
|
|
26
|
+
componentConfig_1.default.dynamicId += 1;
|
|
26
27
|
this.dynamicMount = new DynamicMountClass_1.default({
|
|
27
28
|
componentProps: {
|
|
28
29
|
value: true,
|
|
@@ -30,6 +31,7 @@ class UseImg {
|
|
|
30
31
|
onClose: () => {
|
|
31
32
|
this.destroy();
|
|
32
33
|
},
|
|
34
|
+
zIndex: componentConfig_1.default.dynamicId
|
|
33
35
|
},
|
|
34
36
|
vueComponent: image_viewer_vue_1.default,
|
|
35
37
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseWait.d.ts","sourceRoot":"","sources":["../../../packages/config/use/UseWait.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAcrD,iBAAS,OAAO,CAAC,MAAM,EAAE,iBAAiB,cAEzC;AAGD,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypeByConfirmOptions } from "../../../typings/type";
|
|
2
|
+
declare class UseConfirm {
|
|
3
|
+
constructor();
|
|
4
|
+
toMountedConfirm: (body: string, title: string, options: TypeByConfirmOptions) => Promise<unknown>;
|
|
5
|
+
}
|
|
6
|
+
export default UseConfirm;
|
|
7
|
+
//# sourceMappingURL=UseConfirm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseConfirm.d.ts","sourceRoot":"","sources":["../../../../packages/config/use/useConfirm/UseConfirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAI3D,cAAM,UAAU;;IAMZ,gBAAgB,SAAU,MAAM,SAAS,MAAM,WAAW,oBAAoB,sBAoB7E;CACJ;AAGD,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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("../../componentConfig"));
|
|
7
|
+
class UseConfirm {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.toMountedConfirm = (body, title, options) => {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
componentConfig_1.default.dynamicId += 1;
|
|
13
|
+
let dialogInstance = componentConfig_1.default.Vue.prototype.$dialog.confirm({
|
|
14
|
+
header: title,
|
|
15
|
+
body: body,
|
|
16
|
+
confirmBtn: (_a = options.confirmButtonText) !== null && _a !== void 0 ? _a : '确定',
|
|
17
|
+
cancelBtn: (_b = options.cancelButtonText) !== null && _b !== void 0 ? _b : '取消',
|
|
18
|
+
theme: (_c = options.type) !== null && _c !== void 0 ? _c : 'default',
|
|
19
|
+
zIndex: componentConfig_1.default.dynamicId,
|
|
20
|
+
onConfirm: (context) => {
|
|
21
|
+
resolve(context);
|
|
22
|
+
dialogInstance === null || dialogInstance === void 0 ? void 0 : dialogInstance.destroy();
|
|
23
|
+
},
|
|
24
|
+
onCancel: (context) => {
|
|
25
|
+
reject(context);
|
|
26
|
+
dialogInstance === null || dialogInstance === void 0 ? void 0 : dialogInstance.destroy();
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.default = UseConfirm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypeByNotifyOptions, TypeByTheme } from "../../../typings/type";
|
|
2
|
+
declare class UseNotify {
|
|
3
|
+
constructor();
|
|
4
|
+
toMountedConfirm: (type: TypeByTheme, options: TypeByNotifyOptions) => void;
|
|
5
|
+
}
|
|
6
|
+
export default UseNotify;
|
|
7
|
+
//# sourceMappingURL=UseNotify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseNotify.d.ts","sourceRoot":"","sources":["../../../../packages/config/use/useConfirm/UseNotify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAGvE,cAAM,SAAS;;IAKX,gBAAgB,SAAU,WAAW,WAAW,mBAAmB,UAMlE;CACJ;AAGD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("../../componentConfig"));
|
|
7
|
+
class UseNotify {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.toMountedConfirm = (type, options) => {
|
|
10
|
+
componentConfig_1.default.Vue.prototype.$notify(type, {
|
|
11
|
+
title: options.title,
|
|
12
|
+
content: options.content,
|
|
13
|
+
duration: options.duration
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = UseNotify;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeConfirm.d.ts","sourceRoot":"","sources":["../../../../packages/config/use/useConfirm/executeConfirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAG3D,eAAO,MAAM,cAAc,SAAU,MAAM,SAAS,MAAM,WAAW,oBAAoB,qBAExF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
exports.executeConfirm = void 0;
|
|
7
|
+
const UseConfirm_1 = __importDefault(require("./UseConfirm"));
|
|
8
|
+
const executeConfirm = (body, title, options) => {
|
|
9
|
+
return new UseConfirm_1.default().toMountedConfirm(body, title, options);
|
|
10
|
+
};
|
|
11
|
+
exports.executeConfirm = executeConfirm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerConfirm.d.ts","sourceRoot":"","sources":["../../../../packages/config/use/useConfirm/registerConfirm.ts"],"names":[],"mappings":";;;AAGA,wBAIC"}
|