@community-release/nx-ui 0.0.20 → 0.0.21

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "ui",
3
3
  "configKey": "ui",
4
- "version": "0.0.20"
4
+ "version": "0.0.21"
5
5
  }
@@ -38,7 +38,7 @@
38
38
  */
39
39
  active: {
40
40
  type: [Number, null],
41
- default: 0
41
+ default: null
42
42
  }
43
43
  });
44
44
 
@@ -2,7 +2,7 @@
2
2
  <section class="component-ui-accordion-item"
3
3
  :class="{'tag-active': accordionData.activeItem.value === id, 'tag-icon': accordionData.haveIcon}"
4
4
  >
5
- <div class="header" @click="accordionData.activeItem.value = id">
5
+ <div class="header" @click="accordionData.activeItem.value = accordionData.activeItem.value === id ? null : id">
6
6
  <i class="icon"></i>
7
7
  <div class="title">{{ title }}</div>
8
8
  <div class="btn-toggle"></div>
@@ -14,10 +14,10 @@
14
14
  </template>
15
15
 
16
16
  <script setup>
17
- // Import
17
+ // Import
18
18
  import { inject } from 'vue'
19
19
 
20
- // Data
20
+ // Data
21
21
  const accordionData = inject('accordionData', null);
22
22
  const props = defineProps({
23
23
  title: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-release/nx-ui",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "nx-ui - Nuxt UI library",
5
5
  "repository": {
6
6
  "type": "git",