@a2simcode/ui 0.0.129 → 0.0.130
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/components/title/index.d.ts +3 -0
- package/dist/components/title/src/title.vue.d.ts +5 -0
- package/dist/simcode-ui.es.js +3 -2
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/docs/components/meta/title.ts +80 -80
- package/docs/examples/title/basic.vue +7 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ declare const JTitle: {
|
|
|
5
5
|
style: Record<string, any>;
|
|
6
6
|
title: string;
|
|
7
7
|
class: string;
|
|
8
|
+
align: string;
|
|
8
9
|
weight: string | number;
|
|
9
10
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
10
11
|
P: {};
|
|
@@ -19,6 +20,7 @@ declare const JTitle: {
|
|
|
19
20
|
style: Record<string, any>;
|
|
20
21
|
title: string;
|
|
21
22
|
class: string;
|
|
23
|
+
align: string;
|
|
22
24
|
weight: string | number;
|
|
23
25
|
}>;
|
|
24
26
|
__isFragment?: never;
|
|
@@ -30,6 +32,7 @@ declare const JTitle: {
|
|
|
30
32
|
style: Record<string, any>;
|
|
31
33
|
title: string;
|
|
32
34
|
class: string;
|
|
35
|
+
align: string;
|
|
33
36
|
weight: string | number;
|
|
34
37
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
35
38
|
install: (app: import('vue').App) => void;
|
|
@@ -23,6 +23,10 @@ export interface TitleProps {
|
|
|
23
23
|
* 字体粗细 (normal | bold | bolder | lighter | 100-900)
|
|
24
24
|
*/
|
|
25
25
|
weight?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* 文本对齐方式 (left | center | right)
|
|
28
|
+
*/
|
|
29
|
+
align?: string;
|
|
26
30
|
}
|
|
27
31
|
declare const _default: import('vue').DefineComponent<TitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TitleProps> & Readonly<{}>, {
|
|
28
32
|
size: number | string;
|
|
@@ -30,6 +34,7 @@ declare const _default: import('vue').DefineComponent<TitleProps, {}, {}, {}, {}
|
|
|
30
34
|
style: Record<string, any>;
|
|
31
35
|
title: string;
|
|
32
36
|
class: string;
|
|
37
|
+
align: string;
|
|
33
38
|
weight: string | number;
|
|
34
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
40
|
export default _default;
|
package/dist/simcode-ui.es.js
CHANGED
|
@@ -9409,12 +9409,13 @@ var lp = { class: "j-table-footer" }, rp = {
|
|
|
9409
9409
|
class: { default: void 0 },
|
|
9410
9410
|
color: { default: void 0 },
|
|
9411
9411
|
size: { default: void 0 },
|
|
9412
|
-
weight: { default: "normal" }
|
|
9412
|
+
weight: { default: "normal" },
|
|
9413
|
+
align: { default: "left" }
|
|
9413
9414
|
},
|
|
9414
9415
|
setup(e) {
|
|
9415
9416
|
const t = e, n = O(() => t.class || ""), a = O(() => {
|
|
9416
9417
|
const o = { ...t.style };
|
|
9417
|
-
return t.color && (o.color = t.color), t.size && (typeof t.size == "number" ? o.fontSize = `${t.size}px` : o.fontSize = t.size), t.weight && (o.fontWeight = t.weight), o;
|
|
9418
|
+
return t.color && (o.color = t.color), t.size && (typeof t.size == "number" ? o.fontSize = `${t.size}px` : o.fontSize = t.size), t.weight && (o.fontWeight = t.weight), t.align && (o.textAlign = t.align), o;
|
|
9418
9419
|
});
|
|
9419
9420
|
return (o, i) => (_(), P("div", {
|
|
9420
9421
|
class: Ne(["j-title", n.value]),
|