@policystudio/policy-studio-ui-vue 1.1.90-beta.28 → 1.1.90-beta.29

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.28",
3
+ "version": "1.1.90-beta.29",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div :style="{ display: display }">
2
+ <div
3
+ :style="{ display: display }"
4
+ @click="emit('click', $event)"
5
+ >
3
6
  <span
4
7
  v-if="getIconType === 'material-icons'"
5
8
  class="material-icons-round"
@@ -106,6 +109,8 @@ const props = defineProps({
106
109
  const finishedImageLoad = ref(false)
107
110
  const imageLoadError = ref(false)
108
111
 
112
+ const emit = defineEmits(['click'])
113
+
109
114
  const getIconType = computed(() => {
110
115
  if (imageLoadError.value || !finishedImageLoad.value) return 'material-icons'
111
116
  if (props.type) return props.type