Unverified Commit 845bf259 authored by Jack's avatar Jack Committed by GitHub

把block改为template (#1266)

parent 27424053
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
striped && stripedActive ? 'u-striped-active' : '' striped && stripedActive ? 'u-striped-active' : ''
]" class="u-active" :style="[progressStyle]"> ]" class="u-active" :style="[progressStyle]">
<slot v-if="$slots.default || $slots.$default" /> <slot v-if="$slots.default || $slots.$default" />
<block v-else-if="showPercent"> <template v-else-if="showPercent">
{{percent + '%'}} {{percent + '%'}}
</block> </template>
</view> </view>
</view> </view>
</template> </template>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../libs/css/style.components.scss"; @import "../../libs/css/style.components.scss";
.u-progress { .u-progress {
overflow: hidden; overflow: hidden;
height: 15px; height: 15px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment