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.
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 +707 -409
  22. package/lib/meixioacomponent.umd.js +703 -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 +13 -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
@@ -1,7 +1,8 @@
1
1
  import DynamicMountClass from "./dynamicmount/DynamicMountClass";
2
- import useWait from "../config/use/useWait";
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;AAuFxC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoErB,CAAC;AAIF,eAAe,gBAAgB,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"}
@@ -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 useWait_1 = __importDefault(require("../config/use/useWait"));
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: useWait_1.default,
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;
@@ -11,7 +11,7 @@ const LinkViewClass_1 = __importDefault(require("./LinkViewClass"));
11
11
  const componentConfig = {
12
12
  store: {},
13
13
  router: {},
14
- dynamicId: 0,
14
+ dynamicId: 3000,
15
15
  uploadUrl: "",
16
16
  uploadPrefix: "",
17
17
  eventBus: null,
@@ -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;IAqBlB,OAAO,aAON;CACJ;AAED,QAAA,IAAI,MAAM,QAAe,CAAC;AAE1B,eAAe,MAAM,CAAC"}
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"}
@@ -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
  });
@@ -2,4 +2,4 @@ import WaitPlugin from "./WaitPlugin";
2
2
  import { useWaitParamsType } from "../../typings/type";
3
3
  declare function useWait(params: useWaitParamsType): WaitPlugin;
4
4
  export default useWait;
5
- //# sourceMappingURL=useWait.d.ts.map
5
+ //# sourceMappingURL=UseWait.d.ts.map
@@ -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,3 @@
1
+ import { TypeByConfirmOptions } from "../../../typings/type";
2
+ export declare const executeConfirm: (body: string, title: string, options: TypeByConfirmOptions) => Promise<unknown>;
3
+ //# sourceMappingURL=executeConfirm.d.ts.map
@@ -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,5 @@
1
+ declare const _default: {
2
+ install(Vue: any): void;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=registerConfirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerConfirm.d.ts","sourceRoot":"","sources":["../../../../packages/config/use/useConfirm/registerConfirm.ts"],"names":[],"mappings":";;;AAGA,wBAIC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const executeConfirm_1 = require("./executeConfirm");
4
+ exports.default = {
5
+ install(Vue) {
6
+ Vue.prototype.$confirm = executeConfirm_1.executeConfirm;
7
+ }
8
+ };