@sdata/web-vue 4.7.0 → 4.7.2

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.
@@ -117,7 +117,8 @@ var ellipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
117
117
  const nextPadding = `${computedStyle.paddingTop} ${computedStyle.paddingRight} ${computedStyle.paddingBottom} ${computedStyle.paddingLeft}`;
118
118
  if (nextHtml !== measurementHtml.value) measurementHtml.value = nextHtml;
119
119
  if (nextText !== text.value) text.value = nextText;
120
- if (triggerElement.clientWidth !== measurementWidth.value) measurementWidth.value = triggerElement.clientWidth;
120
+ const paddingBoxWidth = triggerElement.getBoundingClientRect().width - (parseFloat(computedStyle.borderLeftWidth) || 0) - (parseFloat(computedStyle.borderRightWidth) || 0);
121
+ if (paddingBoxWidth !== measurementWidth.value) measurementWidth.value = paddingBoxWidth;
121
122
  if (nextPadding !== measurementPadding.value) measurementPadding.value = nextPadding;
122
123
  }
123
124
  let measurementSettled = false;
package/es/index.css CHANGED
@@ -9962,6 +9962,7 @@ body.sd-tour-active .sd-tour-popover * {
9962
9962
  }
9963
9963
  .sd-radio-group-button {
9964
9964
  display: inline-flex;
9965
+ width: fit-content;
9965
9966
  padding: 1.5px;
9966
9967
  line-height: 26px;
9967
9968
  background-color: var(--sd-color-fill-2);
@@ -126,6 +126,7 @@
126
126
  }
127
127
  .sd-radio-group-button {
128
128
  display: inline-flex;
129
+ width: fit-content;
129
130
  padding: 1.5px;
130
131
  line-height: 26px;
131
132
  background-color: var(--sd-color-fill-2);
@@ -144,6 +144,7 @@ $radio-prefix-cls: string.unquote('#{theme.$prefix}-radio');
144
144
  // button type
145
145
  &-button {
146
146
  display: inline-flex;
147
+ width: fit-content;
147
148
  padding: ($radio-button-spacing * 0.5);
148
149
  line-height: $radio-size-default-height - $radio-button-spacing * 2;
149
150
  background-color: $radio-group-button-color-bg;
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@sdata/web-vue",
5
- "version": "4.6.0",
5
+ "version": "4.7.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdata/web-vue",
3
- "version": "4.7.0",
3
+ "version": "4.7.2",
4
4
  "description": "SD Design Vue: A Vue.js 3 UI Library",
5
5
  "keywords": [
6
6
  "sd",