zartui 3.2.1 → 3.2.3
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/README.md +27 -27
- package/es/action-sheet/ActionSheet.d.ts +16 -3
- package/es/action-sheet/ActionSheet.mjs +29 -26
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +9 -2
- package/es/button/index.css +1 -1
- package/es/date-time-picker/DateTimePicker.d.ts +8 -0
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +12 -0
- package/es/date-time-picker/index.d.ts +8 -0
- package/es/date-time-picker/utils.d.ts +4 -0
- package/es/dialog/Dialog.d.ts +6 -0
- package/es/dialog/Dialog.mjs +6 -2
- package/es/dialog/function-call.mjs +2 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +4 -0
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/media-picker/MediaPicker.d.ts +7 -3
- package/es/media-picker/MediaPicker.mjs +73 -25
- package/es/media-picker/index.d.ts +3 -2
- package/es/media-picker/type.d.ts +2 -1
- package/es/picker/Picker.d.ts +16 -0
- package/es/picker/Picker.mjs +5 -15
- package/es/picker/PickerToolbar.d.ts +15 -1
- package/es/picker/PickerToolbar.mjs +17 -15
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +8 -0
- package/es/search/index.css +1 -1
- package/es/speech-recognizer/SpeechRecognizer.d.ts +51 -0
- package/es/speech-recognizer/SpeechRecognizer.mjs +209 -0
- package/es/speech-recognizer/index.css +1 -0
- package/es/speech-recognizer/index.d.ts +43 -0
- package/es/speech-recognizer/index.mjs +8 -0
- package/es/speech-recognizer/recorder.d.ts +53 -0
- package/es/speech-recognizer/recorder.mjs +75 -0
- package/es/speech-recognizer/style/index.d.ts +1 -0
- package/es/speech-recognizer/style/index.mjs +10 -0
- package/es/speech-recognizer/types.d.ts +0 -0
- package/es/speech-recognizer/types.mjs +0 -0
- package/es/tab/style/index.mjs +1 -0
- package/es/tabs/Tabs.mjs +51 -2
- package/es/tabs/index.css +1 -1
- package/es/tabs/style/index.mjs +1 -0
- package/es/time-picker/TimePicker.d.ts +12 -0
- package/es/time-picker/index.d.ts +8 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/ActionSheet.d.ts +16 -3
- package/lib/action-sheet/ActionSheet.js +28 -25
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +9 -2
- package/lib/button/index.css +1 -1
- package/lib/date-time-picker/DateTimePicker.d.ts +8 -0
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +12 -0
- package/lib/date-time-picker/index.d.ts +8 -0
- package/lib/date-time-picker/utils.d.ts +4 -0
- package/lib/dialog/Dialog.d.ts +6 -0
- package/lib/dialog/Dialog.js +6 -2
- package/lib/dialog/function-call.js +2 -0
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +4 -0
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/media-picker/MediaPicker.d.ts +7 -3
- package/lib/media-picker/MediaPicker.js +72 -24
- package/lib/media-picker/index.d.ts +3 -2
- package/lib/media-picker/type.d.ts +2 -1
- package/lib/picker/Picker.d.ts +16 -0
- package/lib/picker/Picker.js +4 -14
- package/lib/picker/PickerToolbar.d.ts +15 -1
- package/lib/picker/PickerToolbar.js +16 -14
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +8 -0
- package/lib/search/index.css +1 -1
- package/lib/speech-recognizer/SpeechRecognizer.d.ts +51 -0
- package/lib/speech-recognizer/SpeechRecognizer.js +238 -0
- package/lib/speech-recognizer/index.css +1 -0
- package/lib/speech-recognizer/index.d.ts +43 -0
- package/lib/speech-recognizer/index.js +37 -0
- package/lib/speech-recognizer/recorder.d.ts +53 -0
- package/lib/speech-recognizer/recorder.js +94 -0
- package/lib/speech-recognizer/style/index.d.ts +1 -0
- package/lib/speech-recognizer/style/index.js +10 -0
- package/lib/speech-recognizer/types.d.ts +0 -0
- package/lib/speech-recognizer/types.js +0 -0
- package/lib/tab/style/index.js +1 -0
- package/lib/tabs/Tabs.js +51 -2
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/style/index.js +1 -0
- package/lib/time-picker/TimePicker.d.ts +12 -0
- package/lib/time-picker/index.d.ts +8 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -0
- package/lib/zartui.cjs.js +1360 -992
- package/lib/zartui.es.js +1360 -992
- package/lib/zartui.js +1408 -1023
- package/lib/zartui.min.js +1 -0
- package/package.json +9 -9
package/lib/tab/style/index.js
CHANGED
package/lib/tabs/Tabs.js
CHANGED
|
@@ -44,6 +44,7 @@ var import_use_visibility_change = require("../composables/use-visibility-change
|
|
|
44
44
|
var import_sticky = require("../sticky");
|
|
45
45
|
var import_TabsTitle = __toESM(require("./TabsTitle"));
|
|
46
46
|
var import_TabsContent = __toESM(require("./TabsContent"));
|
|
47
|
+
var import_icon = require("../icon");
|
|
47
48
|
const [name, bem] = (0, import_utils.createNamespace)("tabs");
|
|
48
49
|
const tabsProps = {
|
|
49
50
|
type: (0, import_utils.makeStringProp)("line"),
|
|
@@ -83,6 +84,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
83
84
|
const navRef = (0, import_vue.ref)();
|
|
84
85
|
const wrapRef = (0, import_vue.ref)();
|
|
85
86
|
const navTopRef = (0, import_vue.ref)();
|
|
87
|
+
const leftIndicatorRef = (0, import_vue.ref)();
|
|
88
|
+
const rightIndicatorRef = (0, import_vue.ref)();
|
|
86
89
|
const id = (0, import_use_id.useId)();
|
|
87
90
|
const scroller = (0, import_use.useScrollParent)(root);
|
|
88
91
|
const [titleRefs, setTitleRefs] = (0, import_use_refs.useRefs)();
|
|
@@ -99,9 +102,27 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
99
102
|
showRightOverlay: false
|
|
100
103
|
});
|
|
101
104
|
const scrollable = (0, import_vue.computed)(() => children.length > +props.swipeThreshold || !props.ellipsis || props.shrink);
|
|
105
|
+
const leftIndicatorRefWidth = (0, import_vue.computed)(() => {
|
|
106
|
+
if (state.showLeftOverlay) {
|
|
107
|
+
const leftIndicator = leftIndicatorRef.value;
|
|
108
|
+
return leftIndicator ? leftIndicator.offsetWidth : 0;
|
|
109
|
+
} else {
|
|
110
|
+
return 0;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
const rightIndicatorRefWidth = (0, import_vue.computed)(() => {
|
|
114
|
+
if (state.showRightOverlay) {
|
|
115
|
+
const rightIndicator = rightIndicatorRef.value;
|
|
116
|
+
return rightIndicator ? rightIndicator.offsetWidth : 0;
|
|
117
|
+
} else {
|
|
118
|
+
return 0;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
102
121
|
const navStyle = (0, import_vue.computed)(() => ({
|
|
103
122
|
borderColor: props.color,
|
|
104
|
-
background: props.background
|
|
123
|
+
background: props.background,
|
|
124
|
+
marginLeft: leftIndicatorRefWidth ? leftIndicatorRefWidth + "px" : "0",
|
|
125
|
+
marginRight: rightIndicatorRefWidth ? rightIndicatorRefWidth + "px" : "0"
|
|
105
126
|
}));
|
|
106
127
|
const getTabName = (tab, index) => {
|
|
107
128
|
var _a;
|
|
@@ -124,6 +145,12 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
124
145
|
}
|
|
125
146
|
return 0;
|
|
126
147
|
});
|
|
148
|
+
(0, import_vue.watch)(() => titleRefs.value, () => {
|
|
149
|
+
if (navRef.value && scrollable.value) {
|
|
150
|
+
state.showLeftOverlay = Math.floor(navRef.value.scrollLeft) > 0;
|
|
151
|
+
state.showRightOverlay = hasScrollToEnd(navRef.value);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
127
154
|
const scrollIntoView = (immediate) => {
|
|
128
155
|
const nav = navRef.value;
|
|
129
156
|
const titles = titleRefs.value;
|
|
@@ -293,6 +320,28 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
293
320
|
}, null);
|
|
294
321
|
}
|
|
295
322
|
};
|
|
323
|
+
const renderIndicatorLeft = () => {
|
|
324
|
+
if (state.showLeftOverlay) {
|
|
325
|
+
return (0, import_vue.createVNode)("div", {
|
|
326
|
+
"ref": leftIndicatorRef,
|
|
327
|
+
"class": bem("indicator-left")
|
|
328
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
329
|
+
"name": "back",
|
|
330
|
+
"class": bem("icon-indicator-left")
|
|
331
|
+
}, null)]);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
const renderIndicatorRight = () => {
|
|
335
|
+
if (state.showRightOverlay) {
|
|
336
|
+
return (0, import_vue.createVNode)("div", {
|
|
337
|
+
"ref": rightIndicatorRef,
|
|
338
|
+
"class": bem("indicator-right")
|
|
339
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
340
|
+
"name": "arrow-right",
|
|
341
|
+
"class": bem("icon-indicator-right")
|
|
342
|
+
}, null)]);
|
|
343
|
+
}
|
|
344
|
+
};
|
|
296
345
|
const renderOverlayLeft = () => {
|
|
297
346
|
if (state.showLeftOverlay) {
|
|
298
347
|
return (0, import_vue.createVNode)("div", {
|
|
@@ -328,7 +377,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
328
377
|
"style": navStyle.value,
|
|
329
378
|
"aria-orientation": "horizontal",
|
|
330
379
|
"onScroll": onScrollHeader
|
|
331
|
-
}, [(_a = slots["nav-left"]) == null ? void 0 : _a.call(slots), renderNav(), renderLine(), (_b = slots["nav-right"]) == null ? void 0 : _b.call(slots)]), scrollable.value ? renderOverlayLeft() : null, scrollable.value ? renderOverlayRight() : null]);
|
|
380
|
+
}, [(_a = slots["nav-left"]) == null ? void 0 : _a.call(slots), renderNav(), renderLine(), (_b = slots["nav-right"]) == null ? void 0 : _b.call(slots)]), scrollable.value ? renderIndicatorLeft() : null, scrollable.value ? renderIndicatorRight() : null, scrollable.value ? renderOverlayLeft() : null, scrollable.value ? renderOverlayRight() : null]);
|
|
332
381
|
};
|
|
333
382
|
(0, import_vue.watch)([() => props.color, import_utils.windowWidth], setLine);
|
|
334
383
|
(0, import_vue.watch)(() => props.active, (value) => {
|
package/lib/tabs/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-active-opacity: .2;--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 2px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-40);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-font-size-lg);line-height:var(--zt-line-height-md);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-font-size-md)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__title{flex:1;display:flex;align-items:center;justify-content:center}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height);display:flex;justify-content:center}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
|
|
1
|
+
:root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-active-opacity: .2;--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 2px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-40);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-font-size-lg);line-height:var(--zt-line-height-md);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-font-size-md)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__title{flex:1;display:flex;align-items:center;justify-content:center}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__indicator-left{position:absolute;left:0;top:0;width:35px;height:44px;background:var(--zt-tabs-nav-background)}.zt-tabs__indicator-right{position:absolute;right:0;top:0;width:35px;height:44px;background:var(--zt-tabs-nav-background)}.zt-tabs__icon-indicator-left{position:absolute;top:12px;left:12px;color:var(--zt-gray-40);font-size:var(--zt-font-size-lg)}.zt-tabs__icon-indicator-right{position:absolute;top:12px;right:12px;color:var(--zt-gray-40);font-size:var(--zt-font-size-lg)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height);display:flex;justify-content:center}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
|
package/lib/tabs/style/index.js
CHANGED
|
@@ -30,6 +30,10 @@ export declare const timePickerProps: {
|
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
} & {
|
|
33
|
+
title: {
|
|
34
|
+
type: PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
33
37
|
cancelButtonText: StringConstructor;
|
|
34
38
|
confirmButtonText: StringConstructor;
|
|
35
39
|
} & {
|
|
@@ -117,6 +121,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
117
121
|
default: string;
|
|
118
122
|
};
|
|
119
123
|
} & {
|
|
124
|
+
title: {
|
|
125
|
+
type: PropType<string>;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
120
128
|
cancelButtonText: StringConstructor;
|
|
121
129
|
confirmButtonText: StringConstructor;
|
|
122
130
|
} & {
|
|
@@ -202,6 +210,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
202
210
|
default: string;
|
|
203
211
|
};
|
|
204
212
|
} & {
|
|
213
|
+
title: {
|
|
214
|
+
type: PropType<string>;
|
|
215
|
+
default: string;
|
|
216
|
+
};
|
|
205
217
|
cancelButtonText: StringConstructor;
|
|
206
218
|
confirmButtonText: StringConstructor;
|
|
207
219
|
} & {
|
|
@@ -28,6 +28,10 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
30
|
} & {
|
|
31
|
+
title: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
cancelButtonText: StringConstructor;
|
|
32
36
|
confirmButtonText: StringConstructor;
|
|
33
37
|
} & {
|
|
@@ -113,6 +117,10 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
|
113
117
|
default: string;
|
|
114
118
|
};
|
|
115
119
|
} & {
|
|
120
|
+
title: {
|
|
121
|
+
type: import("vue").PropType<string>;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
116
124
|
cancelButtonText: StringConstructor;
|
|
117
125
|
confirmButtonText: StringConstructor;
|
|
118
126
|
} & {
|
package/lib/vue-sfc-shim.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare module '*.vue' {
|
|
2
|
-
// eslint-disable-next-line
|
|
3
|
-
import { DefineComponent } from 'vue';
|
|
4
|
-
const Component: DefineComponent;
|
|
5
|
-
export default Component;
|
|
6
|
-
}
|
|
1
|
+
declare module '*.vue' {
|
|
2
|
+
// eslint-disable-next-line
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
const Component: DefineComponent;
|
|
5
|
+
export default Component;
|
|
6
|
+
}
|
package/lib/vue-tsx-shim.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import 'vue';
|
|
2
|
-
|
|
3
|
-
type EventHandler = (...args: any[]) => void;
|
|
4
|
-
|
|
5
|
-
declare module 'vue' {
|
|
6
|
-
interface ComponentCustomProps {
|
|
7
|
-
id?: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
tabindex?: number;
|
|
10
|
-
onClick?: EventHandler;
|
|
11
|
-
onTouchend?: EventHandler;
|
|
12
|
-
onTouchmove?: EventHandler;
|
|
13
|
-
onTouchstart?: EventHandler;
|
|
14
|
-
onTouchcancel?: EventHandler;
|
|
15
|
-
onTouchmovePassive?: EventHandler;
|
|
16
|
-
onTouchstartPassive?: EventHandler;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface HTMLAttributes {
|
|
20
|
-
onTouchmovePassive?: EventHandler;
|
|
21
|
-
onTouchstartPassive?: EventHandler;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
import 'vue';
|
|
2
|
+
|
|
3
|
+
type EventHandler = (...args: any[]) => void;
|
|
4
|
+
|
|
5
|
+
declare module 'vue' {
|
|
6
|
+
interface ComponentCustomProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
role?: string;
|
|
9
|
+
tabindex?: number;
|
|
10
|
+
onClick?: EventHandler;
|
|
11
|
+
onTouchend?: EventHandler;
|
|
12
|
+
onTouchmove?: EventHandler;
|
|
13
|
+
onTouchstart?: EventHandler;
|
|
14
|
+
onTouchcancel?: EventHandler;
|
|
15
|
+
onTouchmovePassive?: EventHandler;
|
|
16
|
+
onTouchstartPassive?: EventHandler;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface HTMLAttributes {
|
|
20
|
+
onTouchmovePassive?: EventHandler;
|
|
21
|
+
onTouchstartPassive?: EventHandler;
|
|
22
|
+
}
|
|
23
|
+
}
|