webcake-ui-kit 1.3.13 → 1.3.14
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/package.json
CHANGED
|
@@ -106,15 +106,13 @@
|
|
|
106
106
|
/>
|
|
107
107
|
</slot>
|
|
108
108
|
<slot v-if="showEmpty" name="empty">
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
</template>
|
|
117
|
-
</Empty>
|
|
109
|
+
<div class="ui-select__empty">
|
|
110
|
+
<img
|
|
111
|
+
src="https://content.pancake.vn/web-media-262/2e/2a/0c/96/c2b58ae9f06c4dc2a3b83016e56d5b4132ff40637862ba23435e43a0-w:224-h:224-l:3927-t:image/png.png"
|
|
112
|
+
alt=""
|
|
113
|
+
/>
|
|
114
|
+
<span>{{ emptyText }}</span>
|
|
115
|
+
</div>
|
|
118
116
|
</slot>
|
|
119
117
|
<div v-if="hasContentFooter()">
|
|
120
118
|
<slot name="contentFooter"></slot>
|
|
@@ -142,12 +140,11 @@ import Menu from '../menu/Menu.vue'
|
|
|
142
140
|
import SelectOption from '../select-option/SelectOption.vue'
|
|
143
141
|
import Spinner from '../spinner/Spinner.vue'
|
|
144
142
|
import Tag from '../tag/Tag.vue'
|
|
145
|
-
import Empty from '../empty/Empty.vue'
|
|
146
143
|
|
|
147
144
|
export default {
|
|
148
145
|
name: 'Select',
|
|
149
146
|
|
|
150
|
-
components: { Menu, SelectOption, Spinner, WkiChevronDown, Tag
|
|
147
|
+
components: { Menu, SelectOption, Spinner, WkiChevronDown, Tag },
|
|
151
148
|
|
|
152
149
|
provide() {
|
|
153
150
|
return { select: this }
|
|
@@ -242,6 +239,10 @@ export default {
|
|
|
242
239
|
placement: {
|
|
243
240
|
type: String,
|
|
244
241
|
default: 'bottom-start'
|
|
242
|
+
},
|
|
243
|
+
emptyText: {
|
|
244
|
+
type: String,
|
|
245
|
+
default: 'Chưa có dữ liệu'
|
|
245
246
|
}
|
|
246
247
|
},
|
|
247
248
|
|
|
@@ -264,13 +264,23 @@
|
|
|
264
264
|
border-left: 1px solid var(--border-primary);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
.ui-
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
.ui-select__empty {
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-direction: column;
|
|
270
|
+
align-items: center;
|
|
271
|
+
gap: 2px;
|
|
272
|
+
padding: 12px;
|
|
270
273
|
}
|
|
271
274
|
|
|
272
|
-
.ui-
|
|
273
|
-
width:
|
|
274
|
-
height:
|
|
275
|
-
object-fit:
|
|
275
|
+
.ui-select__empty img {
|
|
276
|
+
width: 56px;
|
|
277
|
+
height: 56px;
|
|
278
|
+
object-fit: contain;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ui-select__empty span {
|
|
282
|
+
font-family: var(--font-family-body);
|
|
283
|
+
font-size: 12px;
|
|
284
|
+
line-height: 1.4;
|
|
285
|
+
color: var(--muted-fg);
|
|
276
286
|
}
|