@opentiny/vue-drawer 2.14.0 → 2.15.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 +4 -4
- package/lib/mobile-first.js +11 -11
- package/lib/pc.js +13 -13
- package/package.json +7 -7
- package/src/index.d.ts +2 -68
- package/src/mobile-first.vue.d.ts +1 -1
- package/src/pc.vue.d.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function _extends() {
|
|
|
12
12
|
};
|
|
13
13
|
return _extends.apply(this, arguments);
|
|
14
14
|
}
|
|
15
|
-
import { $prefix, $setup, $props } from "@opentiny/vue-common";
|
|
15
|
+
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
|
|
16
16
|
import PcTemplate from "./pc.js";
|
|
17
17
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
18
18
|
var template = function template2(mode) {
|
|
@@ -92,7 +92,7 @@ var drawerProps = _extends({}, $props, {
|
|
|
92
92
|
beforeClose: Function,
|
|
93
93
|
tipsProps: Object
|
|
94
94
|
});
|
|
95
|
-
var Drawer = {
|
|
95
|
+
var Drawer = defineComponent({
|
|
96
96
|
name: $prefix + "Drawer",
|
|
97
97
|
props: drawerProps,
|
|
98
98
|
setup: function setup(props, context) {
|
|
@@ -102,8 +102,8 @@ var Drawer = {
|
|
|
102
102
|
template
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
};
|
|
106
|
-
var version = "2.
|
|
105
|
+
});
|
|
106
|
+
var version = "2.15.0";
|
|
107
107
|
Drawer.model = {
|
|
108
108
|
prop: "modelValue",
|
|
109
109
|
event: "update:modelValue"
|
package/lib/mobile-first.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { renderless, api } from
|
|
2
|
-
import { props, setup
|
|
3
|
-
import { IconClose } from
|
|
4
|
-
import Button from
|
|
1
|
+
import { renderless, api } from '@opentiny/vue-renderless/drawer/vue';
|
|
2
|
+
import { defineComponent, props, setup } from '@opentiny/vue-common';
|
|
3
|
+
import { IconClose } from '@opentiny/vue-icon';
|
|
4
|
+
import Button from '@opentiny/vue-button';
|
|
5
|
+
|
|
5
6
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
6
7
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
7
8
|
if (render) {
|
|
@@ -56,21 +57,21 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
var __vue2_script = {
|
|
60
|
+
var __vue2_script = defineComponent({
|
|
60
61
|
components: {
|
|
61
62
|
TinyButton: Button,
|
|
62
63
|
IconClose: IconClose()
|
|
63
64
|
},
|
|
64
65
|
props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "mask", "dragable", "maskClosable", "lockScroll", "flex", "beforeClose"]),
|
|
65
|
-
setup: function setup(props2, context) {
|
|
66
|
-
return
|
|
66
|
+
setup: function setup$1(props2, context) {
|
|
67
|
+
return setup({
|
|
67
68
|
props: props2,
|
|
68
69
|
context,
|
|
69
70
|
renderless,
|
|
70
71
|
api
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
|
-
};
|
|
74
|
+
});
|
|
74
75
|
var render = function render2() {
|
|
75
76
|
var _vm = this;
|
|
76
77
|
var _h = _vm.$createElement;
|
|
@@ -205,6 +206,5 @@ function __vue2_injectStyles(context) {
|
|
|
205
206
|
var mobileFirst = /* @__PURE__ */ function() {
|
|
206
207
|
return __component__.exports;
|
|
207
208
|
}();
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
};
|
|
209
|
+
|
|
210
|
+
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { renderless, api } from
|
|
2
|
-
import { props, setup
|
|
3
|
-
import
|
|
4
|
-
import { iconClose, iconHelpCircle } from
|
|
5
|
-
import Button from
|
|
6
|
-
import Tooltip from
|
|
1
|
+
import { renderless, api } from '@opentiny/vue-renderless/drawer/vue';
|
|
2
|
+
import { defineComponent, props, setup } from '@opentiny/vue-common';
|
|
3
|
+
import '@opentiny/vue-theme/drawer/index.css';
|
|
4
|
+
import { iconClose, iconHelpCircle } from '@opentiny/vue-icon';
|
|
5
|
+
import Button from '@opentiny/vue-button';
|
|
6
|
+
import Tooltip from '@opentiny/vue-tooltip';
|
|
7
|
+
|
|
7
8
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
8
9
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
9
10
|
if (render) {
|
|
@@ -58,7 +59,7 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
var __vue2_script = {
|
|
62
|
+
var __vue2_script = defineComponent({
|
|
62
63
|
components: {
|
|
63
64
|
TinyButton: Button,
|
|
64
65
|
TinyTooltip: Tooltip,
|
|
@@ -66,15 +67,15 @@ var __vue2_script = {
|
|
|
66
67
|
IconHelpCircle: iconHelpCircle()
|
|
67
68
|
},
|
|
68
69
|
props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "mask", "dragable", "maskClosable", "lockScroll", "flex", "showClose", "zIndex", "beforeClose", "tipsProps"]),
|
|
69
|
-
setup: function setup(props2, context) {
|
|
70
|
-
return
|
|
70
|
+
setup: function setup$1(props2, context) {
|
|
71
|
+
return setup({
|
|
71
72
|
props: props2,
|
|
72
73
|
context,
|
|
73
74
|
renderless,
|
|
74
75
|
api
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
|
-
};
|
|
78
|
+
});
|
|
78
79
|
var render = function render2() {
|
|
79
80
|
var _vm = this;
|
|
80
81
|
var _h = _vm.$createElement;
|
|
@@ -220,6 +221,5 @@ function __vue2_injectStyles(context) {
|
|
|
220
221
|
var pc = /* @__PURE__ */ function() {
|
|
221
222
|
return __component__.exports;
|
|
222
223
|
}();
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
};
|
|
224
|
+
|
|
225
|
+
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-drawer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.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
|
-
"@opentiny/vue-button": "~2.
|
|
11
|
-
"@opentiny/vue-tooltip": "~2.
|
|
12
|
-
"@opentiny/vue-common": "~2.
|
|
13
|
-
"@opentiny/vue-renderless": "~3.
|
|
14
|
-
"@opentiny/vue-icon": "~2.
|
|
15
|
-
"@opentiny/vue-theme": "~3.
|
|
10
|
+
"@opentiny/vue-button": "~2.15.0",
|
|
11
|
+
"@opentiny/vue-tooltip": "~2.15.0",
|
|
12
|
+
"@opentiny/vue-common": "~2.15.0",
|
|
13
|
+
"@opentiny/vue-renderless": "~3.15.0",
|
|
14
|
+
"@opentiny/vue-icon": "~2.15.0",
|
|
15
|
+
"@opentiny/vue-theme": "~3.15.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const drawerProps: {
|
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
-
customClass: (
|
|
13
|
+
customClass: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
14
14
|
placement: {
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
default: string;
|
|
@@ -61,71 +61,5 @@ export declare const drawerProps: {
|
|
|
61
61
|
tiny_theme: StringConstructor;
|
|
62
62
|
tiny_chart_theme: ObjectConstructor;
|
|
63
63
|
};
|
|
64
|
-
declare const _default:
|
|
65
|
-
name: string;
|
|
66
|
-
props: {
|
|
67
|
-
_constants: {
|
|
68
|
-
type: ObjectConstructor;
|
|
69
|
-
default: () => {
|
|
70
|
-
SCROLL_LOCK_CLASS(mode: string): string;
|
|
71
|
-
DEFAULT_WIDTH: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
visible: {
|
|
75
|
-
type: BooleanConstructor;
|
|
76
|
-
default: boolean;
|
|
77
|
-
};
|
|
78
|
-
customClass: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
|
|
79
|
-
placement: {
|
|
80
|
-
type: StringConstructor;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
|
-
width: {
|
|
84
|
-
type: StringConstructor;
|
|
85
|
-
};
|
|
86
|
-
title: StringConstructor;
|
|
87
|
-
showClose: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
default: boolean;
|
|
90
|
-
};
|
|
91
|
-
showHeader: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
showFooter: {
|
|
96
|
-
type: BooleanConstructor;
|
|
97
|
-
default: boolean;
|
|
98
|
-
};
|
|
99
|
-
mask: {
|
|
100
|
-
type: BooleanConstructor;
|
|
101
|
-
default: boolean;
|
|
102
|
-
};
|
|
103
|
-
maskClosable: {
|
|
104
|
-
type: BooleanConstructor;
|
|
105
|
-
default: boolean;
|
|
106
|
-
};
|
|
107
|
-
dragable: BooleanConstructor;
|
|
108
|
-
lockScroll: {
|
|
109
|
-
type: BooleanConstructor;
|
|
110
|
-
default: boolean;
|
|
111
|
-
};
|
|
112
|
-
flex: {
|
|
113
|
-
type: BooleanConstructor;
|
|
114
|
-
default: boolean;
|
|
115
|
-
};
|
|
116
|
-
zIndex: {
|
|
117
|
-
type: NumberConstructor;
|
|
118
|
-
default: number;
|
|
119
|
-
};
|
|
120
|
-
beforeClose: FunctionConstructor;
|
|
121
|
-
tipsProps: ObjectConstructor;
|
|
122
|
-
tiny_mode: StringConstructor;
|
|
123
|
-
tiny_mode_root: BooleanConstructor;
|
|
124
|
-
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
125
|
-
tiny_renderless: FunctionConstructor;
|
|
126
|
-
tiny_theme: StringConstructor;
|
|
127
|
-
tiny_chart_theme: ObjectConstructor;
|
|
128
|
-
};
|
|
129
|
-
setup(props: any, context: any): () => any;
|
|
130
|
-
};
|
|
64
|
+
declare const _default: any;
|
|
131
65
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|