@xenknight/framework7-vue 0.0.3 → 0.0.6
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/components/app.d.ts +5 -0
- package/components/app.js +4 -0
- package/components/popover.d.ts +0 -5
- package/components/popover.js +5 -12
- package/framework7-vue.js +2 -2
- package/package.json +1 -1
package/components/app.d.ts
CHANGED
package/components/app.js
CHANGED
package/components/popover.d.ts
CHANGED
package/components/popover.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
2
2
|
const _hoisted_1 = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "popover-arrow"
|
|
5
|
-
};
|
|
6
|
-
const _hoisted_2 = {
|
|
7
3
|
class: "popover-inner"
|
|
8
4
|
};
|
|
9
5
|
function render(_ctx, _cache) {
|
|
10
6
|
return _openBlock(), _createElementBlock("div", {
|
|
11
7
|
ref: "elRef",
|
|
12
8
|
class: _normalizeClass(_ctx.classes)
|
|
13
|
-
}, [
|
|
9
|
+
}, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")])], 2);
|
|
14
10
|
}
|
|
15
11
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from 'vue';
|
|
16
12
|
import { classNames } from '../shared/utils.js';
|
|
@@ -30,10 +26,6 @@ export default {
|
|
|
30
26
|
type: [String, Object],
|
|
31
27
|
default: undefined
|
|
32
28
|
},
|
|
33
|
-
arrow: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: undefined
|
|
36
|
-
},
|
|
37
29
|
backdrop: {
|
|
38
30
|
type: Boolean,
|
|
39
31
|
default: undefined
|
|
@@ -95,6 +87,9 @@ export default {
|
|
|
95
87
|
};
|
|
96
88
|
watch(() => props.opened, value => {
|
|
97
89
|
if (!f7Popover.value) return;
|
|
90
|
+
if (value === f7Popover.value.opened) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
98
93
|
if (value) {
|
|
99
94
|
f7Popover.value.open();
|
|
100
95
|
} else {
|
|
@@ -117,7 +112,6 @@ export default {
|
|
|
117
112
|
closeByBackdropClick,
|
|
118
113
|
closeByOutsideClick,
|
|
119
114
|
closeOnEscape,
|
|
120
|
-
arrow,
|
|
121
115
|
backdrop,
|
|
122
116
|
backdropEl,
|
|
123
117
|
containerEl,
|
|
@@ -127,7 +121,6 @@ export default {
|
|
|
127
121
|
if (typeof closeByBackdropClick !== 'undefined') popoverParams.closeByBackdropClick = closeByBackdropClick;
|
|
128
122
|
if (typeof closeByOutsideClick !== 'undefined') popoverParams.closeByOutsideClick = closeByOutsideClick;
|
|
129
123
|
if (typeof closeOnEscape !== 'undefined') popoverParams.closeOnEscape = closeOnEscape;
|
|
130
|
-
if (typeof arrow !== 'undefined') popoverParams.arrow = arrow;
|
|
131
124
|
if (typeof backdrop !== 'undefined') popoverParams.backdrop = backdrop;
|
|
132
125
|
if (typeof backdropEl !== 'undefined') popoverParams.backdropEl = backdropEl;
|
|
133
126
|
if (typeof containerEl !== 'undefined') popoverParams.containerEl = containerEl;
|
package/framework7-vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 Vue 0.0.
|
|
2
|
+
* Framework7 Vue 0.0.5
|
|
3
3
|
* Build full featured iOS & Android apps using Framework7 & Vue
|
|
4
4
|
* https://framework7.io/vue/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: December 19, 2025
|
|
11
11
|
*/
|
|
12
12
|
import Framework7Vue from './shared/plugin.js';
|
|
13
13
|
import { f7, f7ready, theme, setTheme } from './shared/f7.js';
|