@opentiny/vue-picker-column
Advanced tools
Comparing version 3.6.0 to 3.6.1-alpha.0
@@ -13,3 +13,2 @@ /** | ||
import PickerColumn from './src/index.vue'; | ||
import '@opentiny/vue-theme-mobile/picker-column/index.css'; | ||
export default PickerColumn; |
179
lib/index.js
@@ -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; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
7950
2
5
194
2
- Removed@opentiny/vue-icon@~3.6.0
- Removed@opentiny/vue-theme@~3.6.0
- Removed@opentiny/vue-theme-mobile@~3.6.0
- Removed@opentiny/vue-icon@3.6.7(transitive)