Skip to content

Commit

Permalink
fix: 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Ymm0008 committed Mar 4, 2022
1 parent 0c37689 commit cc61e23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/packages/__VUE/guessgift/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

<script lang="ts">
import { Dialog } from "@nutui/nutui";
import { ref } from 'vue';
import { Ref, ref } from 'vue';
import { createComponent } from '../../utils/create';
import { reactive } from '@vue/reactivity';
const { createDemo } = createComponent('guess-gift');
export default createDemo({
props: {},
setup() {
const guessgiftDom:any = ref(null);
const guessgiftDom: Ref = ref(null);
// 中奖的奖品的index(此数据可根据后台返回的值重新赋值)
const prizeIndex = ref(3);
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/lottoroll/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- <nut-button type="danger" @click="start" style="margin-top: 20px;">抽奖</nut-button> -->
</template>

<script>
<script lang="ts">
import { reactive, toRefs, ref, onMounted, onUnmounted, nextTick, watch, computed } from 'vue';
import { createComponent } from '../../utils/create';
const { create } = createComponent('lotto-roll');
Expand Down Expand Up @@ -55,7 +55,7 @@ export default create({
);
// https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestAnimationFrame
const animationFun = window.requestAnimationFrame ||
const animationFun: any = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.msRequestAnimationFrame ||
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/turntable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default create({
}
},
emits: ["click", "start-turns", "end-turns"],
setup(props, { emit }) {
setup(props: any, { emit }) {
let { prizeList, turnsNumber, styleOpt, turnsTime, pointerStyle } = reactive(props);
const classes = computed(() => {
Expand Down

0 comments on commit cc61e23

Please sign in to comment.