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
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="[ 'base-text-wrap' ]" v-if="content" :title="content" @click="onClick">
2
+ <div :class="[ 'base-text-wrap',type ]" v-if="content" :title="content" @click="onClick">
3
3
  <div v-if="type==='phone'" :class="['content-wrap',type]">
4
4
  <MobileIcon style="margin-right: var(--margin-2)"></MobileIcon>
5
5
  {{ content }}
@@ -9,7 +9,7 @@
9
9
  {{ filterContent() }}
10
10
  </div>
11
11
  <div v-else-if="type==='money'" :class="[type]">
12
- <t-statistic :value="content" prefix="¥" trend="increase"/>
12
+ <t-statistic :value="parseFloat(content)" prefix="¥" trend="increase"/>
13
13
  </div>
14
14
  <div v-else-if="type==='number'" :class="[type]">
15
15
  {{ filterContent() }}
@@ -136,6 +136,12 @@ export default {
136
136
  width: fit-content;
137
137
  font-size: var(--font-size-base);
138
138
 
139
+ .default{
140
+ overflow: hidden;
141
+ white-space: nowrap;
142
+ text-overflow: ellipsis;
143
+ }
144
+
139
145
  .content-wrap {
140
146
  display: flex;
141
147
  align-items: center;
@@ -163,6 +169,18 @@ export default {
163
169
 
164
170
  }
165
171
 
172
+ .handle {
173
+ color: var(--color-primary) !important;
174
+ font-size: var(--font-size-base) !important;
175
+ cursor: pointer;
176
+
177
+ &:hover {
178
+ text-decoration: underline;
179
+ }
180
+ }
181
+
182
+
183
+
166
184
  .empty {
167
185
  color: var(--font-color-ds);
168
186
  font-size: var(--font-size-s);
@@ -6,15 +6,24 @@
6
6
  :multiple="multiple"
7
7
  :keys="{
8
8
  value:nodeKey,
9
- ...props
9
+ ...treeProps
10
10
  }"
11
11
  :clearable="true"
12
12
  :placeholder="placeholder"
13
13
  :data="data"
14
+ :size="componentSize"
15
+ :tree-props="{
16
+ expandParent:true,
17
+ expandAll: true,
18
+ expandOnClickNode:true,
19
+ valueMode: onlyLeaf?'onlyLeaf':'all'
20
+ }"
14
21
  ></t-tree-select>
15
22
  </template>
16
23
 
17
24
  <script>
25
+ import {TransomComponentSize} from "../../../utils/utils";
26
+
18
27
  export default {
19
28
  name: 'baseTreeSelect',
20
29
 
@@ -48,7 +57,7 @@ export default {
48
57
  default: 'id',
49
58
  },
50
59
  // tree的props配置
51
- props: {
60
+ treeProps: {
52
61
  type: Object,
53
62
  default: function () {
54
63
  return {
@@ -85,34 +94,35 @@ export default {
85
94
  size: {
86
95
  type: String,
87
96
  default: 'mini'
97
+ },
98
+ onlyLeaf: {
99
+ type: Boolean,
100
+ default: true
88
101
  }
89
102
  },
90
103
  computed: {
91
104
  label() {
92
105
  return this.$props.props.label
93
106
  },
94
- module:{
95
- set(val){
96
- this.$emit('input',val);
107
+ module: {
108
+ set(val) {
109
+ this.$emit('input', val);
97
110
  },
98
- get(){
111
+ get() {
99
112
  return this.$props.value
100
113
  }
114
+ },
115
+ componentSize(){
116
+ return TransomComponentSize(this.$props.size);
101
117
  }
102
118
  },
103
- methods: {
104
-
105
- },
119
+ methods: {},
106
120
  watch: {
107
121
  value: function (val) {
108
- if (!this.isEmpty(this.data)) {
109
- this.init(val)
110
- }
122
+
111
123
  },
112
124
  data: function (val) {
113
- if (!this.isEmpty(val)) {
114
- this.init(this.value)
115
- }
125
+
116
126
  },
117
127
  },
118
128
  }
@@ -34,7 +34,6 @@
34
34
  :key="index"
35
35
  :item="item"
36
36
  :type="`appendix`"
37
- style="margin: var(--margin-4);"
38
37
  @deleteAppendixItem="handleDeleteUploadItem(index)"
39
38
  ></uploadItemVue>
40
39
  </draggable>
@@ -38,13 +38,12 @@
38
38
  <div v-if="uploadedValue" class="type-pre-views">
39
39
  <div
40
40
  v-if="fileType === 'img' || fileType === 'video'"
41
- style="width: 100%; height: 100%"
41
+ style="width: 100%; height: 100%;position: relative"
42
42
  >
43
43
  <div v-if="!disabled" class="handleUploadItem">
44
44
  <t-button shape="square" variant="outline" @click="handleDeleteUploadItem">
45
45
  <template #icon>
46
- <CloseIcon
47
- ></CloseIcon>
46
+ <t-icon name="delete"></t-icon>
48
47
  </template>
49
48
  </t-button>
50
49
 
@@ -495,16 +494,10 @@ export default {
495
494
  top: 0;
496
495
  right: 0;
497
496
  z-index: 2;
498
- width: auto;
499
- height: auto;
500
497
  display: none;
501
498
  position: absolute;
502
499
  border-radius: var(--radius);
503
500
  background: rgba(0, 0, 0, 0.3);
504
-
505
- /deep/ i {
506
- color: var(--text-white) !important;
507
- }
508
501
  }
509
502
  }
510
503
  }
@@ -3,7 +3,9 @@
3
3
  <base-img v-if="type == 'img'" :src="resource" :event="true" :fit="`contain`"></base-img>
4
4
  <base-video v-if="type == 'video'" :resource="resource"></base-video>
5
5
  <!-- 删除icon -->
6
- <t-button shape="square" variant="outline" @click="handleDeleteUploadItem" v-if="!disabled">
6
+ <t-button
7
+ class="handleUploadItem"
8
+ shape="square" variant="outline" @click="handleDeleteUploadItem" v-if="!disabled">
7
9
  <template #icon>
8
10
  <close-icon
9
11
  @click="handleDeleteUploadItem"
@@ -78,20 +80,12 @@ export default {
78
80
  }
79
81
 
80
82
  .handleUploadItem {
81
- top: 0px;
83
+ top: 0;
82
84
  z-index: 2;
83
- right: 0px;
84
- z-index: 2;
85
- width: auto;
86
- height: auto;
85
+ right: 0;
87
86
  display: none;
88
87
  position: absolute;
89
- border-radius: var(--radius);
90
88
  background: rgba(0, 0, 0, 0.3);
91
-
92
- /deep/ i {
93
- color: var(--text-white) !important;
94
- }
95
89
  }
96
90
  }
97
91
  </style>
@@ -7,7 +7,7 @@
7
7
  :isDestroy="true"
8
8
  :modal="true"
9
9
  :title="`批量上传`"
10
- :width="`600px`"
10
+ :width="`700px`"
11
11
  @destroy="destroy"
12
12
  >
13
13
  <div slot="dialog-content" class="dialog-content">
@@ -42,9 +42,9 @@
42
42
  v-model="fileName"
43
43
  :disabled="true"
44
44
  size="small"
45
- style="margin-right: var(--margin-4);"
45
+ style="width: fit-content;margin-right: var(--margin-4);"
46
46
  ></t-input>
47
- <base-button size="mini" type="primary" @click="onHandleFile">
47
+ <base-button style="width: fit-content" size="mini" type="primary" @click="onHandleFile">
48
48
  选择文件
49
49
  </base-button>
50
50
 
@@ -88,7 +88,7 @@
88
88
  <base-button-handle
89
89
  slot="dialog-footer"
90
90
  :config="buttonConfig"
91
- :size="`mini`"
91
+ :size="`small`"
92
92
  ></base-button-handle>
93
93
  </base-dialog>
94
94
  </template>
@@ -169,6 +169,7 @@ export default {
169
169
  {
170
170
  type: 'info',
171
171
  text: '取消',
172
+ icon: 'close',
172
173
  disabled: this.stepActive == 1 ? true : false,
173
174
  click: () => {
174
175
  this.$refs.dialog.closeDialog()
@@ -176,6 +177,7 @@ export default {
176
177
  },
177
178
  {
178
179
  type: 'primary',
180
+ icon: 'check',
179
181
  disabled: this.stepActive == 1 || !this.fileName ? true : false,
180
182
  text: this.stepActive == 0 ? '导入文件' : '确定',
181
183
  click: () => {
@@ -7,7 +7,7 @@
7
7
  </template>
8
8
 
9
9
  <script>
10
- import useWait from "../../../config/use/useWait";
10
+ import useWait from "../../../config/use/UseWait";
11
11
 
12
12
  export default {
13
13
  name: "baseWait",
@@ -16,26 +16,28 @@
16
16
  </div>
17
17
 
18
18
  <div class="item-status">
19
- <t-button shape="square" variant="outline" @click="handleClose" v-if="type == 'upload'">
20
- <template #icon>
21
- <div v-if="process==100">
22
- <check-icon v-if="upload.state==1 "></check-icon>
23
- <close-icon v-else-if="upload.state==2"></close-icon>
24
- </div>
25
- <close-icon v-else></close-icon>
26
- </template>
27
- </t-button>
28
- <t-button shape="square" variant="outline" @click="onHandleToDown" v-if="type == 'appendix' && url">
29
- <template #icon>
30
- <arrow-down-icon></arrow-down-icon>
31
- </template>
32
- </t-button>
33
-
34
- <t-button shape="square" variant="outline" @click="handleClose" v-if="type == 'appendix' && !disabled">
35
- <template #icon>
36
- <delete-icon></delete-icon>
37
- </template>
38
- </t-button>
19
+ <t-space :size="4">
20
+ <t-button shape="square" variant="outline" @click="handleClose" v-if="type == 'upload'">
21
+ <template #icon>
22
+ <div v-if="process==100">
23
+ <check-icon v-if="upload.state==1 "></check-icon>
24
+ <close-icon v-else-if="upload.state==2"></close-icon>
25
+ </div>
26
+ <close-icon v-else></close-icon>
27
+ </template>
28
+ </t-button>
29
+ <t-button shape="square" variant="outline" @click="onHandleToDown" v-if="type == 'appendix' && url">
30
+ <template #icon>
31
+ <arrow-down-icon></arrow-down-icon>
32
+ </template>
33
+ </t-button>
34
+
35
+ <t-button shape="square" variant="outline" @click="handleClose" v-if="type == 'appendix' && !disabled">
36
+ <template #icon>
37
+ <delete-icon></delete-icon>
38
+ </template>
39
+ </t-button>
40
+ </t-space>
39
41
  </div>
40
42
  </div>
41
43
  </template>
@@ -118,7 +120,7 @@ export default {
118
120
  align-items: center;
119
121
  flex-flow: row nowrap;
120
122
  justify-content: space-between;
121
- margin: var(--margin-4) 0px;
123
+ margin: var(--margin-4) 0;
122
124
  border-radius: calc(var(--radius) * 2);
123
125
 
124
126
  .item-wrap-prefix {
@@ -131,7 +133,7 @@ export default {
131
133
 
132
134
  .item-type,
133
135
  .item-status {
134
- width: 40px;
136
+ width: 60px;
135
137
  height: 100%;
136
138
  display: flex;
137
139
  align-items: center;
@@ -196,7 +198,7 @@ export default {
196
198
  background: var(--color-gray-m);
197
199
 
198
200
  .item-content {
199
- width: calc(100% - 40px) !important;
201
+ width: calc(100% - 60px) !important;
200
202
 
201
203
  .item-name {
202
204
  max-width: 80%;
@@ -58,7 +58,7 @@ var componentConfig_1 = require("../config/componentConfig");
58
58
  var DynamicMountClass_1 = require("./dynamicmount/DynamicMountClass");
59
59
  var SelectStore_1 = require("../config/selectStore/SelectStore");
60
60
  //
61
- var useWait_1 = require("../config/use/useWait");
61
+ var UseWait_1 = require("../config/use/UseWait");
62
62
  var UseImg_1 = require("../config/use/UseImg");
63
63
  var useDrag_1 = require("../config/use/useDrag");
64
64
  var UseResize_1 = require("../config/use/UseResize");
@@ -72,6 +72,9 @@ require("tdesign-vue/es/style/index.css");
72
72
  //组件库type类型
73
73
  var useType_1 = require("../useType/useType");
74
74
  var ProTableLocalConfigManage_1 = require("../config/ProTableLocalConfigManage/ProTableLocalConfigManage");
75
+ var executeConfirm_1 = require("../config/use/useConfirm/executeConfirm");
76
+ var registerConfirm_1 = require("../config/use/useConfirm/registerConfirm");
77
+ var UseNotify_1 = require("../config/use/useConfirm/UseNotify");
75
78
  var meixicomponents = [
76
79
  baseAnchor_1["default"],
77
80
  baseAppendix_1["default"],
@@ -131,6 +134,7 @@ var install = function (Vue) {
131
134
  });
132
135
  Vue.use(dynamicmount_1["default"]);
133
136
  Vue.use(vue_cropper_1["default"]);
137
+ Vue.use(registerConfirm_1["default"]);
134
138
  window["meixiComponentPlugin"] = {
135
139
  SelectStore: SelectStore_1["default"],
136
140
  UseDrag: useDrag_1["default"],
@@ -209,12 +213,18 @@ var meixioacomponent = {
209
213
  useViewVideo: UseViewVideo_1["default"],
210
214
  useGuide: UseGuide_1["default"],
211
215
  DynamicMountClass: DynamicMountClass_1["default"],
212
- useWait: useWait_1["default"],
216
+ useWait: UseWait_1["default"],
213
217
  LinkViewClass: LinkViewClass_1["default"],
214
218
  //type 类型
215
219
  useTableColumnParamsType: useType_1.useTableColumnParamsType,
216
220
  useFormItemParamsType: useType_1.useFormItemParamsType,
217
- useProScreenParamsItem: useType_1.useProScreenParamsItem
221
+ useProScreenParamsItem: useType_1.useProScreenParamsItem,
222
+ useConfirm: function (body, title, options) {
223
+ return (0, executeConfirm_1.executeConfirm)(body, title, options);
224
+ },
225
+ useNotify: function (type, options) {
226
+ return new UseNotify_1["default"]().toMountedConfirm(type, options);
227
+ }
218
228
  };
219
229
  window["meixioacomponent"] = meixioacomponent;
220
230
  exports["default"] = meixioacomponent;
@@ -57,7 +57,7 @@ import componentConfig from "../config/componentConfig";
57
57
  import DynamicMountClass from "./dynamicmount/DynamicMountClass";
58
58
  import SelectStore from "../config/selectStore/SelectStore";
59
59
  //
60
- import useWait from "../config/use/useWait";
60
+ import useWait from "../config/use/UseWait";
61
61
  import useImg from "../config/use/UseImg";
62
62
  import UseDrag from "../config/use/useDrag";
63
63
  import UseResize from "../config/use/UseResize";
@@ -73,6 +73,10 @@ import 'tdesign-vue/es/style/index.css';
73
73
  //组件库type类型
74
74
  import {useFormItemParamsType, useProScreenParamsItem, useTableColumnParamsType,} from "../useType/useType";
75
75
  import proTableLocalConfigManage from "../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
76
+ import {TypeByConfirmOptions, TypeByNotifyOptions, TypeByTheme} from "../typings/type";
77
+ import {executeConfirm} from "../config/use/useConfirm/executeConfirm";
78
+ import registerConfirm from "../config/use/useConfirm/registerConfirm";
79
+ import UseNotify from "../config/use/useConfirm/UseNotify";
76
80
 
77
81
 
78
82
  const meixicomponents: any[] = [
@@ -136,6 +140,7 @@ const install = (Vue) => {
136
140
 
137
141
  Vue.use(DynamicMount);
138
142
  Vue.use(VueCropper);
143
+ Vue.use(registerConfirm);
139
144
  window[`meixiComponentPlugin`] = {
140
145
  SelectStore: SelectStore,
141
146
  UseDrag: UseDrag,
@@ -223,6 +228,12 @@ const meixioacomponent = {
223
228
  useTableColumnParamsType,
224
229
  useFormItemParamsType,
225
230
  useProScreenParamsItem,
231
+ useConfirm: (body: string, title: string, options: TypeByConfirmOptions) => {
232
+ return executeConfirm(body, title, options);
233
+ },
234
+ useNotify: (type: TypeByTheme, options: TypeByNotifyOptions) => {
235
+ return new UseNotify().toMountedConfirm(type, options)
236
+ }
226
237
  };
227
238
 
228
239
  window[`meixioacomponent`] = meixioacomponent;
@@ -58,9 +58,10 @@ export const tableSectionMixins = {
58
58
  onTableDataChange(tableData) {
59
59
  const {rowKey} = this;
60
60
  let value = null;
61
- if (this.name === "baseProTable") {
61
+ const name = this.name
62
+ if (name === "baseProTable") {
62
63
  value = this.$props.tableCheckboxConfig.value || []
63
- } else if (this.name === "basePlainTable") {
64
+ } else if (name === "basePlainTable") {
64
65
  value = this.checkValue || []
65
66
  }
66
67
 
@@ -76,7 +77,9 @@ export const tableSectionMixins = {
76
77
  }
77
78
  })
78
79
  if (index > -1) {
79
- this.$refs.elTable.toggleRowSelection(tableData[index], true);
80
+ if(name==='baseProTable'){
81
+ this.$refs.elTable.toggleRowSelection(tableData[index], true);
82
+ }
80
83
  }
81
84
  })
82
85
 
@@ -73,6 +73,7 @@
73
73
  <script>
74
74
  import pro_formVue from '../proForm/pro_form.vue'
75
75
  import baseButtonHandleVue from '../../base/baseButtonHandle/baseButtonHandle.vue'
76
+ import UseConfirm from "../../../config/use/useConfirm/UseConfirm";
76
77
 
77
78
  export default {
78
79
  name: 'baseDialogForm',
@@ -174,9 +175,11 @@ export default {
174
175
  default: '加载中,请稍后。。。'
175
176
  },
176
177
  hasIconClose: {
177
-
178
178
  type: Boolean, default: true,
179
-
179
+ },
180
+ noticeText: {
181
+ type: String,
182
+ default: '是否关闭该弹窗'
180
183
  }
181
184
  },
182
185
  components: {
@@ -286,23 +289,20 @@ export default {
286
289
  },
287
290
 
288
291
  beforeClose(done) {
289
- const confirmDia = this.$dialog.confirm({
290
- header: '关闭对话框',
291
- body: `是否关闭当前表单?`,
292
- confirmBtn: '确定',
293
- cancelBtn: '取消',
294
- onConfirm: ({ e }) => {
295
- confirmDia.destroy();
296
- if (done) {
297
- done();
298
- } else {
299
- this.$refs.dialog.closeDialog();
300
- }
301
- },
302
- onClose: ({ e, trigger }) => {
303
- confirmDia.destroy();
304
- },
305
- });
292
+
293
+ new UseConfirm().toMountedConfirm(this.$props.noticeText, '关闭对话框', {
294
+ cancelButtonText: '取消',
295
+ confirmButtonText: '确定'
296
+ }).then(() => {
297
+ if (done) {
298
+ done();
299
+ } else {
300
+ this.$refs.dialog.closeDialog();
301
+ }
302
+ }).catch(() => {
303
+
304
+ })
305
+
306
306
 
307
307
  }
308
308
  },
@@ -24,7 +24,8 @@
24
24
 
25
25
  <!-- 单选框 -->
26
26
 
27
- <base-toggle v-if="config.type === 'radio'" v-model="module" :disabled="true" :size="size" :toggle-color="[
27
+ <base-toggle v-if="config.type === 'radio'" v-model="module" :disabled="true" :size="componentSize"
28
+ :toggle-color="[
28
29
  'var(--color-primary)'
29
30
  ]" :toggle-list="config.list"></base-toggle>
30
31
 
@@ -36,9 +37,10 @@
36
37
  :autosize="{ minRows: config.rows}"
37
38
  :size="componentSize"
38
39
  :disabled="disabled"
40
+ :maxlength="config.max"
39
41
  ></t-textarea>
40
42
 
41
- <t-button shape="square" variant="outline" v-show="!isEdit && !isDisabled" @click="handleClick('edit')">
43
+ <t-button shape="square" variant="outline" v-show="!isEdit && !isDisabled" @click="handleClick('edit')">
42
44
  <template #icon>
43
45
  <edit-icon></edit-icon>
44
46
  </template>
@@ -141,6 +143,7 @@
141
143
  :clearable="true"
142
144
  :size="componentSize"
143
145
  :disabled="isDisabled"
146
+ :presets="config.presets"
144
147
  style="width: 100%;height: 100%"
145
148
  value-type="time-stamp"
146
149
  />
@@ -153,6 +156,7 @@
153
156
  :clearable="true"
154
157
  :size="componentSize"
155
158
  :disabled="isDisabled"
159
+ :presets="config.presets"
156
160
  style="width: 100%;height: 100%"
157
161
  value-type="time-stamp"
158
162
  />
@@ -164,6 +168,7 @@
164
168
  :disabled="isDisabled"
165
169
  :placeholder="datePickPlace"
166
170
  style="width: 100%;height: 100%"
171
+ :presets="config.presets"
167
172
  value-type="time-stamp"
168
173
  />
169
174
 
@@ -176,6 +181,7 @@
176
181
  :disabled="isDisabled"
177
182
  :placeholder="datePickPlace"
178
183
  style="width: 100%;height: 100%"
184
+ :presets="config.presets"
179
185
  value-type="time-stamp"
180
186
  />
181
187
 
@@ -216,6 +222,7 @@
216
222
  :autosize="{ minRows: config.rows}"
217
223
  :size="componentSize"
218
224
  :disabled="disabled"
225
+ :maxlength="config.max"
219
226
  ></t-textarea>
220
227
 
221
228
  </div>
@@ -269,7 +276,7 @@
269
276
  <script>
270
277
  import BaseNumberInput from '../../../base/baseNumberInput/index.vue'
271
278
  import baseStoreSelect from '../../../base/baseStoreSelect/index.vue'
272
- import {CheckIcon, CloseIcon,EditIcon} from "tdesign-icons-vue"
279
+ import {CheckIcon, CloseIcon, EditIcon} from "tdesign-icons-vue"
273
280
  //
274
281
  import {FilterTime, TransomComponentSize} from '../../../../utils/utils'
275
282
  import FormSingleUploadItem from "./proFormItem/formSingleUploadItem";
@@ -512,8 +519,9 @@ export default {
512
519
  if (value.toString().length <= 10) {
513
520
  return value * 1000
514
521
  }
522
+ return parseInt(value);
515
523
  }
516
- return value
524
+ return null;
517
525
  },
518
526
 
519
527
  // 返回daterange的时间戳
@@ -551,7 +559,7 @@ export default {
551
559
  }
552
560
  },
553
561
  },
554
- components: {FormSingleUploadItem, BaseNumberInput, baseStoreSelect, CheckIcon, CloseIcon,EditIcon},
562
+ components: {FormSingleUploadItem, BaseNumberInput, baseStoreSelect, CheckIcon, CloseIcon, EditIcon},
555
563
  }
556
564
  </script>
557
565
 
@@ -565,7 +573,7 @@ export default {
565
573
  align-items: flex-start;
566
574
  flex-flow: column nowrap;
567
575
  justify-content: flex-start;
568
- padding: var(--margin-4);
576
+ //padding: var(--margin-4);
569
577
  border-radius: calc(var(--radius) * 2);
570
578
 
571
579
  .item-content-wrap {
@@ -770,5 +778,4 @@ export default {
770
778
  }
771
779
 
772
780
 
773
-
774
781
  </style>