@bildvitta/quasar-ui-asteroid 3.15.0-beta.12 → 3.15.0-beta.13

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.15.0-beta.12",
4
+ "version": "3.15.0-beta.13",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -139,9 +139,27 @@ const primaryKey = computed(() => {
139
139
  return props.splitName in fullList.value ? props.splitName : Object.keys(fullList.value)?.[0]
140
140
  })
141
141
 
142
+ const defaultButtonPropsList = computed(() => {
143
+ const defaultButtonPropsList = {
144
+ useHoverOnWhiteColor: true,
145
+ useLabelOnSmallScreen: false
146
+ }
147
+
148
+ const normalizedButtonPropsList = {}
149
+
150
+ for (const key in formattedList.value.buttonsList) {
151
+ normalizedButtonPropsList[key] = {
152
+ ...defaultButtonPropsList,
153
+ ...formattedList.value.buttonsList[key]
154
+ }
155
+ }
156
+
157
+ return normalizedButtonPropsList
158
+ })
159
+
142
160
  const btnDropdownProps = computed(() => {
143
161
  return {
144
- buttonsPropsList: formattedList.value.buttonsList,
162
+ buttonsPropsList: defaultButtonPropsList.value,
145
163
  disable: props.disable,
146
164
  useSplit: hasSplit.value
147
165
  }
@@ -15,7 +15,6 @@ export default function useOptionsActions ({ props, color }) {
15
15
  options: {
16
16
  color,
17
17
  iconRight: 'sym_r_more_vert',
18
- useLabelOnSmallScreen: false,
19
18
  ...props.buttonProps,
20
19
  label: getLabel({ useLabel: props.useLabel, label: 'Opções' }) // label não pode ser sobrescrita.
21
20
  }