meixioacomponent 2.0.3 → 2.0.32

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.
@@ -1,9 +1,19 @@
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;
11
+ }
12
+
13
+ .t-list__inner {
14
+ height: 100% !important;
15
+ }
16
+
17
+ .t-form__label {
18
+ padding-right: 0 !important;
9
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "2.0.3",
3
+ "version": "2.0.32",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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>
@@ -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%;
@@ -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>
@@ -76,7 +78,7 @@
76
78
  :maxlength="config.maxlength"
77
79
  :min="config.min"
78
80
  :placeholder="config.placeholder"
79
- :size="size"
81
+ :size="componentSize"
80
82
  :style="{width:`${config.width? `${config.width}px`:'100%'}`}"
81
83
  :unit="config.unit"
82
84
  :use-string="true"
@@ -93,7 +95,7 @@
93
95
  :maxlength="config.maxlength"
94
96
  :min="config.min"
95
97
  :placeholder="config.placeholder"
96
- :size="size"
98
+ :size="componentSize"
97
99
  :style="{width:`${config.width? `${config.width}px`:'100%'}`}"
98
100
  :unit="config.unit"
99
101
  ></BaseNumberInput>
@@ -110,7 +112,7 @@
110
112
  :min="config.min"
111
113
  :placeholder="config.placeholder"
112
114
  :precision="2"
113
- :size="size"
115
+ :size="componentSize"
114
116
  :style="{width:`${config.width? `${config.width}px`:'100%'}`}"
115
117
  :unit="config.unit"
116
118
  ></BaseNumberInput>
@@ -180,7 +182,7 @@
180
182
  />
181
183
 
182
184
  <!-- 单选框 -->
183
- <base-toggle v-if="config.type === 'radio'" v-model="module" :disabled="isDisabled" :size="size"
185
+ <base-toggle v-if="config.type === 'radio'" v-model="module" :disabled="isDisabled" :size="componentSize"
184
186
  :toggle-color="['var(--color-primary)']"
185
187
  :toggle-list="config.list"></base-toggle>
186
188
  <!-- 选择器 -->
@@ -216,6 +218,7 @@
216
218
  :autosize="{ minRows: config.rows}"
217
219
  :size="componentSize"
218
220
  :disabled="disabled"
221
+ :maxlength="config.max"
219
222
  ></t-textarea>
220
223
 
221
224
  </div>
@@ -269,7 +272,7 @@
269
272
  <script>
270
273
  import BaseNumberInput from '../../../base/baseNumberInput/index.vue'
271
274
  import baseStoreSelect from '../../../base/baseStoreSelect/index.vue'
272
- import {CheckIcon, CloseIcon,EditIcon} from "tdesign-icons-vue"
275
+ import {CheckIcon, CloseIcon, EditIcon} from "tdesign-icons-vue"
273
276
  //
274
277
  import {FilterTime, TransomComponentSize} from '../../../../utils/utils'
275
278
  import FormSingleUploadItem from "./proFormItem/formSingleUploadItem";
@@ -551,7 +554,7 @@ export default {
551
554
  }
552
555
  },
553
556
  },
554
- components: {FormSingleUploadItem, BaseNumberInput, baseStoreSelect, CheckIcon, CloseIcon,EditIcon},
557
+ components: {FormSingleUploadItem, BaseNumberInput, baseStoreSelect, CheckIcon, CloseIcon, EditIcon},
555
558
  }
556
559
  </script>
557
560
 
@@ -770,5 +773,4 @@ export default {
770
773
  }
771
774
 
772
775
 
773
-
774
776
  </style>
@@ -1,9 +1,19 @@
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;
11
+ }
12
+
13
+ .t-list__inner {
14
+ height: 100% !important;
15
+ }
16
+
17
+ .t-form__label {
18
+ padding-right: 0 !important;
9
19
  }