jobdone-shared-files 1.0.46 → 1.0.48

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.
@@ -262,9 +262,7 @@ function previewAdjust(itemObj) {
262
262
 
263
263
  // 選中的值的顯示
264
264
  const selectedPreviewText = computed(() => {
265
-
266
-
267
- if (!selectedItem.value || (typeof selectedItem.value === 'object' && Object.keys(selectedItem.value).length === 0)) {
265
+ if (selectedItem.value === null || selectedItem.value === undefined || (typeof selectedItem.value === 'object' && Object.keys(selectedItem.value).length === 0)) {
268
266
  return props.placeholder
269
267
  }
270
268
  return previewAdjust(selectedItem.value)
@@ -278,7 +276,7 @@ function clearSelected() {
278
276
 
279
277
  // 選擇送出
280
278
  function selectConfirm(v) {
281
- if (!v) {
279
+ if (selectedItem.value === null || selectedItem.value === undefined || (typeof selectedItem.value === 'object' && Object.keys(selectedItem.value).length === 0)) {
282
280
  return
283
281
  }
284
282
  emit('select', JSON.parse(JSON.stringify(v)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {