Skip to content

Commit

Permalink
fix: remove unnecessary inheritAttrs prop
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Jul 8, 2021
1 parent 72522ba commit 91d9503
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions packages/varlet-ui/src/checkbox-group/CheckboxGroup.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="var-checkbox-group__wrap" v-bind="$attrs">
<div class="var-checkbox-group__wrap">
<div class="var-checkbox-group" :class="[`var-checkbox-group--${direction}`]">
<slot />
</div>
Expand All @@ -24,7 +24,6 @@ export default defineComponent({
components: {
[FormDetails.name]: FormDetails,
},
inheritAttrs: false,
props,
setup(props) {
const max: ComputedRef<number | string | undefined> = computed(() => props.max)
Expand Down
2 changes: 0 additions & 2 deletions packages/varlet-ui/src/icon/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
fontSize: toSizeUnit(size),
}"
:src="isURL(name) ? nextName : null"
v-bind="$attrs"
@click="onClick"
/>
</template>
Expand All @@ -29,7 +28,6 @@ import type { Ref } from 'vue'
export default defineComponent({
name: 'VarIcon',
inheritAttrs: false,
props,
setup(props) {
const nextName: Ref<string | undefined> = ref('')
Expand Down
2 changes: 0 additions & 2 deletions packages/varlet-ui/src/row/Row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
justifyContent: justify,
alignItems: align
}"
v-bind="$attrs"
@click="onClick"
>
<slot />
Expand All @@ -22,7 +21,6 @@ import type { RowProvider } from './provide'
export default defineComponent({
name: 'VarRow',
inheritAttrs: false,
props,
setup(props) {
const { cols, bindCols, length } = useCols()
Expand Down
4 changes: 2 additions & 2 deletions packages/varlet-ui/src/uploader/Uploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
x5-video-player-type="h5"
x5-video-player-fullscreen="false"
controls
:src="currentPreview.url"
v-if="currentPreview && isHTMLSupportVideo(currentPreview.url)"
:src="currentPreview?.url"
v-if="currentPreview && isHTMLSupportVideo(currentPreview?.url)"
></video>
</var-popup>
</div>
Expand Down

0 comments on commit 91d9503

Please sign in to comment.