@studio-west/component-sw 0.8.6 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +4 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -97,7 +97,7 @@ const darkMode = () => {
97
97
  | `message` | `String` | Само сообщение. |
98
98
  | `duration` | `Number` | Время отображения в миллисекундах. |
99
99
  | `before` | `String` | Название svg в спрайте загружаемое в начале. |
100
- | `after` | `String` | Название svg в спрайте загружаемое в конце. |
100
+ | `after` | `String` | Название svg в спрайте загружаемое в конце (кнопка закрыть). |
101
101
 
102
102
  ### Слоты / Slots
103
103
 
@@ -109,16 +109,14 @@ const darkMode = () => {
109
109
 
110
110
  ```js
111
111
  // .js addons
112
- import { Alert } from "@studio-west/component-sw"
113
- import Button from '@studio-west/SwButton.vue'
112
+ import { Alert, components } from "@studio-west/component-sw"
114
113
  import { h } from 'vue'
115
- Alert({message: 'Message', type: 'danger', duration:10000, before:'bell', footer: h(Button, { onClick: () => console.log('Клик по кнопке в футере') }, () => 'OK')})
114
+ Alert({message: 'Message', type: 'danger', duration:10000, before:'bell', footer: h(components.SwButton, { onClick: () => console.log('Клик по кнопке в футере') }, () => 'OK')})
116
115
 
117
116
  // Composition API else <script setup>:
118
117
  import { inject, h } from "vue"
119
- import Icon from '@studio-west/SwgIcon.vue'
120
118
  const Alert = inject('Alert')
121
- Alert({message: 'Alarm!', type: 'warning', suffix: h(Icon, { name: 'info-circle' })})
119
+ Alert({message: 'Alarm!', type: 'warning', suffix: h(components.SwgIcon, { name: 'info-circle' })})
122
120
  //Options API:
123
121
  this.$Alert({message: 'Welcome!', type: 'success', prefix: 'Дополнительная информация'});
124
122
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studio-west/component-sw",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Vue components of Component SW collection.",
5
5
  "type": "module",
6
6
  "keywords": [