@opentinyvue/vue-container 2.21.0 → 2.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 +3 -10
- package/package.json +4 -5
- package/lib/mobile.js +0 -75
- package/src/mobile.vue.d.ts +0 -2
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, $
|
|
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
|
-
|
|
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 = "2.
|
|
71
|
+
var version = "2.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": "2.
|
|
3
|
+
"version": "2.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": "~2.
|
|
11
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
12
|
-
"@opentinyvue/vue-theme": "~3.
|
|
13
|
-
"@opentinyvue/vue-theme-mobile": "~3.21.0"
|
|
10
|
+
"@opentinyvue/vue-common": "~2.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/lib/mobile.js
DELETED
|
@@ -1,75 +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
|
-
|
|
5
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
6
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
7
|
-
if (render) {
|
|
8
|
-
options.render = render;
|
|
9
|
-
options.staticRenderFns = staticRenderFns;
|
|
10
|
-
options._compiled = true;
|
|
11
|
-
}
|
|
12
|
-
var hook;
|
|
13
|
-
if (injectStyles) {
|
|
14
|
-
hook = injectStyles;
|
|
15
|
-
}
|
|
16
|
-
if (hook) {
|
|
17
|
-
if (options.functional) {
|
|
18
|
-
options._injectStyles = hook;
|
|
19
|
-
var originalRender = options.render;
|
|
20
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
21
|
-
hook.call(context);
|
|
22
|
-
return originalRender(h, context);
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var __vue2_script = defineComponent({
|
|
36
|
-
props: [].concat(props, ["pattern", "leftWidth", "rightWidth"]),
|
|
37
|
-
setup: function setup$1(props2, context) {
|
|
38
|
-
return setup({
|
|
39
|
-
props: props2,
|
|
40
|
-
context,
|
|
41
|
-
renderless,
|
|
42
|
-
api
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
var render = function render2() {
|
|
47
|
-
var _vm = this;
|
|
48
|
-
var _h = _vm.$createElement;
|
|
49
|
-
var _c = _vm._self._c || _h;
|
|
50
|
-
return _c("div", {
|
|
51
|
-
staticClass: "tiny-mobile-container",
|
|
52
|
-
class: [_vm.pattern]
|
|
53
|
-
}, [_c("div", {
|
|
54
|
-
staticClass: "tiny-mobile-container__left",
|
|
55
|
-
style: _vm.state.leftStyle
|
|
56
|
-
}, [_vm._t("left")], 2), _c("div", {
|
|
57
|
-
staticClass: "tiny-mobile-container__center"
|
|
58
|
-
}, [_vm._t("center")], 2), _vm.state.showRight ? _c("div", {
|
|
59
|
-
staticClass: "tiny-mobile-container__right",
|
|
60
|
-
style: _vm.state.rightStyle
|
|
61
|
-
}, [_vm._t("right")], 2) : _vm._e()]);
|
|
62
|
-
};
|
|
63
|
-
var staticRenderFns = [];
|
|
64
|
-
var __cssModules = {};
|
|
65
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
66
|
-
function __vue2_injectStyles(context) {
|
|
67
|
-
for (var o in __cssModules) {
|
|
68
|
-
this[o] = __cssModules[o];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
var mobile = /* @__PURE__ */ function() {
|
|
72
|
-
return __component__.exports;
|
|
73
|
-
}();
|
|
74
|
-
|
|
75
|
-
export { mobile as default };
|
package/src/mobile.vue.d.ts
DELETED