2 次代码提交 c5bf8b17a3 ... 3d09102cee

作者 SHA1 备注 提交日期
  晓晓晓晓丶vv 3d09102cee 🎨 chore(account): 下拉框label文案修改 4 年之前
  晓晓晓晓丶vv 0a1cde872b 🎨 chore(confirm-button/directive): 优化二次确认弹窗 4 年之前
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      src/components/confirm-button/index.vue
  2. 1 0
      src/plugins/vue-confirm.ts
  3. 1 1
      src/views/account/account.vue

+ 1 - 0
src/components/confirm-button/index.vue

@@ -40,6 +40,7 @@ const ConfirmButton = defineComponent({
         icon: createVNode(ExclamationCircleOutlined),
         title: props.confirmTitle,
         content: props.confirmContent,
+        okType: "danger",
         onOk: () => {
           emit("click");
         },

+ 1 - 0
src/plugins/vue-confirm.ts

@@ -9,6 +9,7 @@ const confirmEvent = (binding: DirectiveBinding) => {
     title: "请确认您的操作",
     content: "确定删除该内容吗?",
     icon: createVNode(ExclamationCircleOutlined),
+    okType: "danger",
     onOk: () => binding.value.call(),
   });
 };

+ 1 - 1
src/views/account/account.vue

@@ -5,7 +5,7 @@
               v-model:loading="searching"
               @confirm="onSearch">
       <div class="tool-bar-item">
-        <p class="label">平台</p>
+        <p class="label">小说平台</p>
         <a-select class="full-width"
                   v-model:value="query.platform">
           <a-select-option v-for="platform in platforms"