@opentinyvue/vue-card 3.21.0 → 3.22.1
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 +6 -3
- package/package.json +10 -10
- package/src/index.d.ts +5 -2
- package/src/mobile-first.vue.d.ts +15 -15
- package/src/pc.vue.d.ts +15 -15
package/lib/index.js
CHANGED
|
@@ -7,7 +7,7 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import PcTemplate from "./pc.js";
|
|
12
12
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
13
13
|
import { IconEllipsis } from "@opentinyvue/vue-icon";
|
|
@@ -68,7 +68,10 @@ var cardProps = _extends({}, $props, {
|
|
|
68
68
|
},
|
|
69
69
|
type: {
|
|
70
70
|
type: String,
|
|
71
|
-
default: "text"
|
|
71
|
+
default: "text",
|
|
72
|
+
validator: function validator(value) {
|
|
73
|
+
return ["text", "image", "video", "logo"].includes(value);
|
|
74
|
+
}
|
|
72
75
|
},
|
|
73
76
|
disabled: {
|
|
74
77
|
type: Boolean,
|
|
@@ -90,7 +93,7 @@ var Card = defineComponent({
|
|
|
90
93
|
});
|
|
91
94
|
}
|
|
92
95
|
});
|
|
93
|
-
var version = "3.
|
|
96
|
+
var version = "3.undefined";
|
|
94
97
|
Card.model = {
|
|
95
98
|
prop: "modelValue",
|
|
96
99
|
event: "update:modelValue"
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-card",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.1",
|
|
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
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
11
|
-
"@opentinyvue/vue-common": "~3.
|
|
12
|
-
"@opentinyvue/vue-dropdown": "~3.
|
|
13
|
-
"@opentinyvue/vue-dropdown-menu": "~3.
|
|
14
|
-
"@opentinyvue/vue-dropdown-item": "~3.
|
|
15
|
-
"@opentinyvue/vue-icon": "~3.
|
|
16
|
-
"@opentinyvue/vue-radio": "~3.
|
|
17
|
-
"@opentinyvue/vue-checkbox": "~3.
|
|
18
|
-
"@opentinyvue/vue-theme": "~3.
|
|
10
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-dropdown": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-dropdown-menu": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-dropdown-item": "~3.22.0",
|
|
15
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
16
|
+
"@opentinyvue/vue-radio": "~3.22.0",
|
|
17
|
+
"@opentinyvue/vue-checkbox": "~3.22.0",
|
|
18
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare const cardProps: {
|
|
|
40
40
|
type: {
|
|
41
41
|
type: StringConstructor;
|
|
42
42
|
default: string;
|
|
43
|
+
validator: (value: string) => boolean;
|
|
43
44
|
};
|
|
44
45
|
disabled: {
|
|
45
46
|
type: BooleanConstructor;
|
|
@@ -98,6 +99,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
98
99
|
type: {
|
|
99
100
|
type: StringConstructor;
|
|
100
101
|
default: string;
|
|
102
|
+
validator: (value: string) => boolean;
|
|
101
103
|
};
|
|
102
104
|
disabled: {
|
|
103
105
|
type: BooleanConstructor;
|
|
@@ -157,6 +159,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
157
159
|
type: {
|
|
158
160
|
type: StringConstructor;
|
|
159
161
|
default: string;
|
|
162
|
+
validator: (value: string) => boolean;
|
|
160
163
|
};
|
|
161
164
|
disabled: {
|
|
162
165
|
type: BooleanConstructor;
|
|
@@ -174,11 +177,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
174
177
|
tiny_chart_theme: ObjectConstructor;
|
|
175
178
|
}>>, {
|
|
176
179
|
disabled: boolean;
|
|
177
|
-
type: string;
|
|
178
180
|
size: string;
|
|
181
|
+
type: string;
|
|
182
|
+
options: unknown[];
|
|
179
183
|
tiny_mode_root: boolean;
|
|
180
184
|
_constants: Record<string, any>;
|
|
181
|
-
options: unknown[];
|
|
182
185
|
autoWidth: boolean;
|
|
183
186
|
status: string;
|
|
184
187
|
checkType: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
2
|
label?: any;
|
|
3
3
|
disabled?: any;
|
|
4
|
+
src?: any;
|
|
5
|
+
height?: any;
|
|
6
|
+
size?: any;
|
|
4
7
|
type?: any;
|
|
5
8
|
title?: any;
|
|
6
|
-
|
|
9
|
+
options?: any;
|
|
10
|
+
customClass?: any;
|
|
7
11
|
tiny_mode?: any;
|
|
8
12
|
tiny_mode_root?: any;
|
|
9
13
|
tiny_template?: any;
|
|
@@ -11,14 +15,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
15
|
_constants?: any;
|
|
12
16
|
tiny_theme?: any;
|
|
13
17
|
tiny_chart_theme?: any;
|
|
14
|
-
height?: any;
|
|
15
18
|
modelValue?: any;
|
|
16
|
-
options?: any;
|
|
17
|
-
customClass?: any;
|
|
18
19
|
autoWidth?: any;
|
|
19
20
|
status?: any;
|
|
20
21
|
checkType?: any;
|
|
21
|
-
src?: any;
|
|
22
22
|
iconMore?: any;
|
|
23
23
|
}>, {
|
|
24
24
|
t: (this: any, path: any, options?: any) => any;
|
|
@@ -32,9 +32,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
32
32
|
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "click" | "update:modelValue" | "icon-click")[], "change" | "click" | "update:modelValue" | "icon-click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
33
33
|
label?: any;
|
|
34
34
|
disabled?: any;
|
|
35
|
+
src?: any;
|
|
36
|
+
height?: any;
|
|
37
|
+
size?: any;
|
|
35
38
|
type?: any;
|
|
36
39
|
title?: any;
|
|
37
|
-
|
|
40
|
+
options?: any;
|
|
41
|
+
customClass?: any;
|
|
38
42
|
tiny_mode?: any;
|
|
39
43
|
tiny_mode_root?: any;
|
|
40
44
|
tiny_template?: any;
|
|
@@ -42,14 +46,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
42
46
|
_constants?: any;
|
|
43
47
|
tiny_theme?: any;
|
|
44
48
|
tiny_chart_theme?: any;
|
|
45
|
-
height?: any;
|
|
46
49
|
modelValue?: any;
|
|
47
|
-
options?: any;
|
|
48
|
-
customClass?: any;
|
|
49
50
|
autoWidth?: any;
|
|
50
51
|
status?: any;
|
|
51
52
|
checkType?: any;
|
|
52
|
-
src?: any;
|
|
53
53
|
iconMore?: any;
|
|
54
54
|
}>>> & {
|
|
55
55
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -59,9 +59,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
59
59
|
}, {
|
|
60
60
|
readonly label?: any;
|
|
61
61
|
readonly disabled?: any;
|
|
62
|
+
readonly src?: any;
|
|
63
|
+
readonly height?: any;
|
|
64
|
+
readonly size?: any;
|
|
62
65
|
readonly type?: any;
|
|
63
66
|
readonly title?: any;
|
|
64
|
-
readonly
|
|
67
|
+
readonly options?: any;
|
|
68
|
+
readonly customClass?: any;
|
|
65
69
|
readonly tiny_mode?: any;
|
|
66
70
|
readonly tiny_mode_root?: any;
|
|
67
71
|
readonly tiny_template?: any;
|
|
@@ -69,14 +73,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
69
73
|
readonly _constants?: any;
|
|
70
74
|
readonly tiny_theme?: any;
|
|
71
75
|
readonly tiny_chart_theme?: any;
|
|
72
|
-
readonly height?: any;
|
|
73
76
|
readonly modelValue?: any;
|
|
74
|
-
readonly options?: any;
|
|
75
|
-
readonly customClass?: any;
|
|
76
77
|
readonly autoWidth?: any;
|
|
77
78
|
readonly status?: any;
|
|
78
79
|
readonly checkType?: any;
|
|
79
|
-
readonly src?: any;
|
|
80
80
|
readonly iconMore?: any;
|
|
81
81
|
}, {}>;
|
|
82
82
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
2
|
label?: any;
|
|
3
3
|
disabled?: any;
|
|
4
|
+
src?: any;
|
|
5
|
+
height?: any;
|
|
6
|
+
size?: any;
|
|
4
7
|
type?: any;
|
|
5
8
|
title?: any;
|
|
6
|
-
|
|
9
|
+
options?: any;
|
|
10
|
+
customClass?: any;
|
|
7
11
|
tiny_mode?: any;
|
|
8
12
|
tiny_mode_root?: any;
|
|
9
13
|
tiny_template?: any;
|
|
@@ -11,14 +15,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
15
|
_constants?: any;
|
|
12
16
|
tiny_theme?: any;
|
|
13
17
|
tiny_chart_theme?: any;
|
|
14
|
-
height?: any;
|
|
15
18
|
modelValue?: any;
|
|
16
|
-
options?: any;
|
|
17
|
-
customClass?: any;
|
|
18
19
|
autoWidth?: any;
|
|
19
20
|
status?: any;
|
|
20
21
|
checkType?: any;
|
|
21
|
-
src?: any;
|
|
22
22
|
iconMore?: any;
|
|
23
23
|
checkMode?: any;
|
|
24
24
|
}>, {
|
|
@@ -33,9 +33,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
33
33
|
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "click" | "update:modelValue" | "icon-click")[], "change" | "click" | "update:modelValue" | "icon-click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
34
34
|
label?: any;
|
|
35
35
|
disabled?: any;
|
|
36
|
+
src?: any;
|
|
37
|
+
height?: any;
|
|
38
|
+
size?: any;
|
|
36
39
|
type?: any;
|
|
37
40
|
title?: any;
|
|
38
|
-
|
|
41
|
+
options?: any;
|
|
42
|
+
customClass?: any;
|
|
39
43
|
tiny_mode?: any;
|
|
40
44
|
tiny_mode_root?: any;
|
|
41
45
|
tiny_template?: any;
|
|
@@ -43,14 +47,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
43
47
|
_constants?: any;
|
|
44
48
|
tiny_theme?: any;
|
|
45
49
|
tiny_chart_theme?: any;
|
|
46
|
-
height?: any;
|
|
47
50
|
modelValue?: any;
|
|
48
|
-
options?: any;
|
|
49
|
-
customClass?: any;
|
|
50
51
|
autoWidth?: any;
|
|
51
52
|
status?: any;
|
|
52
53
|
checkType?: any;
|
|
53
|
-
src?: any;
|
|
54
54
|
iconMore?: any;
|
|
55
55
|
checkMode?: any;
|
|
56
56
|
}>>> & {
|
|
@@ -61,9 +61,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
61
61
|
}, {
|
|
62
62
|
readonly label?: any;
|
|
63
63
|
readonly disabled?: any;
|
|
64
|
+
readonly src?: any;
|
|
65
|
+
readonly height?: any;
|
|
66
|
+
readonly size?: any;
|
|
64
67
|
readonly type?: any;
|
|
65
68
|
readonly title?: any;
|
|
66
|
-
readonly
|
|
69
|
+
readonly options?: any;
|
|
70
|
+
readonly customClass?: any;
|
|
67
71
|
readonly tiny_mode?: any;
|
|
68
72
|
readonly tiny_mode_root?: any;
|
|
69
73
|
readonly tiny_template?: any;
|
|
@@ -71,14 +75,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
71
75
|
readonly _constants?: any;
|
|
72
76
|
readonly tiny_theme?: any;
|
|
73
77
|
readonly tiny_chart_theme?: any;
|
|
74
|
-
readonly height?: any;
|
|
75
78
|
readonly modelValue?: any;
|
|
76
|
-
readonly options?: any;
|
|
77
|
-
readonly customClass?: any;
|
|
78
79
|
readonly autoWidth?: any;
|
|
79
80
|
readonly status?: any;
|
|
80
81
|
readonly checkType?: any;
|
|
81
|
-
readonly src?: any;
|
|
82
82
|
readonly iconMore?: any;
|
|
83
83
|
readonly checkMode?: any;
|
|
84
84
|
}, {}>;
|