wave-ui 3.1.2 → 3.1.3

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": "wave-ui",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "homepage": "https://antoniandre.github.io/wave-ui",
@@ -1,32 +1,32 @@
1
1
  <template lang="pug">
2
- .w-confirm
3
- w-menu(v-model="showPopup" v-bind="wMenuProps")
4
- template(#activator="{ on }")
5
- w-button.w-confirm__button(v-bind="{ ...$attrs, ...buttonProps, ...(disablePrompt ? {} : on) }")
6
- slot
7
- w-flex(:column="!inline" align-center)
8
- div
9
- slot(name="question") {{ question }}
10
- .w-flex.justify-end(:class="inline ? 'ml2' : 'mt2'")
11
- w-button.mr2(
12
- v-if="cancel !== false"
13
- v-bind="cancelButtonProps"
14
- :bg-color="(cancelButton || {}).bgColor || 'error'"
15
- @keyup.escape="!persistent && onCancel()"
16
- @click="onCancel")
17
- slot(name="cancel") {{ cancelButton.label }}
18
- w-button(
19
- v-bind="confirmButtonProps"
20
- :bg-color="(confirmButton || {}).bgColor || 'success'"
21
- v-focus
22
- @keyup.escape="!persistent && onCancel()"
23
- @click="onConfirm")
24
- slot(name="confirm") {{ confirmButton.label }}
2
+ w-menu(v-model="showPopup" v-bind="wMenuProps")
3
+ template(#activator="{ on }")
4
+ w-button.w-confirm(v-bind="{ ...$attrs, ...buttonProps, ...(disablePrompt ? {} : on) }")
5
+ slot
6
+ w-flex(:column="!inline" align-center)
7
+ div
8
+ slot(name="question") {{ question }}
9
+ .w-flex.justify-end(:class="inline ? 'ml2' : 'mt2'")
10
+ w-button.mr2(
11
+ v-if="cancel !== false"
12
+ v-bind="cancelButtonProps"
13
+ :bg-color="(cancelButton || {}).bgColor || 'error'"
14
+ @keyup.escape="!persistent && onCancel()"
15
+ @click="onCancel")
16
+ slot(name="cancel") {{ cancelButton.label }}
17
+ w-button(
18
+ v-bind="confirmButtonProps"
19
+ :bg-color="(confirmButton || {}).bgColor || 'success'"
20
+ v-focus
21
+ @keyup.escape="!persistent && onCancel()"
22
+ @click="onConfirm")
23
+ slot(name="confirm") {{ confirmButton.label }}
25
24
  </template>
26
25
 
27
26
  <script>
28
27
  export default {
29
28
  name: 'w-confirm',
29
+ inheritAttrs: false, // The attrs are only bound to the button, not the w-menu.
30
30
  props: {
31
31
  // Main button props.
32
32
  bgColor: { type: String },