meixioacomponent 2.0.31 → 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 (74) 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 +784 -479
  22. package/lib/meixioacomponent.umd.js +776 -471
  23. package/lib/meixioacomponent.umd.min.js +2 -2
  24. package/lib/style/tableStyle.less +7 -14
  25. package/lib/style/tdesignStyle.less +13 -4
  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/baseUpload/baseUpload.vue +0 -1
  39. package/packages/components/base/baseUpload/baseUploadItem.vue +2 -9
  40. package/packages/components/base/baseUpload/uploadMediaView.vue +5 -11
  41. package/packages/components/base/baseUploadTemplate/index.vue +6 -4
  42. package/packages/components/base/baseWait/index.vue +1 -1
  43. package/packages/components/base/upload/uploadItem.vue +25 -23
  44. package/packages/components/index.js +13 -3
  45. package/packages/components/index.ts +12 -1
  46. package/packages/components/mixins/tableSectionMixins.js +6 -3
  47. package/packages/components/proForm/dialogForm/baseDialogForm.vue +19 -19
  48. package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +14 -7
  49. package/packages/components/proForm/proForm/pro_form.vue +13 -18
  50. package/packages/components/proPageTable/oaProTableSearch/oa_pro_screen_item.vue +2 -2
  51. package/packages/components/proPageTable/oa_pro_colum_config.vue +2 -4
  52. package/packages/components/proPageTable/oa_pro_table.vue +27 -9
  53. package/packages/components/searchHeader/searchHeader.vue +6 -7
  54. package/packages/components/style/tableStyle.less +7 -14
  55. package/packages/components/style/tdesignStyle.less +13 -4
  56. package/packages/config/componentConfig.js +1 -1
  57. package/packages/config/componentConfig.ts +1 -1
  58. package/packages/config/use/UseImg.js +3 -1
  59. package/packages/config/use/UseImg.ts +3 -1
  60. package/packages/config/use/useConfirm/UseConfirm.js +31 -0
  61. package/packages/config/use/useConfirm/UseConfirm.ts +35 -0
  62. package/packages/config/use/useConfirm/UseNotify.js +16 -0
  63. package/packages/config/use/useConfirm/UseNotify.ts +19 -0
  64. package/packages/config/use/useConfirm/executeConfirm.js +8 -0
  65. package/packages/config/use/useConfirm/executeConfirm.ts +6 -0
  66. package/packages/config/use/useConfirm/registerConfirm.js +8 -0
  67. package/packages/config/use/useConfirm/registerConfirm.ts +8 -0
  68. package/packages/typings/type.ts +361 -346
  69. package/lib/config/use/useWait.d.ts.map +0 -1
  70. package/packages/components/base/baseComment.zip +0 -0
  71. package/packages/config/useElement.js +0 -120
  72. /package/lib/config/use/{useWait.js → UseWait.js} +0 -0
  73. /package/packages/config/use/{useWait.js → UseWait.js} +0 -0
  74. /package/packages/config/use/{useWait.ts → UseWait.ts} +0 -0
@@ -18,7 +18,7 @@
18
18
  :style="{
19
19
  width: itemWidth,
20
20
  }"
21
- class="pro-form-item-content "
21
+ class="pro-form-item-content"
22
22
  >
23
23
  <t-form-item
24
24
  v-if="formType !== 'template'"
@@ -250,7 +250,6 @@ export default {
250
250
 
251
251
  formdata() {
252
252
  let obj = {}
253
- console.log(this.formType);
254
253
  this.module.forEach((item) => {
255
254
  if (!item.renderHide) {
256
255
  try {
@@ -364,13 +363,14 @@ export default {
364
363
  },
365
364
  // 重置表单的值
366
365
  reset() {
367
- this.$refs.form.resetFields()
366
+ this.$refs.form.reset()
368
367
  },
369
368
 
370
369
  checkValidate() {
371
370
  return new Promise(async (resolve, reject) => {
372
371
 
373
372
  const res = await this.$refs.form.validate();
373
+ console.log(res);
374
374
 
375
375
  if (typeof res === 'boolean') {
376
376
  if (res) {
@@ -483,14 +483,12 @@ export default {
483
483
  width: 100%;
484
484
  height: auto;
485
485
 
486
- .chunk-1 {
487
-
488
- &:last-of-type {
489
- /deep/ .el-form-item {
490
- margin-bottom: 0 !important;
491
- }
492
- }
486
+ .pro-form-item-content {
487
+ padding: var(--padding-4);
488
+ box-sizing: border-box;
489
+ }
493
490
 
491
+ .chunk-1 {
494
492
  }
495
493
 
496
494
  .form-line-box {
@@ -519,8 +517,12 @@ export default {
519
517
  height: auto;
520
518
  display: flex;
521
519
  flex-flow: row wrap;
522
- align-items: center;
520
+ align-items: flex-start;
523
521
  justify-content: flex-start;
522
+
523
+ .t-is-warning {
524
+ margin-bottom: calc(var(--margin-3) * 2);
525
+ }
524
526
  }
525
527
 
526
528
  /deep/ .t-form-item {
@@ -564,14 +566,7 @@ export default {
564
566
  font-size: var(--font-size-s) !important;
565
567
  }
566
568
 
567
- /deep/ .el-form-item__label {
568
- line-height: 24px !important;
569
- }
570
569
 
571
- /deep/ .el-form-item__error {
572
- line-height: 0;
573
- padding-top: 0;
574
- }
575
570
  }
576
571
 
577
572
  .item-label-wrap {
@@ -100,9 +100,9 @@
100
100
  <close-icon></close-icon>
101
101
  </template>
102
102
  </t-button>
103
- <el-checkbox v-model="item.exposed" :disabled="!item.key">
103
+ <t-checkbox v-model="item.exposed" :disabled="!item.key">
104
104
  外露
105
- </el-checkbox>
105
+ </t-checkbox>
106
106
  </div>
107
107
  </div>
108
108
  </div>
@@ -3,8 +3,7 @@
3
3
  v-model="popoverFlag"
4
4
  button-size="small"
5
5
  button-text="表格设置"
6
- buttonIcon="el-icon-s-operation"
7
- iconClass="element"
6
+ buttonIcon="setting-1"
8
7
  style="margin: 0 var(--margin-4)"
9
8
  @popoverShow="setDragConfigList"
10
9
  >
@@ -64,8 +63,7 @@
64
63
 
65
64
  <script>
66
65
  import baseButtonHandle from '../base/baseButtonHandle/baseButtonHandle.vue'
67
- import proTableLocalConfigManage from "../../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
68
- import {DragMoveIcon} from"tdesign-icons-vue"
66
+ import {DragMoveIcon} from "tdesign-icons-vue"
69
67
 
70
68
  export default {
71
69
  name: 'oaProColumConfig',
@@ -74,7 +74,7 @@
74
74
 
75
75
  <t-enhanced-table
76
76
  ref="enhancedTableRef"
77
- row-key="key"
77
+ :row-key="rowKey"
78
78
  :expanded-row-keys="expandRowKeys"
79
79
  :columns="showTableHeader"
80
80
  :data="tableData"
@@ -86,15 +86,24 @@
86
86
  :expandIcon="useExpand"
87
87
  table-layout="fixed"
88
88
  :height="tableHeight"
89
- :expanded-row="expandedRow"
89
+ :rowspan-and-colspan='rowspanAndColspan'
90
90
  :tree=" treeProps[`children`]? {
91
91
  childrenKey: treeProps[`children`],
92
92
  checkStrictly: false
93
93
  }:null"
94
94
  :selected-row-keys="tableCheckboxConfig.value"
95
95
  @sort-change="sortChange"
96
+ @expand-change="rehandleExpandChange"
96
97
  >
97
98
 
99
+
100
+
101
+
102
+ <template #expanded-row="{row}" v-if="expandId">
103
+ <slot name="expandedRow" :scope="row"></slot>
104
+ </template>
105
+
106
+
98
107
  <!-- 表格暂无数据 -->
99
108
  <template slot="empty">
100
109
  <baseDefaultSvgVue
@@ -276,7 +285,7 @@ export default {
276
285
  sortBy: null,
277
286
  // 是否按照降序进行排序
278
287
  descending: false,
279
- }
288
+ },
280
289
 
281
290
  };
282
291
  },
@@ -494,19 +503,23 @@ export default {
494
503
  type: String,
495
504
  default: ''
496
505
  },
506
+
497
507
  // 使用序号下标
498
508
  useIndex: {
499
509
  type: Boolean,
500
510
  default: false
501
511
  },
502
- expandedRow: {
512
+
513
+ expandId:{
514
+ type:String,
515
+ default:null
516
+ },
517
+ rowspanAndColspan: {
503
518
  type: Function,
504
519
  default: () => {
505
- return null;
520
+ return null
506
521
  }
507
522
  }
508
-
509
-
510
523
  },
511
524
  computed: {
512
525
  checkType() {
@@ -617,6 +630,9 @@ export default {
617
630
  },
618
631
  mixins: [tableSectionMixins],
619
632
  methods: {
633
+ rehandleExpandChange(value,params){
634
+ this.$emit('rehandleExpandChange',value)
635
+ },
620
636
  isToolTip(value) {
621
637
  if (!value) {
622
638
  return false;
@@ -887,8 +903,10 @@ export default {
887
903
  }
888
904
 
889
905
  result[`keyword`] = this.module;
890
- result[`sortField`] = this.sort?.sortBy;
891
- result[`sortOrder`] = this.sort?.descending ? 'desc' : 'asc';
906
+ if(this.sort.sortBy){
907
+ result[`sortField`] = this.sort?.sortBy;
908
+ result[`sortOrder`] = this.sort?.descending ? 'desc' : 'asc';
909
+ }
892
910
 
893
911
  // 高级筛选的结果
894
912
  const searchList = [];
@@ -20,18 +20,17 @@
20
20
  <span class="view-text">筛选:</span>
21
21
  <slot name="search-hearch-extend"></slot>
22
22
  <t-space :size="4">
23
- <base-button
23
+ <t-tag
24
+ style="cursor: pointer"
24
25
  v-for="(item, index) in searchList.list"
25
26
  :key="index"
26
- :class="{
27
- 'is-plain': index != searchList.index,
28
- }"
29
- size="mini"
30
- :type="index == searchList.index ? 'primary' : 'info'"
27
+ variant="light"
28
+ size="small"
29
+ :theme="index === searchList.index ? 'primary' : 'default'"
31
30
  @click="handleScreen(index)"
32
31
  >
33
32
  {{ item.label }}
34
- </base-button>
33
+ </t-tag>
35
34
  </t-space>
36
35
  </div>
37
36
  </base-list>
@@ -1,9 +1,8 @@
1
1
 
2
-
3
-
4
2
  .cell-content-text {
5
3
  width: 100%;
6
4
  overflow: hidden;
5
+ display: block;
7
6
  white-space: nowrap;
8
7
  text-overflow: ellipsis;
9
8
  font-weight: var(--font-weight-m);
@@ -26,18 +25,14 @@
26
25
  color: var(--color-success) !important;
27
26
  }
28
27
 
29
- /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
30
- background-color: var(--color-gray-s) !important;
31
- }
32
-
33
28
 
34
29
  .primary,
35
- .fun,.handle-primary {
30
+ .fun, .handle-primary {
36
31
  color: var(--color-primary) !important;
37
32
  font-size: var(--font-size-base) !important;
38
33
  }
39
34
 
40
- .fun,.handle-primary {
35
+ .fun, .handle-primary {
41
36
  cursor: pointer;
42
37
 
43
38
  &:hover {
@@ -47,11 +42,9 @@
47
42
 
48
43
 
49
44
  .wait {
50
- /deep/ .el-table__fixed-header-wrapper {
51
- z-index: 0 !important;
52
- }
53
45
 
54
- /deep/ .el-table__fixed-body-wrapper {
55
- z-index: 0 !important;
56
- }
57
46
  }
47
+
48
+ /deep/ .t-table__tree-leaf-node {
49
+ display: flex !important;
50
+ }
@@ -1,13 +1,22 @@
1
- .t-drawer__content-wrapper{
1
+ .t-drawer__content-wrapper {
2
2
  background: transparent !important;
3
3
  }
4
- .t-drawer{
4
+
5
+ .t-drawer {
5
6
  box-shadow: none !important;
6
7
  }
7
- .t-drawer__body{
8
+
9
+ .t-drawer__body {
8
10
  padding: 0 !important;
9
11
  }
10
12
 
11
- .t-list__inner{
13
+ .t-list__inner {
12
14
  height: 100% !important;
13
15
  }
16
+
17
+
18
+ .t-form__item {
19
+ .t-is-error {
20
+ margin-bottom: var(--td-line-height-body-small) !important;
21
+ }
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
+ }