@thinkpixellab-public/px-vue 3.0.80 → 3.0.82
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.
|
@@ -29,9 +29,11 @@
|
|
|
29
29
|
<div :class="bem('top')">
|
|
30
30
|
<div :class="bem('close')">
|
|
31
31
|
<button :class="closeButtonClass" @click="visibleValue = false">
|
|
32
|
-
<px-icon :src="closeIcon" />
|
|
32
|
+
<px-icon :src="closeIcon" size="1.25" />
|
|
33
33
|
</button>
|
|
34
34
|
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div :class="bem('content')">
|
|
35
37
|
<slot name="default" />
|
|
36
38
|
</div>
|
|
37
39
|
<div :class="bem('bottom')">
|
|
@@ -141,8 +143,21 @@ $dur: 400ms;
|
|
|
141
143
|
width: 320px;
|
|
142
144
|
max-width: 100vw;
|
|
143
145
|
height: 100%;
|
|
144
|
-
background-color: clr(page-bg);
|
|
146
|
+
background-color: clr(page-bg, $alpha: 0.9);
|
|
147
|
+
backdrop-filter: blur(8px);
|
|
145
148
|
box-shadow: depth-shadow(15, 0.1);
|
|
149
|
+
overflow: auto;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&__top {
|
|
153
|
+
position: sticky;
|
|
154
|
+
top: 0;
|
|
155
|
+
background-color: clr(page-bg, $alpha: 0.5);
|
|
156
|
+
backdrop-filter: blur(2px);
|
|
157
|
+
z-index: 1;
|
|
158
|
+
}
|
|
159
|
+
&__content {
|
|
160
|
+
flex: 1;
|
|
146
161
|
}
|
|
147
162
|
|
|
148
163
|
&__close {
|
|
@@ -153,7 +168,7 @@ $dur: 400ms;
|
|
|
153
168
|
&__icon-button {
|
|
154
169
|
@include button-icon(
|
|
155
170
|
(
|
|
156
|
-
padding:
|
|
171
|
+
padding: 1em,
|
|
157
172
|
min-height: 0,
|
|
158
173
|
min-width: 0,
|
|
159
174
|
)
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
// mounted() {},
|
|
87
87
|
methods: {
|
|
88
88
|
keywordsToParameters(keywords, direction, reverse) {
|
|
89
|
-
const words = keywords.split(/[, ]+/).map(s => s.trim());
|
|
89
|
+
const words = (keywords || '').split(/[, ]+/).map(s => s.trim());
|
|
90
90
|
const fr = { x: 0, y: 0, scale: 1 };
|
|
91
91
|
const to = { x: 0, y: 0, scale: 1 };
|
|
92
92
|
const isHide = direction == 'hide';
|