ソースを参照

fix(dialog): v-html

richard1015 4 年 前
コミット
0b1162fe30
1 ファイル変更1 行追加1 行削除
  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">