UNPKG

v-tables-3

Version:

Vue.js 3 grid components

56 lines (50 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _default = { name: 'RLNoResultsRow', inject: ['colspan', 'display', 'theme', 'componentsOverride', 'loading', 'loadingError', 'initialRequestSent', 'tabIndex', 'opts'], render: function render() { return this.$slots["default"]({ opts: this.opts(), colspan: this.colspan(), loading: this.loading(), loadingError: this.loadingError(), display: this.display, tabIndex: this.tabIndex(), "class": this.getClass(), tdClass: this.theme.td, initialRequestSent: this.initialRequestSent(), message: this.display(this.message), override: this.componentsOverride.noResultsRow }); }, methods: { getClass: function getClass() { if (this.loadingError()) { return 'VueTables__error'; } if (this.loading()) { return 'VueTables__loading'; } return 'VueTables__no-results'; } }, computed: { message: function message() { if (this.loadingError()) { return 'loadingError'; } if (this.loading()) { return 'loading'; } if (!this.opts().sendInitialRequest && !this.initialRequestSent()) { return 'noRequest'; } return 'noResults'; } } }; exports["default"] = _default;