@bagelink/vue 1.15.5 → 1.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +10 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/dialog/Dialog.vue +4 -2
package/package.json
CHANGED
package/src/dialog/Dialog.vue
CHANGED
|
@@ -17,6 +17,7 @@ const props = withDefaults(defineProps<{
|
|
|
17
17
|
flat?: boolean
|
|
18
18
|
thin?: boolean
|
|
19
19
|
centerTitle?: boolean
|
|
20
|
+
ellipsisTitle?: boolean
|
|
20
21
|
closePlacement?: 'header-end' | 'header-start' | 'overlay-start' | 'overlay-end' | 'none'
|
|
21
22
|
}>(), {
|
|
22
23
|
width: 'm',
|
|
@@ -25,6 +26,7 @@ const props = withDefaults(defineProps<{
|
|
|
25
26
|
flat: true,
|
|
26
27
|
thin: false,
|
|
27
28
|
centerTitle: false,
|
|
29
|
+
ellipsisTitle: false,
|
|
28
30
|
closePlacement: 'header-end'
|
|
29
31
|
})
|
|
30
32
|
|
|
@@ -122,8 +124,8 @@ defineExpose({ close })
|
|
|
122
124
|
class="dialog-close" thin @click="close"
|
|
123
125
|
/>
|
|
124
126
|
<h3
|
|
125
|
-
v-if="title" class="dialog-title m-0 txt20 semi w-100p
|
|
126
|
-
:class="{ 'txt-center': centerTitle }"
|
|
127
|
+
v-if="title" class="dialog-title m-0 txt20 semi w-100p"
|
|
128
|
+
:class="{ 'txt-center balance': centerTitle, 'word-break-all': !centerTitle, 'ellipsis-1': ellipsisTitle }"
|
|
127
129
|
>
|
|
128
130
|
{{ title }}
|
|
129
131
|
</h3>
|