n20-common-lib 2.7.63 → 2.7.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.7.63",
3
+ "version": "2.7.65",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -279,13 +279,18 @@ export default {
279
279
  item.props?.valueKey || 'value',
280
280
  item.props?.labelKey || 'label'
281
281
  )
282
- console.log(selectedName)
283
282
  if (value?.length > 1) {
284
283
  return getWidth(selectedName) + 32 > textMaxWidth
285
284
  ? textMaxWidth + 'px'
285
+ : getWidth(selectedName) > 88
286
+ ? '170px'
286
287
  : getWidth(selectedName) + 110 + 'px'
287
288
  } else {
288
- return getWidth(selectedName) + 32 < textMinWidth ? textMinWidth + 'px' : getWidth(selectedName) + 84 + 'px'
289
+ return getWidth(selectedName) > 88
290
+ ? '128px'
291
+ : getWidth(selectedName) + 32 < textMinWidth
292
+ ? textMinWidth + 'px'
293
+ : getWidth(selectedName) + 84 + 'px'
289
294
  }
290
295
  }
291
296
  }
@@ -297,7 +302,6 @@ export default {
297
302
  if (!value && !value2) {
298
303
  return textMinWidth + 'px'
299
304
  } else {
300
- console.log(value, value2, getWidth(value))
301
305
  if (!value || !value2) {
302
306
  let widthMax = (getWidth(value) + getWidth(value2) + 72) * 2
303
307
  if (widthMax < textMinWidth) {
@@ -432,7 +436,7 @@ export default {
432
436
  const selectProps = {
433
437
  placeholder: item.props && item.props.placeholder ? item.props.placeholder : $lc('请选择'),
434
438
  clearable: (item.props && this.item.props.clearable) ?? true,
435
- multiple: item.multiple,
439
+ multiple: item.multiple || item.props.multiple,
436
440
  ...item.props
437
441
  }
438
442
  elementDom = h(
@@ -269,7 +269,6 @@ export default {
269
269
  Object.keys(data).forEach((id) => {
270
270
  let task = this.svgW.querySelector(`[data-element-id="${id}"]`)
271
271
  if (task) {
272
- console.log('setPendingUserInfo:', data[id])
273
272
  this.addEvent(task, { taskCandidate: data[id] }, 'unApply')
274
273
  }
275
274
  })
@@ -189,7 +189,6 @@ export default {
189
189
  watch: {},
190
190
  created() {},
191
191
  mounted() {
192
- console.log(this.optionsSelect)
193
192
  this.filterOptions = JSON.parse(JSON.stringify(this.options)).filter((item) => {
194
193
  return this.optionsSelect.includes(item.label)
195
194
  })