ci-plus 1.9.5 → 1.9.6
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.
- package/README.md +2 -0
- package/index.ts +1 -1
- package/package.json +2 -2
- package/src/components.d.ts +1 -0
- package/src/fileRelated/uploadV4.vue +4 -4
- package/src/fileRelated/uploadV5.vue +5 -5
- package/src/fileRelated/uploadV6.vue +20 -8
package/README.md
CHANGED
package/index.ts
CHANGED
package/package.json
CHANGED
package/src/components.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare module '@vue/runtime-core' {
|
|
|
28
28
|
CiUploadV3: typeof components.UploadV3
|
|
29
29
|
CiUploadV4: typeof components.UploadV4
|
|
30
30
|
CiUploadV5: typeof components.UploadV5
|
|
31
|
+
CiUploadV6: typeof components.UploadV6
|
|
31
32
|
|
|
32
33
|
CiSelect: typeof components.Select
|
|
33
34
|
CiSelectTable: typeof components.SelectTable
|
|
@@ -198,19 +198,19 @@ const props = defineProps<Props>()
|
|
|
198
198
|
|
|
199
199
|
// 默认值:是否显示归属公司
|
|
200
200
|
const ifShowAffiliation = computed(() => {
|
|
201
|
-
return props.ifShowAffiliation
|
|
201
|
+
return props.ifShowAffiliation ?? true
|
|
202
202
|
})
|
|
203
203
|
// 默认值:是否显示仓库
|
|
204
204
|
const ifShowWarehouse = computed(() => {
|
|
205
|
-
return props.ifShowWarehouse
|
|
205
|
+
return props.ifShowWarehouse ?? false
|
|
206
206
|
})
|
|
207
207
|
// 默认值:是否必选归属公司
|
|
208
208
|
const requiredAffiliation = computed(() => {
|
|
209
|
-
return props.requiredAffiliation
|
|
209
|
+
return props.requiredAffiliation ?? false
|
|
210
210
|
})
|
|
211
211
|
// 默认值:是否必选仓库
|
|
212
212
|
const requiredWarehouse = computed(() => {
|
|
213
|
-
return props.requiredWarehouse
|
|
213
|
+
return props.requiredWarehouse ?? false
|
|
214
214
|
})
|
|
215
215
|
|
|
216
216
|
const emits = defineEmits<{
|
|
@@ -209,24 +209,24 @@ const props = defineProps<Props>()
|
|
|
209
209
|
|
|
210
210
|
// 默认值:是否显示归属公司
|
|
211
211
|
const ifShowAffiliation = computed(() => {
|
|
212
|
-
return props.ifShowAffiliation
|
|
212
|
+
return props.ifShowAffiliation ?? true
|
|
213
213
|
})
|
|
214
214
|
// 默认值:是否显示仓库
|
|
215
215
|
const ifShowWarehouse = computed(() => {
|
|
216
|
-
return props.ifShowWarehouse
|
|
216
|
+
return props.ifShowWarehouse ?? false
|
|
217
217
|
})
|
|
218
218
|
// 默认值:是否必选归属公司
|
|
219
219
|
const requiredAffiliation = computed(() => {
|
|
220
|
-
return props.requiredAffiliation
|
|
220
|
+
return props.requiredAffiliation ?? false
|
|
221
221
|
})
|
|
222
222
|
// 默认值:是否必选仓库
|
|
223
223
|
const requiredWarehouse = computed(() => {
|
|
224
|
-
return props.requiredWarehouse
|
|
224
|
+
return props.requiredWarehouse ?? false
|
|
225
225
|
})
|
|
226
226
|
|
|
227
227
|
// 是否默认选中归属工厂(默认值true)
|
|
228
228
|
const ifDefaultAffiliation = computed(() => {
|
|
229
|
-
return props.ifDefaultAffiliation
|
|
229
|
+
return props.ifDefaultAffiliation ?? true
|
|
230
230
|
})
|
|
231
231
|
|
|
232
232
|
// 获取本地缓存中当前登陆账号的公司
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- /**
|
|
2
2
|
* @module uploadV6
|
|
3
3
|
* @author : 卖女孩的小火柴
|
|
4
|
-
* !description : 在v5基础上调整优化
|
|
4
|
+
* !description : 在v5基础上调整优化(目前只在检验管理中使用)
|
|
5
5
|
* @version : 1.0.0
|
|
6
6
|
* @since : 创建时间 2026-01-07 10:00:00
|
|
7
7
|
*/ -->
|
|
@@ -232,24 +232,24 @@ const props = defineProps<Props>()
|
|
|
232
232
|
|
|
233
233
|
// 默认值:是否显示归属公司
|
|
234
234
|
const ifShowAffiliation = computed(() => {
|
|
235
|
-
return props.ifShowAffiliation
|
|
235
|
+
return props.ifShowAffiliation ?? false
|
|
236
236
|
})
|
|
237
237
|
// 默认值:是否显示仓库
|
|
238
238
|
const ifShowWarehouse = computed(() => {
|
|
239
|
-
return props.ifShowWarehouse
|
|
239
|
+
return props.ifShowWarehouse ?? false
|
|
240
240
|
})
|
|
241
241
|
// 默认值:是否必选归属公司
|
|
242
242
|
const requiredAffiliation = computed(() => {
|
|
243
|
-
return props.requiredAffiliation
|
|
243
|
+
return props.requiredAffiliation ?? false
|
|
244
244
|
})
|
|
245
245
|
// 默认值:是否必选仓库
|
|
246
246
|
const requiredWarehouse = computed(() => {
|
|
247
|
-
return props.requiredWarehouse
|
|
247
|
+
return props.requiredWarehouse ?? false
|
|
248
248
|
})
|
|
249
249
|
|
|
250
250
|
// 是否默认选中归属工厂(默认值true)
|
|
251
251
|
const ifDefaultAffiliation = computed(() => {
|
|
252
|
-
return props.ifDefaultAffiliation
|
|
252
|
+
return props.ifDefaultAffiliation ?? true
|
|
253
253
|
})
|
|
254
254
|
|
|
255
255
|
// 获取本地缓存中当前登陆账号的公司
|
|
@@ -512,7 +512,19 @@ defineExpose({
|
|
|
512
512
|
</script>
|
|
513
513
|
|
|
514
514
|
<style scoped lang="scss">
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
.upload-demo {
|
|
516
|
+
margin-top: 3px;
|
|
517
|
+
width: 100%;
|
|
518
|
+
:deep(.el-upload) {
|
|
519
|
+
// width: calc(100% - 110px);
|
|
520
|
+
width: 100% !important;
|
|
521
|
+
}
|
|
522
|
+
.my-trigger {
|
|
523
|
+
width: 100% !important;
|
|
524
|
+
display: flex;
|
|
525
|
+
flex-direction: column;
|
|
526
|
+
justify-content: start;
|
|
527
|
+
align-items: baseline;
|
|
528
|
+
}
|
|
517
529
|
}
|
|
518
530
|
</style>
|