@opentinyvue/vue-layout 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 +1 -1
- package/lib/pc.js +42 -46
- package/package.json +2 -2
- package/src/index.d.ts +39 -1
- package/src/pc.vue.d.ts +37 -1
package/lib/index.js
CHANGED
package/lib/pc.js
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/layout/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
+
import { openBlock, createBlock, resolveDynamicComponent, withCtx, renderSlot } from 'vue';
|
|
3
4
|
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
6
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
8
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
9
|
+
t && (r = t);
|
|
10
|
+
var o = 0;
|
|
11
|
+
return function() {
|
|
12
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
13
|
+
};
|
|
10
14
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
}
|
|
15
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
|
+
}
|
|
17
|
+
function _unsupportedIterableToArray(r, a) {
|
|
18
|
+
if (r) {
|
|
19
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
20
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
21
|
+
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;
|
|
27
22
|
}
|
|
28
|
-
return {
|
|
29
|
-
exports: scriptExports,
|
|
30
|
-
options
|
|
31
|
-
};
|
|
32
23
|
}
|
|
24
|
+
function _arrayLikeToArray(r, a) {
|
|
25
|
+
(null == a || a > r.length) && (a = r.length);
|
|
26
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
30
|
+
var target = sfc.__vccOpts || sfc;
|
|
31
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
32
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
33
|
+
target[key] = val;
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
33
37
|
|
|
34
|
-
var
|
|
38
|
+
var _sfc_main = defineComponent({
|
|
35
39
|
props: [].concat(props, ["tag"]),
|
|
36
40
|
setup: function setup$1(props2, context) {
|
|
37
41
|
return setup({
|
|
@@ -42,25 +46,17 @@ var __vue2_script = defineComponent({
|
|
|
42
46
|
});
|
|
43
47
|
}
|
|
44
48
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var __cssModules = {};
|
|
56
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
57
|
-
function __vue2_injectStyles(context) {
|
|
58
|
-
for (var o in __cssModules) {
|
|
59
|
-
this[o] = __cssModules[o];
|
|
60
|
-
}
|
|
49
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
51
|
+
class: "tiny-layout"
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(function() {
|
|
54
|
+
return [renderSlot(_ctx.$slots, "default")];
|
|
55
|
+
}),
|
|
56
|
+
_: 3
|
|
57
|
+
/* FORWARDED */
|
|
58
|
+
});
|
|
61
59
|
}
|
|
62
|
-
var pc = /* @__PURE__ */
|
|
63
|
-
return __component__.exports;
|
|
64
|
-
}();
|
|
60
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
65
61
|
|
|
66
62
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-layout",
|
|
3
|
-
"version": "
|
|
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": "~
|
|
10
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
11
11
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
12
12
|
"@opentinyvue/vue-theme": "~3.22.0"
|
|
13
13
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
tag: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
cols: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
tiny_mode: StringConstructor;
|
|
12
|
+
tiny_mode_root: BooleanConstructor;
|
|
13
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
14
|
+
tiny_renderless: FunctionConstructor;
|
|
15
|
+
tiny_theme: StringConstructor;
|
|
16
|
+
tiny_chart_theme: ObjectConstructor;
|
|
17
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
20
|
+
tag: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
cols: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
validator: (value: string) => boolean;
|
|
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
|
+
}>>, {
|
|
36
|
+
tag: string;
|
|
37
|
+
tiny_mode_root: boolean;
|
|
38
|
+
cols: number;
|
|
39
|
+
}, {}>;
|
|
2
40
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
tag?: any;
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
}>, {
|
|
11
|
+
t: (this: any, path: any, options?: any) => any;
|
|
12
|
+
vm: any;
|
|
13
|
+
f: (props: any, attrs?: {}) => {};
|
|
14
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
15
|
+
d: (props: any) => void;
|
|
16
|
+
dp: (props: any) => void;
|
|
17
|
+
gcls: (key: any) => any;
|
|
18
|
+
m: (...cssClasses: any[]) => string;
|
|
19
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
20
|
+
tag?: any;
|
|
21
|
+
tiny_mode?: any;
|
|
22
|
+
tiny_mode_root?: any;
|
|
23
|
+
tiny_template?: any;
|
|
24
|
+
tiny_renderless?: any;
|
|
25
|
+
_constants?: any;
|
|
26
|
+
tiny_theme?: any;
|
|
27
|
+
tiny_chart_theme?: any;
|
|
28
|
+
}>>>, {
|
|
29
|
+
readonly tag?: any;
|
|
30
|
+
readonly tiny_mode?: any;
|
|
31
|
+
readonly tiny_mode_root?: any;
|
|
32
|
+
readonly tiny_template?: any;
|
|
33
|
+
readonly tiny_renderless?: any;
|
|
34
|
+
readonly _constants?: any;
|
|
35
|
+
readonly tiny_theme?: any;
|
|
36
|
+
readonly tiny_chart_theme?: any;
|
|
37
|
+
}, {}>;
|
|
2
38
|
export default _default;
|