Skip to content

Commit

Permalink
🔧 NeoButton icon pack (#6218)
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo authored Jun 18, 2023
1 parent 9df9905 commit ce5ab40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion components/base/SubmitButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:disabled="disabled"
:loading="loading"
:expanded="expanded"
icon-pack="far"
outlined
@click.native="$emit('click')">
<slot>
Expand All @@ -29,7 +30,7 @@ export interface Props {
size?: 'small' | 'medium' | 'large'
}
const props = withDefaults(defineProps<Props>(), {
withDefaults(defineProps<Props>(), {
loading: false,
disabled: false,
type: 'is-primary',
Expand Down
6 changes: 2 additions & 4 deletions libs/ui/src/components/NeoButton/NeoButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:variant="variant"
:disabled="disabled"
:expanded="expanded"
:icon-pack="iconPack"
:icon-pack="iconPack || 'fas'"
:label="label"
class="is-neo"
:rounded="rounded"
Expand All @@ -24,7 +24,7 @@
import { OButton } from '@oruga-ui/oruga'
import { NeoButtonVariant } from '@kodadot1/brick'
const props = defineProps<{
defineProps<{
size?: 'small' | 'medium' | 'large'
disabled?: boolean
expanded?: boolean
Expand All @@ -38,8 +38,6 @@ const props = defineProps<{
rounded?: boolean
tag?: string
}>()
const iconPack = computed(() => props?.iconPack || 'fa-sharp')
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit ce5ab40

Please sign in to comment.