UNPKG

vimo-dt

Version:

A Vue2.x UI Project For Mobile & HyBrid

35 lines (29 loc) 814 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _lodash = require('lodash.kebabcase'); var _lodash2 = _interopRequireDefault(_lodash); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { props: { mode: { type: String, default: function _default() { return this.$config && this.$config.get('mode', 'ios') || 'ios'; } }, color: String }, computed: { $_name: function $_name() { return (0, _lodash2.default)(this.$options.name); }, modeClass: function modeClass() { return this.$_name + '-' + this.mode; }, colorClass: function colorClass() { return this.color ? this.$_name + '-' + this.mode + '-' + this.color : ''; } } };