Skip to content

Commit

Permalink
chore(collapse): upd type of props.modelValue (#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Dec 8, 2023
1 parent 2a8b4ad commit d6f0ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/packages/__VUE/collapse/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
</view>
</template>
<script lang="ts">
import { provide, ref, watch } from 'vue';
import { PropType, provide, ref, watch } from 'vue';
import { createComponent } from '@/packages/utils/create';
import { COLLAPSE_KEY } from './types';
const { create } = createComponent('collapse');
export default create({
props: {
modelValue: {
type: [String, Number, Array<string | number>],
type: [String, Number, Array] as PropType<string | number | (string | number)[]>,
default: ''
},
accordion: {
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/collapse/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
</view>
</template>
<script lang="ts">
import { provide, ref, watch } from 'vue';
import { PropType, provide, ref, watch } from 'vue';
import { createComponent } from '@/packages/utils/create';
import { COLLAPSE_KEY } from './types';
const { create } = createComponent('collapse');
export default create({
props: {
modelValue: {
type: [String, Number, Array<string | number>],
type: [String, Number, Array] as PropType<string | number | (string | number)[]>,
default: ''
},
accordion: {
Expand Down

0 comments on commit d6f0ead

Please sign in to comment.