@tak-ps/vue-tabler 3.53.1 → 3.54.0
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 +4 -0
- package/components/IconButton.vue +35 -0
- package/eslint.config.js +22 -0
- package/lib.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is='icon'
|
|
4
|
+
:title='title'
|
|
5
|
+
:size='size'
|
|
6
|
+
:stroke='stroke'
|
|
7
|
+
tabindex='0'
|
|
8
|
+
v-tooltip='title'
|
|
9
|
+
class='cursor-pointer hover-button rounded'
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: 'TablerIconButton',
|
|
16
|
+
props: {
|
|
17
|
+
icon: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
type: Number,
|
|
27
|
+
default: 32
|
|
28
|
+
},
|
|
29
|
+
stroke: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 5
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
</script>
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import eslintPluginVue from 'eslint-plugin-vue'
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
js.configs.recommended,
|
|
6
|
+
...eslintPluginVue.configs['flat/recommended'],
|
|
7
|
+
{
|
|
8
|
+
languageOptions: {
|
|
9
|
+
parserOptions: {
|
|
10
|
+
parser: '@typescript-eslint/parser'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
rules: {
|
|
14
|
+
"vue/html-indent": ["error", 4],
|
|
15
|
+
"vue/html-quotes": ["error", "single", { "avoidEscape": false } ],
|
|
16
|
+
"vue/multi-word-component-names": 1,
|
|
17
|
+
"vue/no-multiple-template-root": 0,
|
|
18
|
+
"vue/no-v-model-argument": 0,
|
|
19
|
+
"vue/require-v-for-key": 0
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
package/lib.js
CHANGED
|
@@ -8,6 +8,7 @@ export { default as TablerToggle } from './components/input/Toggle.vue'
|
|
|
8
8
|
export { default as TablerInput } from './components/input/Input.vue'
|
|
9
9
|
export { default as TablerEnum } from './components/input/Enum.vue';
|
|
10
10
|
|
|
11
|
+
export { default as TablerIconButton } from './components/IconButton.vue'
|
|
11
12
|
export { default as TablerDropdown } from './components/Dropdown.vue'
|
|
12
13
|
export { default as TablerPager } from './components/Pager.vue'
|
|
13
14
|
export { default as TablerNone } from './components/None.vue'
|