34 lines
811 B
JavaScript
34 lines
811 B
JavaScript
|
"use strict";
|
||
|
const common_vendor = require("../common/vendor.js");
|
||
|
const _sfc_main = {
|
||
|
name: "download-progress",
|
||
|
props: {
|
||
|
progress: {
|
||
|
type: Number,
|
||
|
default: 0
|
||
|
},
|
||
|
isShow: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
hintText: {
|
||
|
type: String,
|
||
|
default: "下载中..."
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {};
|
||
|
}
|
||
|
};
|
||
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||
|
return common_vendor.e({
|
||
|
a: $props.isShow
|
||
|
}, $props.isShow ? {
|
||
|
b: common_vendor.t($props.hintText),
|
||
|
c: common_vendor.t($props.progress)
|
||
|
} : {});
|
||
|
}
|
||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||
|
tt.createComponent(Component);
|
||
|
//# sourceMappingURL=../../.sourcemap/mp-toutiao/components/download-progress.js.map
|