File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/ui/uploader/tile-widget/src/components/upload-loader.js
Back
import { ProgressRound } from 'ui.progressround'; /** * @memberof BX.UI.Uploader */ export const UploadLoader = { props: { progress: { type: Number, default: 0, }, width: { type: Number, default: 45, }, lineSize: { type: Number, default: 3, }, colorTrack: { type: String, default: '#eeeff0', }, colorBar: { type: String, default: '#2fc6f6', }, rotation: { type: Boolean, default: true, }, }, mounted() { this.createProgressbar(); }, watch: { progress() { this.updateProgressbar(); }, }, methods: { createProgressbar() { this.loader = new ProgressRound({ width: this.width, lineSize: this.lineSize, colorBar: this.colorBar, colorTrack: this.colorTrack, rotation: this.rotation, value: this.progress, color: ProgressRound.Color.SUCCESS, }); this.loader.renderTo(this.$refs.container); }, updateProgressbar() { if (!this.loader) { this.createProgressbar(); } this.loader.update(this.progress); }, }, template: `<span ref="container"></span>` };
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings