vft 0.0.475 → 0.0.476

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, ref as t, onMounted as u, nextTick as a, createElementBlock as _, openBlock as v, normalizeClass as w, unref as g } from "vue";
1
+ import { defineComponent as n, ref as t, onMounted as u, nextTick as a, createElementBlock as _, openBlock as w, normalizeClass as v, unref as g } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -16,10 +16,10 @@ const b = ["src"], k = n({
16
16
  frameSrc: {}
17
17
  },
18
18
  emits: ["loaded"],
19
- setup(i, { expose: m, emit: s }) {
20
- const l = s, c = h("iframe-page"), e = t(), o = t(!0), r = () => {
19
+ setup(i, { expose: s, emit: l }) {
20
+ const m = l, c = h("iframe-page"), e = t(), o = t(!0), r = () => {
21
21
  a(() => {
22
- o.value = !1, l("loaded");
22
+ o.value = !1, m("loaded");
23
23
  });
24
24
  }, f = () => {
25
25
  r();
@@ -33,16 +33,16 @@ const b = ["src"], k = n({
33
33
  o.value = !0, a(() => {
34
34
  p();
35
35
  });
36
- }), m({
36
+ }), s({
37
37
  isLoading: o
38
- }), (d, x) => (v(), _("iframe", {
38
+ }), (d, x) => (w(), _("iframe", {
39
39
  ref_key: "iframeRef",
40
40
  ref: e,
41
- sandbox: "allow-scripts allow-same-origin allow-top-navigation allow-modals allow-forms allow-top-navigation-by-user-activation",
41
+ sandbox: "allow-scripts allow-popups allow-same-origin allow-top-navigation allow-modals allow-forms allow-top-navigation-by-user-activation",
42
42
  referrerPolicy: "no-referrer-when-downgrade",
43
43
  frameborder: "0",
44
44
  style: { border: "none", outline: "none" },
45
- class: w(g(c).b()),
45
+ class: v(g(c).b()),
46
46
  src: i.frameSrc,
47
47
  onLoad: r,
48
48
  onError: f
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.475",
3
+ "version": "0.0.476",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -1,4 +1,4 @@
1
- const o = "0.0.475";
1
+ const o = "0.0.476";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("lodash-es");require("../form/index.cjs");const d=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const m=["src"],p=e.defineComponent({name:"vft-iframe-page"}),_=e.defineComponent({...p,props:{frameSrc:{}},emits:["loaded"],setup(a,{expose:t,emit:i}){const s=i,l=d.useNamespace("iframe-page"),r=e.ref(),o=e.ref(!0),n=()=>{e.nextTick(()=>{o.value=!1,s("loaded")})},c=()=>{n()},u=()=>{if(!r.value)return;r.value?.contentDocument?.readyState==="complete"&&setTimeout(()=>{n()},1e3)};return e.onMounted(()=>{o.value=!0,e.nextTick(()=>{u()})}),t({isLoading:o}),(f,v)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"iframeRef",ref:r,sandbox:"allow-scripts allow-same-origin allow-top-navigation allow-modals allow-forms allow-top-navigation-by-user-activation",referrerPolicy:"no-referrer-when-downgrade",frameborder:"0",style:{border:"none",outline:"none"},class:e.normalizeClass(e.unref(l).b()),src:a.frameSrc,onLoad:n,onError:c},null,42,m))}});exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("@vueuse/core");require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("lodash-es");require("../form/index.cjs");const d=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const m=["src"],p=e.defineComponent({name:"vft-iframe-page"}),_=e.defineComponent({...p,props:{frameSrc:{}},emits:["loaded"],setup(a,{expose:t,emit:i}){const s=i,l=d.useNamespace("iframe-page"),r=e.ref(),o=e.ref(!0),n=()=>{e.nextTick(()=>{o.value=!1,s("loaded")})},c=()=>{n()},u=()=>{if(!r.value)return;r.value?.contentDocument?.readyState==="complete"&&setTimeout(()=>{n()},1e3)};return e.onMounted(()=>{o.value=!0,e.nextTick(()=>{u()})}),t({isLoading:o}),(f,v)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"iframeRef",ref:r,sandbox:"allow-scripts allow-popups allow-same-origin allow-top-navigation allow-modals allow-forms allow-top-navigation-by-user-activation",referrerPolicy:"no-referrer-when-downgrade",frameborder:"0",style:{border:"none",outline:"none"},class:e.normalizeClass(e.unref(l).b()),src:a.frameSrc,onLoad:n,onError:c},null,42,m))}});exports.default=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.475";exports.version=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.476";exports.version=e;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "vft",
3
- "version": "0.0.475",
3
+ "version": "0.0.476",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vft",
3
- "version": "0.0.475",
3
+ "version": "0.0.476",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -56,12 +56,12 @@
56
56
  "resize-detector": "0.3.0",
57
57
  "sortablejs": "1.15.0",
58
58
  "photoswipe": "5.4.4",
59
- "@vft/store": "0.0.63",
60
- "@vft/utils": "0.0.151",
61
59
  "@vft/router": "0.0.71",
60
+ "@vft/utils": "0.0.151",
61
+ "@vft/store": "0.0.63",
62
+ "@vft/constants": "0.0.75",
62
63
  "@vft/use": "0.0.92",
63
- "@vft/directives": "0.0.36",
64
- "@vft/constants": "0.0.75"
64
+ "@vft/directives": "0.0.36"
65
65
  },
66
66
  "vetur": {
67
67
  "tags": "tags.json",