fix #674
This commit is contained in:
parent
f498bbe31e
commit
c716d4b441
3 changed files with 9 additions and 3 deletions
|
@ -140,6 +140,8 @@
|
||||||
import tableHead from './table-head.vue';
|
import tableHead from './table-head.vue';
|
||||||
import tableBody from './table-body.vue';
|
import tableBody from './table-body.vue';
|
||||||
import tableSummary from './summary.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 Spin from '../spin/spin.vue';
|
||||||
import { oneOf, getStyle, deepCopy, getScrollBarSize } from '../../utils/assist';
|
import { oneOf, getStyle, deepCopy, getScrollBarSize } from '../../utils/assist';
|
||||||
import { on, off } from '../../utils/dom';
|
import { on, off } from '../../utils/dom';
|
||||||
|
@ -157,7 +159,7 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'Table',
|
name: 'Table',
|
||||||
mixins: [ Locale ],
|
mixins: [ Locale ],
|
||||||
components: { tableHead, tableBody, tableSummary, Spin },
|
components: { tableHead, tableBody, tableSummary, Spin, Dropdown, DropdownMenu },
|
||||||
provide () {
|
provide () {
|
||||||
return {
|
return {
|
||||||
tableRoot: this
|
tableRoot: this
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
<script>
|
<script>
|
||||||
import Icon from '../icon/icon.vue';
|
import Icon from '../icon/icon.vue';
|
||||||
import Render from '../base/render';
|
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 { oneOf, MutationObserver, findComponentsDownward } from '../../utils/assist';
|
||||||
import Emitter from '../../mixins/emitter';
|
import Emitter from '../../mixins/emitter';
|
||||||
import elementResizeDetectorMaker from 'element-resize-detector';
|
import elementResizeDetectorMaker from 'element-resize-detector';
|
||||||
|
@ -81,7 +83,7 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'Tabs',
|
name: 'Tabs',
|
||||||
mixins: [ Emitter ],
|
mixins: [ Emitter ],
|
||||||
components: { Icon, Render },
|
components: { Icon, Render, Dropdown, DropdownMenu },
|
||||||
provide () {
|
provide () {
|
||||||
return { TabsInstance: this };
|
return { TabsInstance: this };
|
||||||
},
|
},
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import TreeNode from './node.vue';
|
import TreeNode from './node.vue';
|
||||||
|
import Dropdown from '../dropdown/dropdown.vue';
|
||||||
|
import DropdownMenu from '../dropdown/dropdown-menu.vue';
|
||||||
import Emitter from '../../mixins/emitter';
|
import Emitter from '../../mixins/emitter';
|
||||||
import Locale from '../../mixins/locale';
|
import Locale from '../../mixins/locale';
|
||||||
|
|
||||||
|
@ -29,7 +31,7 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'Tree',
|
name: 'Tree',
|
||||||
mixins: [ Emitter, Locale ],
|
mixins: [ Emitter, Locale ],
|
||||||
components: { TreeNode },
|
components: { TreeNode, Dropdown, DropdownMenu },
|
||||||
provide () {
|
provide () {
|
||||||
return { TreeInstance: this };
|
return { TreeInstance: this };
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue