@opentiny/vue-switch
Advanced tools
Comparing version 2.18.0 to 2.19.0
@@ -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", |
27365
715
5
+ Added@opentiny/vue-icon@~2.19.0
+ Added@opentiny/vue-common@2.19.0(transitive)
+ Added@opentiny/vue-icon@2.19.0(transitive)
+ Added@opentiny/vue-locale@2.19.0(transitive)
+ Added@opentiny/vue-renderless@3.19.5(transitive)
+ Added@opentiny/vue-theme@3.19.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.19.0(transitive)
- Removed@opentiny/vue-common@2.18.0(transitive)
- Removed@opentiny/vue-locale@2.18.0(transitive)
- Removed@opentiny/vue-renderless@3.18.8(transitive)
- Removed@opentiny/vue-theme@3.18.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.18.0(transitive)
Updated@opentiny/vue-common@~2.19.0
Updated@opentiny/vue-theme@~3.19.0