Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Sep 3, 2023
1 parent cb3e483 commit f2f611d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/components/checkbox/src/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const Checkbox = defineComponent({
[h(Primitive.button, {
'type': 'button',
'role': 'checkbox',
// 'aria-checked': isIndeterminate(state.value) ? 'mixed' : state.value as any,
'aria-checked': isIndeterminate(state.value) ? 'mixed' : state.value as any,
'aria-required': required.value,
'data-state': computed(() => getState(state.value)).value,
'data-disabled': disabled.value ? '' : undefined,
Expand Down
6 changes: 3 additions & 3 deletions packages/components/collapsible/src/collapsibleContentImpl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PropType, Ref } from 'vue'
import { computed, defineComponent, h, nextTick, onBeforeUnmount, onMounted, ref, toRef, watch } from 'vue'
import type { ComponentPublicInstanceRef, OkuElement, PrimitiveProps } from '@oku-ui/primitive'
import type { OkuElement, PrimitiveProps } from '@oku-ui/primitive'
import { Primitive, primitiveProps } from '@oku-ui/primitive'

import { useComposedRefs, useForwardRef } from '@oku-ui/use-composable'
Expand Down Expand Up @@ -36,7 +36,7 @@ const collapsibleContentImpl = defineComponent({
const { ...contentAttrs } = attrs as CollapsibleContentImplNaviteElement
const context = useCollapsibleInject(CONTENT_NAME, props.scopeOkuCollapsible)

const _ref = ref<ComponentPublicInstanceRef<HTMLDivElement> | undefined>(undefined)
const _ref = ref<HTMLDivElement | undefined>(undefined)
const forwardedRef = useForwardRef()
const composedRefs = useComposedRefs(_ref, forwardedRef)

Expand All @@ -62,7 +62,7 @@ const collapsibleContentImpl = defineComponent({

watch([isOpen, isPresent], async () => {
await nextTick()
const node = _ref.value?.$el
const node = _ref.value
if (node) {
originalStylesRef.value = originalStylesRef.value || {
transitionDuration: node.style.transitionDuration,
Expand Down
2 changes: 0 additions & 2 deletions packages/components/portal/src/stories/PortalDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export interface IPortalProps extends PortalProps {
allshow?: boolean
}
// const container = computed(() => getCurrentInstance()?.proxy?.$el);
defineProps<IPortalProps>()
const portalContainer = ref<HTMLDivElement | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/slot/src/stories/SlotDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ withDefaults(defineProps<OkuLabelProps>(), {
const slot = ref()
onMounted(() => {
console.log(slot.value.$el, 'slot.value.$el')
console.log(slot.value, 'slot.value')
console.log(slot.value, 'slot.value')
})
const alert = () => console.log('alert')
Expand Down

0 comments on commit f2f611d

Please sign in to comment.