UNPKG

@nextcloud/vue

Version:
18 lines (17 loc) 825 B
import "../assets/index54.css"; import { n as s } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs"; const t = { name: "NcProgressBar", props: { value: { type: Number, default: 0, validator(r) { return r >= 0 && r <= 100; } }, size: { type: String, default: "small", validator(r) { return ["small", "medium"].indexOf(r) !== -1; } }, error: { type: Boolean, default: !1 } }, computed: { height() { return this.size === "small" ? "4px" : "6px"; } } }; var a = function() { var r = this, e = r._self._c; return e("progress", { staticClass: "progress-bar vue", class: { "progress-bar--error": r.error }, style: { "--progress-bar-height": r.height }, attrs: { max: "100" }, domProps: { value: r.value } }); }, l = [], o = s(t, a, l, !1, null, "b171a315", null, null); const n = o.exports; export { n as default };