@opentinyvue/vue-dynamic-scroller-item 2.22.0 → 3.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -55,7 +55,7 @@ var DynamicScrollerItem = defineComponent({
55
55
  });
56
56
  }
57
57
  });
58
- var version = "2.22.0";
58
+ var version = "3.22.0";
59
59
  DynamicScrollerItem.install = function(Vue) {
60
60
  Vue.component(DynamicScrollerItem.name, DynamicScrollerItem);
61
61
  };
package/lib/pc.js CHANGED
@@ -1,42 +1,11 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/dynamic-scroller-item/vue';
2
- import { defineComponent, props, setup, h } from '@opentinyvue/vue-common';
3
-
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
10
- }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
14
- }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
27
- }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
- }
33
-
34
- var __vue2_script = defineComponent({
1
+ import { api, renderless } from "@opentinyvue/vue-renderless/dynamic-scroller-item/vue";
2
+ import { defineComponent, props, h, setup as _setup } from "@opentinyvue/vue-common";
3
+ var _sfc_main = defineComponent({
35
4
  emits: ["resize"],
36
5
  props: [].concat(props, ["item", "watchData", "active", "index", "sizeDependencies", "emitResize", "tag"]),
37
6
  components: {},
38
- setup: function setup$1(props2, context) {
39
- return setup({
7
+ setup: function setup(props2, context) {
8
+ return _setup({
40
9
  props: props2,
41
10
  context,
42
11
  renderless,
@@ -47,16 +16,6 @@ var __vue2_script = defineComponent({
47
16
  return h(this.tag, this.slots.default ? this.slots.default() : null);
48
17
  }
49
18
  });
50
- var __vue2_render, __vue2_staticRenderFns;
51
- var __cssModules = {};
52
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles);
53
- function __vue2_injectStyles(context) {
54
- for (var o in __cssModules) {
55
- this[o] = __cssModules[o];
56
- }
57
- }
58
- var pc = /* @__PURE__ */ function() {
59
- return __component__.exports;
60
- }();
61
-
62
- export { pc as default };
19
+ export {
20
+ _sfc_main as default
21
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dynamic-scroller-item",
3
- "version": "2.22.0",
3
+ "version": "3.22.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~2.22.0",
10
+ "@opentinyvue/vue-common": "~3.22.0",
11
11
  "@opentinyvue/vue-renderless": "~3.22.0"
12
12
  },
13
13
  "license": "MIT",
package/src/index.d.ts CHANGED
@@ -1,2 +1,79 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
2
+ item: {
3
+ required: true;
4
+ };
5
+ watchData: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ active: {
10
+ type: BooleanConstructor;
11
+ required: true;
12
+ };
13
+ index: {
14
+ type: NumberConstructor;
15
+ default: undefined;
16
+ };
17
+ sizeDependencies: {
18
+ type: (ObjectConstructor | ArrayConstructor)[];
19
+ default: null;
20
+ };
21
+ emitResize: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ tag: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ tiny_mode: StringConstructor;
30
+ tiny_mode_root: BooleanConstructor;
31
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
32
+ tiny_renderless: FunctionConstructor;
33
+ tiny_theme: StringConstructor;
34
+ tiny_chart_theme: ObjectConstructor;
35
+ }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
36
+ [key: string]: any;
37
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
38
+ item: {
39
+ required: true;
40
+ };
41
+ watchData: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ active: {
46
+ type: BooleanConstructor;
47
+ required: true;
48
+ };
49
+ index: {
50
+ type: NumberConstructor;
51
+ default: undefined;
52
+ };
53
+ sizeDependencies: {
54
+ type: (ObjectConstructor | ArrayConstructor)[];
55
+ default: null;
56
+ };
57
+ emitResize: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ tag: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ tiny_mode: StringConstructor;
66
+ tiny_mode_root: BooleanConstructor;
67
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
68
+ tiny_renderless: FunctionConstructor;
69
+ tiny_theme: StringConstructor;
70
+ tiny_chart_theme: ObjectConstructor;
71
+ }>>, {
72
+ index: number;
73
+ tag: string;
74
+ tiny_mode_root: boolean;
75
+ watchData: boolean;
76
+ sizeDependencies: Record<string, any> | unknown[];
77
+ emitResize: boolean;
78
+ }, {}>;
2
79
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,2 +1,49 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ index?: any;
3
+ item?: any;
4
+ tag?: any;
5
+ tiny_mode?: any;
6
+ tiny_mode_root?: any;
7
+ tiny_template?: any;
8
+ tiny_renderless?: any;
9
+ _constants?: any;
10
+ tiny_theme?: any;
11
+ tiny_chart_theme?: any;
12
+ active?: any;
13
+ watchData?: any;
14
+ sizeDependencies?: any;
15
+ emitResize?: any;
16
+ }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "resize"[], "resize", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
17
+ index?: any;
18
+ item?: any;
19
+ tag?: any;
20
+ tiny_mode?: any;
21
+ tiny_mode_root?: any;
22
+ tiny_template?: any;
23
+ tiny_renderless?: any;
24
+ _constants?: any;
25
+ tiny_theme?: any;
26
+ tiny_chart_theme?: any;
27
+ active?: any;
28
+ watchData?: any;
29
+ sizeDependencies?: any;
30
+ emitResize?: any;
31
+ }>>> & {
32
+ onResize?: ((...args: any[]) => any) | undefined;
33
+ }, {
34
+ readonly index?: any;
35
+ readonly item?: any;
36
+ readonly tag?: any;
37
+ readonly tiny_mode?: any;
38
+ readonly tiny_mode_root?: any;
39
+ readonly tiny_template?: any;
40
+ readonly tiny_renderless?: any;
41
+ readonly _constants?: any;
42
+ readonly tiny_theme?: any;
43
+ readonly tiny_chart_theme?: any;
44
+ readonly active?: any;
45
+ readonly watchData?: any;
46
+ readonly sizeDependencies?: any;
47
+ readonly emitResize?: any;
48
+ }, {}>;
2
49
  export default _default;