unika-components 1.0.378 → 1.0.380
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/dist/src/components/UniCall/UniCall.vue.d.ts +18 -1
- package/dist/src/components/UniFormSelect/UniFormSelect.vue.d.ts +71 -0
- package/dist/src/components/UniFormSelect/index.d.ts +2 -0
- package/dist/src/components/UniFormSelect/validators.d.ts +20 -0
- package/dist/src/components/UniImage/UniImage.vue.d.ts +1 -2
- package/dist/src/components/UniShape/UniShape.vue.d.ts +1 -2
- package/dist/src/components/UniText/UniText.vue.d.ts +1 -2
- package/dist/src/components/UniVideo/UniVideo.vue.d.ts +24 -2
- package/dist/src/defaultProps.d.ts +5 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/unika-components.css +829 -672
- package/dist/unika-components.esm.js +554 -330
- package/dist/unika-components.umd.js +572 -347
- package/package.json +1 -1
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
type: () => ElementData;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
|
+
unit: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
7
11
|
}, {
|
|
8
12
|
css: import("vue").ComputedRef<{
|
|
9
13
|
fontFamily: string;
|
|
@@ -36,11 +40,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
40
|
}>;
|
|
37
41
|
btnText: import("vue").ComputedRef<string>;
|
|
38
42
|
shadowStyle: import("vue").ComputedRef<string>;
|
|
43
|
+
containerStyle: import("vue").ComputedRef<{
|
|
44
|
+
left: string;
|
|
45
|
+
top: string;
|
|
46
|
+
width: string;
|
|
47
|
+
height: string;
|
|
48
|
+
transform: string;
|
|
49
|
+
}>;
|
|
39
50
|
handleDial: () => void;
|
|
40
51
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
52
|
element: {
|
|
42
53
|
type: () => ElementData;
|
|
43
54
|
required: true;
|
|
44
55
|
};
|
|
45
|
-
|
|
56
|
+
unit: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
}>>, {
|
|
61
|
+
unit: string;
|
|
62
|
+
}, {}>;
|
|
46
63
|
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ElementData } from '@/defaultProps';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
element: {
|
|
5
|
+
type: PropType<ElementData>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
unit: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
containerStyle: import("vue").ComputedRef<{
|
|
14
|
+
fontFamily: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
color: string;
|
|
17
|
+
opacity: number;
|
|
18
|
+
left: string;
|
|
19
|
+
top: string;
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
transform: string;
|
|
23
|
+
zIndex: string | number;
|
|
24
|
+
}>;
|
|
25
|
+
innerStyle: import("vue").ComputedRef<{
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
borderRadius: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
borderStyle: string;
|
|
30
|
+
borderWidth: string;
|
|
31
|
+
position: string;
|
|
32
|
+
}>;
|
|
33
|
+
dropdownStyle: import("vue").ComputedRef<{
|
|
34
|
+
width: string;
|
|
35
|
+
maxHeight: string;
|
|
36
|
+
overflowY: string;
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
border: string;
|
|
39
|
+
borderRadius: string;
|
|
40
|
+
borderTop: string;
|
|
41
|
+
position: string;
|
|
42
|
+
top: string;
|
|
43
|
+
left: number;
|
|
44
|
+
zIndex: number;
|
|
45
|
+
}>;
|
|
46
|
+
isOpen: import("vue").Ref<boolean>;
|
|
47
|
+
selectedValue: import("vue").Ref<string>;
|
|
48
|
+
selectedLabel: import("vue").ComputedRef<string>;
|
|
49
|
+
errorMessage: import("vue").Ref<string>;
|
|
50
|
+
required: import("vue").ComputedRef<boolean>;
|
|
51
|
+
toggleDropdown: () => void;
|
|
52
|
+
selectItem: (item: {
|
|
53
|
+
value: string;
|
|
54
|
+
label: string;
|
|
55
|
+
}) => void;
|
|
56
|
+
handleChange: (event: Event) => void;
|
|
57
|
+
handleBlur: () => void;
|
|
58
|
+
closeError: () => void;
|
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
element: {
|
|
61
|
+
type: PropType<ElementData>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
unit: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>>, {
|
|
69
|
+
unit: string;
|
|
70
|
+
}, {}>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const Validators: {
|
|
2
|
+
text: {
|
|
3
|
+
pattern: RegExp;
|
|
4
|
+
message: string;
|
|
5
|
+
};
|
|
6
|
+
name: {
|
|
7
|
+
pattern: RegExp;
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
phone: {
|
|
11
|
+
pattern: RegExp;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
number: {
|
|
15
|
+
pattern: RegExp;
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare function validateInput(value: string, type: keyof typeof Validators): string | true;
|
|
20
|
+
export type ValidatorType = keyof typeof Validators;
|
|
@@ -29,12 +29,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
src?: string | undefined;
|
|
30
30
|
realW?: number | undefined;
|
|
31
31
|
realH?: number | undefined;
|
|
32
|
-
iframeUrl?: string | undefined;
|
|
33
|
-
url?: string | undefined;
|
|
34
32
|
endTime?: string | undefined;
|
|
35
33
|
count?: string | undefined;
|
|
36
34
|
speed?: string | undefined;
|
|
37
35
|
cover?: string | undefined;
|
|
36
|
+
type?: string | undefined;
|
|
38
37
|
animations: {
|
|
39
38
|
animate: string;
|
|
40
39
|
count: number;
|
|
@@ -34,12 +34,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
src?: string | undefined;
|
|
35
35
|
realW?: number | undefined;
|
|
36
36
|
realH?: number | undefined;
|
|
37
|
-
iframeUrl?: string | undefined;
|
|
38
|
-
url?: string | undefined;
|
|
39
37
|
endTime?: string | undefined;
|
|
40
38
|
count?: string | undefined;
|
|
41
39
|
speed?: string | undefined;
|
|
42
40
|
cover?: string | undefined;
|
|
41
|
+
type?: string | undefined;
|
|
43
42
|
animations: {
|
|
44
43
|
animate: string;
|
|
45
44
|
count: number;
|
|
@@ -57,12 +57,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
src?: string | undefined;
|
|
58
58
|
realW?: number | undefined;
|
|
59
59
|
realH?: number | undefined;
|
|
60
|
-
iframeUrl?: string | undefined;
|
|
61
|
-
url?: string | undefined;
|
|
62
60
|
endTime?: string | undefined;
|
|
63
61
|
count?: string | undefined;
|
|
64
62
|
speed?: string | undefined;
|
|
65
63
|
cover?: string | undefined;
|
|
64
|
+
type?: string | undefined;
|
|
66
65
|
animations: {
|
|
67
66
|
animate: string;
|
|
68
67
|
count: number;
|
|
@@ -4,6 +4,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
type: () => ElementData;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
|
+
unit: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
7
11
|
}, {
|
|
8
12
|
isPlaying: import("vue").Ref<boolean>;
|
|
9
13
|
youtubeEmbedUrl: import("vue").ComputedRef<string>;
|
|
@@ -36,12 +40,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
40
|
animation2: string;
|
|
37
41
|
svgPathColor?: string | undefined;
|
|
38
42
|
}>;
|
|
39
|
-
coverImage: import("vue").ComputedRef<string>;
|
|
43
|
+
coverImage: import("vue").ComputedRef<string | undefined>;
|
|
44
|
+
containerStyle: import("vue").ComputedRef<{
|
|
45
|
+
left: string;
|
|
46
|
+
top: string;
|
|
47
|
+
width: string;
|
|
48
|
+
height: string;
|
|
49
|
+
transform: string;
|
|
50
|
+
opacity: number;
|
|
51
|
+
borderRadius: string;
|
|
52
|
+
borderWidth: string;
|
|
53
|
+
borderStyle: string;
|
|
54
|
+
borderColor: string;
|
|
55
|
+
}>;
|
|
40
56
|
playVideo: () => void;
|
|
41
57
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
58
|
element: {
|
|
43
59
|
type: () => ElementData;
|
|
44
60
|
required: true;
|
|
45
61
|
};
|
|
46
|
-
|
|
62
|
+
unit: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
}>>, {
|
|
67
|
+
unit: string;
|
|
68
|
+
}, {}>;
|
|
47
69
|
export default _default;
|
|
@@ -122,6 +122,10 @@ export interface GlobalData {
|
|
|
122
122
|
imgMattCount: number;
|
|
123
123
|
defaultEditor: number;
|
|
124
124
|
}
|
|
125
|
+
interface FormItem {
|
|
126
|
+
label: string;
|
|
127
|
+
value: string;
|
|
128
|
+
}
|
|
125
129
|
export interface ElementData {
|
|
126
130
|
id: string;
|
|
127
131
|
pid: string;
|
|
@@ -264,6 +268,7 @@ export interface ElementData {
|
|
|
264
268
|
}>;
|
|
265
269
|
};
|
|
266
270
|
imgMattingInfo?: any | null;
|
|
271
|
+
items: FormItem[];
|
|
267
272
|
}
|
|
268
273
|
export interface PageData {
|
|
269
274
|
pageId: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -22,9 +22,10 @@ import UniSvg from './components/UniSvg';
|
|
|
22
22
|
import WorkRender from './components/WorkRender';
|
|
23
23
|
import UniFormInput from './components/UniFormInput';
|
|
24
24
|
import UniFormSubmit from './components/UniFormSubmit';
|
|
25
|
+
import UniFormSelect from './components/UniFormSelect';
|
|
25
26
|
import UniFormContainer from './components/UniFormContainer';
|
|
26
27
|
declare const install: (app: App) => void;
|
|
27
|
-
export { UniText, UniImage, UniShape, LongPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, UniButton, UniBulidUp, UniSvg, UniTanmu, UniTest, WorkRender, UniFormInput, UniFormSubmit, UniFormContainer, install };
|
|
28
|
+
export { UniText, UniImage, UniShape, LongPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLotties, UniButton, UniBulidUp, UniSvg, UniTanmu, UniTest, WorkRender, UniFormInput, UniFormSubmit, UniFormSelect, UniFormContainer, install };
|
|
28
29
|
declare const _default: {
|
|
29
30
|
install: (app: App<any>) => void;
|
|
30
31
|
};
|