123456789101112131415161718192021222324252627282930313233 |
- import { getParent, isEmpty } from '../utils'
- export default {
- data() {
- return {
- Parent: null,
- }
- },
- computed: {
- parent() {
- return this.getParent() || this.Parent || {};
- },
- hasParent() {
- return !isEmpty(this.parent)
- }
- },
- mounted() {
- this.Parent = this.getParent()
- },
- methods: {
- getParent() {
- if (!this.ComponentName) {
- return null
- }
- return getParent.call(this, this.ComponentName, this.Keys)
- }
- }
- }
|