@opentinyvue/vue-floating-button 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/mobile-first.js +191 -157
- package/package.json +3 -3
- package/src/index.d.ts +109 -1
- package/src/mobile-first.vue.d.ts +66 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/floating-button/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import { iconPlus } from '@opentinyvue/vue-icon';
|
|
4
|
+
import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, normalizeStyle, createBlock, resolveDynamicComponent, toDisplayString } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
};
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
}
|
|
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;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
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
|
+
};
|
|
34
38
|
|
|
35
|
-
var
|
|
39
|
+
var _sfc_main = defineComponent({
|
|
36
40
|
emits: ["click"],
|
|
37
41
|
props: [].concat(props, ["position", "backgroundColor", "icon", "resetTime", "animated", "expandList", "isExpand", "vague", "mask", "elementSelector"]),
|
|
38
42
|
components: {
|
|
@@ -47,138 +51,168 @@ var __vue2_script = defineComponent({
|
|
|
47
51
|
});
|
|
48
52
|
}
|
|
49
53
|
});
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
attrs: {
|
|
65
|
-
"data-tag": "tiny-floating-button-mask"
|
|
66
|
-
}
|
|
67
|
-
}) : _vm._e(), _c("div", {
|
|
68
|
-
class: ["rounded-full fixed bottom-11 leading-none", _vm.position === "center" ? "" : _vm.position === "left" ? !_vm.state.specialHiddenSpace && "left-3" : "right-3"],
|
|
69
|
-
style: _vm.state.style,
|
|
70
|
-
attrs: {
|
|
71
|
-
"data-tag": "tiny-floating-button"
|
|
72
|
-
}
|
|
73
|
-
}, [_c("button", {
|
|
74
|
-
ref: "floatingButton",
|
|
75
|
-
class: _vm.m("w-11 h-11 p-3 rounded-full", _vm.state.disabled ? "text-color-text-disabled bg-color-bg-3 border-transparent active:cursor-not-allowed" : _vm.backgroundColor === "white" ? "bg-color-bg-1" : "text-color-bg-1 bg-color-brand"),
|
|
76
|
-
attrs: {
|
|
77
|
-
"data-tag": "tiny-floating-button-main"
|
|
78
|
-
},
|
|
79
|
-
on: {
|
|
80
|
-
"click": function click($event) {
|
|
81
|
-
return _vm.handleClick($event, 0);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}, [_c(_vm.icon, {
|
|
85
|
-
tag: "component",
|
|
86
|
-
class: _vm.m("w-5 h-5 rotate-0 transition-transform duration-300 will-change-transform", _vm.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : _vm.backgroundColor === "white" ? "fill-color-icon-secondary" : "fill-color-bg-1", {
|
|
87
|
-
"rotate-45": _vm.state.isExpand
|
|
88
|
-
}),
|
|
89
|
-
attrs: {
|
|
90
|
-
"data-tag": "tiny-floating-button-icon"
|
|
91
|
-
}
|
|
92
|
-
})], 1), _vm.state.expandList && _vm.state.expandList.length >= 1 ? _c("div", {
|
|
93
|
-
class: _vm.m("absolute -bottom-5 -mb-0.5 -left-0.5 -z-10 transition-bottom ease-linear duration-100 cursor-pointer", {
|
|
94
|
-
"bottom-18 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "right"
|
|
95
|
-
}, {
|
|
96
|
-
"bottom-16 -mb-1 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "center"
|
|
97
|
-
}, {
|
|
98
|
-
"bottom-18 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "left"
|
|
99
|
-
}),
|
|
100
|
-
attrs: {
|
|
101
|
-
"data-tag": "tiny-floating-button-expand-first"
|
|
102
|
-
},
|
|
103
|
-
on: {
|
|
104
|
-
"click": function click($event) {
|
|
105
|
-
return _vm.handleClick($event, 1);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}, [_c("button", {
|
|
109
|
-
class: _vm.m("w-11 h-11 rounded-full mx-0.5", _vm.state.disabled ? "text-color-text-disabled bg-color-bg-3 border-transparent active:cursor-not-allowed" : "bg-color-info-primary-subtler")
|
|
110
|
-
}, [_c(_vm.state.expandList && _vm.state.expandList[0].icon, {
|
|
111
|
-
tag: "component",
|
|
112
|
-
class: ["w-5 h-5", _vm.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : "fill-color-brand"],
|
|
113
|
-
attrs: {
|
|
114
|
-
"data-tag": "tiny-floating-button-icon"
|
|
115
|
-
}
|
|
116
|
-
})], 1), _c("span", {
|
|
117
|
-
class: ["text-center mt-0.5 text-xs w-12 leading-5 block opacity-0 transition-opacity ease-linear duration-100 invisible", !_vm.mask ? "text-color-fill-primary" : "text-color-bg-1"]
|
|
118
|
-
}, [_vm._v(_vm._s(_vm.state.expandList && _vm.state.expandList[0].title))])]) : _vm._e(), _vm.state.expandList && _vm.state.expandList.length >= 2 ? _c("div", {
|
|
119
|
-
class: _vm.m("absolute -bottom-5 -mb-0.5 -left-0.5 -z-10 transition-bottom ease-linear duration-100 cursor-pointer", {
|
|
120
|
-
"-left-18 bottom-11 mb-0 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "right"
|
|
121
|
-
}, {
|
|
122
|
-
"-left-18 right-auto bottom-4.5 mb-0 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "center"
|
|
123
|
-
}, {
|
|
124
|
-
"left-18 right-auto bottom-11 mb-0 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "left"
|
|
125
|
-
}),
|
|
126
|
-
attrs: {
|
|
127
|
-
"data-tag": "tiny-floating-button-expand-second"
|
|
54
|
+
var _hoisted_1 = {
|
|
55
|
+
"data-tag": "tiny-floating-button-body"
|
|
56
|
+
};
|
|
57
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.vague || _ctx.mask ? (openBlock(), createElementBlock(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
key: 0,
|
|
62
|
+
"data-tag": "tiny-floating-button-mask",
|
|
63
|
+
class: normalizeClass(["w-screen h-screen fixed top-0 bottom-0 left-0 right-0", {
|
|
64
|
+
"bg-color-fill-5 backdrop-blur-md": _ctx.vague
|
|
65
|
+
}, {
|
|
66
|
+
"bg-black opacity-30": _ctx.mask
|
|
67
|
+
}])
|
|
128
68
|
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
class: ["w-5 h-5", _vm.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : "fill-color-success-active"],
|
|
139
|
-
attrs: {
|
|
140
|
-
"data-tag": "tiny-floating-button-icon"
|
|
141
|
-
}
|
|
142
|
-
})], 1), _c("span", {
|
|
143
|
-
class: ["text-center text-xs mt-0.5 w-12 leading-5 block opacity-0 transition-opacity ease-linear duration-100 invisible", !_vm.mask ? "text-color-fill-primary" : "text-color-bg-1"]
|
|
144
|
-
}, [_vm._v(_vm._s(_vm.state.expandList && _vm.state.expandList[1].title))])]) : _vm._e(), _vm.state.expandList && _vm.state.expandList.length >= 3 ? _c("div", {
|
|
145
|
-
class: _vm.m("absolute -bottom-5 -mb-0.5 -left-0.5 -z-10 transition-bottom ease-linear duration-100 cursor-pointer", {
|
|
146
|
-
"-left-18 -bottom-9 -mb-1 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "right"
|
|
147
|
-
}, {
|
|
148
|
-
"left-18 right-auto bottom-4.5 mb-0 [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "center"
|
|
149
|
-
}, {
|
|
150
|
-
"left-18 -bottom-9 -mb-1 right-auto [&_span]:opacity-100 [&_span]:visible": _vm.state.isExpand && _vm.position === "left"
|
|
151
|
-
}),
|
|
152
|
-
attrs: {
|
|
153
|
-
"data-tag": "tiny-floating-button-expand-third"
|
|
69
|
+
null,
|
|
70
|
+
2
|
|
71
|
+
/* CLASS */
|
|
72
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
"data-tag": "tiny-floating-button",
|
|
76
|
+
class: normalizeClass(["rounded-full fixed bottom-11 leading-none", _ctx.position === "center" ? "" : _ctx.position === "left" ? !_ctx.state.specialHiddenSpace && "left-3" : "right-3"]),
|
|
77
|
+
style: normalizeStyle(_ctx.state.style)
|
|
154
78
|
},
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
79
|
+
[createElementVNode(
|
|
80
|
+
"button",
|
|
81
|
+
{
|
|
82
|
+
"data-tag": "tiny-floating-button-main",
|
|
83
|
+
onClick: _cache[0] || (_cache[0] = function($event) {
|
|
84
|
+
return _ctx.handleClick($event, 0);
|
|
85
|
+
}),
|
|
86
|
+
ref: "floatingButton",
|
|
87
|
+
class: normalizeClass(_ctx.m("w-11 h-11 p-3 rounded-full", _ctx.state.disabled ? "text-color-text-disabled bg-color-bg-3 border-transparent active:cursor-not-allowed" : _ctx.backgroundColor === "white" ? "bg-color-bg-1" : "text-color-bg-1 bg-color-brand"))
|
|
88
|
+
},
|
|
89
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
90
|
+
"data-tag": "tiny-floating-button-icon",
|
|
91
|
+
class: normalizeClass(_ctx.m("w-5 h-5 rotate-0 transition-transform duration-300 will-change-transform", _ctx.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : _ctx.backgroundColor === "white" ? "fill-color-icon-secondary" : "fill-color-bg-1", {
|
|
92
|
+
"rotate-45": _ctx.state.isExpand
|
|
93
|
+
}))
|
|
94
|
+
}, null, 8, ["class"]))],
|
|
95
|
+
2
|
|
96
|
+
/* CLASS */
|
|
97
|
+
), _ctx.state.expandList && _ctx.state.expandList.length >= 1 ? (openBlock(), createElementBlock(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
key: 0,
|
|
101
|
+
"data-tag": "tiny-floating-button-expand-first",
|
|
102
|
+
onClick: _cache[1] || (_cache[1] = function($event) {
|
|
103
|
+
return _ctx.handleClick($event, 1);
|
|
104
|
+
}),
|
|
105
|
+
class: normalizeClass(_ctx.m("absolute -bottom-5 -mb-0.5 -left-0.5 -z-10 transition-bottom ease-linear duration-100 cursor-pointer", {
|
|
106
|
+
"bottom-18 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "right"
|
|
107
|
+
}, {
|
|
108
|
+
"bottom-16 -mb-1 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "center"
|
|
109
|
+
}, {
|
|
110
|
+
"bottom-18 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "left"
|
|
111
|
+
}))
|
|
112
|
+
},
|
|
113
|
+
[createElementVNode(
|
|
114
|
+
"button",
|
|
115
|
+
{
|
|
116
|
+
class: normalizeClass(_ctx.m("w-11 h-11 rounded-full mx-0.5", _ctx.state.disabled ? "text-color-text-disabled bg-color-bg-3 border-transparent active:cursor-not-allowed" : "bg-color-info-primary-subtler"))
|
|
117
|
+
},
|
|
118
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.expandList && _ctx.state.expandList[0].icon), {
|
|
119
|
+
"data-tag": "tiny-floating-button-icon",
|
|
120
|
+
class: normalizeClass(["w-5 h-5", _ctx.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : "fill-color-brand"])
|
|
121
|
+
}, null, 8, ["class"]))],
|
|
122
|
+
2
|
|
123
|
+
/* CLASS */
|
|
124
|
+
), createElementVNode(
|
|
125
|
+
"span",
|
|
126
|
+
{
|
|
127
|
+
class: normalizeClass(["text-center mt-0.5 text-xs w-12 leading-5 block opacity-0 transition-opacity ease-linear duration-100 invisible", !_ctx.mask ? "text-color-fill-primary" : "text-color-bg-1"])
|
|
128
|
+
},
|
|
129
|
+
toDisplayString(_ctx.state.expandList && _ctx.state.expandList[0].title),
|
|
130
|
+
3
|
|
131
|
+
/* TEXT, CLASS */
|
|
132
|
+
)],
|
|
133
|
+
2
|
|
134
|
+
/* CLASS */
|
|
135
|
+
)) : createCommentVNode("v-if", true), _ctx.state.expandList && _ctx.state.expandList.length >= 2 ? (openBlock(), createElementBlock(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
key: 1,
|
|
139
|
+
"data-tag": "tiny-floating-button-expand-second",
|
|
140
|
+
onClick: _cache[2] || (_cache[2] = function($event) {
|
|
141
|
+
return _ctx.handleClick($event, 2);
|
|
142
|
+
}),
|
|
143
|
+
class: normalizeClass(_ctx.m("absolute -bottom-5 -mb-0.5 -left-0.5 -z-10 transition-bottom ease-linear duration-100 cursor-pointer", {
|
|
144
|
+
"-left-18 bottom-11 mb-0 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "right"
|
|
145
|
+
}, {
|
|
146
|
+
"-left-18 right-auto bottom-4.5 mb-0 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "center"
|
|
147
|
+
}, {
|
|
148
|
+
"left-18 right-auto bottom-11 mb-0 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "left"
|
|
149
|
+
}))
|
|
150
|
+
},
|
|
151
|
+
[createElementVNode(
|
|
152
|
+
"button",
|
|
153
|
+
{
|
|
154
|
+
class: normalizeClass(_ctx.m("w-11 h-11 rounded-full mx-0.5", _ctx.state.disabled ? "text-color-text-disabled bg-color-bg-3 border-transparent active:cursor-not-allowed" : "bg-color-success-subtler"))
|
|
155
|
+
},
|
|
156
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.expandList && _ctx.state.expandList[1].icon), {
|
|
157
|
+
"data-tag": "tiny-floating-button-icon",
|
|
158
|
+
class: normalizeClass(["w-5 h-5", _ctx.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : "fill-color-success-active"])
|
|
159
|
+
}, null, 8, ["class"]))],
|
|
160
|
+
2
|
|
161
|
+
/* CLASS */
|
|
162
|
+
), createElementVNode(
|
|
163
|
+
"span",
|
|
164
|
+
{
|
|
165
|
+
class: normalizeClass(["text-center text-xs mt-0.5 w-12 leading-5 block opacity-0 transition-opacity ease-linear duration-100 invisible", !_ctx.mask ? "text-color-fill-primary" : "text-color-bg-1"])
|
|
166
|
+
},
|
|
167
|
+
toDisplayString(_ctx.state.expandList && _ctx.state.expandList[1].title),
|
|
168
|
+
3
|
|
169
|
+
/* TEXT, CLASS */
|
|
170
|
+
)],
|
|
171
|
+
2
|
|
172
|
+
/* CLASS */
|
|
173
|
+
)) : createCommentVNode("v-if", true), _ctx.state.expandList && _ctx.state.expandList.length >= 3 ? (openBlock(), createElementBlock(
|
|
174
|
+
"div",
|
|
175
|
+
{
|
|
176
|
+
key: 2,
|
|
177
|
+
"data-tag": "tiny-floating-button-expand-third",
|
|
178
|
+
onClick: _cache[3] || (_cache[3] = function($event) {
|
|
179
|
+
return _ctx.handleClick($event, 3);
|
|
180
|
+
}),
|
|
181
|
+
class: normalizeClass(_ctx.m("absolute -bottom-5 -mb-0.5 -left-0.5 -z-10 transition-bottom ease-linear duration-100 cursor-pointer", {
|
|
182
|
+
"-left-18 -bottom-9 -mb-1 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "right"
|
|
183
|
+
}, {
|
|
184
|
+
"left-18 right-auto bottom-4.5 mb-0 [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "center"
|
|
185
|
+
}, {
|
|
186
|
+
"left-18 -bottom-9 -mb-1 right-auto [&_span]:opacity-100 [&_span]:visible": _ctx.state.isExpand && _ctx.position === "left"
|
|
187
|
+
}))
|
|
188
|
+
},
|
|
189
|
+
[createElementVNode(
|
|
190
|
+
"button",
|
|
191
|
+
{
|
|
192
|
+
class: normalizeClass(_ctx.m("w-11 h-11 rounded-full mx-0.5", _ctx.state.disabled ? "text-color-text-disabled bg-color-bg-3 border-transparent active:cursor-not-allowed" : "bg-color-warning-subtler"))
|
|
193
|
+
},
|
|
194
|
+
[(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.expandList && _ctx.state.expandList[2].icon), {
|
|
195
|
+
"data-tag": "tiny-floating-button-icon",
|
|
196
|
+
class: normalizeClass(["w-5 h-5", _ctx.state.disabled ? "fill-color-icon-disabled active:cursor-not-allowed" : "fill-color-alert-hover"])
|
|
197
|
+
}, null, 8, ["class"]))],
|
|
198
|
+
2
|
|
199
|
+
/* CLASS */
|
|
200
|
+
), createElementVNode(
|
|
201
|
+
"span",
|
|
202
|
+
{
|
|
203
|
+
class: normalizeClass(["text-center text-xs mt-0.5 w-12 leading-5 block opacity-0 transition-opacity ease-linear duration-100 invisible", !_ctx.mask ? "text-color-fill-primary" : "text-color-bg-1"])
|
|
204
|
+
},
|
|
205
|
+
toDisplayString(_ctx.state.expandList && _ctx.state.expandList[2].title),
|
|
206
|
+
3
|
|
207
|
+
/* TEXT, CLASS */
|
|
208
|
+
)],
|
|
209
|
+
2
|
|
210
|
+
/* CLASS */
|
|
211
|
+
)) : createCommentVNode("v-if", true)],
|
|
212
|
+
6
|
|
213
|
+
/* CLASS, STYLE */
|
|
214
|
+
)]);
|
|
179
215
|
}
|
|
180
|
-
var mobileFirst = /* @__PURE__ */
|
|
181
|
-
return __component__.exports;
|
|
182
|
-
}();
|
|
216
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
183
217
|
|
|
184
218
|
export { mobileFirst as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-floating-button",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "./lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
12
|
-
"@opentinyvue/vue-icon": "~
|
|
11
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-icon": "~3.22.0"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -46,5 +46,113 @@ export declare const floatingButtonProps: {
|
|
|
46
46
|
tiny_theme: StringConstructor;
|
|
47
47
|
tiny_chart_theme: ObjectConstructor;
|
|
48
48
|
};
|
|
49
|
-
declare const _default:
|
|
49
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
50
|
+
position: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
backgroundColor: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
icon: {
|
|
59
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
resetTime: {
|
|
63
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
animated: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
expandList: {
|
|
71
|
+
type: ArrayConstructor;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
|
+
isExpand: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
vague: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
mask: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
elementSelector: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
tiny_mode: StringConstructor;
|
|
91
|
+
tiny_mode_root: BooleanConstructor;
|
|
92
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
93
|
+
tiny_renderless: FunctionConstructor;
|
|
94
|
+
tiny_theme: StringConstructor;
|
|
95
|
+
tiny_chart_theme: ObjectConstructor;
|
|
96
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
99
|
+
position: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
backgroundColor: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
icon: {
|
|
108
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
resetTime: {
|
|
112
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
113
|
+
default: number;
|
|
114
|
+
};
|
|
115
|
+
animated: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
expandList: {
|
|
120
|
+
type: ArrayConstructor;
|
|
121
|
+
default: () => never[];
|
|
122
|
+
};
|
|
123
|
+
isExpand: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
vague: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
mask: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
elementSelector: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
tiny_mode: StringConstructor;
|
|
140
|
+
tiny_mode_root: BooleanConstructor;
|
|
141
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
142
|
+
tiny_renderless: FunctionConstructor;
|
|
143
|
+
tiny_theme: StringConstructor;
|
|
144
|
+
tiny_chart_theme: ObjectConstructor;
|
|
145
|
+
}>>, {
|
|
146
|
+
icon: string | Record<string, any>;
|
|
147
|
+
position: string;
|
|
148
|
+
mask: boolean;
|
|
149
|
+
tiny_mode_root: boolean;
|
|
150
|
+
resetTime: string | number;
|
|
151
|
+
backgroundColor: string;
|
|
152
|
+
animated: boolean;
|
|
153
|
+
expandList: unknown[];
|
|
154
|
+
isExpand: boolean;
|
|
155
|
+
vague: boolean;
|
|
156
|
+
elementSelector: string;
|
|
157
|
+
}, {}>;
|
|
50
158
|
export default _default;
|
|
@@ -1,2 +1,67 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
icon?: any;
|
|
3
|
+
position?: any;
|
|
4
|
+
mask?: any;
|
|
5
|
+
tiny_mode?: any;
|
|
6
|
+
tiny_mode_root?: any;
|
|
7
|
+
tiny_template?: any;
|
|
8
|
+
tiny_renderless?: any;
|
|
9
|
+
_constants?: any;
|
|
10
|
+
tiny_theme?: any;
|
|
11
|
+
tiny_chart_theme?: any;
|
|
12
|
+
resetTime?: any;
|
|
13
|
+
backgroundColor?: any;
|
|
14
|
+
animated?: any;
|
|
15
|
+
expandList?: any;
|
|
16
|
+
isExpand?: any;
|
|
17
|
+
vague?: any;
|
|
18
|
+
elementSelector?: any;
|
|
19
|
+
}>, {
|
|
20
|
+
t: (this: any, path: any, options?: any) => any;
|
|
21
|
+
vm: any;
|
|
22
|
+
f: (props: any, attrs?: {}) => {};
|
|
23
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
24
|
+
d: (props: any) => void;
|
|
25
|
+
dp: (props: any) => void;
|
|
26
|
+
gcls: (key: any) => any;
|
|
27
|
+
m: (...cssClasses: any[]) => string;
|
|
28
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "click"[], "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
29
|
+
icon?: any;
|
|
30
|
+
position?: any;
|
|
31
|
+
mask?: any;
|
|
32
|
+
tiny_mode?: any;
|
|
33
|
+
tiny_mode_root?: any;
|
|
34
|
+
tiny_template?: any;
|
|
35
|
+
tiny_renderless?: any;
|
|
36
|
+
_constants?: any;
|
|
37
|
+
tiny_theme?: any;
|
|
38
|
+
tiny_chart_theme?: any;
|
|
39
|
+
resetTime?: any;
|
|
40
|
+
backgroundColor?: any;
|
|
41
|
+
animated?: any;
|
|
42
|
+
expandList?: any;
|
|
43
|
+
isExpand?: any;
|
|
44
|
+
vague?: any;
|
|
45
|
+
elementSelector?: any;
|
|
46
|
+
}>>> & {
|
|
47
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
readonly icon?: any;
|
|
50
|
+
readonly position?: any;
|
|
51
|
+
readonly mask?: any;
|
|
52
|
+
readonly tiny_mode?: any;
|
|
53
|
+
readonly tiny_mode_root?: any;
|
|
54
|
+
readonly tiny_template?: any;
|
|
55
|
+
readonly tiny_renderless?: any;
|
|
56
|
+
readonly _constants?: any;
|
|
57
|
+
readonly tiny_theme?: any;
|
|
58
|
+
readonly tiny_chart_theme?: any;
|
|
59
|
+
readonly resetTime?: any;
|
|
60
|
+
readonly backgroundColor?: any;
|
|
61
|
+
readonly animated?: any;
|
|
62
|
+
readonly expandList?: any;
|
|
63
|
+
readonly isExpand?: any;
|
|
64
|
+
readonly vague?: any;
|
|
65
|
+
readonly elementSelector?: any;
|
|
66
|
+
}, {}>;
|
|
2
67
|
export default _default;
|