@tak-ps/vue-tabler 3.68.3 → 3.68.5

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/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.68.5
14
+
15
+ - :bug: Migrate to Setup for `Dropdown`
16
+
17
+ ### v3.68.4
18
+
19
+ - :bug: Fix autoclose case
20
+
13
21
  ### v3.68.3
14
22
 
15
23
  - :rocket: Add Bootstrap Dropdown Data
@@ -2,11 +2,11 @@
2
2
  <div class='dropdown'>
3
3
  <div
4
4
  :id='id'
5
- data-bs-toggle="dropdown"
6
- :data-bs-auto-close="autoclose"
7
- aria-expanded="false"
5
+ data-bs-toggle='dropdown'
6
+ :data-bs-auto-close='props.autoclose'
7
+ aria-expanded='false'
8
8
  @click.stop.prevent=''
9
- >
9
+ >
10
10
  <slot>
11
11
  <IconSettings
12
12
  :size='32'
@@ -29,30 +29,22 @@
29
29
  </div>
30
30
  </template>
31
31
 
32
- <script>
32
+ <script setup>
33
+ import { ref } from 'vue';
33
34
  import {
34
35
  IconSettings
35
36
  } from '@tabler/icons-vue';
36
37
 
37
- export default {
38
- name: 'TablerDropdown',
39
- components: {
40
- IconSettings
41
- },
42
- props: {
43
- width: {
44
- type: Number,
45
- default: 200
46
- },
47
- autoClose: {
48
- type: String,
49
- default: 'true'
50
- }
38
+ const props = defineProps({
39
+ width: {
40
+ type: Number,
41
+ default: 200
51
42
  },
52
- data: function() {
53
- return {
54
- id: 'tabler-dropdown-' + Math.random().toString(36).substr(2, 9) + '-' + Date.now().toString(36)
55
- }
43
+ autoclose: {
44
+ type: String,
45
+ default: 'true'
56
46
  }
57
- }
47
+ });
48
+
49
+ const id = ref('tabler-dropdown-' + Math.random().toString(36).substr(2, 9) + '-' + Date.now().toString(36));
58
50
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.68.3",
4
+ "version": "3.68.5",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",