Browse Source

fix(dialog): v-html

richard1015 4 years ago
parent
commit
0b1162fe30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/dialog/index.vue

+ 1 - 1
src/packages/dialog/index.vue

@@ -16,7 +16,7 @@
 
       <view class="nut-dialog__content" :style="{ textAlign }">
         <slot v-if="$slots.default" name="default"></slot>
-        <template v-else>{{ content }}</template>
+        <view v-else v-html="content"></view>
       </view>
 
       <view class="nut-dialog__footer" v-if="!noFooter">