Socket
Socket
Sign inDemoInstall

@opentiny/vue-picker-column

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-picker-column - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1-alpha.0

LICENSE

1

index.d.ts

@@ -13,3 +13,2 @@ /**

import PickerColumn from './src/index.vue';
import '@opentiny/vue-theme-mobile/picker-column/index.css';
export default PickerColumn;

@@ -1,9 +0,53 @@

import { renderless, api } from '@opentiny/vue-renderless/picker-column/vue';
import { $prefix, setup } from '@opentiny/vue-common';
import { openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, withModifiers, toDisplayString } from 'vue';
import '@opentiny/vue-theme-mobile/picker-column/index.css';
import { renderless, api } from "@opentiny/vue-renderless/picker-column/vue";
import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common";
import { openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, withModifiers, toDisplayString } from "vue";
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it)
return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)
o = it;
var i = 0;
return function() {
if (i >= o.length)
return { done: true };
return { done: false, value: o[i++] };
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor)
n = o.constructor.name;
if (n === "Map" || n === "Set")
return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)
len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++)
arr2[i] = arr[i];
return arr2;
}
var _export_sfc = function _export_sfc2(sfc, props) {
var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
target[key] = val;
}
return target;
};
var script = {
name: $prefix + 'PickerColumn',
emits: ['change'],
import "@opentiny/vue-theme-mobile/picker-column/index.css";
var _sfc_main = /* @__PURE__ */ defineComponent({
name: $prefix + "PickerColumn",
emits: ["change"],
props: {

@@ -22,13 +66,12 @@ columnsItem: {

},
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
});
}
};
});
var _hoisted_1 = {

@@ -38,46 +81,70 @@ class: "tiny-mobile-picker-column"

var _hoisted_2 = ["onClick"];
function render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", {
class: "tiny-mobile-picker-column__mask",
style: normalizeStyle(_ctx.state.maskStyle)
}, null, 4), createElementVNode("div", {
class: "tiny-mobile-picker-column__indicator",
style: normalizeStyle({
height: $props.itemHeight + 'px'
})
}, null, 4), createElementVNode("ul", {
class: "tiny-mobile-picker-column__wrapper",
ref: "track",
style: normalizeStyle(_ctx.state.wrapperStyle),
onClick: _cache[1] || (_cache[1] = function ($event) {
return _ctx.onClickItem(1);
})
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.columnsItem.values, function (item, index) {
return openBlock(), createElementBlock("li", {
class: normalizeClass({
'tiny-mobile-picker-column__item': true,
'is-select': index === _ctx.state.currentIndex
}),
key: index,
onClick: withModifiers(function ($event) {
return _ctx.onClickItem(index);
}, ["stop"]),
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode(
"div",
{
class: "tiny-mobile-picker-column__mask",
style: normalizeStyle(_ctx.state.maskStyle)
},
null,
4
/* STYLE */
), createElementVNode(
"div",
{
class: "tiny-mobile-picker-column__indicator",
style: normalizeStyle({
height: $props.itemHeight + 'px',
lineHeight: $props.itemHeight + 'px'
height: _ctx.itemHeight + "px"
})
},
null,
4
/* STYLE */
), createElementVNode(
"ul",
{
class: "tiny-mobile-picker-column__wrapper",
ref: "track",
style: normalizeStyle(_ctx.state.wrapperStyle),
onClick: _cache[1] || (_cache[1] = function($event) {
return _ctx.onClickItem(1);
})
},
[(openBlock(true), createElementBlock(
Fragment,
null,
renderList(_ctx.state.columnsItem.values, function(item, index) {
return openBlock(), createElementBlock("li", {
class: normalizeClass({
"tiny-mobile-picker-column__item": true,
"is-select": index === _ctx.state.currentIndex
}),
key: index,
onClick: withModifiers(function($event) {
return _ctx.onClickItem(index);
}, ["stop"]),
style: normalizeStyle({
height: _ctx.itemHeight + "px",
lineHeight: _ctx.itemHeight + "px"
}),
onTransitionend: _cache[0] || (_cache[0] = function() {
return _ctx.onTransitionEnd && _ctx.onTransitionEnd.apply(_ctx, arguments);
})
}, toDisplayString(item), 47, _hoisted_2);
}),
onTransitionend: _cache[0] || (_cache[0] = function () {
return _ctx.onTransitionEnd && _ctx.onTransitionEnd.apply(_ctx, arguments);
})
}, toDisplayString(item), 47, _hoisted_2);
}), 128))], 4)]);
128
/* KEYED_FRAGMENT */
))],
4
/* STYLE */
)]);
}
script.render = render;
script.install = function (Vue) {
Vue.component(script.name, script);
var PickerColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
var version = "3.7.0";
PickerColumn.install = function(Vue) {
Vue.component(PickerColumn.name, PickerColumn);
};
script.version = '3.6.0';
export { script as default };
PickerColumn.version = version;
export {
PickerColumn as default
};
{
"name": "@opentiny/vue-picker-column",
"version": "3.6.0",
"version": "3.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-renderless": "~3.6.0",
"@opentiny/vue-common": "~3.6.0",
"@opentiny/vue-icon": "~3.6.0",
"@opentiny/vue-theme": "~3.6.0",
"@opentiny/vue-theme-mobile": "~3.6.0"
"@opentiny/vue-renderless": "~3.6.1-alpha.0",
"@opentiny/vue-common": "~3.6.1-alpha.0"
},
"license": "MIT",
"types": "index.d.ts",
"sideEffects": false
"scripts": {
"build": "pnpm -w build:ui $npm_package_name",
"//postversion": "pnpm build"
}
}

@@ -1,2 +0,2 @@

declare const _default: import("vue").DefineComponent<{
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{
columnsItem: {

@@ -12,3 +12,3 @@ type: ObjectConstructor;

}, {
t: any;
t: (this: any, path: any, options?: any) => any;
vm: any;

@@ -19,3 +19,3 @@ f: (props: any, attrs?: {}) => {};

dp: (props: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
columnsItem: {

@@ -35,2 +35,2 @@ type: ObjectConstructor;

}>;
export default _default;
export default _sfc_main;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc