@opentiny/vue-drawer 2.15.0 → 2.16.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/mobile-first.js +5 -3
- package/lib/pc.js +2 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -119,14 +119,15 @@ var render = function render2() {
|
|
|
119
119
|
"translate-x-0": ["left", "right"].includes(_vm.placement) && _vm.state.toggle
|
|
120
120
|
}, _vm.customClass),
|
|
121
121
|
style: {
|
|
122
|
-
width: ["left", "right"].includes(_vm.placement) ? _vm.state.computedWidth : null
|
|
122
|
+
width: ["left", "right"].includes(_vm.placement) ? _vm.state.computedWidth : null,
|
|
123
|
+
height: ["top", "bottom"].includes(_vm.placement) && _vm.dragable && _vm.state.height ? _vm.state.height + "px" : null
|
|
123
124
|
},
|
|
124
125
|
attrs: {
|
|
125
126
|
"data-tag": "tiny-drawer-main"
|
|
126
127
|
}
|
|
127
128
|
}, [_vm.dragable ? _c("div", {
|
|
128
129
|
ref: "dragBar",
|
|
129
|
-
class: ["h-full
|
|
130
|
+
class: ["absolute", ["left", "right"].includes(_vm.placement) && "cursor-e-resize h-full top-0 w-2", ["top", "bottom"].includes(_vm.placement) && "cursor-n-resize w-full h-2 left-0", _vm.placement === "left" && "-right-1", _vm.placement === "right" && "-left-1", _vm.placement === "top" && "-bottom-1", _vm.placement === "bottom" && "-top-1"],
|
|
130
131
|
attrs: {
|
|
131
132
|
"data-tag": "drawer-drag-bar"
|
|
132
133
|
}
|
|
@@ -140,11 +141,12 @@ var render = function render2() {
|
|
|
140
141
|
}
|
|
141
142
|
}, [_vm._t("header", function() {
|
|
142
143
|
return [_vm.title ? _c("div", {
|
|
143
|
-
staticClass: "max-w-[80%] pr-4 text-left truncate"
|
|
144
|
+
staticClass: "max-w-[80%] pr-4 text-left truncate text-color-text-primary"
|
|
144
145
|
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e(), _c("div", {
|
|
145
146
|
staticClass: "flex-1 flex items-center justify-end"
|
|
146
147
|
}, [_vm._t("header-right", function() {
|
|
147
148
|
return [_c("IconClose", {
|
|
149
|
+
staticClass: "fill-color-icon-primary",
|
|
148
150
|
attrs: {
|
|
149
151
|
"custom-class": "h-5 w-5 cursor-pointer"
|
|
150
152
|
},
|
package/lib/pc.js
CHANGED
|
@@ -124,6 +124,7 @@ var render = function render2() {
|
|
|
124
124
|
}, "tiny-drawer-main", _vm.customClass],
|
|
125
125
|
style: {
|
|
126
126
|
width: ["left", "right"].includes(_vm.placement) ? _vm.state.computedWidth : null,
|
|
127
|
+
height: ["top", "bottom"].includes(_vm.placement) && _vm.dragable && _vm.state.height ? _vm.state.height + "px" : null,
|
|
127
128
|
zIndex: _vm.zIndex
|
|
128
129
|
},
|
|
129
130
|
attrs: {
|
|
@@ -131,7 +132,7 @@ var render = function render2() {
|
|
|
131
132
|
}
|
|
132
133
|
}, [_vm.dragable ? _c("div", {
|
|
133
134
|
ref: "dragBar",
|
|
134
|
-
class: ["tiny-drawer__drag-bar"],
|
|
135
|
+
class: ["tiny-drawer__drag-bar", ["left", "right"].includes(_vm.placement) && "p-left-Right", ["top", "bottom"].includes(_vm.placement) && "p-top-Bottom", _vm.placement === "left" && "p-left", _vm.placement === "right" && "p-right", _vm.placement === "top" && "p-top", _vm.placement === "bottom" && "p-bottom"],
|
|
135
136
|
attrs: {
|
|
136
137
|
"data-tag": "drawer-drag-bar"
|
|
137
138
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-drawer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.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.16.0",
|
|
11
|
+
"@opentiny/vue-tooltip": "~2.16.0",
|
|
12
|
+
"@opentiny/vue-common": "~2.16.0",
|
|
13
|
+
"@opentiny/vue-renderless": "~3.16.0",
|
|
14
|
+
"@opentiny/vue-icon": "~2.16.0",
|
|
15
|
+
"@opentiny/vue-theme": "~3.16.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts"
|