@opentinyvue/vue-container 3.21.0 → 3.22.1

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
@@ -7,19 +7,12 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $props, $setup } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
- import MobileTemplate from "./mobile.js";
13
12
  import "@opentinyvue/vue-theme/container/index.css";
14
13
  var template = function template2(mode) {
15
14
  var _process$env;
16
- var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
17
- if ("pc" === (tinyMode || mode)) {
18
- return PcTemplate;
19
- }
20
- if ("mobile" === (tinyMode || mode)) {
21
- return MobileTemplate;
22
- }
15
+ typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
23
16
  return PcTemplate;
24
17
  };
25
18
  var $constants = {
@@ -75,7 +68,7 @@ var Container = defineComponent({
75
68
  });
76
69
  }
77
70
  });
78
- var version = "3.21.0";
71
+ var version = "3.undefined";
79
72
  Container.install = function(Vue) {
80
73
  Vue.component(Container.name, Container);
81
74
  };
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-container",
3
- "version": "3.21.0",
3
+ "version": "3.22.1",
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": "~3.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-theme": "~3.21.0",
13
- "@opentinyvue/vue-theme-mobile": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~3.22.0",
11
+ "@opentinyvue/vue-renderless": "~3.22.0",
12
+ "@opentinyvue/vue-theme": "~3.22.0"
14
13
  },
15
14
  "license": "MIT",
16
15
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -85,13 +85,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
85
85
  tiny_theme: StringConstructor;
86
86
  tiny_chart_theme: ObjectConstructor;
87
87
  }>>, {
88
+ pattern: string;
88
89
  tiny_mode_root: boolean;
89
90
  _constants: Record<string, any>;
90
- pattern: string;
91
- leftWidth: string | number;
92
- rightWidth: string | number;
93
91
  headerHeight: string | number;
94
92
  asideWidth: string | number;
95
93
  footerHeight: string | number;
94
+ leftWidth: string | number;
95
+ rightWidth: string | number;
96
96
  }, {}>;
97
97
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ pattern?: any;
2
3
  tiny_mode?: any;
3
4
  tiny_mode_root?: any;
4
5
  tiny_template?: any;
@@ -6,7 +7,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
6
7
  _constants?: any;
7
8
  tiny_theme?: any;
8
9
  tiny_chart_theme?: any;
9
- pattern?: any;
10
10
  headerHeight?: any;
11
11
  asideWidth?: any;
12
12
  footerHeight?: any;
@@ -20,6 +20,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
20
20
  gcls: (key: any) => any;
21
21
  m: (...cssClasses: any[]) => string;
22
22
  }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
23
+ pattern?: any;
23
24
  tiny_mode?: any;
24
25
  tiny_mode_root?: any;
25
26
  tiny_template?: any;
@@ -27,11 +28,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
27
28
  _constants?: any;
28
29
  tiny_theme?: any;
29
30
  tiny_chart_theme?: any;
30
- pattern?: any;
31
31
  headerHeight?: any;
32
32
  asideWidth?: any;
33
33
  footerHeight?: any;
34
34
  }>>>, {
35
+ readonly pattern?: any;
35
36
  readonly tiny_mode?: any;
36
37
  readonly tiny_mode_root?: any;
37
38
  readonly tiny_template?: any;
@@ -39,7 +40,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
39
40
  readonly _constants?: any;
40
41
  readonly tiny_theme?: any;
41
42
  readonly tiny_chart_theme?: any;
42
- readonly pattern?: any;
43
43
  readonly headerHeight?: any;
44
44
  readonly asideWidth?: any;
45
45
  readonly footerHeight?: any;
package/lib/mobile.js DELETED
@@ -1,85 +0,0 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/container/vue';
2
- import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
- import '@opentinyvue/vue-theme-mobile/container/index.css';
4
- import { openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, createCommentVNode } from 'vue';
5
-
6
- function _createForOfIteratorHelperLoose(r, e) {
7
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
8
- if (t) return (t = t.call(r)).next.bind(t);
9
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
10
- t && (r = t);
11
- var o = 0;
12
- return function() {
13
- return o >= r.length ? { done: true } : { done: false, value: r[o++] };
14
- };
15
- }
16
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
- }
18
- function _unsupportedIterableToArray(r, a) {
19
- if (r) {
20
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
21
- var t = {}.toString.call(r).slice(8, -1);
22
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
23
- }
24
- }
25
- function _arrayLikeToArray(r, a) {
26
- (null == a || a > r.length) && (a = r.length);
27
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
28
- return n;
29
- }
30
- var _export_sfc = function _export_sfc2(sfc, props) {
31
- var target = sfc.__vccOpts || sfc;
32
- for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
33
- var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
34
- target[key] = val;
35
- }
36
- return target;
37
- };
38
-
39
- var _sfc_main = defineComponent({
40
- props: [].concat(props, ["pattern", "leftWidth", "rightWidth"]),
41
- setup: function setup$1(props2, context) {
42
- return setup({
43
- props: props2,
44
- context,
45
- renderless,
46
- api
47
- });
48
- }
49
- });
50
- var _hoisted_1 = {
51
- class: "tiny-mobile-container__center"
52
- };
53
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
54
- return openBlock(), createElementBlock(
55
- "div",
56
- {
57
- class: normalizeClass([[_ctx.pattern], "tiny-mobile-container"])
58
- },
59
- [createElementVNode(
60
- "div",
61
- {
62
- style: normalizeStyle(_ctx.state.leftStyle),
63
- class: "tiny-mobile-container__left"
64
- },
65
- [renderSlot(_ctx.$slots, "left")],
66
- 4
67
- /* STYLE */
68
- ), createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "center")]), _ctx.state.showRight ? (openBlock(), createElementBlock(
69
- "div",
70
- {
71
- key: 0,
72
- style: normalizeStyle(_ctx.state.rightStyle),
73
- class: "tiny-mobile-container__right"
74
- },
75
- [renderSlot(_ctx.$slots, "right")],
76
- 4
77
- /* STYLE */
78
- )) : createCommentVNode("v-if", true)],
79
- 2
80
- /* CLASS */
81
- );
82
- }
83
- var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
84
-
85
- export { mobile as default };
@@ -1,44 +0,0 @@
1
- declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
- tiny_mode?: any;
3
- tiny_mode_root?: any;
4
- tiny_template?: any;
5
- tiny_renderless?: any;
6
- _constants?: any;
7
- tiny_theme?: any;
8
- tiny_chart_theme?: any;
9
- pattern?: any;
10
- leftWidth?: any;
11
- rightWidth?: any;
12
- }>, {
13
- t: (this: any, path: any, options?: any) => any;
14
- vm: any;
15
- f: (props: any, attrs?: {}) => {};
16
- a: (attrs: any, filters: any, include: any) => {};
17
- d: (props: any) => void;
18
- dp: (props: any) => void;
19
- gcls: (key: any) => any;
20
- m: (...cssClasses: any[]) => string;
21
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
22
- tiny_mode?: any;
23
- tiny_mode_root?: any;
24
- tiny_template?: any;
25
- tiny_renderless?: any;
26
- _constants?: any;
27
- tiny_theme?: any;
28
- tiny_chart_theme?: any;
29
- pattern?: any;
30
- leftWidth?: any;
31
- rightWidth?: any;
32
- }>>>, {
33
- readonly tiny_mode?: any;
34
- readonly tiny_mode_root?: any;
35
- readonly tiny_template?: any;
36
- readonly tiny_renderless?: any;
37
- readonly _constants?: any;
38
- readonly tiny_theme?: any;
39
- readonly tiny_chart_theme?: any;
40
- readonly pattern?: any;
41
- readonly leftWidth?: any;
42
- readonly rightWidth?: any;
43
- }, {}>;
44
- export default _default;