@opentiny/vue-checkbox
Advanced tools
Comparing version 2.12.0 to 2.13.0
@@ -20,9 +20,11 @@ function _extends() { | ||
var template = function template2(mode) { | ||
if ("pc" === (process.env.TINY_MODE || mode)) { | ||
var _process$env; | ||
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null; | ||
if ("pc" === (tinyMode || mode)) { | ||
return PcTemplate; | ||
} | ||
if ("mobile" === (process.env.TINY_MODE || mode)) { | ||
if ("mobile" === (tinyMode || mode)) { | ||
return MobileTemplate; | ||
} | ||
if ("mobile-first" === (process.env.TINY_MODE || mode)) { | ||
if ("mobile-first" === (tinyMode || mode)) { | ||
return MobileFirstTemplate; | ||
@@ -86,3 +88,4 @@ } | ||
default: false | ||
} | ||
}, | ||
iconPosition: String | ||
}); | ||
@@ -100,3 +103,3 @@ var Checkbox = defineComponent({ | ||
}); | ||
var version = "2.12.0"; | ||
var version = "2.13.0"; | ||
Checkbox.model = { | ||
@@ -103,0 +106,0 @@ prop: "modelValue", |
@@ -60,3 +60,3 @@ import { renderless, api } from "@opentiny/vue-renderless/checkbox/vue"; | ||
inheritAttrs: false, | ||
props: [].concat(props, ["modelValue", "text", "events", "label", "indeterminate", "disabled", "checked", "name", "trueLabel", "falseLabel", "id"]), | ||
props: [].concat(props, ["modelValue", "text", "events", "label", "indeterminate", "disabled", "checked", "name", "trueLabel", "falseLabel", "id", "iconPosition"]), | ||
setup: function setup(props2, context) { | ||
@@ -81,3 +81,4 @@ return _setup({ | ||
"is-indeterminate": _vm.indeterminate, | ||
"is-focus": _vm.state.focus | ||
"is-focus": _vm.state.focus, | ||
"icon-position-top": _vm.state.iconPosition === "top" | ||
}, | ||
@@ -84,0 +85,0 @@ attrs: { |
{ | ||
"name": "@opentiny/vue-checkbox", | ||
"version": "2.12.0", | ||
"version": "2.13.0", | ||
"description": "", | ||
@@ -10,4 +10,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~2.12.0", | ||
"@opentiny/vue-renderless": "~3.12.0" | ||
"@opentiny/vue-common": "~2.13.0", | ||
"@opentiny/vue-renderless": "~3.13.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -0,1 +1,3 @@ | ||
import type { PropType } from '@opentiny/vue-common'; | ||
export type IconPosition = 'center' | 'top'; | ||
export declare const $constants: { | ||
@@ -51,2 +53,3 @@ FORM_ITEM: string; | ||
}; | ||
iconPosition: PropType<IconPosition>; | ||
tiny_mode: StringConstructor; | ||
@@ -53,0 +56,0 @@ tiny_mode_root: BooleanConstructor; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
29490
828
2
+ Added@opentiny/vue-common@2.13.1(transitive)
+ Added@opentiny/vue-locale@2.13.0(transitive)
+ Added@opentiny/vue-renderless@3.13.2(transitive)
+ Added@opentiny/vue-theme@3.13.3(transitive)
+ Added@opentiny/vue-theme-mobile@3.13.0(transitive)
+ Addednanoid@3.3.8(transitive)
- Removed@opentiny/vue-common@2.12.0(transitive)
- Removed@opentiny/vue-locale@2.12.0(transitive)
- Removed@opentiny/vue-renderless@3.12.1(transitive)
- Removed@opentiny/vue-theme@3.12.1(transitive)
- Removed@opentiny/vue-theme-mobile@3.12.0(transitive)
- Removednanoid@3.3.7(transitive)
Updated@opentiny/vue-common@~2.13.0