zartui 3.1.3 → 3.1.5
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 +25 -0
- package/es/date-time-picker/DateTimePickerWrapper.mjs +6 -4
- package/es/date-time-picker/utils.d.ts +1 -0
- package/es/date-time-picker/utils.mjs +11 -1
- 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/radio-picker/RadioPicker.d.ts +207 -0
- package/es/radio-picker/RadioPicker.mjs +290 -0
- package/es/radio-picker/RadioPickerColumn.d.ts +70 -0
- package/es/radio-picker/RadioPickerColumn.mjs +237 -0
- package/es/radio-picker/RadioPickerToolbar.d.ts +18 -0
- package/es/radio-picker/RadioPickerToolbar.mjs +54 -0
- package/es/radio-picker/index.css +1 -0
- package/es/radio-picker/index.d.ts +136 -0
- package/es/radio-picker/index.mjs +10 -0
- package/es/radio-picker/style/index.d.ts +1 -0
- package/es/radio-picker/style/index.mjs +16 -0
- package/es/radio-picker/types.d.ts +44 -0
- package/es/radio-picker/types.mjs +0 -0
- package/es/radio-picker/utils.d.ts +13 -0
- package/es/radio-picker/utils.mjs +80 -0
- package/es/utils/debounce.d.ts +46 -0
- package/es/utils/debounce.mjs +65 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/date-time-picker/DateTimePickerWrapper.js +5 -3
- package/lib/date-time-picker/utils.d.ts +1 -0
- package/lib/date-time-picker/utils.js +10 -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/radio-picker/RadioPicker.d.ts +207 -0
- package/lib/radio-picker/RadioPicker.js +319 -0
- package/lib/radio-picker/RadioPickerColumn.d.ts +70 -0
- package/lib/radio-picker/RadioPickerColumn.js +266 -0
- package/lib/radio-picker/RadioPickerToolbar.d.ts +18 -0
- package/lib/radio-picker/RadioPickerToolbar.js +73 -0
- package/lib/radio-picker/index.css +1 -0
- package/lib/radio-picker/index.d.ts +136 -0
- package/lib/radio-picker/index.js +39 -0
- package/lib/radio-picker/style/index.d.ts +1 -0
- package/lib/radio-picker/style/index.js +16 -0
- package/lib/radio-picker/types.d.ts +44 -0
- package/lib/radio-picker/types.js +15 -0
- package/lib/radio-picker/utils.d.ts +13 -0
- package/lib/radio-picker/utils.js +99 -0
- package/lib/utils/debounce.d.ts +46 -0
- package/lib/utils/debounce.js +84 -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 -1
- package/lib/zartui.cjs.js +1676 -999
- package/lib/zartui.es.js +1676 -999
- package/lib/zartui.js +1682 -1005
- package/lib/zartui.min.js +1 -1
- package/package.json +67 -67
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ZartUI
|
|
2
|
+
|
|
3
|
+
[ZartUI](https://zartui.egova.com.cn) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
|
|
4
|
+
|
|
5
|
+
Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了ZartUI的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
|
|
6
|
+
|
|
7
|
+
## 特性
|
|
8
|
+
|
|
9
|
+
1)【组件重构】【组件审核】提供60多个高质量组件,覆盖移动端各类场景;
|
|
10
|
+
|
|
11
|
+
2)【UI重构】基于全新的视觉规范;
|
|
12
|
+
|
|
13
|
+
3)【在线网站】完善的文档、示例、演示效果;
|
|
14
|
+
|
|
15
|
+
4)支持主题定制、按需引入;
|
|
16
|
+
|
|
17
|
+
5)支持vue3.0、TypeScript;
|
|
18
|
+
|
|
19
|
+
6)性能佳,组件平均体积小(min+gzip);
|
|
20
|
+
|
|
21
|
+
7)单元测试覆盖率 90%+,提供稳定性保障。
|
|
22
|
+
|
|
23
|
+
## 浏览器支持
|
|
24
|
+
|
|
25
|
+
ZartUI 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致)。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
2
|
import { ref, watch, computed, defineComponent } from "vue";
|
|
3
3
|
import { pick, extend, isSameValue, createNamespace, truthProp, makeArrayProp, isDate, padZero } from "../utils/index.mjs";
|
|
4
|
-
import { genOptions, getMonthEndDay, pickerInheritKeys, sharedProps } from "./utils.mjs";
|
|
4
|
+
import { formatValueRange, genOptions, getMonthEndDay, pickerInheritKeys, sharedProps } from "./utils.mjs";
|
|
5
5
|
import Picker from "../picker/index.mjs";
|
|
6
6
|
import TimePicker from "../time-picker/index.mjs";
|
|
7
7
|
import { Divider } from "../divider/index.mjs";
|
|
@@ -178,10 +178,12 @@ var stdin_default = defineComponent({
|
|
|
178
178
|
});
|
|
179
179
|
return result;
|
|
180
180
|
});
|
|
181
|
-
watch(dateValuesRef, (newValues) => {
|
|
181
|
+
watch(dateValuesRef, (newValues, oldValues) => {
|
|
182
182
|
const date = parseDateValues(props.modelValue);
|
|
183
|
-
if (!isSameValue(newValues, date)) {
|
|
184
|
-
|
|
183
|
+
if (!isSameValue(newValues, date) && !isSameValue(newValues, oldValues)) {
|
|
184
|
+
const formatRangeNewValues = formatValueRange(newValues, dateColumns.value);
|
|
185
|
+
currentValuesRef.value = genResult(formatRangeNewValues, timeValuesRef.value);
|
|
186
|
+
dateValuesRef.value = formatRangeNewValues;
|
|
185
187
|
}
|
|
186
188
|
});
|
|
187
189
|
watch(timeValuesRef, (newValues) => {
|
|
@@ -50,4 +50,5 @@ export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "sho
|
|
|
50
50
|
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
|
51
51
|
export declare const getMonthEndDay: (year: number, month: number) => number;
|
|
52
52
|
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
|
|
53
|
+
export declare const formatValueRange: (values: string[], columns: PickerOption[][]) => string[];
|
|
53
54
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extend, padZero, makeArrayProp } from "../utils/index.mjs";
|
|
1
|
+
import { extend, padZero, makeArrayProp, clamp } from "../utils/index.mjs";
|
|
2
2
|
import { pickerSharedProps } from "../picker/Picker.mjs";
|
|
3
3
|
const sharedProps = extend({}, pickerSharedProps, {
|
|
4
4
|
modelValue: makeArrayProp(),
|
|
@@ -33,7 +33,17 @@ const genOptions = (min, max, type, formatter, filter) => {
|
|
|
33
33
|
});
|
|
34
34
|
return filter ? filter(type, options) : options;
|
|
35
35
|
};
|
|
36
|
+
const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
37
|
+
const column = columns[index];
|
|
38
|
+
if (column.length) {
|
|
39
|
+
const minValue = +column[0].value;
|
|
40
|
+
const maxValue = +column[column.length - 1].value;
|
|
41
|
+
return padZero(clamp(+value, minValue, maxValue));
|
|
42
|
+
}
|
|
43
|
+
return value;
|
|
44
|
+
});
|
|
36
45
|
export {
|
|
46
|
+
formatValueRange,
|
|
37
47
|
genOptions,
|
|
38
48
|
getMonthEndDay,
|
|
39
49
|
pickerInheritKeys,
|
package/es/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from "./popup";
|
|
|
47
47
|
export * from "./pull-refresh";
|
|
48
48
|
export * from "./radio";
|
|
49
49
|
export * from "./radio-group";
|
|
50
|
+
export * from "./radio-picker";
|
|
50
51
|
export * from "./rate";
|
|
51
52
|
export * from "./row";
|
|
52
53
|
export * from "./search";
|
|
@@ -77,4 +78,4 @@ declare namespace _default {
|
|
|
77
78
|
}
|
|
78
79
|
export default _default;
|
|
79
80
|
export function install(app: any): void;
|
|
80
|
-
export const version: "3.1.
|
|
81
|
+
export const version: "3.1.5";
|
package/es/index.mjs
CHANGED
|
@@ -46,6 +46,7 @@ import { Popup } from "./popup/index.mjs";
|
|
|
46
46
|
import { PullRefresh } from "./pull-refresh/index.mjs";
|
|
47
47
|
import { Radio } from "./radio/index.mjs";
|
|
48
48
|
import { RadioGroup } from "./radio-group/index.mjs";
|
|
49
|
+
import { RadioPicker } from "./radio-picker/index.mjs";
|
|
49
50
|
import { Rate } from "./rate/index.mjs";
|
|
50
51
|
import { Row } from "./row/index.mjs";
|
|
51
52
|
import { Search } from "./search/index.mjs";
|
|
@@ -70,7 +71,7 @@ import { TimePicker } from "./time-picker/index.mjs";
|
|
|
70
71
|
import { Timeline } from "./timeline/index.mjs";
|
|
71
72
|
import { Toast } from "./toast/index.mjs";
|
|
72
73
|
import { Uploader } from "./uploader/index.mjs";
|
|
73
|
-
const version = "3.1.
|
|
74
|
+
const version = "3.1.5";
|
|
74
75
|
function install(app) {
|
|
75
76
|
const components = [
|
|
76
77
|
ActionSheet,
|
|
@@ -121,6 +122,7 @@ function install(app) {
|
|
|
121
122
|
PullRefresh,
|
|
122
123
|
Radio,
|
|
123
124
|
RadioGroup,
|
|
125
|
+
RadioPicker,
|
|
124
126
|
Rate,
|
|
125
127
|
Row,
|
|
126
128
|
Search,
|
|
@@ -203,6 +205,7 @@ export * from "./popup/index.mjs";
|
|
|
203
205
|
export * from "./pull-refresh/index.mjs";
|
|
204
206
|
export * from "./radio/index.mjs";
|
|
205
207
|
export * from "./radio-group/index.mjs";
|
|
208
|
+
export * from "./radio-picker/index.mjs";
|
|
206
209
|
export * from "./rate/index.mjs";
|
|
207
210
|
export * from "./row/index.mjs";
|
|
208
211
|
export * from "./search/index.mjs";
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import type { App } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare type ListenEvent =
|
|
4
|
-
| 'scroll'
|
|
5
|
-
| 'wheel'
|
|
6
|
-
| 'mousewheel'
|
|
7
|
-
| 'resize'
|
|
8
|
-
| 'animationend'
|
|
9
|
-
| 'transitionend'
|
|
10
|
-
| 'touchmove';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line
|
|
13
|
-
declare type Callback = (listener: any, options: LazyloadOptions) => void;
|
|
14
|
-
|
|
15
|
-
declare type Filter = {
|
|
16
|
-
webp?: Callback;
|
|
17
|
-
progressive?: Callback;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
declare type Adapter = {
|
|
21
|
-
error?: Callback;
|
|
22
|
-
loaded?: Callback;
|
|
23
|
-
loading?: Callback;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export declare type LazyloadOptions = {
|
|
27
|
-
error?: string;
|
|
28
|
-
filter?: Filter;
|
|
29
|
-
silent?: boolean;
|
|
30
|
-
adapter?: Adapter;
|
|
31
|
-
loading?: string;
|
|
32
|
-
attempt?: number;
|
|
33
|
-
preLoad?: number;
|
|
34
|
-
observer?: boolean;
|
|
35
|
-
lazyImage?: boolean;
|
|
36
|
-
throttleWait?: number;
|
|
37
|
-
listenEvents?: ListenEvent[];
|
|
38
|
-
dispatchEvent?: boolean;
|
|
39
|
-
lazyComponent?: boolean;
|
|
40
|
-
observerOptions?: IntersectionObserverInit;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export declare const Lazyload: {
|
|
44
|
-
install(app: App, options?: LazyloadOptions): void;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
declare module '@vue/runtime-core' {
|
|
48
|
-
interface ComponentCustomProperties {
|
|
49
|
-
$Lazyload: {
|
|
50
|
-
$on: (event: string, handler: Callback) => void;
|
|
51
|
-
$off: (event: string, handler?: Callback) => void;
|
|
52
|
-
$once: (event: string, handler: Callback) => void;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare type ListenEvent =
|
|
4
|
+
| 'scroll'
|
|
5
|
+
| 'wheel'
|
|
6
|
+
| 'mousewheel'
|
|
7
|
+
| 'resize'
|
|
8
|
+
| 'animationend'
|
|
9
|
+
| 'transitionend'
|
|
10
|
+
| 'touchmove';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line
|
|
13
|
+
declare type Callback = (listener: any, options: LazyloadOptions) => void;
|
|
14
|
+
|
|
15
|
+
declare type Filter = {
|
|
16
|
+
webp?: Callback;
|
|
17
|
+
progressive?: Callback;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
declare type Adapter = {
|
|
21
|
+
error?: Callback;
|
|
22
|
+
loaded?: Callback;
|
|
23
|
+
loading?: Callback;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export declare type LazyloadOptions = {
|
|
27
|
+
error?: string;
|
|
28
|
+
filter?: Filter;
|
|
29
|
+
silent?: boolean;
|
|
30
|
+
adapter?: Adapter;
|
|
31
|
+
loading?: string;
|
|
32
|
+
attempt?: number;
|
|
33
|
+
preLoad?: number;
|
|
34
|
+
observer?: boolean;
|
|
35
|
+
lazyImage?: boolean;
|
|
36
|
+
throttleWait?: number;
|
|
37
|
+
listenEvents?: ListenEvent[];
|
|
38
|
+
dispatchEvent?: boolean;
|
|
39
|
+
lazyComponent?: boolean;
|
|
40
|
+
observerOptions?: IntersectionObserverInit;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export declare const Lazyload: {
|
|
44
|
+
install(app: App, options?: LazyloadOptions): void;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare module '@vue/runtime-core' {
|
|
48
|
+
interface ComponentCustomProperties {
|
|
49
|
+
$Lazyload: {
|
|
50
|
+
$on: (event: string, handler: Callback) => void;
|
|
51
|
+
$off: (event: string, handler?: Callback) => void;
|
|
52
|
+
$once: (event: string, handler: Callback) => void;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Numeric } from '../utils';
|
|
3
|
+
import type { PickerColumn, PickerFieldNames, RadioPickerOption } from './types';
|
|
4
|
+
export declare const pickerSharedProps: {
|
|
5
|
+
loading: BooleanConstructor;
|
|
6
|
+
readonly: BooleanConstructor;
|
|
7
|
+
allowHtml: BooleanConstructor;
|
|
8
|
+
showToolbar: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: true;
|
|
11
|
+
};
|
|
12
|
+
showTitle: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: true;
|
|
15
|
+
};
|
|
16
|
+
swipeDuration: {
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
type: PropType<string>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
} & {
|
|
25
|
+
cancelButtonText: StringConstructor;
|
|
26
|
+
confirmButtonText: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
export declare const radioPickerProps: {
|
|
29
|
+
loading: BooleanConstructor;
|
|
30
|
+
readonly: BooleanConstructor;
|
|
31
|
+
allowHtml: BooleanConstructor;
|
|
32
|
+
showToolbar: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: true;
|
|
35
|
+
};
|
|
36
|
+
showTitle: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: true;
|
|
39
|
+
};
|
|
40
|
+
swipeDuration: {
|
|
41
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
title: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
} & {
|
|
49
|
+
cancelButtonText: StringConstructor;
|
|
50
|
+
confirmButtonText: StringConstructor;
|
|
51
|
+
} & {
|
|
52
|
+
columns: {
|
|
53
|
+
type: PropType<(PickerColumn | RadioPickerOption)[]>;
|
|
54
|
+
default: () => (PickerColumn | RadioPickerOption)[];
|
|
55
|
+
};
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: PropType<Numeric[]>;
|
|
58
|
+
default: () => Numeric[];
|
|
59
|
+
};
|
|
60
|
+
columnsFieldNames: PropType<PickerFieldNames>;
|
|
61
|
+
wrapHeight: {
|
|
62
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
showPicker: BooleanConstructor;
|
|
66
|
+
popup: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: true;
|
|
69
|
+
};
|
|
70
|
+
searchable: BooleanConstructor;
|
|
71
|
+
autoSearch: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: true;
|
|
74
|
+
};
|
|
75
|
+
searchPlaceholder: {
|
|
76
|
+
type: PropType<string>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export type RadioPickerProps = ExtractPropTypes<typeof radioPickerProps>;
|
|
81
|
+
declare const _default: import("vue").DefineComponent<{
|
|
82
|
+
loading: BooleanConstructor;
|
|
83
|
+
readonly: BooleanConstructor;
|
|
84
|
+
allowHtml: BooleanConstructor;
|
|
85
|
+
showToolbar: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: true;
|
|
88
|
+
};
|
|
89
|
+
showTitle: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: true;
|
|
92
|
+
};
|
|
93
|
+
swipeDuration: {
|
|
94
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
95
|
+
default: number;
|
|
96
|
+
};
|
|
97
|
+
title: {
|
|
98
|
+
type: PropType<string>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
} & {
|
|
102
|
+
cancelButtonText: StringConstructor;
|
|
103
|
+
confirmButtonText: StringConstructor;
|
|
104
|
+
} & {
|
|
105
|
+
columns: {
|
|
106
|
+
type: PropType<(PickerColumn | RadioPickerOption)[]>;
|
|
107
|
+
default: () => (PickerColumn | RadioPickerOption)[];
|
|
108
|
+
};
|
|
109
|
+
modelValue: {
|
|
110
|
+
type: PropType<Numeric[]>;
|
|
111
|
+
default: () => Numeric[];
|
|
112
|
+
};
|
|
113
|
+
columnsFieldNames: PropType<PickerFieldNames>;
|
|
114
|
+
wrapHeight: {
|
|
115
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
showPicker: BooleanConstructor;
|
|
119
|
+
popup: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: true;
|
|
122
|
+
};
|
|
123
|
+
searchable: BooleanConstructor;
|
|
124
|
+
autoSearch: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: true;
|
|
127
|
+
};
|
|
128
|
+
searchPlaceholder: {
|
|
129
|
+
type: PropType<string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
133
|
+
loading: BooleanConstructor;
|
|
134
|
+
readonly: BooleanConstructor;
|
|
135
|
+
allowHtml: BooleanConstructor;
|
|
136
|
+
showToolbar: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: true;
|
|
139
|
+
};
|
|
140
|
+
showTitle: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: true;
|
|
143
|
+
};
|
|
144
|
+
swipeDuration: {
|
|
145
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
title: {
|
|
149
|
+
type: PropType<string>;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
} & {
|
|
153
|
+
cancelButtonText: StringConstructor;
|
|
154
|
+
confirmButtonText: StringConstructor;
|
|
155
|
+
} & {
|
|
156
|
+
columns: {
|
|
157
|
+
type: PropType<(PickerColumn | RadioPickerOption)[]>;
|
|
158
|
+
default: () => (PickerColumn | RadioPickerOption)[];
|
|
159
|
+
};
|
|
160
|
+
modelValue: {
|
|
161
|
+
type: PropType<Numeric[]>;
|
|
162
|
+
default: () => Numeric[];
|
|
163
|
+
};
|
|
164
|
+
columnsFieldNames: PropType<PickerFieldNames>;
|
|
165
|
+
wrapHeight: {
|
|
166
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
showPicker: BooleanConstructor;
|
|
170
|
+
popup: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: true;
|
|
173
|
+
};
|
|
174
|
+
searchable: BooleanConstructor;
|
|
175
|
+
autoSearch: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: true;
|
|
178
|
+
};
|
|
179
|
+
searchPlaceholder: {
|
|
180
|
+
type: PropType<string>;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
}>> & {
|
|
184
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
185
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
186
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
187
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
188
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
189
|
+
"onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
title: string;
|
|
192
|
+
modelValue: Numeric[];
|
|
193
|
+
readonly: boolean;
|
|
194
|
+
popup: boolean;
|
|
195
|
+
loading: boolean;
|
|
196
|
+
showTitle: boolean;
|
|
197
|
+
columns: (PickerColumn | RadioPickerOption)[];
|
|
198
|
+
allowHtml: boolean;
|
|
199
|
+
showToolbar: boolean;
|
|
200
|
+
swipeDuration: string | number;
|
|
201
|
+
showPicker: boolean;
|
|
202
|
+
wrapHeight: string | number;
|
|
203
|
+
searchable: boolean;
|
|
204
|
+
autoSearch: boolean;
|
|
205
|
+
searchPlaceholder: string;
|
|
206
|
+
}, {}>;
|
|
207
|
+
export default _default;
|