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 CHANGED
@@ -1,6 +1,8 @@
1
1
  ## 历史更新
2
2
 
3
3
  ```js
4
+ 1.9.6
5
+ 1、优化uploadV4 uploadV5 uploadV6 组件中 默认取值bug
4
6
  1.9.5
5
7
  1、新增 ciuploadV6 组件,优化一些bug
6
8
  1.9.4
package/index.ts CHANGED
@@ -5,7 +5,7 @@ import { default as Fn } from './src/utils'
5
5
  export default {
6
6
  install: (app: App) => {
7
7
  // 注册所有组件
8
- console.log('注册所有ci-plus组件1.9.5: ', components)
8
+ console.log('注册所有ci-plus组件1.9.6: ', components)
9
9
  for (const c in components) {
10
10
  app.use(components[c])
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ci-plus",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "ci组件库",
5
5
  "main": "./index.ts",
6
6
  "scripts": {
@@ -31,4 +31,4 @@
31
31
  "devDependencies": {},
32
32
  "peerDependencies": {},
33
33
  "peerDependenciesMeta": {}
34
- }
34
+ }
@@ -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 || true
201
+ return props.ifShowAffiliation ?? true
202
202
  })
203
203
  // 默认值:是否显示仓库
204
204
  const ifShowWarehouse = computed(() => {
205
- return props.ifShowWarehouse || false
205
+ return props.ifShowWarehouse ?? false
206
206
  })
207
207
  // 默认值:是否必选归属公司
208
208
  const requiredAffiliation = computed(() => {
209
- return props.requiredAffiliation || false
209
+ return props.requiredAffiliation ?? false
210
210
  })
211
211
  // 默认值:是否必选仓库
212
212
  const requiredWarehouse = computed(() => {
213
- return props.requiredWarehouse || false
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 || true
212
+ return props.ifShowAffiliation ?? true
213
213
  })
214
214
  // 默认值:是否显示仓库
215
215
  const ifShowWarehouse = computed(() => {
216
- return props.ifShowWarehouse || false
216
+ return props.ifShowWarehouse ?? false
217
217
  })
218
218
  // 默认值:是否必选归属公司
219
219
  const requiredAffiliation = computed(() => {
220
- return props.requiredAffiliation || false
220
+ return props.requiredAffiliation ?? false
221
221
  })
222
222
  // 默认值:是否必选仓库
223
223
  const requiredWarehouse = computed(() => {
224
- return props.requiredWarehouse || false
224
+ return props.requiredWarehouse ?? false
225
225
  })
226
226
 
227
227
  // 是否默认选中归属工厂(默认值true)
228
228
  const ifDefaultAffiliation = computed(() => {
229
- return props.ifDefaultAffiliation || true
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 || false
239
+ return props.ifShowWarehouse ?? false
240
240
  })
241
241
  // 默认值:是否必选归属公司
242
242
  const requiredAffiliation = computed(() => {
243
- return props.requiredAffiliation || false
243
+ return props.requiredAffiliation ?? false
244
244
  })
245
245
  // 默认值:是否必选仓库
246
246
  const requiredWarehouse = computed(() => {
247
- return props.requiredWarehouse || false
247
+ return props.requiredWarehouse ?? false
248
248
  })
249
249
 
250
250
  // 是否默认选中归属工厂(默认值true)
251
251
  const ifDefaultAffiliation = computed(() => {
252
- return props.ifDefaultAffiliation || true
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
- :deep(.el-upload) {
516
- width: calc(100% - 110px);
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>