lew-ui 1.4.6 → 1.4.7

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/dist/lew.es.ts CHANGED
@@ -10652,7 +10652,7 @@ const _sfc_main$b = defineComponent({
10652
10652
  }
10653
10653
  });
10654
10654
  const getStyle2 = computed(() => {
10655
- const { round: round2, type, color } = props;
10655
+ const { round: round2, type, color, loading: loading2 } = props;
10656
10656
  let styleObj = {};
10657
10657
  let _color = getColorType(color);
10658
10658
  switch (type) {
@@ -10675,7 +10675,19 @@ const _sfc_main$b = defineComponent({
10675
10675
  styleObj.color = `var(--lew-color-${_color}-dark`;
10676
10676
  styleObj.boxShadow = "none";
10677
10677
  styleObj.minWidth = "auto";
10678
- styleObj.padding = "0px 8px";
10678
+ if (_loading.value || props.loading) {
10679
+ if (props.size === "small") {
10680
+ styleObj.padding = "0px 8px 0px 24px";
10681
+ }
10682
+ if (props.size === "medium") {
10683
+ styleObj.padding = "0px 8px 0px 30px";
10684
+ }
10685
+ if (props.size === "large") {
10686
+ styleObj.padding = "0px 8px 0px 36px";
10687
+ }
10688
+ } else {
10689
+ styleObj.padding = "0px 8px";
10690
+ }
10679
10691
  break;
10680
10692
  default:
10681
10693
  styleObj.backgroundColor = `var(--lew-color-${_color})`;