Comparing version 1.0.29 to 1.0.30
@@ -1923,6 +1923,21 @@ 'use strict'; | ||
script.install = (app) => { | ||
app.component(script.name, script); | ||
let $data; | ||
const CDhnLoading = { | ||
install: function (Vue) { | ||
if (!$data) { | ||
$data = vue.createVNode(script, {}, { | ||
default: () => ({}) | ||
}); | ||
$data.appContext = Vue._context; | ||
vue.render($data, document.body); | ||
} | ||
$data.component.ctx.setShow = false; | ||
}, | ||
show: function () { | ||
$data.component.ctx.show(); | ||
}, | ||
hide: function () { | ||
$data.component.ctx.hide(); | ||
} | ||
}; | ||
const _CDhnLoading = script; | ||
@@ -1945,3 +1960,3 @@ const components = [ | ||
_CDhnAsyncImg, | ||
_CDhnLoading, | ||
CDhnLoading, | ||
]; | ||
@@ -1968,3 +1983,3 @@ const plugins = [_CDhnInfiniteScroll]; | ||
exports.CDhnInfiniteScroll = _CDhnInfiniteScroll; | ||
exports.CDhnLoading = _CDhnLoading; | ||
exports.CDhnLoading = CDhnLoading; | ||
exports.CDhnLottie = _CDhnLottie; | ||
@@ -1971,0 +1986,0 @@ exports.CDhnModal = _CDhnModal; |
@@ -18,3 +18,3 @@ import { App } from 'vue'; | ||
import CDhnAsyncImg from './c-dhn-async-img'; | ||
import CDhnLoading from './c-dhn-loading'; | ||
import CDhnLoading from './c-dhn-loading/src/loading'; | ||
export { CDhnDateCountdown, CDhnAvatar, CDhnCol, CDhnContainer, CDhnRow, CDhnText, CDhnTabs, CDhnSwiper, CDhnTabPane, CDhnInfiniteScroll, CDhnSeamlessScroll, CDhnModal, CDhnLottie, CDhnVap, CDhnWheel, CDhnAsyncImg, CDhnLoading, }; | ||
@@ -21,0 +21,0 @@ declare const _default: { |
@@ -1,2 +0,2 @@ | ||
import { defineComponent, reactive, watch, computed, toRefs, openBlock, createBlock, createVNode, toDisplayString, createCommentVNode, ref, toRef, Fragment, renderSlot, inject, provide, h, getCurrentInstance, onUpdated, onMounted, withDirectives, vShow, nextTick, Teleport, withModifiers } from 'vue'; | ||
import { defineComponent, reactive, watch, computed, toRefs, openBlock, createBlock, createVNode, toDisplayString, createCommentVNode, ref, toRef, Fragment, renderSlot, inject, provide, h, getCurrentInstance, onUpdated, onMounted, withDirectives, vShow, nextTick, Teleport, withModifiers, render as render$d } from 'vue'; | ||
import { getCountdownTime } from './utils/time'; | ||
@@ -1912,6 +1912,21 @@ import { Swiper, SwiperSlide } from 'dhn-swiper/vue'; | ||
script.install = (app) => { | ||
app.component(script.name, script); | ||
let $data; | ||
const CDhnLoading = { | ||
install: function (Vue) { | ||
if (!$data) { | ||
$data = createVNode(script, {}, { | ||
default: () => ({}) | ||
}); | ||
$data.appContext = Vue._context; | ||
render$d($data, document.body); | ||
} | ||
$data.component.ctx.setShow = false; | ||
}, | ||
show: function () { | ||
$data.component.ctx.show(); | ||
}, | ||
hide: function () { | ||
$data.component.ctx.hide(); | ||
} | ||
}; | ||
const _CDhnLoading = script; | ||
@@ -1934,3 +1949,3 @@ const components = [ | ||
_CDhnAsyncImg, | ||
_CDhnLoading, | ||
CDhnLoading, | ||
]; | ||
@@ -1952,2 +1967,2 @@ const plugins = [_CDhnInfiniteScroll]; | ||
export default index; | ||
export { _CDhnAsyncImg as CDhnAsyncImg, _CDhnAvatar as CDhnAvatar, _CDhnCol as CDhnCol, _CDhnContainer as CDhnContainer, _CDhnDateCountdown as CDhnDateCountdown, _CDhnInfiniteScroll as CDhnInfiniteScroll, _CDhnLoading as CDhnLoading, _CDhnLottie as CDhnLottie, _CDhnModal as CDhnModal, _CDhnRow as CDhnRow, _CDhnSeamlessScroll as CDhnSeamlessScroll, _CDhnSwiper as CDhnSwiper, _CDhnTabPane as CDhnTabPane, _CDhnTabs as CDhnTabs, _CDhnText as CDhnText, _CDhnVap as CDhnVap, _CDhnWheel as CDhnWheel }; | ||
export { _CDhnAsyncImg as CDhnAsyncImg, _CDhnAvatar as CDhnAvatar, _CDhnCol as CDhnCol, _CDhnContainer as CDhnContainer, _CDhnDateCountdown as CDhnDateCountdown, _CDhnInfiniteScroll as CDhnInfiniteScroll, CDhnLoading, _CDhnLottie as CDhnLottie, _CDhnModal as CDhnModal, _CDhnRow as CDhnRow, _CDhnSeamlessScroll as CDhnSeamlessScroll, _CDhnSwiper as CDhnSwiper, _CDhnTabPane as CDhnTabPane, _CDhnTabs as CDhnTabs, _CDhnText as CDhnText, _CDhnVap as CDhnVap, _CDhnWheel as CDhnWheel }; |
{ | ||
"name": "c-dhn-act", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "c-dhn-act component", | ||
@@ -5,0 +5,0 @@ "author": "peng.luo@asiainnovations.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240040
6415