@hyvor/design 0.0.31 → 0.0.32

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.
@@ -31,7 +31,11 @@ export let closeOnEscape = true;
31
31
  <div class="header">
32
32
 
33
33
  <div class="title">
34
- {title}
34
+ {#if $$slots.title}
35
+ <slot name="title" />
36
+ {:else}
37
+ <span>{title}</span>
38
+ {/if}
35
39
  </div>
36
40
 
37
41
  <div class="close-wrap">
@@ -94,8 +98,6 @@ export let closeOnEscape = true;
94
98
  .header {
95
99
  padding: 20px 25px;
96
100
  border-bottom: 1px solid var(--box-border);
97
- font-size: 1.2em;
98
- font-weight: 600;
99
101
  display: flex;
100
102
  align-items: center;
101
103
  }
@@ -103,6 +105,10 @@ export let closeOnEscape = true;
103
105
  .title {
104
106
  flex: 1;
105
107
  }
108
+ .title span {
109
+ font-size: 1.2em;
110
+ font-weight: 600;
111
+ }
106
112
 
107
113
  .content {
108
114
  padding: 20px 25px;
@@ -11,6 +11,7 @@ declare const __propDef: {
11
11
  [evt: string]: CustomEvent<any>;
12
12
  };
13
13
  slots: {
14
+ title: {};
14
15
  default: {};
15
16
  footer: {};
16
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyvor/design",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "scripts": {