浏览代码

chore(ApiTree): 移除无用的suffixIcon slot, ant的tree组件并没有提供这个slot

invalid w 1 年之前
父节点
当前提交
b78f06898f
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/components/Form/src/components/ApiTree.vue

+ 1 - 5
src/components/Form/src/components/ApiTree.vue

@@ -3,9 +3,6 @@
     <template #[item]="data" v-for="item in Object.keys($slots)">
     <template #[item]="data" v-for="item in Object.keys($slots)">
       <slot :name="item" v-bind="data || {}"></slot>
       <slot :name="item" v-bind="data || {}"></slot>
     </template>
     </template>
-    <template #suffixIcon v-if="loading">
-      <LoadingOutlined spin />
-    </template>
   </a-tree>
   </a-tree>
 </template>
 </template>
 
 
@@ -16,12 +13,11 @@
   import { isArray, isFunction } from '/@/utils/is';
   import { isArray, isFunction } from '/@/utils/is';
   import { get } from 'lodash-es';
   import { get } from 'lodash-es';
   import { propTypes } from '/@/utils/propTypes';
   import { propTypes } from '/@/utils/propTypes';
-  import { LoadingOutlined } from '@ant-design/icons-vue';
   import { DataNode } from 'ant-design-vue/es/tree';
   import { DataNode } from 'ant-design-vue/es/tree';
 
 
   export default defineComponent({
   export default defineComponent({
     name: 'ApiTree',
     name: 'ApiTree',
-    components: { ATree: Tree, LoadingOutlined },
+    components: { ATree: Tree },
     props: {
     props: {
       api: { type: Function as PropType<(arg?: Recordable<any>) => Promise<Recordable<any>>> },
       api: { type: Function as PropType<(arg?: Recordable<any>) => Promise<Recordable<any>>> },
       params: { type: Object },
       params: { type: Object },