UNPKG

ten-design-vue

Version:

ten-vue

37 lines (34 loc) 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _helper = require("../utils/helper"); var _default = { data: function data() { return { parentForm: null }; }, props: { /** * @ignore ignore */ size: String }, computed: { // 尺寸 curSize: function curSize() { return this.size || (0, _helper.getValueByPath)(this.parentForm, 'size'); } }, mounted: function mounted() { this.parentForm = this.getParentForm(); }, methods: { getParentForm: function getParentForm() { return (0, _helper.findParentComponent)(this, 'ten-form'); } } }; exports.default = _default;