cd-icon-picker 0.1.1 → 0.1.4
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 +1 -1
- package/src/Icon.vue +1 -1
- package/src/IconPicker.vue +9 -15
- package/src/SvgIcon.vue +1 -1
package/package.json
CHANGED
package/src/Icon.vue
CHANGED
package/src/IconPicker.vue
CHANGED
|
@@ -239,16 +239,16 @@ function handleCancel() {
|
|
|
239
239
|
visible.value = false;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
+
watch(
|
|
243
|
+
() => sourceType.value,
|
|
244
|
+
v => {
|
|
245
|
+
emit('update:type', v);
|
|
246
|
+
},
|
|
247
|
+
);
|
|
248
|
+
|
|
242
249
|
</script>
|
|
243
|
-
<style
|
|
244
|
-
.cd-icon-picker {
|
|
245
|
-
&-popover {
|
|
246
|
-
.scrollbar {
|
|
247
|
-
height: 220px;
|
|
248
|
-
overflow: auto;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
250
|
+
<style>
|
|
251
|
+
.cd-icon-picker-popover .scrollbar { height: 220px; overflow: auto; }
|
|
252
252
|
|
|
253
253
|
.cd-picker-body { display: flex; gap: 12px; padding: 12px; }
|
|
254
254
|
.cd-picker-sidebar { width: 240px; border-right: 1px solid #eee; padding-right: 12px; }
|
|
@@ -271,9 +271,3 @@ function handleCancel() {
|
|
|
271
271
|
.cd-picker-pagination { display: flex; justify-content: center; padding: 8px; }
|
|
272
272
|
.cd-picker-empty { padding: 24px; }
|
|
273
273
|
</style>
|
|
274
|
-
watch(
|
|
275
|
-
() => sourceType.value,
|
|
276
|
-
v => {
|
|
277
|
-
emit('update:type', v);
|
|
278
|
-
},
|
|
279
|
-
);
|