浏览代码

fix(actionsheet): use icons-vue component

richard1015 3 年之前
父节点
当前提交
e944639a64
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 3 3
      src/packages/__VUE/actionsheet/index.taro.vue
  2. 2 2
      src/packages/__VUE/actionsheet/index.vue

+ 3 - 3
src/packages/__VUE/actionsheet/index.taro.vue

@@ -17,7 +17,7 @@
             :key="index"
             @click="chooseItem(item, index)"
           >
-            <loading v-if="item.loading"></loading>
+            <IconFont v-if="item.loading" name="loading"></IconFont>
             <view v-else> {{ item[optionTag] }}</view>
             <view class="nut-action-sheet__subdesc">{{ item[optionSubTag] }}</view>
           </view>
@@ -36,7 +36,7 @@ import type { PropType } from 'vue';
 const { componentName, create } = createComponent('action-sheet');
 import Popup from '../popup/index.taro.vue';
 import { popupProps } from '../popup/props';
-import { Loading } from '@nutui/icons-vue';
+import { IconFont } from '@nutui/icons-vue';
 export interface menuItems {
   disable: boolean;
   loading: boolean;
@@ -48,7 +48,7 @@ export interface menuItems {
 export default create({
   components: {
     [Popup.name]: Popup,
-    [Loading.name]: Loading
+    IconFont
   },
   props: {
     ...popupProps,

+ 2 - 2
src/packages/__VUE/actionsheet/index.vue

@@ -24,7 +24,7 @@
             :key="index"
             @click="chooseItem(item, index)"
           >
-            <loading v-if="item.loading"></loading>
+            <Loading v-if="item.loading" name="loading"></Loading>
             <view v-else> {{ item[optionTag] }}</view>
             <view class="nut-action-sheet__subdesc">{{ item[optionSubTag] }}</view>
           </view>
@@ -55,7 +55,7 @@ export interface menuItems {
 export default create({
   components: {
     [Popup.name]: Popup,
-    [Loading.name]: Loading
+    Loading
   },
   props: {
     ...popupProps,