Skip to content

Commit

Permalink
refactor(VProgressLinear): tuning pass (#15265)
Browse files Browse the repository at this point in the history
* refactor(VProgressLinear): tuning pass

* fix(VProgressLinear): remove @forward from sass file
  • Loading branch information
johnleider committed Jun 22, 2022
1 parent 507c96a commit ba4c2cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -11,8 +11,8 @@ import { useProxiedModel } from '@/composables/proxiedModel'
import { useRtl } from '@/composables/rtl'

// Utilities
import { convertToUnit, defineComponent } from '@/util'
import { computed, Transition } from 'vue'
import { convertToUnit, defineComponent, useRender } from '@/util'

export const VProgressLinear = defineComponent({
name: 'VProgressLinear',
Expand Down Expand Up @@ -88,7 +88,7 @@ export const VProgressLinear = defineComponent({
progress.value = Math.round(value / width * max.value)
}

return () => (
useRender(() => (
<props.tag
ref={ intersectionRef }
class={[
Expand Down Expand Up @@ -180,6 +180,8 @@ export const VProgressLinear = defineComponent({
</div>
) }
</props.tag>
)
))

return {}
},
})
@@ -1,5 +1,6 @@
@use '../../styles/settings';

// VProgressLinear
$progress-linear-background: currentColor !default;
$progress-linear-background-background: $progress-linear-background !default;
$progress-linear-background-opacity: var(--v-border-opacity) !default;
Expand Down

0 comments on commit ba4c2cf

Please sign in to comment.