Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c-dhn-act

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c-dhn-act - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

lib/c-dhn-wheel/index.d.ts

24

lib/c-dhn-swiper/index.js

@@ -46,13 +46,6 @@ import { defineComponent, inject, h, ref, getCurrentInstance, provide, watch, onUpdated, onMounted, Fragment } from 'vue';

updateSwiperState(swiper$);
const { onTabClick } = props;
const swiperTabClick = (pane, tabName, ev) => {
var _a;
const index = props.panes.findIndex((item) => item.props.name === tabName);
(_a = swiper$.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
onTabClick(pane, tabName, ev);
};
return { swiper$, swiperTabClick };
return { swiper$ };
},
render() {
const { panes, swiper$, swiperTabClick, currentIndex, option } = this;
const { panes, swiper$, onTabClick, currentIndex, option } = this;
const tabs = panes.map((pane, index) => {

@@ -78,3 +71,3 @@ var _a, _b;

onClick: (ev) => {
swiperTabClick(pane, tabName, ev);
onTabClick(pane, tabName, ev);
},

@@ -155,2 +148,3 @@ }, [tabLabelContent]);

const setCurrentName = (value) => {
var _a;
if (currentName.value === value)

@@ -162,3 +156,6 @@ return;

before.then(() => {
var _a;
changeCurrentName(value);
let index = panes.value.findIndex((pane) => pane.props.name === value);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
}, () => {

@@ -169,9 +166,8 @@ });

changeCurrentName(value);
let index = panes.value.findIndex((pane) => pane.props.name === value);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
}
};
watch(() => props.modelValue, (modelValue) => {
var _a;
setCurrentName(modelValue);
let index = panes.value.findIndex((pane) => pane.props.name === modelValue);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
});

@@ -242,3 +238,3 @@ const getPaneInstanceFromSlot = (vnode, paneInstanceList = []) => {

onTabClick: handleTabClick,
option
option,
})

@@ -245,0 +241,0 @@ : "");

@@ -23,3 +23,2 @@ import { PropType } from "vue";

};
swiperTabClick: (pane: any, tabName: any, ev: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{

@@ -26,0 +25,0 @@ panes?: unknown;

@@ -732,13 +732,6 @@ 'use strict';

updateSwiperState(swiper$);
const { onTabClick } = props;
const swiperTabClick = (pane, tabName, ev) => {
var _a;
const index = props.panes.findIndex((item) => item.props.name === tabName);
(_a = swiper$.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
onTabClick(pane, tabName, ev);
};
return { swiper$, swiperTabClick };
return { swiper$ };
},
render() {
const { panes, swiper$, swiperTabClick, currentIndex, option } = this;
const { panes, swiper$, onTabClick, currentIndex, option } = this;
const tabs = panes.map((pane, index) => {

@@ -764,3 +757,3 @@ var _a, _b;

onClick: (ev) => {
swiperTabClick(pane, tabName, ev);
onTabClick(pane, tabName, ev);
},

@@ -841,2 +834,3 @@ }, [tabLabelContent]);

const setCurrentName = (value) => {
var _a;
if (currentName.value === value)

@@ -848,3 +842,6 @@ return;

before.then(() => {
var _a;
changeCurrentName(value);
let index = panes.value.findIndex((pane) => pane.props.name === value);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
}, () => {

@@ -855,9 +852,8 @@ });

changeCurrentName(value);
let index = panes.value.findIndex((pane) => pane.props.name === value);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
}
};
vue.watch(() => props.modelValue, (modelValue) => {
var _a;
setCurrentName(modelValue);
let index = panes.value.findIndex((pane) => pane.props.name === modelValue);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
});

@@ -928,3 +924,3 @@ const getPaneInstanceFromSlot = (vnode, paneInstanceList = []) => {

onTabClick: handleTabClick,
option
option,
})

@@ -931,0 +927,0 @@ : "");

@@ -723,13 +723,6 @@ import { defineComponent, reactive, watch, computed, toRefs, openBlock, createBlock, createVNode, toDisplayString, createCommentVNode, ref, toRef, Fragment, renderSlot, inject, provide, h, getCurrentInstance, onUpdated, onMounted, withDirectives, vShow, nextTick } from 'vue';

updateSwiperState(swiper$);
const { onTabClick } = props;
const swiperTabClick = (pane, tabName, ev) => {
var _a;
const index = props.panes.findIndex((item) => item.props.name === tabName);
(_a = swiper$.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
onTabClick(pane, tabName, ev);
};
return { swiper$, swiperTabClick };
return { swiper$ };
},
render() {
const { panes, swiper$, swiperTabClick, currentIndex, option } = this;
const { panes, swiper$, onTabClick, currentIndex, option } = this;
const tabs = panes.map((pane, index) => {

@@ -755,3 +748,3 @@ var _a, _b;

onClick: (ev) => {
swiperTabClick(pane, tabName, ev);
onTabClick(pane, tabName, ev);
},

@@ -832,2 +825,3 @@ }, [tabLabelContent]);

const setCurrentName = (value) => {
var _a;
if (currentName.value === value)

@@ -839,3 +833,6 @@ return;

before.then(() => {
var _a;
changeCurrentName(value);
let index = panes.value.findIndex((pane) => pane.props.name === value);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
}, () => {

@@ -846,9 +843,8 @@ });

changeCurrentName(value);
let index = panes.value.findIndex((pane) => pane.props.name === value);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
}
};
watch(() => props.modelValue, (modelValue) => {
var _a;
setCurrentName(modelValue);
let index = panes.value.findIndex((pane) => pane.props.name === modelValue);
(_a = swiperInstance.instance) === null || _a === void 0 ? void 0 : _a.slideTo(index);
});

@@ -919,3 +915,3 @@ const getPaneInstanceFromSlot = (vnode, paneInstanceList = []) => {

onTabClick: handleTabClick,
option
option,
})

@@ -922,0 +918,0 @@ : "");

{
"name": "c-dhn-act",
"version": "1.0.15",
"version": "1.0.16",
"description": "c-dhn-act component",

@@ -15,3 +15,4 @@ "author": "peng.luo@asiainnovations.com>",

"dhn-swiper": "^1.0.0",
"lodash": "^4.17.21"
"lodash": "^4.17.21",
"vue-luck-draw": "^3.4.7"
},

@@ -18,0 +19,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc