mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Migrate more core components
This commit is contained in:
14
resources/assets/scripts/components/core/Icon.ts
Normal file
14
resources/assets/scripts/components/core/Icon.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Vue from 'vue';
|
||||
import { replace } from 'feather-icons';
|
||||
|
||||
export default Vue.component('icon', {
|
||||
props: {
|
||||
name: {type: String, default: 'circle'},
|
||||
},
|
||||
mounted: function () {
|
||||
replace();
|
||||
},
|
||||
template: `
|
||||
<i data-feather="{{ name }}"></i>
|
||||
`,
|
||||
});
|
||||
Reference in New Issue
Block a user