Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Aug 9, 2023
1 parent a34cc30 commit a58bee0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"@commitlint/config-conventional": "^10.0.0",
"@napi-rs/canvas": "^0.1.39",
"@tarojs/taro": "3.6.8",
"@tarojs/components": "3.6.8",
"@types/node": "^17.0.16",
"@vitejs/plugin-vue": "^4.2.0",
"@vitejs/plugin-vue-jsx": "^3.0.1",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/packages/__VUE/scroll-view/index.taro.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<template v-if="Taro.getEnv() === Taro.ENV_TYPE.WEB">
<NutTaroScrollView v-bind="$attrs">
<taro-scroll-view-core v-bind="$attrs">
<slot></slot>
</NutTaroScrollView>
</taro-scroll-view-core>
</template>
<template v-else>
<scroll-view v-bind="$attrs">
Expand All @@ -12,5 +12,4 @@
</template>
<script setup lang="ts">
import Taro from '@tarojs/taro';
import { ScrollView as NutTaroScrollView } from '@tarojs/components';
</script>
1 change: 1 addition & 0 deletions vite.config.build.taro.vue.disperse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default defineConfig({
compilerOptions: {
isCustomElement: (tag) => {
return (
tag.startsWith('taro-') ||
tag.startsWith('scroll-view') ||
tag.startsWith('swiper') ||
tag.startsWith('swiper-item') ||
Expand Down
2 changes: 2 additions & 0 deletions vite.config.build.taro.vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export default defineConfig({
compilerOptions: {
isCustomElement: (tag) => {
return (
tag.startsWith('taro-') ||
tag.startsWith('scroll-view') ||
tag.startsWith('swiper') ||
tag.startsWith('swiper-item') ||
tag.startsWith('scroll-view') ||
Expand Down

0 comments on commit a58bee0

Please sign in to comment.