@edmicro/olkit 1.1.0 → 1.1.1

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.
@@ -7005,7 +7005,19 @@ class OlSelect {
7005
7005
  /** Nhãn hiển thị cho một giá trị — tra ngược trong `options`. */
7006
7006
  getDisplayLabel(val) {
7007
7007
  const found = this.options().find((o) => this.bangNhau(this.getItemValue(o), val));
7008
- return found ? this.getItemLabel(found) : `${val ?? ''}`;
7008
+ if (found)
7009
+ return this.getItemLabel(found);
7010
+ if (val === null || val === undefined)
7011
+ return '';
7012
+ if (typeof val === 'object') {
7013
+ try {
7014
+ return JSON.stringify(val);
7015
+ }
7016
+ catch {
7017
+ return '';
7018
+ }
7019
+ }
7020
+ return `${val}`;
7009
7021
  }
7010
7022
  /** Nhãn của ô khi đơn chọn: có giá trị thì hiện nhãn, không thì để trống. */
7011
7023
  singleLabel = computed(() => {