![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ts.corals.io/frontend/node_modules/bootstrap-vue/src/components/progress/ |
import { Vue } from '../../vue' import { NAME_PROGRESS } from '../../constants/components' import { PROP_TYPE_BOOLEAN, PROP_TYPE_NUMBER_STRING, PROP_TYPE_STRING } from '../../constants/props' import { omit, sortKeys } from '../../utils/object' import { makeProp, makePropsConfigurable, pluckProps } from '../../utils/props' import { normalizeSlotMixin } from '../../mixins/normalize-slot' import { BProgressBar, props as BProgressBarProps } from './progress-bar' // --- Props --- const progressBarProps = omit(BProgressBarProps, ['label', 'labelHtml']) export const props = makePropsConfigurable( sortKeys({ ...progressBarProps, animated: makeProp(PROP_TYPE_BOOLEAN, false), height: makeProp(PROP_TYPE_STRING), max: makeProp(PROP_TYPE_NUMBER_STRING, 100), precision: makeProp(PROP_TYPE_NUMBER_STRING, 0), showProgress: makeProp(PROP_TYPE_BOOLEAN, false), showValue: makeProp(PROP_TYPE_BOOLEAN, false), striped: makeProp(PROP_TYPE_BOOLEAN, false) }), NAME_PROGRESS ) // --- Main component --- // @vue/component export const BProgress = /*#__PURE__*/ Vue.extend({ name: NAME_PROGRESS, mixins: [normalizeSlotMixin], provide() { return { bvProgress: this } }, props, computed: { progressHeight() { return { height: this.height || null } } }, render(h) { let $childNodes = this.normalizeSlot() if (!$childNodes) { $childNodes = h(BProgressBar, { props: pluckProps(progressBarProps, this.$props) }) } return h( 'div', { staticClass: 'progress', style: this.progressHeight }, [$childNodes] ) } })