@tak-ps/vue-tabler 3.68.4 → 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,10 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.68.5
14
+
15
+ - :bug: Migrate to Setup for `Dropdown`
16
+
13
17
  ### v3.68.4
14
18
 
15
19
  - :bug: Fix autoclose case
@@ -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
38
+ const props = defineProps({
39
+ width: {
40
+ type: Number,
41
+ default: 200
41
42
  },
42
- props: {
43
- width: {
44
- type: Number,
45
- default: 200
46
- },
47
- autoclose: {
48
- type: String,
49
- default: 'true'
50
- }
51
- },
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.4",
4
+ "version": "3.68.5",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",