Comparing version 1.0.35 to 1.0.36
@@ -1,45 +0,35 @@ | ||
import { defineComponent, openBlock, createBlock, Teleport, withDirectives, createVNode, withModifiers, renderSlot, vShow, createCommentVNode } from 'vue'; | ||
import { defineComponent, openBlock, createBlock, Teleport, withDirectives, createVNode, renderSlot, createCommentVNode, vShow } from 'vue'; | ||
var script = defineComponent({ | ||
name: 'CDhnModal', | ||
props: { | ||
// 控制是否展示或隐藏对话框 | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
name: 'CDhnModal', | ||
props: { | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}, | ||
// 是否显示关闭小图标 | ||
showCloseIcon: { | ||
type: Boolean, | ||
default: true | ||
computed: {}, | ||
setup(props, { emit }) { | ||
const handleClose = function () { | ||
emit('handleClose'); | ||
}; | ||
return { | ||
handleClose | ||
}; | ||
}, | ||
// 是否点击遮罩层mask关闭弹出框 | ||
clickMaskClose: { | ||
type: Boolean, | ||
default: false, | ||
require: true | ||
emits: { | ||
handleClose: null | ||
}, | ||
methods: { | ||
_handleClose() { | ||
this.handleClose(); | ||
} | ||
} | ||
}, | ||
emits: ['cancel'], | ||
setup (props, context) { | ||
const parent = { ...context }; | ||
const cancel = () => { | ||
parent.emit('cancel'); | ||
}; | ||
const handleClose = () => { | ||
context.emit('update:visible', false); | ||
}; | ||
const maskClose = () => { | ||
if (props.clickMaskClose === true) { | ||
handleClose(); | ||
} | ||
}; | ||
return { cancel, handleClose, maskClose } | ||
} | ||
}); | ||
const _hoisted_1 = { class: "c-dhn-modal_wrap" }; | ||
const _hoisted_2 = { class: "c-dhn-modal_header" }; | ||
const _hoisted_3 = { class: "c-dhn-modal_body" }; | ||
const _hoisted_4 = { | ||
const _hoisted_1 = { class: "c-dhn-modal_modal" }; | ||
const _hoisted_2 = { class: "c-dhn-modal_content" }; | ||
const _hoisted_3 = { class: "c-dhn-modal_header" }; | ||
const _hoisted_4 = { class: "c-dhn-modal_body" }; | ||
const _hoisted_5 = { | ||
key: 0, | ||
@@ -52,24 +42,16 @@ class: "c-dhn-modal_footer" | ||
withDirectives(createVNode("div", _hoisted_1, [ | ||
createVNode("div", { | ||
class: "c-dhn-modal_modal", | ||
onClick: _cache[1] || (_cache[1] = (...args) => (_ctx.maskClose && _ctx.maskClose(...args))) | ||
}), | ||
createVNode("div", { | ||
class: "c-dhn-modal_content", | ||
onClick: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"])) | ||
}, [ | ||
createVNode("div", _hoisted_2, [ | ||
createVNode("div", _hoisted_2, [ | ||
createVNode("div", _hoisted_3, [ | ||
renderSlot(_ctx.$slots, "title"), | ||
withDirectives(createVNode("i", { | ||
createVNode("button", { | ||
class: "c-dhn-modal__headerbtn", | ||
onClick: _cache[2] || (_cache[2] = (...args) => (_ctx.handleClose && _ctx.handleClose(...args))) | ||
}, null, 512 /* NEED_PATCH */), [ | ||
[vShow, _ctx.showCloseIcon] | ||
]) | ||
type: "button", | ||
onClick: _cache[1] || (_cache[1] = $event => (_ctx._handleClose())) | ||
}) | ||
]), | ||
createVNode("div", _hoisted_3, [ | ||
createVNode("div", _hoisted_4, [ | ||
renderSlot(_ctx.$slots, "default") | ||
]), | ||
(_ctx.$slots.footer) | ||
? (openBlock(), createBlock("div", _hoisted_4, [ | ||
? (openBlock(), createBlock("div", _hoisted_5, [ | ||
renderSlot(_ctx.$slots, "footer") | ||
@@ -76,0 +58,0 @@ ])) |
@@ -11,17 +11,15 @@ import { defineComponent, openBlock, createBlock } from 'vue'; | ||
}, | ||
lavContainer: { | ||
type: String, | ||
default: 'lavContainer' | ||
} | ||
}, | ||
mounted() { | ||
new Vap(Object.assign(Object.assign({}, this.options), { container: this.$refs[this.lavContainer], width: this.$refs[this.lavContainer].offsetWidth, height: this.$refs[this.lavContainer].offsetHeight, mute: true })); | ||
new Vap(Object.assign(Object.assign({}, this.options), { container: this.$refs.lavContainer, width: this.$refs.lavContainer.offsetWidth, height: this.$refs.lavContainer.offsetHeight, mute: true })); | ||
}, | ||
}); | ||
const _hoisted_1 = { | ||
style: {"width":"100%","height":"100%"}, | ||
ref: "lavContainer" | ||
}; | ||
function render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", { | ||
style: {"width":"100%","height":"100%"}, | ||
ref: _ctx.lavContainer | ||
}, null, 512 /* NEED_PATCH */)) | ||
return (openBlock(), createBlock("div", _hoisted_1, null, 512 /* NEED_PATCH */)) | ||
} | ||
@@ -28,0 +26,0 @@ |
@@ -15,15 +15,7 @@ interface VapOption { | ||
}; | ||
lavContainer: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{ | ||
options?: unknown; | ||
lavContainer?: unknown; | ||
} & { | ||
lavContainer: string; | ||
options: VapOption; | ||
} & {}>, { | ||
lavContainer: string; | ||
}>; | ||
} & {}>, {}>; | ||
export default _default; |
@@ -6,4 +6,5 @@ import { LuckyWheel } from 'vue-luck-draw/vue3'; | ||
}; | ||
console.log(LuckyWheel); | ||
const _CDhnWheel = LuckyWheel; | ||
export default _CDhnWheel; |
@@ -37,3 +37,3 @@ 'use strict'; | ||
}; | ||
var script$g = vue.defineComponent({ | ||
var script$f = vue.defineComponent({ | ||
name: "CDhnDateCountdown", | ||
@@ -95,3 +95,3 @@ props: { | ||
}; | ||
const _hoisted_5 = { | ||
const _hoisted_5$1 = { | ||
key: 0, | ||
@@ -140,3 +140,3 @@ class: "c-dhn-time" | ||
function render$c(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$b(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", _hoisted_1$4, [ | ||
@@ -155,3 +155,3 @@ vue.createVNode("ul", { | ||
(_ctx.dayLang && _ctx.type === 'horizontal') | ||
? (vue.openBlock(), vue.createBlock("em", _hoisted_5, vue.toDisplayString(_ctx.dayLang), 1 /* TEXT */)) | ||
? (vue.openBlock(), vue.createBlock("em", _hoisted_5$1, vue.toDisplayString(_ctx.dayLang), 1 /* TEXT */)) | ||
: vue.createCommentVNode("v-if", true), | ||
@@ -206,12 +206,12 @@ (_ctx.type == 'vertical') | ||
script$g.render = render$c; | ||
script$g.__file = "packages/dateCountdown/src/dateCountdown.vue"; | ||
script$f.render = render$b; | ||
script$f.__file = "packages/dateCountdown/src/dateCountdown.vue"; | ||
script$g.install = (app) => { | ||
app.component(script$g.name, script$g); | ||
script$f.install = (app) => { | ||
app.component(script$f.name, script$f); | ||
}; | ||
const _CDhnDateCountdown = script$g; | ||
const _CDhnDateCountdown = script$f; | ||
const ERROR_EVENT = "error"; | ||
var script$f = vue.defineComponent({ | ||
var script$e = vue.defineComponent({ | ||
name: "CDhnAvatar", | ||
@@ -292,3 +292,3 @@ props: { | ||
function render$b(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$a(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("span", { | ||
@@ -314,11 +314,11 @@ class: _ctx.avatarClass, | ||
script$f.render = render$b; | ||
script$f.__file = "packages/avatar/src/avatar.vue"; | ||
script$e.render = render$a; | ||
script$e.__file = "packages/avatar/src/avatar.vue"; | ||
script$f.install = (app) => { | ||
app.component(script$f.name, script$f); | ||
script$e.install = (app) => { | ||
app.component(script$e.name, script$e); | ||
}; | ||
const _CDhnAvatar = script$f; | ||
const _CDhnAvatar = script$e; | ||
var script$e = vue.defineComponent({ | ||
var script$d = vue.defineComponent({ | ||
name: "CDhnCol", | ||
@@ -365,3 +365,3 @@ props: { | ||
function render$a(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$9(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", { | ||
@@ -375,11 +375,11 @@ class: ['c-dhn-col', _ctx.classList], | ||
script$e.render = render$a; | ||
script$e.__file = "packages/col/src/col.vue"; | ||
script$d.render = render$9; | ||
script$d.__file = "packages/col/src/col.vue"; | ||
script$e.install = (app) => { | ||
app.component(script$e.name, script$e); | ||
script$d.install = (app) => { | ||
app.component(script$d.name, script$d); | ||
}; | ||
const _CDhnCol = script$e; | ||
const _CDhnCol = script$d; | ||
var script$d = vue.defineComponent({ | ||
var script$c = vue.defineComponent({ | ||
name: "CDhnContainer", | ||
@@ -390,3 +390,3 @@ }); | ||
function render$9(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$8(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("section", _hoisted_1$3, [ | ||
@@ -397,11 +397,11 @@ vue.renderSlot(_ctx.$slots, "default") | ||
script$d.render = render$9; | ||
script$d.__file = "packages/container/src/container.vue"; | ||
script$c.render = render$8; | ||
script$c.__file = "packages/container/src/container.vue"; | ||
script$d.install = (app) => { | ||
app.component(script$d.name, script$d); | ||
script$c.install = (app) => { | ||
app.component(script$c.name, script$c); | ||
}; | ||
const _CDhnContainer = script$d; | ||
const _CDhnContainer = script$c; | ||
var script$c = vue.defineComponent({ | ||
var script$b = vue.defineComponent({ | ||
name: "CDhnRow", | ||
@@ -448,3 +448,3 @@ props: { | ||
function render$8(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$7(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", { | ||
@@ -462,11 +462,11 @@ class: [ | ||
script$c.render = render$8; | ||
script$c.__file = "packages/row/src/row.vue"; | ||
script$b.render = render$7; | ||
script$b.__file = "packages/row/src/row.vue"; | ||
script$c.install = (app) => { | ||
app.component(script$c.name, script$c); | ||
script$b.install = (app) => { | ||
app.component(script$b.name, script$b); | ||
}; | ||
const _CDhnRow = script$c; | ||
const _CDhnRow = script$b; | ||
var script$b = vue.defineComponent({ | ||
var script$a = vue.defineComponent({ | ||
name: "CDhnText", | ||
@@ -505,3 +505,3 @@ props: { | ||
function render$7(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$6(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", { | ||
@@ -515,9 +515,9 @@ class: "c-dhn-text", | ||
script$b.render = render$7; | ||
script$b.__file = "packages/text/src/text.vue"; | ||
script$a.render = render$6; | ||
script$a.__file = "packages/text/src/text.vue"; | ||
script$b.install = (app) => { | ||
app.component(script$b.name, script$b); | ||
script$a.install = (app) => { | ||
app.component(script$a.name, script$a); | ||
}; | ||
const _CDhnText = script$b; | ||
const _CDhnText = script$a; | ||
@@ -542,3 +542,3 @@ /** | ||
var script$a = vue.defineComponent({ | ||
var script$9 = vue.defineComponent({ | ||
name: "CDhnTabNav", | ||
@@ -595,7 +595,7 @@ props: { | ||
script$a.__file = "packages/tabs/src/tab-nav.vue"; | ||
script$9.__file = "packages/tabs/src/tab-nav.vue"; | ||
var script$9 = vue.defineComponent({ | ||
var script$8 = vue.defineComponent({ | ||
name: "CDhnTabs", | ||
components: { TabNav: script$a }, | ||
components: { TabNav: script$9 }, | ||
props: { | ||
@@ -709,3 +709,3 @@ modelValue: { | ||
class: ["c-dhn-tabs__header"], | ||
}, vue.h(script$a, { | ||
}, vue.h(script$9, { | ||
currentName, | ||
@@ -725,10 +725,10 @@ panes, | ||
script$9.__file = "packages/tabs/src/tabs.vue"; | ||
script$8.__file = "packages/tabs/src/tabs.vue"; | ||
script$9.install = (app) => { | ||
app.component(script$9.name, script$9); | ||
script$8.install = (app) => { | ||
app.component(script$8.name, script$8); | ||
}; | ||
const _CDhnTabs = script$9; | ||
const _CDhnTabs = script$8; | ||
var script$8 = vue.defineComponent({ | ||
var script$7 = vue.defineComponent({ | ||
name: "CDhnSwiperNav", | ||
@@ -800,7 +800,7 @@ components: { Swiper: vue$1.Swiper, SwiperSlide: vue$1.SwiperSlide }, | ||
script$8.__file = "packages/swiper/src/swiper-nav.vue"; | ||
script$7.__file = "packages/swiper/src/swiper-nav.vue"; | ||
var script$7 = vue.defineComponent({ | ||
var script$6 = vue.defineComponent({ | ||
name: "CDhnSwiper", | ||
components: { SwiperNav: script$8 }, | ||
components: { SwiperNav: script$7 }, | ||
props: { | ||
@@ -941,3 +941,3 @@ modelValue: { | ||
}, panes.length | ||
? vue.h(script$8, { | ||
? vue.h(script$7, { | ||
currentIndex, | ||
@@ -958,10 +958,10 @@ panes, | ||
script$7.__file = "packages/swiper/src/swiper.vue"; | ||
script$6.__file = "packages/swiper/src/swiper.vue"; | ||
script$7.install = (app) => { | ||
app.component(script$7.name, script$7); | ||
script$6.install = (app) => { | ||
app.component(script$6.name, script$6); | ||
}; | ||
const _CDhnSwiper = script$7; | ||
const _CDhnSwiper = script$6; | ||
var script$6 = vue.defineComponent({ | ||
var script$5 = vue.defineComponent({ | ||
name: "CDhnTabPane", | ||
@@ -1023,3 +1023,3 @@ props: { | ||
function render$6(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$5(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (_ctx.shouldBeRender) | ||
@@ -1040,9 +1040,9 @@ ? vue.withDirectives((vue.openBlock(), vue.createBlock("div", { | ||
script$6.render = render$6; | ||
script$6.__file = "packages/tabPane/src/tab-pane.vue"; | ||
script$5.render = render$5; | ||
script$5.__file = "packages/tabPane/src/tab-pane.vue"; | ||
script$6.install = (app) => { | ||
app.component(script$6.name, script$6); | ||
script$5.install = (app) => { | ||
app.component(script$5.name, script$5); | ||
}; | ||
const _CDhnTabPane = script$6; | ||
const _CDhnTabPane = script$5; | ||
@@ -1214,3 +1214,3 @@ /*! ***************************************************************************** | ||
const copyObj = require("comutils/copyObj"); | ||
var script$5 = vue.defineComponent({ | ||
var script$4 = vue.defineComponent({ | ||
name: "CDhnSeamlessScroll", | ||
@@ -1632,3 +1632,3 @@ data() { | ||
function render$5(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$4(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", null, [ | ||
@@ -1678,52 +1678,42 @@ (_ctx.navigation) | ||
script$5.render = render$5; | ||
script$5.__file = "packages/seamlessScroll/src/seamlessScroll.vue"; | ||
script$4.render = render$4; | ||
script$4.__file = "packages/seamlessScroll/src/seamlessScroll.vue"; | ||
script$5.install = (app) => { | ||
app.component(script$5.name, script$5); | ||
script$4.install = (app) => { | ||
app.component(script$4.name, script$4); | ||
}; | ||
const _CDhnSeamlessScroll = script$5; | ||
const _CDhnSeamlessScroll = script$4; | ||
var script$4 = vue.defineComponent({ | ||
name: 'CDhnModal', | ||
props: { | ||
// 控制是否展示或隐藏对话框 | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
var script$3 = vue.defineComponent({ | ||
name: 'CDhnModal', | ||
props: { | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}, | ||
// 是否显示关闭小图标 | ||
showCloseIcon: { | ||
type: Boolean, | ||
default: true | ||
computed: {}, | ||
setup(props, { emit }) { | ||
const handleClose = function () { | ||
emit('handleClose'); | ||
}; | ||
return { | ||
handleClose | ||
}; | ||
}, | ||
// 是否点击遮罩层mask关闭弹出框 | ||
clickMaskClose: { | ||
type: Boolean, | ||
default: false, | ||
require: true | ||
emits: { | ||
handleClose: null | ||
}, | ||
methods: { | ||
_handleClose() { | ||
this.handleClose(); | ||
} | ||
} | ||
}, | ||
emits: ['cancel'], | ||
setup (props, context) { | ||
const parent = { ...context }; | ||
const cancel = () => { | ||
parent.emit('cancel'); | ||
}; | ||
const handleClose = () => { | ||
context.emit('update:visible', false); | ||
}; | ||
const maskClose = () => { | ||
if (props.clickMaskClose === true) { | ||
handleClose(); | ||
} | ||
}; | ||
return { cancel, handleClose, maskClose } | ||
} | ||
}); | ||
const _hoisted_1$2 = { class: "c-dhn-modal_wrap" }; | ||
const _hoisted_2 = { class: "c-dhn-modal_header" }; | ||
const _hoisted_3 = { class: "c-dhn-modal_body" }; | ||
const _hoisted_4 = { | ||
const _hoisted_1$2 = { class: "c-dhn-modal_modal" }; | ||
const _hoisted_2 = { class: "c-dhn-modal_content" }; | ||
const _hoisted_3 = { class: "c-dhn-modal_header" }; | ||
const _hoisted_4 = { class: "c-dhn-modal_body" }; | ||
const _hoisted_5 = { | ||
key: 0, | ||
@@ -1733,27 +1723,19 @@ class: "c-dhn-modal_footer" | ||
function render$4(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$3(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [ | ||
vue.withDirectives(vue.createVNode("div", _hoisted_1$2, [ | ||
vue.createVNode("div", { | ||
class: "c-dhn-modal_modal", | ||
onClick: _cache[1] || (_cache[1] = (...args) => (_ctx.maskClose && _ctx.maskClose(...args))) | ||
}), | ||
vue.createVNode("div", { | ||
class: "c-dhn-modal_content", | ||
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {}, ["stop"])) | ||
}, [ | ||
vue.createVNode("div", _hoisted_2, [ | ||
vue.createVNode("div", _hoisted_2, [ | ||
vue.createVNode("div", _hoisted_3, [ | ||
vue.renderSlot(_ctx.$slots, "title"), | ||
vue.withDirectives(vue.createVNode("i", { | ||
vue.createVNode("button", { | ||
class: "c-dhn-modal__headerbtn", | ||
onClick: _cache[2] || (_cache[2] = (...args) => (_ctx.handleClose && _ctx.handleClose(...args))) | ||
}, null, 512 /* NEED_PATCH */), [ | ||
[vue.vShow, _ctx.showCloseIcon] | ||
]) | ||
type: "button", | ||
onClick: _cache[1] || (_cache[1] = $event => (_ctx._handleClose())) | ||
}) | ||
]), | ||
vue.createVNode("div", _hoisted_3, [ | ||
vue.createVNode("div", _hoisted_4, [ | ||
vue.renderSlot(_ctx.$slots, "default") | ||
]), | ||
(_ctx.$slots.footer) | ||
? (vue.openBlock(), vue.createBlock("div", _hoisted_4, [ | ||
? (vue.openBlock(), vue.createBlock("div", _hoisted_5, [ | ||
vue.renderSlot(_ctx.$slots, "footer") | ||
@@ -1769,11 +1751,11 @@ ])) | ||
script$4.render = render$4; | ||
script$4.__file = "packages/modal/src/modal.vue"; | ||
script$3.render = render$3; | ||
script$3.__file = "packages/modal/src/modal.vue"; | ||
script$4.install = (app) => { | ||
app.component(script$4.name, script$4); | ||
script$3.install = (app) => { | ||
app.component(script$3.name, script$3); | ||
}; | ||
const _CDhnModal = script$4; | ||
const _CDhnModal = script$3; | ||
var script$3 = vue.defineComponent({ | ||
var script$2 = vue.defineComponent({ | ||
name: "CDhnLottie", | ||
@@ -1803,15 +1785,15 @@ props: { | ||
function render$3(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$2(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", _hoisted_1$1, null, 512 /* NEED_PATCH */)) | ||
} | ||
script$3.render = render$3; | ||
script$3.__file = "packages/lottie/src/lottie.vue"; | ||
script$2.render = render$2; | ||
script$2.__file = "packages/lottie/src/lottie.vue"; | ||
script$3.install = (app) => { | ||
app.component(script$3.name, script$3); | ||
script$2.install = (app) => { | ||
app.component(script$2.name, script$2); | ||
}; | ||
const _CDhnLottie = script$3; | ||
const _CDhnLottie = script$2; | ||
var script$2 = vue.defineComponent({ | ||
var script$1 = vue.defineComponent({ | ||
name: "CDhnVap", | ||
@@ -1823,26 +1805,24 @@ props: { | ||
}, | ||
lavContainer: { | ||
type: String, | ||
default: 'lavContainer' | ||
} | ||
}, | ||
mounted() { | ||
new Vap__default['default'](Object.assign(Object.assign({}, this.options), { container: this.$refs[this.lavContainer], width: this.$refs[this.lavContainer].offsetWidth, height: this.$refs[this.lavContainer].offsetHeight, mute: true })); | ||
new Vap__default['default'](Object.assign(Object.assign({}, this.options), { container: this.$refs.lavContainer, width: this.$refs.lavContainer.offsetWidth, height: this.$refs.lavContainer.offsetHeight, mute: true })); | ||
}, | ||
}); | ||
function render$2(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", { | ||
style: {"width":"100%","height":"100%"}, | ||
ref: _ctx.lavContainer | ||
}, null, 512 /* NEED_PATCH */)) | ||
const _hoisted_1 = { | ||
style: {"width":"100%","height":"100%"}, | ||
ref: "lavContainer" | ||
}; | ||
function render$1(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", _hoisted_1, null, 512 /* NEED_PATCH */)) | ||
} | ||
script$2.render = render$2; | ||
script$2.__file = "packages/vap/src/vap.vue"; | ||
script$1.render = render$1; | ||
script$1.__file = "packages/vap/src/vap.vue"; | ||
script$2.install = (app) => { | ||
app.component(script$2.name, script$2); | ||
script$1.install = (app) => { | ||
app.component(script$1.name, script$1); | ||
}; | ||
const _CDhnVap = script$2; | ||
const _CDhnVap = script$1; | ||
@@ -1852,5 +1832,6 @@ vue3.LuckyWheel.install = (app) => { | ||
}; | ||
console.log(vue3.LuckyWheel); | ||
const _CDhnWheel = vue3.LuckyWheel; | ||
var script$1 = vue.defineComponent({ | ||
var script = vue.defineComponent({ | ||
name: "CDhnAsyncImg", | ||
@@ -1893,3 +1874,3 @@ props: { | ||
function render$1(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (vue.openBlock(), vue.createBlock("div", { | ||
@@ -1904,80 +1885,10 @@ style: { | ||
script$1.render = render$1; | ||
script$1.__file = "packages/asyncImg/src/asyncImg.vue"; | ||
script$1.install = (app) => { | ||
app.component(script$1.name, script$1); | ||
}; | ||
const _CDhnAsyncImg = script$1; | ||
var script = vue.defineComponent({ | ||
name: 'CDhnLoading', | ||
setup () { | ||
const setShow = vue.ref(false); | ||
const show = () => { | ||
setShow.value = true; | ||
}; | ||
const hide = () => { | ||
setShow.value = false; | ||
}; | ||
setTimeout(() => { | ||
// setShow.value = false; | ||
}, 5000); | ||
return { | ||
setShow, | ||
show, | ||
hide | ||
} | ||
} | ||
}); | ||
const _hoisted_1 = /*#__PURE__*/vue.createVNode("div", { class: "c-dhn-load_loading" }, [ | ||
/*#__PURE__*/vue.createVNode("div", { class: "c-dhn-load_animtion" }), | ||
/*#__PURE__*/vue.createVNode("p", null, "loading...") | ||
], -1 /* HOISTED */); | ||
function render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return vue.withDirectives((vue.openBlock(), vue.createBlock("div", { | ||
class: "c-dhn-load_page", | ||
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {}, ["stop"])) | ||
}, [ | ||
_hoisted_1 | ||
], 512 /* NEED_PATCH */)), [ | ||
[vue.vShow, _ctx.setShow] | ||
]) | ||
} | ||
script.render = render; | ||
script.__file = "packages/loading/src/loading.vue"; | ||
script.__file = "packages/asyncImg/src/asyncImg.vue"; | ||
let $data; | ||
const CDhnLoading = { | ||
install: function (app) { | ||
if (!$data) { | ||
$data = vue.createVNode(script, {}, { | ||
default: () => ({}) | ||
}); | ||
vue.render($data, document.body); | ||
} | ||
$data.component.ctx.setShow = false; | ||
if (app.config) { | ||
app.config.globalProperties.$loading = this; | ||
} | ||
}, | ||
show: function () { | ||
$data.component.ctx.show(); | ||
}, | ||
hide: function () { | ||
$data.component.ctx.hide(); | ||
} | ||
script.install = (app) => { | ||
app.component(script.name, script); | ||
}; | ||
const _CDhnAsyncImg = script; | ||
const _CDhnLoading = CDhnLoading; | ||
_CDhnLoading.install = (app) => { | ||
}; | ||
const components = [ | ||
@@ -1998,4 +1909,3 @@ _CDhnDateCountdown, | ||
_CDhnWheel, | ||
_CDhnAsyncImg, | ||
_CDhnLoading | ||
_CDhnAsyncImg | ||
]; | ||
@@ -2022,3 +1932,2 @@ const plugins = [_CDhnInfiniteScroll]; | ||
exports.CDhnInfiniteScroll = _CDhnInfiniteScroll; | ||
exports.CDhnLoading = _CDhnLoading; | ||
exports.CDhnLottie = _CDhnLottie; | ||
@@ -2025,0 +1934,0 @@ exports.CDhnModal = _CDhnModal; |
@@ -18,4 +18,3 @@ import { App } from 'vue'; | ||
import CDhnAsyncImg from './c-dhn-async-img'; | ||
import CDhnLoading from './c-dhn-loading'; | ||
export { CDhnDateCountdown, CDhnAvatar, CDhnCol, CDhnContainer, CDhnRow, CDhnText, CDhnTabs, CDhnSwiper, CDhnTabPane, CDhnInfiniteScroll, CDhnSeamlessScroll, CDhnModal, CDhnLottie, CDhnVap, CDhnWheel, CDhnAsyncImg, CDhnLoading }; | ||
export { CDhnDateCountdown, CDhnAvatar, CDhnCol, CDhnContainer, CDhnRow, CDhnText, CDhnTabs, CDhnSwiper, CDhnTabPane, CDhnInfiniteScroll, CDhnSeamlessScroll, CDhnModal, CDhnLottie, CDhnVap, CDhnWheel, CDhnAsyncImg }; | ||
declare const _default: { | ||
@@ -22,0 +21,0 @@ version: string; |
@@ -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, render as render$d } 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 } from 'vue'; | ||
import { getCountdownTime } from './utils/time'; | ||
@@ -26,3 +26,3 @@ import { Swiper, SwiperSlide } from 'dhn-swiper/vue'; | ||
}; | ||
var script$g = defineComponent({ | ||
var script$f = defineComponent({ | ||
name: "CDhnDateCountdown", | ||
@@ -84,3 +84,3 @@ props: { | ||
}; | ||
const _hoisted_5 = { | ||
const _hoisted_5$1 = { | ||
key: 0, | ||
@@ -129,3 +129,3 @@ class: "c-dhn-time" | ||
function render$c(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$b(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", _hoisted_1$4, [ | ||
@@ -144,3 +144,3 @@ createVNode("ul", { | ||
(_ctx.dayLang && _ctx.type === 'horizontal') | ||
? (openBlock(), createBlock("em", _hoisted_5, toDisplayString(_ctx.dayLang), 1 /* TEXT */)) | ||
? (openBlock(), createBlock("em", _hoisted_5$1, toDisplayString(_ctx.dayLang), 1 /* TEXT */)) | ||
: createCommentVNode("v-if", true), | ||
@@ -195,12 +195,12 @@ (_ctx.type == 'vertical') | ||
script$g.render = render$c; | ||
script$g.__file = "packages/dateCountdown/src/dateCountdown.vue"; | ||
script$f.render = render$b; | ||
script$f.__file = "packages/dateCountdown/src/dateCountdown.vue"; | ||
script$g.install = (app) => { | ||
app.component(script$g.name, script$g); | ||
script$f.install = (app) => { | ||
app.component(script$f.name, script$f); | ||
}; | ||
const _CDhnDateCountdown = script$g; | ||
const _CDhnDateCountdown = script$f; | ||
const ERROR_EVENT = "error"; | ||
var script$f = defineComponent({ | ||
var script$e = defineComponent({ | ||
name: "CDhnAvatar", | ||
@@ -281,3 +281,3 @@ props: { | ||
function render$b(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$a(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("span", { | ||
@@ -303,11 +303,11 @@ class: _ctx.avatarClass, | ||
script$f.render = render$b; | ||
script$f.__file = "packages/avatar/src/avatar.vue"; | ||
script$e.render = render$a; | ||
script$e.__file = "packages/avatar/src/avatar.vue"; | ||
script$f.install = (app) => { | ||
app.component(script$f.name, script$f); | ||
script$e.install = (app) => { | ||
app.component(script$e.name, script$e); | ||
}; | ||
const _CDhnAvatar = script$f; | ||
const _CDhnAvatar = script$e; | ||
var script$e = defineComponent({ | ||
var script$d = defineComponent({ | ||
name: "CDhnCol", | ||
@@ -354,3 +354,3 @@ props: { | ||
function render$a(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$9(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", { | ||
@@ -364,11 +364,11 @@ class: ['c-dhn-col', _ctx.classList], | ||
script$e.render = render$a; | ||
script$e.__file = "packages/col/src/col.vue"; | ||
script$d.render = render$9; | ||
script$d.__file = "packages/col/src/col.vue"; | ||
script$e.install = (app) => { | ||
app.component(script$e.name, script$e); | ||
script$d.install = (app) => { | ||
app.component(script$d.name, script$d); | ||
}; | ||
const _CDhnCol = script$e; | ||
const _CDhnCol = script$d; | ||
var script$d = defineComponent({ | ||
var script$c = defineComponent({ | ||
name: "CDhnContainer", | ||
@@ -379,3 +379,3 @@ }); | ||
function render$9(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$8(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("section", _hoisted_1$3, [ | ||
@@ -386,11 +386,11 @@ renderSlot(_ctx.$slots, "default") | ||
script$d.render = render$9; | ||
script$d.__file = "packages/container/src/container.vue"; | ||
script$c.render = render$8; | ||
script$c.__file = "packages/container/src/container.vue"; | ||
script$d.install = (app) => { | ||
app.component(script$d.name, script$d); | ||
script$c.install = (app) => { | ||
app.component(script$c.name, script$c); | ||
}; | ||
const _CDhnContainer = script$d; | ||
const _CDhnContainer = script$c; | ||
var script$c = defineComponent({ | ||
var script$b = defineComponent({ | ||
name: "CDhnRow", | ||
@@ -437,3 +437,3 @@ props: { | ||
function render$8(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$7(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", { | ||
@@ -451,11 +451,11 @@ class: [ | ||
script$c.render = render$8; | ||
script$c.__file = "packages/row/src/row.vue"; | ||
script$b.render = render$7; | ||
script$b.__file = "packages/row/src/row.vue"; | ||
script$c.install = (app) => { | ||
app.component(script$c.name, script$c); | ||
script$b.install = (app) => { | ||
app.component(script$b.name, script$b); | ||
}; | ||
const _CDhnRow = script$c; | ||
const _CDhnRow = script$b; | ||
var script$b = defineComponent({ | ||
var script$a = defineComponent({ | ||
name: "CDhnText", | ||
@@ -494,3 +494,3 @@ props: { | ||
function render$7(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$6(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", { | ||
@@ -504,9 +504,9 @@ class: "c-dhn-text", | ||
script$b.render = render$7; | ||
script$b.__file = "packages/text/src/text.vue"; | ||
script$a.render = render$6; | ||
script$a.__file = "packages/text/src/text.vue"; | ||
script$b.install = (app) => { | ||
app.component(script$b.name, script$b); | ||
script$a.install = (app) => { | ||
app.component(script$a.name, script$a); | ||
}; | ||
const _CDhnText = script$b; | ||
const _CDhnText = script$a; | ||
@@ -531,3 +531,3 @@ /** | ||
var script$a = defineComponent({ | ||
var script$9 = defineComponent({ | ||
name: "CDhnTabNav", | ||
@@ -584,7 +584,7 @@ props: { | ||
script$a.__file = "packages/tabs/src/tab-nav.vue"; | ||
script$9.__file = "packages/tabs/src/tab-nav.vue"; | ||
var script$9 = defineComponent({ | ||
var script$8 = defineComponent({ | ||
name: "CDhnTabs", | ||
components: { TabNav: script$a }, | ||
components: { TabNav: script$9 }, | ||
props: { | ||
@@ -698,3 +698,3 @@ modelValue: { | ||
class: ["c-dhn-tabs__header"], | ||
}, h(script$a, { | ||
}, h(script$9, { | ||
currentName, | ||
@@ -714,10 +714,10 @@ panes, | ||
script$9.__file = "packages/tabs/src/tabs.vue"; | ||
script$8.__file = "packages/tabs/src/tabs.vue"; | ||
script$9.install = (app) => { | ||
app.component(script$9.name, script$9); | ||
script$8.install = (app) => { | ||
app.component(script$8.name, script$8); | ||
}; | ||
const _CDhnTabs = script$9; | ||
const _CDhnTabs = script$8; | ||
var script$8 = defineComponent({ | ||
var script$7 = defineComponent({ | ||
name: "CDhnSwiperNav", | ||
@@ -789,7 +789,7 @@ components: { Swiper, SwiperSlide }, | ||
script$8.__file = "packages/swiper/src/swiper-nav.vue"; | ||
script$7.__file = "packages/swiper/src/swiper-nav.vue"; | ||
var script$7 = defineComponent({ | ||
var script$6 = defineComponent({ | ||
name: "CDhnSwiper", | ||
components: { SwiperNav: script$8 }, | ||
components: { SwiperNav: script$7 }, | ||
props: { | ||
@@ -930,3 +930,3 @@ modelValue: { | ||
}, panes.length | ||
? h(script$8, { | ||
? h(script$7, { | ||
currentIndex, | ||
@@ -947,10 +947,10 @@ panes, | ||
script$7.__file = "packages/swiper/src/swiper.vue"; | ||
script$6.__file = "packages/swiper/src/swiper.vue"; | ||
script$7.install = (app) => { | ||
app.component(script$7.name, script$7); | ||
script$6.install = (app) => { | ||
app.component(script$6.name, script$6); | ||
}; | ||
const _CDhnSwiper = script$7; | ||
const _CDhnSwiper = script$6; | ||
var script$6 = defineComponent({ | ||
var script$5 = defineComponent({ | ||
name: "CDhnTabPane", | ||
@@ -1012,3 +1012,3 @@ props: { | ||
function render$6(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$5(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (_ctx.shouldBeRender) | ||
@@ -1029,9 +1029,9 @@ ? withDirectives((openBlock(), createBlock("div", { | ||
script$6.render = render$6; | ||
script$6.__file = "packages/tabPane/src/tab-pane.vue"; | ||
script$5.render = render$5; | ||
script$5.__file = "packages/tabPane/src/tab-pane.vue"; | ||
script$6.install = (app) => { | ||
app.component(script$6.name, script$6); | ||
script$5.install = (app) => { | ||
app.component(script$5.name, script$5); | ||
}; | ||
const _CDhnTabPane = script$6; | ||
const _CDhnTabPane = script$5; | ||
@@ -1203,3 +1203,3 @@ /*! ***************************************************************************** | ||
const copyObj = require("comutils/copyObj"); | ||
var script$5 = defineComponent({ | ||
var script$4 = defineComponent({ | ||
name: "CDhnSeamlessScroll", | ||
@@ -1621,3 +1621,3 @@ data() { | ||
function render$5(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$4(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", null, [ | ||
@@ -1667,52 +1667,42 @@ (_ctx.navigation) | ||
script$5.render = render$5; | ||
script$5.__file = "packages/seamlessScroll/src/seamlessScroll.vue"; | ||
script$4.render = render$4; | ||
script$4.__file = "packages/seamlessScroll/src/seamlessScroll.vue"; | ||
script$5.install = (app) => { | ||
app.component(script$5.name, script$5); | ||
script$4.install = (app) => { | ||
app.component(script$4.name, script$4); | ||
}; | ||
const _CDhnSeamlessScroll = script$5; | ||
const _CDhnSeamlessScroll = script$4; | ||
var script$4 = defineComponent({ | ||
name: 'CDhnModal', | ||
props: { | ||
// 控制是否展示或隐藏对话框 | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
var script$3 = defineComponent({ | ||
name: 'CDhnModal', | ||
props: { | ||
visible: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}, | ||
// 是否显示关闭小图标 | ||
showCloseIcon: { | ||
type: Boolean, | ||
default: true | ||
computed: {}, | ||
setup(props, { emit }) { | ||
const handleClose = function () { | ||
emit('handleClose'); | ||
}; | ||
return { | ||
handleClose | ||
}; | ||
}, | ||
// 是否点击遮罩层mask关闭弹出框 | ||
clickMaskClose: { | ||
type: Boolean, | ||
default: false, | ||
require: true | ||
emits: { | ||
handleClose: null | ||
}, | ||
methods: { | ||
_handleClose() { | ||
this.handleClose(); | ||
} | ||
} | ||
}, | ||
emits: ['cancel'], | ||
setup (props, context) { | ||
const parent = { ...context }; | ||
const cancel = () => { | ||
parent.emit('cancel'); | ||
}; | ||
const handleClose = () => { | ||
context.emit('update:visible', false); | ||
}; | ||
const maskClose = () => { | ||
if (props.clickMaskClose === true) { | ||
handleClose(); | ||
} | ||
}; | ||
return { cancel, handleClose, maskClose } | ||
} | ||
}); | ||
const _hoisted_1$2 = { class: "c-dhn-modal_wrap" }; | ||
const _hoisted_2 = { class: "c-dhn-modal_header" }; | ||
const _hoisted_3 = { class: "c-dhn-modal_body" }; | ||
const _hoisted_4 = { | ||
const _hoisted_1$2 = { class: "c-dhn-modal_modal" }; | ||
const _hoisted_2 = { class: "c-dhn-modal_content" }; | ||
const _hoisted_3 = { class: "c-dhn-modal_header" }; | ||
const _hoisted_4 = { class: "c-dhn-modal_body" }; | ||
const _hoisted_5 = { | ||
key: 0, | ||
@@ -1722,27 +1712,19 @@ class: "c-dhn-modal_footer" | ||
function render$4(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$3(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock(Teleport, { to: "body" }, [ | ||
withDirectives(createVNode("div", _hoisted_1$2, [ | ||
createVNode("div", { | ||
class: "c-dhn-modal_modal", | ||
onClick: _cache[1] || (_cache[1] = (...args) => (_ctx.maskClose && _ctx.maskClose(...args))) | ||
}), | ||
createVNode("div", { | ||
class: "c-dhn-modal_content", | ||
onClick: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"])) | ||
}, [ | ||
createVNode("div", _hoisted_2, [ | ||
createVNode("div", _hoisted_2, [ | ||
createVNode("div", _hoisted_3, [ | ||
renderSlot(_ctx.$slots, "title"), | ||
withDirectives(createVNode("i", { | ||
createVNode("button", { | ||
class: "c-dhn-modal__headerbtn", | ||
onClick: _cache[2] || (_cache[2] = (...args) => (_ctx.handleClose && _ctx.handleClose(...args))) | ||
}, null, 512 /* NEED_PATCH */), [ | ||
[vShow, _ctx.showCloseIcon] | ||
]) | ||
type: "button", | ||
onClick: _cache[1] || (_cache[1] = $event => (_ctx._handleClose())) | ||
}) | ||
]), | ||
createVNode("div", _hoisted_3, [ | ||
createVNode("div", _hoisted_4, [ | ||
renderSlot(_ctx.$slots, "default") | ||
]), | ||
(_ctx.$slots.footer) | ||
? (openBlock(), createBlock("div", _hoisted_4, [ | ||
? (openBlock(), createBlock("div", _hoisted_5, [ | ||
renderSlot(_ctx.$slots, "footer") | ||
@@ -1758,11 +1740,11 @@ ])) | ||
script$4.render = render$4; | ||
script$4.__file = "packages/modal/src/modal.vue"; | ||
script$3.render = render$3; | ||
script$3.__file = "packages/modal/src/modal.vue"; | ||
script$4.install = (app) => { | ||
app.component(script$4.name, script$4); | ||
script$3.install = (app) => { | ||
app.component(script$3.name, script$3); | ||
}; | ||
const _CDhnModal = script$4; | ||
const _CDhnModal = script$3; | ||
var script$3 = defineComponent({ | ||
var script$2 = defineComponent({ | ||
name: "CDhnLottie", | ||
@@ -1792,15 +1774,15 @@ props: { | ||
function render$3(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render$2(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", _hoisted_1$1, null, 512 /* NEED_PATCH */)) | ||
} | ||
script$3.render = render$3; | ||
script$3.__file = "packages/lottie/src/lottie.vue"; | ||
script$2.render = render$2; | ||
script$2.__file = "packages/lottie/src/lottie.vue"; | ||
script$3.install = (app) => { | ||
app.component(script$3.name, script$3); | ||
script$2.install = (app) => { | ||
app.component(script$2.name, script$2); | ||
}; | ||
const _CDhnLottie = script$3; | ||
const _CDhnLottie = script$2; | ||
var script$2 = defineComponent({ | ||
var script$1 = defineComponent({ | ||
name: "CDhnVap", | ||
@@ -1812,26 +1794,24 @@ props: { | ||
}, | ||
lavContainer: { | ||
type: String, | ||
default: 'lavContainer' | ||
} | ||
}, | ||
mounted() { | ||
new Vap(Object.assign(Object.assign({}, this.options), { container: this.$refs[this.lavContainer], width: this.$refs[this.lavContainer].offsetWidth, height: this.$refs[this.lavContainer].offsetHeight, mute: true })); | ||
new Vap(Object.assign(Object.assign({}, this.options), { container: this.$refs.lavContainer, width: this.$refs.lavContainer.offsetWidth, height: this.$refs.lavContainer.offsetHeight, mute: true })); | ||
}, | ||
}); | ||
function render$2(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", { | ||
style: {"width":"100%","height":"100%"}, | ||
ref: _ctx.lavContainer | ||
}, null, 512 /* NEED_PATCH */)) | ||
const _hoisted_1 = { | ||
style: {"width":"100%","height":"100%"}, | ||
ref: "lavContainer" | ||
}; | ||
function render$1(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", _hoisted_1, null, 512 /* NEED_PATCH */)) | ||
} | ||
script$2.render = render$2; | ||
script$2.__file = "packages/vap/src/vap.vue"; | ||
script$1.render = render$1; | ||
script$1.__file = "packages/vap/src/vap.vue"; | ||
script$2.install = (app) => { | ||
app.component(script$2.name, script$2); | ||
script$1.install = (app) => { | ||
app.component(script$1.name, script$1); | ||
}; | ||
const _CDhnVap = script$2; | ||
const _CDhnVap = script$1; | ||
@@ -1841,5 +1821,6 @@ LuckyWheel.install = (app) => { | ||
}; | ||
console.log(LuckyWheel); | ||
const _CDhnWheel = LuckyWheel; | ||
var script$1 = defineComponent({ | ||
var script = defineComponent({ | ||
name: "CDhnAsyncImg", | ||
@@ -1882,3 +1863,3 @@ props: { | ||
function render$1(_ctx, _cache, $props, $setup, $data, $options) { | ||
function render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return (openBlock(), createBlock("div", { | ||
@@ -1893,80 +1874,10 @@ style: { | ||
script$1.render = render$1; | ||
script$1.__file = "packages/asyncImg/src/asyncImg.vue"; | ||
script$1.install = (app) => { | ||
app.component(script$1.name, script$1); | ||
}; | ||
const _CDhnAsyncImg = script$1; | ||
var script = defineComponent({ | ||
name: 'CDhnLoading', | ||
setup () { | ||
const setShow = ref(false); | ||
const show = () => { | ||
setShow.value = true; | ||
}; | ||
const hide = () => { | ||
setShow.value = false; | ||
}; | ||
setTimeout(() => { | ||
// setShow.value = false; | ||
}, 5000); | ||
return { | ||
setShow, | ||
show, | ||
hide | ||
} | ||
} | ||
}); | ||
const _hoisted_1 = /*#__PURE__*/createVNode("div", { class: "c-dhn-load_loading" }, [ | ||
/*#__PURE__*/createVNode("div", { class: "c-dhn-load_animtion" }), | ||
/*#__PURE__*/createVNode("p", null, "loading...") | ||
], -1 /* HOISTED */); | ||
function render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return withDirectives((openBlock(), createBlock("div", { | ||
class: "c-dhn-load_page", | ||
onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])) | ||
}, [ | ||
_hoisted_1 | ||
], 512 /* NEED_PATCH */)), [ | ||
[vShow, _ctx.setShow] | ||
]) | ||
} | ||
script.render = render; | ||
script.__file = "packages/loading/src/loading.vue"; | ||
script.__file = "packages/asyncImg/src/asyncImg.vue"; | ||
let $data; | ||
const CDhnLoading = { | ||
install: function (app) { | ||
if (!$data) { | ||
$data = createVNode(script, {}, { | ||
default: () => ({}) | ||
}); | ||
render$d($data, document.body); | ||
} | ||
$data.component.ctx.setShow = false; | ||
if (app.config) { | ||
app.config.globalProperties.$loading = this; | ||
} | ||
}, | ||
show: function () { | ||
$data.component.ctx.show(); | ||
}, | ||
hide: function () { | ||
$data.component.ctx.hide(); | ||
} | ||
script.install = (app) => { | ||
app.component(script.name, script); | ||
}; | ||
const _CDhnAsyncImg = script; | ||
const _CDhnLoading = CDhnLoading; | ||
_CDhnLoading.install = (app) => { | ||
}; | ||
const components = [ | ||
@@ -1987,4 +1898,3 @@ _CDhnDateCountdown, | ||
_CDhnWheel, | ||
_CDhnAsyncImg, | ||
_CDhnLoading | ||
_CDhnAsyncImg | ||
]; | ||
@@ -2006,2 +1916,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, _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.35", | ||
"version": "1.0.36", | ||
"description": "c-dhn-act component", | ||
@@ -5,0 +5,0 @@ "author": "peng.luo@asiainnovations.com>", |
Sorry, the diff of this file is not supported yet
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
232348
86
6200