Browse Source

w-dialog增加title插槽

main
likunming 1 month ago
parent
commit
3d67440883
  1. 2
      io.sc.platform.core.frontend/package.json
  2. 5
      io.sc.platform.core.frontend/src/platform/components/dialog/WDialog.vue

2
io.sc.platform.core.frontend/package.json

@ -1,6 +1,6 @@
{ {
"name": "platform-core", "name": "platform-core",
"version": "8.2.58", "version": "8.2.59",
"description": "前端核心包,用于快速构建前端的脚手架", "description": "前端核心包,用于快速构建前端的脚手架",
"//main": "库的主文件", "//main": "库的主文件",
"main": "dist/platform-core.js", "main": "dist/platform-core.js",

5
io.sc.platform.core.frontend/src/platform/components/dialog/WDialog.vue

@ -18,7 +18,10 @@
<q-card :style="generateDialogStyle"> <q-card :style="generateDialogStyle">
<q-card-section style="height: 59px"> <q-card-section style="height: 59px">
<div class="flex justify-between"> <div class="flex justify-between">
<div class="text-h6">{{ titleRef }}</div> <div v-if="title" class="text-h6">{{ titleRef }}</div>
<template v-else>
<slot name="title"></slot>
</template>
<div class="flex justify-end gap-4"> <div class="flex justify-end gap-4">
<template v-if="buttons && buttons.length > 0"> <template v-if="buttons && buttons.length > 0">
<template v-for="(btn, index) in buttons as any" :key="index"> <template v-for="(btn, index) in buttons as any" :key="index">

Loading…
Cancel
Save