meixioacomponent 2.0.32 → 2.0.33
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 +703 -407
- package/lib/meixioacomponent.umd.js +701 -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 +11 -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
|
@@ -22,13 +22,15 @@ var UseImg = /** @class */ (function () {
|
|
|
22
22
|
this.destroy();
|
|
23
23
|
}
|
|
24
24
|
componentConfig_1["default"].Vue.nextTick(function () {
|
|
25
|
+
componentConfig_1["default"].dynamicId += 1;
|
|
25
26
|
_this.dynamicMount = new DynamicMountClass_1["default"]({
|
|
26
27
|
componentProps: {
|
|
27
28
|
value: true,
|
|
28
29
|
urlList: list,
|
|
29
30
|
onClose: function () {
|
|
30
31
|
_this.destroy();
|
|
31
|
-
}
|
|
32
|
+
},
|
|
33
|
+
zIndex: componentConfig_1["default"].dynamicId
|
|
32
34
|
},
|
|
33
35
|
vueComponent: image_viewer_vue_1["default"]
|
|
34
36
|
});
|
|
@@ -16,13 +16,15 @@ class UseImg implements UserImgInterface {
|
|
|
16
16
|
this.destroy();
|
|
17
17
|
}
|
|
18
18
|
componentConfig.Vue.nextTick(() => {
|
|
19
|
+
componentConfig.dynamicId += 1;
|
|
19
20
|
this.dynamicMount = new DynamicMount({
|
|
20
21
|
componentProps: {
|
|
21
|
-
value:true,
|
|
22
|
+
value: true,
|
|
22
23
|
urlList: list,
|
|
23
24
|
onClose: () => {
|
|
24
25
|
this.destroy();
|
|
25
26
|
},
|
|
27
|
+
zIndex: componentConfig.dynamicId
|
|
26
28
|
},
|
|
27
29
|
vueComponent: imageViewer,
|
|
28
30
|
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var componentConfig_1 = require("../../componentConfig");
|
|
4
|
+
var UseConfirm = /** @class */ (function () {
|
|
5
|
+
function UseConfirm() {
|
|
6
|
+
this.toMountedConfirm = function (body, title, options) {
|
|
7
|
+
return new Promise(function (resolve, reject) {
|
|
8
|
+
var _a, _b, _c;
|
|
9
|
+
componentConfig_1["default"].dynamicId += 1;
|
|
10
|
+
var dialogInstance = componentConfig_1["default"].Vue.prototype.$dialog.confirm({
|
|
11
|
+
header: title,
|
|
12
|
+
body: body,
|
|
13
|
+
confirmBtn: (_a = options.confirmButtonText) !== null && _a !== void 0 ? _a : '确定',
|
|
14
|
+
cancelBtn: (_b = options.cancelButtonText) !== null && _b !== void 0 ? _b : '取消',
|
|
15
|
+
theme: (_c = options.type) !== null && _c !== void 0 ? _c : 'default',
|
|
16
|
+
zIndex: componentConfig_1["default"].dynamicId,
|
|
17
|
+
onConfirm: function (context) {
|
|
18
|
+
resolve(context);
|
|
19
|
+
dialogInstance === null || dialogInstance === void 0 ? void 0 : dialogInstance.destroy();
|
|
20
|
+
},
|
|
21
|
+
onCancel: function (context) {
|
|
22
|
+
reject(context);
|
|
23
|
+
dialogInstance === null || dialogInstance === void 0 ? void 0 : dialogInstance.destroy();
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return UseConfirm;
|
|
30
|
+
}());
|
|
31
|
+
exports["default"] = UseConfirm;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {TypeByConfirmOptions} from "../../../typings/type";
|
|
2
|
+
import componentConfig from "../../componentConfig";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class UseConfirm {
|
|
6
|
+
|
|
7
|
+
constructor() {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
toMountedConfirm = (body: string, title: string, options: TypeByConfirmOptions) => {
|
|
12
|
+
return new Promise((resolve, reject) => {
|
|
13
|
+
componentConfig.dynamicId += 1;
|
|
14
|
+
let dialogInstance = componentConfig.Vue.prototype.$dialog.confirm({
|
|
15
|
+
header: title,
|
|
16
|
+
body: body,
|
|
17
|
+
confirmBtn: options.confirmButtonText ?? '确定',
|
|
18
|
+
cancelBtn: options.cancelButtonText ?? '取消',
|
|
19
|
+
theme: options.type ?? 'default',
|
|
20
|
+
zIndex: componentConfig.dynamicId,
|
|
21
|
+
onConfirm: (context) => {
|
|
22
|
+
resolve(context);
|
|
23
|
+
dialogInstance?.destroy();
|
|
24
|
+
},
|
|
25
|
+
onCancel: (context) => {
|
|
26
|
+
reject(context);
|
|
27
|
+
dialogInstance?.destroy();
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export default UseConfirm
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var componentConfig_1 = require("../../componentConfig");
|
|
4
|
+
var UseNotify = /** @class */ (function () {
|
|
5
|
+
function UseNotify() {
|
|
6
|
+
this.toMountedConfirm = function (type, options) {
|
|
7
|
+
componentConfig_1["default"].Vue.prototype.$notify(type, {
|
|
8
|
+
title: options.title,
|
|
9
|
+
content: options.content,
|
|
10
|
+
duration: options.duration
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return UseNotify;
|
|
15
|
+
}());
|
|
16
|
+
exports["default"] = UseNotify;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {TypeByNotifyOptions, TypeByTheme} from "../../../typings/type";
|
|
2
|
+
import componentConfig from "../../componentConfig";
|
|
3
|
+
|
|
4
|
+
class UseNotify {
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
toMountedConfirm = (type: TypeByTheme, options: TypeByNotifyOptions) => {
|
|
10
|
+
componentConfig.Vue.prototype.$notify(type,{
|
|
11
|
+
title: options.title,
|
|
12
|
+
content: options.content,
|
|
13
|
+
duration: options.duration
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export default UseNotify;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.executeConfirm = void 0;
|
|
4
|
+
var UseConfirm_1 = require("./UseConfirm");
|
|
5
|
+
var executeConfirm = function (body, title, options) {
|
|
6
|
+
return new UseConfirm_1["default"]().toMountedConfirm(body, title, options);
|
|
7
|
+
};
|
|
8
|
+
exports.executeConfirm = executeConfirm;
|