doph-js 0.0.62 → 0.0.64

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/README.md CHANGED
@@ -78,4 +78,40 @@ https://github.com/cameronhimself/vue-drag-drop
78
78
  - items : массив нод
79
79
  - noSelect : boolean - не выделять ноды
80
80
  - multiSelect: boolean - множественное выделение нод
81
- - expanded: boolean - все ветви по умолчанию развёрнуты
81
+ - expanded: boolean - все ветви по умолчанию развёрнуты
82
+
83
+ ---
84
+
85
+ ### DModal
86
+ Диалоговое окно
87
+
88
+ ---
89
+
90
+ ### DContextMenu
91
+ Контекстное меню
92
+
93
+ ---
94
+
95
+ ### DDropdown
96
+ Выпадающее меню
97
+
98
+ ---
99
+
100
+ ### Свои диалоги Alert и Confirm
101
+
102
+ - Установите <dialog-wrapper /> в App.vue, например
103
+ - Там же импортируйте import {DialogWrapper} from "vue3-promise-dialog";
104
+ - В нужном компоненте импортируйте alert и confirm их doph-js
105
+ Пример использования
106
+
107
+ ```
108
+ const alertDialogClick = async () => {
109
+ await alert('Предупреждение', 'Диалог предупреждения')
110
+ }
111
+
112
+ const confirmDialogClick = async () => {
113
+ if (await confirm('Подтверждение', 'Подтвердить действие?')) {
114
+ await alert('Предупреждение', 'Действие подтверждено')
115
+ }
116
+ }
117
+ ```