Socket
Socket
Sign inDemoInstall

@opentiny/vue-action-sheet

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-action-sheet - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1-alpha.0

index.d.ts

241

lib/index.js

@@ -1,8 +0,61 @@

import { renderless, api } from '@opentiny/vue-renderless/action-sheet/vue';
import { $prefix, setup } from '@opentiny/vue-common';
import '@opentiny/vue-theme-mobile/action-sheet/index.css';
import BScroll from '@better-scroll/core';
import { renderless, api } from "@opentiny/vue-renderless/action-sheet/vue";
import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common";
import "@opentiny/vue-theme-mobile/action-sheet/index.css";
import BScroll from "@better-scroll/core";
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
};
}
var script = {
name: $prefix + 'ActionSheet',
var __vue2_script = defineComponent({
name: $prefix + "ActionSheet",
props: {

@@ -26,3 +79,3 @@ menus: {

type: String,
default: '200px'
default: "200px"
},

@@ -34,107 +87,20 @@ contentPosition: {

},
setup: function setup$1(props, context) {
return setup({
props: props,
context: context,
renderless: renderless,
api: api,
setup: function setup(props, context) {
return _setup({
props,
context,
renderless,
api,
mono: true,
extendOptions: {
BScroll: BScroll
BScroll
}
});
}
};
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
/* server only */
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
} // Vue.extend constructor export interop.
var options = typeof script === 'function' ? script.options : script; // render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true; // functional template
if (isFunctionalTemplate) {
options.functional = true;
}
} // scopedId
if (scopeId) {
options._scopeId = scopeId;
}
var hook;
if (moduleIdentifier) {
// server build
hook = function hook(context) {
// 2.3 injection
context = context || // cached call
this.$vnode && this.$vnode.ssrContext || // stateful
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
} // inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
} // register component module identifier for async chunk inference
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
}; // used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
} else if (style) {
hook = shadowMode ? function () {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
} : function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}
var normalizeComponent_1 = normalizeComponent;
var __vue_script__ = script;
var __vue_render__ = function __vue_render__() {
});
var render = function render2() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c('div', {
return _c("div", {
directives: [{

@@ -150,15 +116,15 @@ name: "show",

}
}, [!_vm.contentPosition ? _c('div', {
}, [!_vm.contentPosition ? _c("div", {
staticClass: "tiny-mobile-action-sheet__mask",
style: _vm.state.sheetMaskStyle
}) : _vm._e(), _vm._v(" "), _c('div', {
}) : _vm._e(), _c("div", {
ref: "scrollMenu",
class: ['tiny-mobile-action-sheet__content', _vm.state.toggle ? 'is-toggle' : '', _vm.contentPosition ? '' : 'is-not-content'],
class: ["tiny-mobile-action-sheet__content", _vm.state.toggle ? "is-toggle" : "", _vm.contentPosition ? "" : "is-not-content"],
style: [_vm.state.sheetContentStyle]
}, [_c('div', {
class: ['tiny-mobile-action-sheet__menu', _vm.ellipsis ? 'is-ellipsis' : '']
}, _vm._l(_vm.menus, function (item, index) {
return _c('div', {
}, [_c("div", {
class: ["tiny-mobile-action-sheet__menu", _vm.ellipsis ? "is-ellipsis" : ""]
}, _vm._l(_vm.menus, function(item, index) {
return _c("div", {
key: index,
class: ['tiny-mobile-action-sheet__item', item.warn ? 'is-warn' : '', item.id === _vm.modelValue || item.id === _vm.state.active ? 'is-active' : ''],
class: ["tiny-mobile-action-sheet__item", item.warn ? "is-warn" : "", item.id === _vm.modelValue || item.id === _vm.state.active ? "is-active" : ""],
on: {

@@ -169,11 +135,11 @@ "click": function click($event) {

}
}, [_vm._t("item", function () {
return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
}, [_vm._t("item", function() {
return [_vm._v(" " + _vm._s(item.label) + " ")];
}, {
"item": item
})], 2);
}), 0)]), _vm._v(" "), _vm.contentPosition ? _c('div', {
}), 0)]), _vm.contentPosition ? _c("div", {
staticClass: "tiny-mobile-action-sheet__action"
}, [_vm._t("action", function () {
return [_c('div', {
}, [_vm._t("action", function() {
return [_c("div", {
staticClass: "tiny-mobile-action-sheet__cancel",

@@ -183,24 +149,27 @@ on: {

}
}, [_vm._v("\n " + _vm._s(_vm.t('ui.actionSheet.cancel')) + "\n ")])];
}, [_vm._v(" " + _vm._s(_vm.t("ui.actionSheet.cancel")) + " ")])];
})], 2) : _vm._e()]);
};
var __vue_staticRenderFns__ = [];
var __vue_inject_styles__ = undefined;
var __vue_scope_id__ = undefined;
var __vue_module_identifier__ = undefined;
var __vue_is_functional_template__ = false;
var __vue_component__ = normalizeComponent_1({
render: __vue_render__,
staticRenderFns: __vue_staticRenderFns__
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
__vue_component__.model = {
prop: 'modelValue',
event: 'update:modelValue'
var staticRenderFns = [];
var __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
for (var o in __cssModules) {
this[o] = __cssModules[o];
}
}
var ActionSheet = /* @__PURE__ */ function() {
return __component__.exports;
}();
var version = "3.7.0";
ActionSheet.model = {
prop: "modelValue",
event: "update:modelValue"
};
__vue_component__.install = function (Vue) {
Vue.component(__vue_component__.name, __vue_component__);
ActionSheet.install = function(Vue) {
Vue.component(ActionSheet.name, ActionSheet);
};
__vue_component__.version = '2.6.0';
export { __vue_component__ as default };
ActionSheet.version = version;
export {
ActionSheet as default
};
{
"name": "@opentiny/vue-action-sheet",
"version": "2.6.0",
"version": "2.6.1-alpha.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"lint": "eslint src/**/*{.js,.html,.vue} --quiet",
"build:ui2": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../build/build-ui.js",
"build:ui3": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../example/build/build-ui.js"
},
"main": "./lib/index.js",
"dependencies": {
"@opentiny/vue-common": "~2.6.0",
"@opentiny/vue-renderless": "~3.6.0",
"@better-scroll/core": "2.5.0",
"@opentiny/vue-icon": "~2.6.0",
"@opentiny/vue-theme": "~3.6.0",
"@opentiny/vue-theme-mobile": "~3.6.0"
"@opentiny/vue-common": "~2.6.1-alpha.0",
"@opentiny/vue-renderless": "~3.6.1-alpha.0",
"@better-scroll/core": "2.5.0"
},
"license": "MIT",
"sideEffects": false
"types": "index.d.ts",
"scripts": {
"build": "pnpm -w build:ui $npm_package_name",
"//postversion": "pnpm build"
}
}
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