This commit is contained in:
梁灏 2020-10-13 14:38:48 +08:00
parent f498bbe31e
commit c716d4b441
3 changed files with 9 additions and 3 deletions

View file

@ -140,6 +140,8 @@
import tableHead from './table-head.vue';
import tableBody from './table-body.vue';
import tableSummary from './summary.vue';
import Dropdown from '../dropdown/dropdown.vue';
import DropdownMenu from '../dropdown/dropdown-menu.vue';
import Spin from '../spin/spin.vue';
import { oneOf, getStyle, deepCopy, getScrollBarSize } from '../../utils/assist';
import { on, off } from '../../utils/dom';
@ -157,7 +159,7 @@
export default {
name: 'Table',
mixins: [ Locale ],
components: { tableHead, tableBody, tableSummary, Spin },
components: { tableHead, tableBody, tableSummary, Spin, Dropdown, DropdownMenu },
provide () {
return {
tableRoot: this

View file

@ -50,6 +50,8 @@
<script>
import Icon from '../icon/icon.vue';
import Render from '../base/render';
import Dropdown from '../dropdown/dropdown.vue';
import DropdownMenu from '../dropdown/dropdown-menu.vue';
import { oneOf, MutationObserver, findComponentsDownward } from '../../utils/assist';
import Emitter from '../../mixins/emitter';
import elementResizeDetectorMaker from 'element-resize-detector';
@ -81,7 +83,7 @@
export default {
name: 'Tabs',
mixins: [ Emitter ],
components: { Icon, Render },
components: { Icon, Render, Dropdown, DropdownMenu },
provide () {
return { TabsInstance: this };
},

View file

@ -21,6 +21,8 @@
</template>
<script>
import TreeNode from './node.vue';
import Dropdown from '../dropdown/dropdown.vue';
import DropdownMenu from '../dropdown/dropdown-menu.vue';
import Emitter from '../../mixins/emitter';
import Locale from '../../mixins/locale';
@ -29,7 +31,7 @@
export default {
name: 'Tree',
mixins: [ Emitter, Locale ],
components: { TreeNode },
components: { TreeNode, Dropdown, DropdownMenu },
provide () {
return { TreeInstance: this };
},