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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-icon-picker",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Vue 3 icon picker supporting TDesign & RemixIcon, with custom SVG via :diy-icon.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/Icon.vue CHANGED
@@ -49,7 +49,7 @@ export default defineComponent({
49
49
  },
50
50
  });
51
51
  </script>
52
- <style lang="scss" scoped>
52
+ <style scoped>
53
53
  .svg-icon-spin { animation: loadingCircle 1s infinite linear; }
54
54
  @keyframes loadingCircle { 100% { transform: rotate(360deg); } }
55
55
  </style>
@@ -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 lang="scss">
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
- );
package/src/SvgIcon.vue CHANGED
@@ -43,7 +43,7 @@
43
43
  },
44
44
  });
45
45
  </script>
46
- <style lang="scss" scoped>
46
+ <style scoped>
47
47
  .cd-svg-icon {
48
48
  display: inline-block;
49
49
  overflow: hidden;