New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-switch

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-switch - npm Package Compare versions

Comparing version 2.18.0 to 2.19.0

2

lib/index.js

@@ -99,3 +99,3 @@ function _extends() {

});
var version = "2.18.0";
var version = "2.19.0";
Switch.model = {

@@ -102,0 +102,0 @@ prop: "modelValue",

import { renderless, api } from '@opentiny/vue-renderless/switch/vue';
import { defineComponent, props, setup } from '@opentiny/vue-common';
import '@opentiny/vue-theme/switch/index.css';
import { IconLoadingShadow } from '@opentiny/vue-icon';

@@ -61,3 +62,6 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {

emits: ["change", "update:modelValue"],
props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled", "mini", "tabindex", "showText", "beforeChange", "displayOnly"]),
props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled", "mini", "tabindex", "showText", "beforeChange", "displayOnly", "loading"]),
components: {
IconLoading: IconLoadingShadow()
},
setup: function setup$1(props2, context) {

@@ -95,3 +99,3 @@ return setup({

class: _vm.state.innerClasses
}, [!_vm.mini && _vm.state.showText ? _c("div", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() {
}, [!_vm.mini && _vm.state.showText && !_vm.loading ? _c("div", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() {
return [_vm._v("ON")];

@@ -102,3 +106,5 @@ }) : _vm._e(), _vm.state.currentValue === _vm.falseValue ? _vm._t("close", function() {

staticClass: "tiny-switch__button"
}, [_vm.state.currentValue === _vm.trueValue ? _vm._t("active-icon") : _vm._e(), _vm.state.currentValue === _vm.falseValue ? _vm._t("inactive-icon") : _vm._e()], 2)]) : _c("span", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() {
}, [_vm.loading ? _c("icon-loading", {
class: [_vm.state.currentValue === _vm.trueValue ? "tiny-switch__on-loading" : "tiny-switch__off-loading", _vm.mini ? "tiny-switch__loading-size" : ""]
}) : _vm._e(), _vm.state.currentValue === _vm.trueValue && !_vm.loading ? _vm._t("active-icon") : _vm._e(), _vm.state.currentValue === _vm.falseValue && !_vm.loading ? _vm._t("inactive-icon") : _vm._e()], 2)]) : _c("span", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() {
return [_vm._v(_vm._s(_vm.t("yes")))];

@@ -105,0 +111,0 @@ }) : _vm._e(), _vm.state.currentValue === _vm.falseValue ? _vm._t("close", function() {

{
"name": "@opentiny/vue-switch",
"version": "2.18.0",
"version": "2.19.0",
"description": "",

@@ -10,6 +10,7 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.18.0",
"@opentiny/vue-common": "~2.18.0",
"@opentiny/vue-theme-mobile": "~3.18.0",
"@opentiny/vue-theme": "~3.18.0"
"@opentiny/vue-renderless": "~3.19.0",
"@opentiny/vue-common": "~2.19.0",
"@opentiny/vue-theme-mobile": "~3.19.0",
"@opentiny/vue-theme": "~3.19.0",
"@opentiny/vue-icon": "~2.19.0"
},

@@ -16,0 +17,0 @@ "license": "MIT",

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