Skip to content

Commit

Permalink
fix: 修复 taro demo 报错问题 (jd-opensource#2646)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Nov 9, 2023
1 parent 0cfaf62 commit 748a558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</view>
</template>
<script lang="ts" setup>
import { Check, Link, Download } from '@nutui/icons-vue';
import { Check, Link, Download } from '@nutui/icons-vue-taro';
import Taro from '@tarojs/taro';
import Header from '../../../components/header.vue';
Expand Down
5 changes: 2 additions & 3 deletions packages/nutui-taro-demo/src/exhibition/pages/table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import { reactive, onMounted, onUnmounted, h } from 'vue';
import Taro from '@tarojs/taro';
import Header from '../../../components/header.vue';
import Button from '@/packages/__VUE/button';
import { TableColumnProps } from '@/packages/__VUE/table/types';
import { Dongdong } from '@nutui/icons-vue-taro';
const env = Taro.getEnv();
Expand Down Expand Up @@ -177,7 +176,7 @@ const state = reactive({
sex: '',
record: '小学',
render: () => {
return h(Button, { size: 'small', type: 'primary' }, () => 'Hello');
return h('button', {}, () => 'Hello');
}
},
{
Expand All @@ -193,7 +192,7 @@ const state = reactive({
sex: '',
record: '高中',
render: () => {
return h(Button, { type: 'success', size: 'small' }, () => '编辑按钮');
return h('button', {}, () => '编辑按钮');
}
}
],
Expand Down

0 comments on commit 748a558

Please sign in to comment.