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.
Files changed (70) hide show
  1. package/lib/components/index.d.ts +4 -1
  2. package/lib/components/index.d.ts.map +1 -1
  3. package/lib/components/index.js +12 -2
  4. package/lib/config/componentConfig.js +1 -1
  5. package/lib/config/use/UseImg.d.ts.map +1 -1
  6. package/lib/config/use/UseImg.js +2 -0
  7. package/lib/config/use/{useWait.d.ts → UseWait.d.ts} +1 -1
  8. package/lib/config/use/UseWait.d.ts.map +1 -0
  9. package/lib/config/use/useConfirm/UseConfirm.d.ts +7 -0
  10. package/lib/config/use/useConfirm/UseConfirm.d.ts.map +1 -0
  11. package/lib/config/use/useConfirm/UseConfirm.js +33 -0
  12. package/lib/config/use/useConfirm/UseNotify.d.ts +7 -0
  13. package/lib/config/use/useConfirm/UseNotify.d.ts.map +1 -0
  14. package/lib/config/use/useConfirm/UseNotify.js +18 -0
  15. package/lib/config/use/useConfirm/executeConfirm.d.ts +3 -0
  16. package/lib/config/use/useConfirm/executeConfirm.d.ts.map +1 -0
  17. package/lib/config/use/useConfirm/executeConfirm.js +11 -0
  18. package/lib/config/use/useConfirm/registerConfirm.d.ts +5 -0
  19. package/lib/config/use/useConfirm/registerConfirm.d.ts.map +1 -0
  20. package/lib/config/use/useConfirm/registerConfirm.js +8 -0
  21. package/lib/meixioacomponent.common.js +703 -407
  22. package/lib/meixioacomponent.umd.js +701 -405
  23. package/lib/meixioacomponent.umd.min.js +2 -2
  24. package/lib/style/tableStyle.less +7 -14
  25. package/lib/style/tdesignStyle.less +5 -2
  26. package/lib/typings/type.d.ts +11 -0
  27. package/lib/typings/type.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/packages/components/base/baseArea/baseArea.vue +17 -6
  30. package/packages/components/base/baseDialog/index.vue +37 -15
  31. package/packages/components/base/baseDrawer/index.vue +6 -1
  32. package/packages/components/base/baseNumberInput/index.vue +52 -18
  33. package/packages/components/base/basePlainTable/basePlainTable.vue +40 -21
  34. package/packages/components/base/basePopoverButton/index.vue +16 -14
  35. package/packages/components/base/baseSection/baseSection.vue +1 -1
  36. package/packages/components/base/baseText/index.vue +20 -2
  37. package/packages/components/base/baseTreeSelect/index.vue +25 -15
  38. package/packages/components/base/baseUploadTemplate/index.vue +6 -4
  39. package/packages/components/base/baseWait/index.vue +1 -1
  40. package/packages/components/index.js +13 -3
  41. package/packages/components/index.ts +12 -1
  42. package/packages/components/mixins/tableSectionMixins.js +6 -3
  43. package/packages/components/proForm/dialogForm/baseDialogForm.vue +19 -19
  44. package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +11 -6
  45. package/packages/components/proForm/proForm/pro_form.vue +13 -18
  46. package/packages/components/proPageTable/oaProTableSearch/oa_pro_screen_item.vue +2 -2
  47. package/packages/components/proPageTable/oa_pro_colum_config.vue +2 -4
  48. package/packages/components/proPageTable/oa_pro_table.vue +27 -9
  49. package/packages/components/searchHeader/searchHeader.vue +6 -7
  50. package/packages/components/style/tableStyle.less +7 -14
  51. package/packages/components/style/tdesignStyle.less +5 -2
  52. package/packages/config/componentConfig.js +1 -1
  53. package/packages/config/componentConfig.ts +1 -1
  54. package/packages/config/use/UseImg.js +3 -1
  55. package/packages/config/use/UseImg.ts +3 -1
  56. package/packages/config/use/useConfirm/UseConfirm.js +31 -0
  57. package/packages/config/use/useConfirm/UseConfirm.ts +35 -0
  58. package/packages/config/use/useConfirm/UseNotify.js +16 -0
  59. package/packages/config/use/useConfirm/UseNotify.ts +19 -0
  60. package/packages/config/use/useConfirm/executeConfirm.js +8 -0
  61. package/packages/config/use/useConfirm/executeConfirm.ts +6 -0
  62. package/packages/config/use/useConfirm/registerConfirm.js +8 -0
  63. package/packages/config/use/useConfirm/registerConfirm.ts +8 -0
  64. package/packages/typings/type.ts +361 -346
  65. package/lib/config/use/useWait.d.ts.map +0 -1
  66. package/packages/components/base/baseComment.zip +0 -0
  67. package/packages/config/useElement.js +0 -120
  68. /package/lib/config/use/{useWait.js → UseWait.js} +0 -0
  69. /package/packages/config/use/{useWait.js → UseWait.js} +0 -0
  70. /package/packages/config/use/{useWait.ts → UseWait.ts} +0 -0
@@ -14,6 +14,9 @@
14
14
  height: 100% !important;
15
15
  }
16
16
 
17
- .t-form__label {
18
- padding-right: 0 !important;
17
+
18
+ .t-form__item {
19
+ .t-is-error {
20
+ margin-bottom: var(--td-line-height-body-small) !important;
21
+ }
19
22
  }
@@ -8,7 +8,7 @@ var LinkViewClass_1 = require("./LinkViewClass");
8
8
  var componentConfig = {
9
9
  store: {},
10
10
  router: {},
11
- dynamicId: 0,
11
+ dynamicId: 3000,
12
12
  uploadUrl: "",
13
13
  uploadPrefix: "",
14
14
  eventBus: null,
@@ -8,7 +8,7 @@ import { componentConfigType } from "../typings/type";
8
8
  const componentConfig: componentConfigType = {
9
9
  store: {},
10
10
  router: {},
11
- dynamicId: 0,
11
+ dynamicId: 3000,
12
12
  uploadUrl: "",
13
13
  uploadPrefix: "",
14
14
  eventBus: null,
@@ -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;
@@ -0,0 +1,6 @@
1
+ import {TypeByConfirmOptions} from "../../../typings/type";
2
+ import UseConfirm from "./UseConfirm";
3
+
4
+ export const executeConfirm = (body: string, title: string, options: TypeByConfirmOptions) => {
5
+ return new UseConfirm().toMountedConfirm(body, title, options)
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ var executeConfirm_1 = require("./executeConfirm");
4
+ exports["default"] = {
5
+ install: function (Vue) {
6
+ Vue.prototype.$confirm = executeConfirm_1.executeConfirm;
7
+ }
8
+ };
@@ -0,0 +1,8 @@
1
+
2
+ import {executeConfirm} from "./executeConfirm";
3
+
4
+ export default {
5
+ install(Vue) {
6
+ Vue.prototype.$confirm = executeConfirm;
7
+ }
8
+ }