@opentiny/vue-option
Advanced tools
Comparing version 2.11.1 to 2.12.0
111
lib/index.js
import { renderless, api } from "@opentiny/vue-renderless/option/vue"; | ||
import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common"; | ||
import Checkbox from "@opentiny/vue-checkbox"; | ||
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) { | ||
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports; | ||
if (render) { | ||
options.render = render; | ||
options.staticRenderFns = staticRenderFns; | ||
options._compiled = true; | ||
} | ||
if (functionalTemplate) { | ||
options.functional = true; | ||
} | ||
if (scopeId) { | ||
options._scopeId = "data-v-" + scopeId; | ||
} | ||
var hook; | ||
if (moduleIdentifier) { | ||
hook = function hook2(context) { | ||
context = context || // cached call | ||
this.$vnode && this.$vnode.ssrContext || // stateful | ||
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
if (injectStyles) { | ||
injectStyles.call(this, context); | ||
} | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
options._ssrRegister = hook; | ||
} else if (injectStyles) { | ||
hook = shadowMode ? function() { | ||
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot); | ||
} : injectStyles; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
options._injectStyles = hook; | ||
var originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} else { | ||
var existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return { | ||
exports: scriptExports, | ||
options | ||
}; | ||
} | ||
import "@opentiny/vue-theme/option/index.css"; | ||
@@ -76,3 +130,3 @@ var __vue2_script = defineComponent({ | ||
} | ||
}, [_vm.state.select.multiple && (_vm.state.select.optimization || !_vm.state.select.state.multipleLimit) ? _c("span", { | ||
}, [_vm.state.select.multiple ? _c("span", { | ||
staticClass: "tiny-option__checkbox-wrap" | ||
@@ -89,55 +143,2 @@ }, [_c("tiny-checkbox", { | ||
var staticRenderFns = []; | ||
function normalizeComponent(scriptExports, render3, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) { | ||
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports; | ||
if (render3) { | ||
options.render = render3; | ||
options.staticRenderFns = staticRenderFns2; | ||
options._compiled = true; | ||
} | ||
if (functionalTemplate) { | ||
options.functional = true; | ||
} | ||
if (scopeId) { | ||
options._scopeId = "data-v-" + scopeId; | ||
} | ||
var hook; | ||
if (moduleIdentifier) { | ||
hook = function hook2(context) { | ||
context = context || // cached call | ||
this.$vnode && this.$vnode.ssrContext || // stateful | ||
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
if (injectStyles) { | ||
injectStyles.call(this, context); | ||
} | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
}; | ||
options._ssrRegister = hook; | ||
} else if (injectStyles) { | ||
hook = shadowMode ? function() { | ||
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot); | ||
} : injectStyles; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
options._injectStyles = hook; | ||
var originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} else { | ||
var existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
} | ||
return { | ||
exports: scriptExports, | ||
options | ||
}; | ||
} | ||
var __cssModules = {}; | ||
@@ -153,3 +154,3 @@ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null); | ||
}(); | ||
var version = "2.11.1"; | ||
var version = "2.12.0"; | ||
Option.install = function(Vue) { | ||
@@ -156,0 +157,0 @@ Vue.component(Option.name, Option); |
{ | ||
"name": "@opentiny/vue-option", | ||
"version": "2.11.1", | ||
"version": "2.12.0", | ||
"description": "", | ||
@@ -10,4 +10,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.11.0", | ||
"@opentiny/vue-common": "~2.11.0" | ||
"@opentiny/vue-renderless": "~3.12.0", | ||
"@opentiny/vue-common": "~2.12.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
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
6745
+ Added@opentiny/vue-common@2.12.0(transitive)
+ Added@opentiny/vue-locale@2.12.0(transitive)
+ Added@opentiny/vue-renderless@3.12.1(transitive)
+ Added@opentiny/vue-theme@3.12.1(transitive)
+ Added@opentiny/vue-theme-mobile@3.12.0(transitive)
- Removed@opentiny/vue-common@2.11.0(transitive)
- Removed@opentiny/vue-locale@2.11.0(transitive)
- Removed@opentiny/vue-renderless@3.11.8(transitive)
- Removed@opentiny/vue-theme@3.11.6(transitive)
- Removed@opentiny/vue-theme-mobile@3.11.1(transitive)
Updated@opentiny/vue-common@~2.12.0