Skip to content

Commit

Permalink
fix(恢复list): 恢复被删除的ui/list
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq authored and BeADre committed Jan 13, 2021
1 parent a5bcb49 commit b2fd79e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
22 changes: 8 additions & 14 deletions packages/varlet-ui/src/icon/Icon.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
<template>
<img
class="var-icon__image"
:class="[tickTransition ? 'var-icon--hidden' : null]"
:style="{
transition: `all ${transition}ms`,
}"
:src="nextName"
v-if="isURL(name)"
v-bind="$attrs"
>

<i
<component
:is="isURL(name) ? 'img' : 'i'"
class="var-icon"
:class="[`${namespace}--set`, `${namespace}-${nextName}`, tickTransition ? 'var-icon--hidden' : null]"
:class="[
`${namespace}--set`,
isURL(name) ? 'var-icon__image' : `${namespace}-${nextName}`,
tickTransition ? 'var-icon--hidden' : null
]"
:src="nextName"
:style="{
transition: `all ${transition}ms`,
}"
v-else
v-bind="$attrs"
/>
</template>
Expand Down
1 change: 0 additions & 1 deletion packages/varlet-ui/src/tabs-items/TabsItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { useChildren, useAtChildrenCounter } from '../utils/components'
import { TABS_ITEMS_BIND_TAB_ITEM_KEY, TabsItemsProvider, TABS_ITEMS_COUNT_TAB_ITEM_KEY } from './provide'
import { props } from './props'
import { TabItemProvider } from '../tab-item/provide'
import { isNumber } from '../utils/shared'
export default defineComponent({
name: 'VarTabsItems',
Expand Down

0 comments on commit b2fd79e

Please sign in to comment.