dlzn-ui 1.50.0 → 1.53.0
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/_virtual/_plugin-vue_export-helper.mjs +8 -0
- package/component.d.ts +2 -0
- package/component.mjs +2 -0
- package/components/card/index.d.ts +2 -0
- package/components/card/index.mjs +3 -0
- package/components/card/src/card.d.ts +11 -0
- package/components/card/src/card.mjs +11 -0
- package/components/card/src/card.mjs.map +1 -0
- package/components/card/src/card.vue.d.ts +10 -0
- package/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs +60 -0
- package/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_14f2ea24_lang.css +2 -0
- package/components/card/src/card2.mjs +9 -0
- package/components/card/src/card2.mjs.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.mjs +3 -0
- package/index.d.ts +1 -0
- package/index.mjs +3 -0
- package/package.json +6 -58
- package/es/component.d.ts +0 -3
- package/es/component.mjs +0 -2
- package/es/components/card/index.d.ts +0 -3
- package/es/components/card/index.mjs +0 -3
- package/es/components/card/src/card.d.ts +0 -13
- package/es/components/card/src/card.mjs +0 -11
- package/es/components/card/src/card.mjs.map +0 -1
- package/es/components/card/src/card.vue.d.ts +0 -11
- package/es/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs +0 -147
- package/es/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs.map +0 -1
- package/es/components/card/src/card2.mjs +0 -7
- package/es/components/card/src/card2.mjs.map +0 -1
- package/es/components/index.d.ts +0 -4
- package/es/components/index.mjs +0 -3
- package/es/index.d.ts +0 -4
- package/es/index.mjs +0 -3
- package/lib/component.d.ts +0 -3
- package/lib/component.js +0 -3
- package/lib/components/card/index.d.ts +0 -3
- package/lib/components/card/index.js +0 -5
- package/lib/components/card/src/card.d.ts +0 -13
- package/lib/components/card/src/card.js +0 -12
- package/lib/components/card/src/card.js.map +0 -1
- package/lib/components/card/src/card.vue.d.ts +0 -11
- package/lib/components/card/src/card.vue_vue_type_script_setup_true_lang.js +0 -147
- package/lib/components/card/src/card.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/lib/components/card/src/card2.js +0 -10
- package/lib/components/card/src/card2.js.map +0 -1
- package/lib/components/index.d.ts +0 -4
- package/lib/components/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -5
package/component.d.ts
ADDED
package/component.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CardProps as _CardProps } from 'tdesign-vue-next';
|
|
2
|
+
export declare const cardPropsInit: {
|
|
3
|
+
readonly bodyFullHeight: false;
|
|
4
|
+
readonly headerBordered: true;
|
|
5
|
+
readonly shadow: true;
|
|
6
|
+
readonly titleEllipsis: false;
|
|
7
|
+
};
|
|
8
|
+
export type CardProps = Omit<_CardProps, 'content'> & {
|
|
9
|
+
bodyFullHeight?: boolean;
|
|
10
|
+
titleEllipsis?: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.mjs","names":[],"sources":["../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import type { CardProps as _CardProps } from 'tdesign-vue-next'\n\nexport const cardPropsInit = {\n bodyFullHeight: false,\n headerBordered: true,\n shadow: true,\n titleEllipsis: false,\n} as const\nexport type CardProps = Omit<_CardProps, 'content'> & {\n bodyFullHeight?: boolean\n titleEllipsis?: boolean\n}\n"],"mappings":";AAEA,IAAa,IAAgB;CAC3B,gBAAgB;CAChB,gBAAgB;CAChB,QAAQ;CACR,eAAe;AACjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CardProps } from './card';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const __VLS_export: DefineComponent<CardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
4
|
+
headerBordered: boolean;
|
|
5
|
+
shadow: boolean;
|
|
6
|
+
bodyFullHeight: boolean;
|
|
7
|
+
titleEllipsis: boolean;
|
|
8
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { cardPropsInit as e } from "./card.mjs";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, getCurrentInstance as i, h as a, mergeDefaults as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u } from "vue";
|
|
3
|
+
import { Card as d } from "tdesign-vue-next";
|
|
4
|
+
//#region ../../packages/components/card/src/card.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var f = /*@__PURE__*/ r({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
name: "TCard",
|
|
8
|
+
__name: "card",
|
|
9
|
+
props: /*@__PURE__*/ o({
|
|
10
|
+
actions: {},
|
|
11
|
+
avatar: {},
|
|
12
|
+
bordered: { type: Boolean },
|
|
13
|
+
bodyClassName: {},
|
|
14
|
+
bodyStyle: {},
|
|
15
|
+
cover: {},
|
|
16
|
+
default: {},
|
|
17
|
+
description: {},
|
|
18
|
+
footer: {},
|
|
19
|
+
footerClassName: {},
|
|
20
|
+
footerStyle: {},
|
|
21
|
+
header: {},
|
|
22
|
+
headerClassName: {},
|
|
23
|
+
headerStyle: {},
|
|
24
|
+
headerBordered: { type: Boolean },
|
|
25
|
+
hoverShadow: { type: Boolean },
|
|
26
|
+
loading: { type: Boolean },
|
|
27
|
+
loadingProps: {},
|
|
28
|
+
shadow: { type: Boolean },
|
|
29
|
+
size: {},
|
|
30
|
+
status: {},
|
|
31
|
+
subtitle: {},
|
|
32
|
+
theme: {},
|
|
33
|
+
title: {},
|
|
34
|
+
bodyFullHeight: { type: Boolean },
|
|
35
|
+
titleEllipsis: { type: Boolean }
|
|
36
|
+
}, e),
|
|
37
|
+
setup(e) {
|
|
38
|
+
let r = e, o = t(() => {
|
|
39
|
+
let e = { ...r };
|
|
40
|
+
return delete e.bodyFullHeight, delete e.titleEllipsis, Object.keys(e).forEach((t) => {
|
|
41
|
+
e[t] === void 0 && delete e[t];
|
|
42
|
+
}), e;
|
|
43
|
+
}), f = d, p = i();
|
|
44
|
+
function m(e) {
|
|
45
|
+
p.exposed = e ?? {};
|
|
46
|
+
}
|
|
47
|
+
return (t, r) => (c(), n(l(a(u(f), s(t.$attrs, {
|
|
48
|
+
...o.value,
|
|
49
|
+
ref: m,
|
|
50
|
+
bodyClassName: [e.bodyFullHeight ? "flex-1" : "", o.value.bodyClassName].filter(Boolean).join(" ")
|
|
51
|
+
}, { class: {
|
|
52
|
+
"flex flex-col": e.bodyFullHeight,
|
|
53
|
+
title_ellipsis: e.titleEllipsis
|
|
54
|
+
} }), t.$slots))));
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { f as default };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=card.vue_vue_type_script_setup_true_lang.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs","$slots"],"sources":["../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CardProps } from './card'\nimport { Card as TCard } from 'tdesign-vue-next'\nimport { computed, getCurrentInstance, h, mergeProps } from 'vue'\nimport { cardPropsInit } from './card'\n\ndefineOptions({\n inheritAttrs: false,\n // eslint-disable-next-line vue/order-in-components -- perfectionist/sort-objects 按字母序\n name: 'TCard',\n})\n\nconst props = withDefaults(defineProps<CardProps>(), cardPropsInit)\nconst otherProps = computed(() => {\n const obj: Partial<CardProps> = {\n ...props,\n }\n\n delete obj.bodyFullHeight\n delete obj.titleEllipsis\n Object.keys(obj).forEach((key) => {\n if (obj[key as keyof typeof obj] === undefined) {\n delete obj[key as keyof typeof obj]\n }\n })\n return obj\n})\nconst compo = TCard\nconst vm = getCurrentInstance()!\n\nfunction compoRef(instance: any) {\n const exposed = instance ?? {}\n\n vm.exposed = exposed\n}\n</script>\n\n<template>\n <component\n :is=\"\n h(\n compo,\n mergeProps(\n $attrs,\n {\n ...otherProps,\n ref: compoRef,\n bodyClassName: [bodyFullHeight ? 'flex-1' : '', otherProps.bodyClassName]\n .filter(Boolean)\n .join(' '),\n },\n {\n class: {\n 'flex flex-col': bodyFullHeight,\n title_ellipsis: titleEllipsis,\n },\n },\n ),\n $slots,\n )\n \"\n >\n </component>\n</template>\n\n<style scoped>\n.title_ellipsis {\n :deep() {\n .t-card__header-wrapper {\n @apply inline overflow-hidden;\n }\n\n .t-card__title {\n @apply overflow-hidden text-ellipsis whitespace-nowrap;\n }\n }\n}\n\n:deep() {\n .t-card__title {\n line-height: 32px;\n }\n\n .t-card__header {\n align-items: flex-start;\n }\n\n .t-card__title--bordered {\n &:is(:last-child) {\n border-bottom: none;\n }\n }\n\n .t-card__body {\n &:has(> .t-form:is(:last-child)) {\n padding-bottom: 0;\n }\n }\n\n .t-card__actions {\n display: flex;\n align-items: center;\n min-height: 32px;\n color: inherit;\n }\n\n .t-loading__parent {\n /* stylelint-disable-next-line selector-class-pattern */\n &:has(.t-card__body.flex-1) {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow-y: auto;\n }\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYA,IAAM,IAAQ,GACR,IAAa,QAAe;GAChC,IAAM,IAA0B,EAC9B,GAAG,EACL;GASA,OAPA,OAAO,EAAI,gBACX,OAAO,EAAI,eACX,OAAO,KAAK,CAAG,CAAC,CAAC,SAAS,MAAQ;IAChC,AAAI,EAAI,OAA6B,KAAA,KACnC,OAAO,EAAI;GAEf,CAAC,GACM;EACT,CAAC,GACK,IAAQ,GACR,IAAK,EAAmB;EAE9B,SAAS,EAAS,GAAe;GAG/B,EAAG,UAFa,KAAY,CAAC;EAG/B;oBAIE,EAAA,GAAA,EAwBY,EAvBE,EAAW,EAAA,CAAA,GAAe,EAAsBA,EAAAA,QAAAA;GAAmC,GAAA,EAAA;GAA6B,KAAA;GAAsC,eAAA,CAAA,EAAA,iBAAc,WAAA,IAAkB,EAAA,MAAW,aAAa,CAAA,CAAiB,OAAO,OAAO,CAAA,CAAiB,KAAI,GAAA;;GAAoF,iBAAA,EAAA;GAA8C,gBAAA,EAAA;EAA8DC,EAAAA,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,CAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.title_ellipsis[data-v-14f2ea24] .t-card__header-wrapper{display:inline;overflow:hidden}.title_ellipsis[data-v-14f2ea24] .t-card__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-v-14f2ea24] .t-card__title{line-height:32px}[data-v-14f2ea24] .t-card__header{align-items:flex-start}[data-v-14f2ea24] .t-card__title--bordered:last-child{border-bottom:none}[data-v-14f2ea24] .t-card__body:has(>.t-form:last-child){padding-bottom:0}[data-v-14f2ea24] .t-card__actions{min-height:32px;color:inherit;align-items:center;display:flex}[data-v-14f2ea24] .t-loading__parent:has(.t-card__body.flex-1){flex-direction:column;flex:1;display:flex;overflow-y:auto}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./card.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
import './card.vue_vue_type_style_index_0_scoped_14f2ea24_lang.css';/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
//#region ../../packages/components/card/src/card.vue
|
|
5
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-14f2ea24"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=card2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card2.mjs","names":[],"sources":["../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CardProps } from './card'\nimport { Card as TCard } from 'tdesign-vue-next'\nimport { computed, getCurrentInstance, h, mergeProps } from 'vue'\nimport { cardPropsInit } from './card'\n\ndefineOptions({\n inheritAttrs: false,\n // eslint-disable-next-line vue/order-in-components -- perfectionist/sort-objects 按字母序\n name: 'TCard',\n})\n\nconst props = withDefaults(defineProps<CardProps>(), cardPropsInit)\nconst otherProps = computed(() => {\n const obj: Partial<CardProps> = {\n ...props,\n }\n\n delete obj.bodyFullHeight\n delete obj.titleEllipsis\n Object.keys(obj).forEach((key) => {\n if (obj[key as keyof typeof obj] === undefined) {\n delete obj[key as keyof typeof obj]\n }\n })\n return obj\n})\nconst compo = TCard\nconst vm = getCurrentInstance()!\n\nfunction compoRef(instance: any) {\n const exposed = instance ?? {}\n\n vm.exposed = exposed\n}\n</script>\n\n<template>\n <component\n :is=\"\n h(\n compo,\n mergeProps(\n $attrs,\n {\n ...otherProps,\n ref: compoRef,\n bodyClassName: [bodyFullHeight ? 'flex-1' : '', otherProps.bodyClassName]\n .filter(Boolean)\n .join(' '),\n },\n {\n class: {\n 'flex flex-col': bodyFullHeight,\n title_ellipsis: titleEllipsis,\n },\n },\n ),\n $slots,\n )\n \"\n >\n </component>\n</template>\n\n<style scoped>\n.title_ellipsis {\n :deep() {\n .t-card__header-wrapper {\n @apply inline overflow-hidden;\n }\n\n .t-card__title {\n @apply overflow-hidden text-ellipsis whitespace-nowrap;\n }\n }\n}\n\n:deep() {\n .t-card__title {\n line-height: 32px;\n }\n\n .t-card__header {\n align-items: flex-start;\n }\n\n .t-card__title--bordered {\n &:is(:last-child) {\n border-bottom: none;\n }\n }\n\n .t-card__body {\n &:has(> .t-form:is(:last-child)) {\n padding-bottom: 0;\n }\n }\n\n .t-card__actions {\n display: flex;\n align-items: center;\n min-height: 32px;\n color: inherit;\n }\n\n .t-loading__parent {\n /* stylelint-disable-next-line selector-class-pattern */\n &:has(.t-card__body.flex-1) {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow-y: auto;\n }\n }\n}\n</style>\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './card';
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components';
|
package/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,70 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dlzn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.50.0",
|
|
5
4
|
"license": "MIT",
|
|
6
5
|
"sideEffects": [
|
|
7
|
-
"
|
|
8
|
-
"es/components/*/style/*",
|
|
9
|
-
"lib/components/*/style/*"
|
|
6
|
+
"**/*.css"
|
|
10
7
|
],
|
|
11
8
|
"exports": {
|
|
12
9
|
".": {
|
|
13
|
-
"types": "./
|
|
14
|
-
"import": "./
|
|
15
|
-
}
|
|
16
|
-
"./global": {
|
|
17
|
-
"types": "./global.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./es": {
|
|
20
|
-
"types": "./es/index.d.ts",
|
|
21
|
-
"import": "./es/index.mjs"
|
|
22
|
-
},
|
|
23
|
-
"./lib": {
|
|
24
|
-
"types": "./lib/index.d.ts",
|
|
25
|
-
"require": "./lib/index.js"
|
|
26
|
-
},
|
|
27
|
-
"./es/*.mjs": {
|
|
28
|
-
"types": "./es/*.d.ts",
|
|
29
|
-
"import": "./es/*.mjs"
|
|
30
|
-
},
|
|
31
|
-
"./es/*": {
|
|
32
|
-
"types": [
|
|
33
|
-
"./es/*.d.ts",
|
|
34
|
-
"./es/*/index.d.ts"
|
|
35
|
-
],
|
|
36
|
-
"import": "./es/*.mjs"
|
|
37
|
-
},
|
|
38
|
-
"./lib/*.js": {
|
|
39
|
-
"types": "./lib/*.d.ts",
|
|
40
|
-
"require": "./lib/*.js"
|
|
41
|
-
},
|
|
42
|
-
"./lib/*": {
|
|
43
|
-
"types": [
|
|
44
|
-
"./lib/*.d.ts",
|
|
45
|
-
"./lib/*/index.d.ts"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"./*": "./*"
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"import": "./index.mjs"
|
|
12
|
+
}
|
|
49
13
|
},
|
|
50
|
-
"unpkg": "dist/index.full.js",
|
|
51
|
-
"jsdelivr": "dist/index.full.js",
|
|
52
|
-
"files": [
|
|
53
|
-
"LICENSE",
|
|
54
|
-
"README.md",
|
|
55
|
-
"attributes.json",
|
|
56
|
-
"dist",
|
|
57
|
-
"es",
|
|
58
|
-
"global.d.ts",
|
|
59
|
-
"lib",
|
|
60
|
-
"tags.json",
|
|
61
|
-
"theme-chalk",
|
|
62
|
-
"web-types.json"
|
|
63
|
-
],
|
|
64
14
|
"publishConfig": {
|
|
65
15
|
"access": "public"
|
|
66
16
|
},
|
|
67
|
-
"style": "dist/index.css",
|
|
68
17
|
"engines": {
|
|
69
18
|
"node": "^24.15.0",
|
|
70
19
|
"pnpm": "^11.17.0"
|
|
@@ -73,11 +22,10 @@
|
|
|
73
22
|
"tdesign-vue-next": "^1.20.5",
|
|
74
23
|
"vue": "^3.5.41"
|
|
75
24
|
},
|
|
76
|
-
"dependencies": {},
|
|
77
|
-
"devDependencies": {},
|
|
78
25
|
"browserslist": [
|
|
79
26
|
"last 2 version",
|
|
80
27
|
"> 1%",
|
|
81
28
|
"not dead"
|
|
82
|
-
]
|
|
29
|
+
],
|
|
30
|
+
"version": "1.53.0"
|
|
83
31
|
}
|
package/es/component.d.ts
DELETED
package/es/component.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CardProps as CardProps$1 } from "tdesign-vue-next";
|
|
2
|
-
//#region ../../packages/components/card/src/card.d.ts
|
|
3
|
-
export declare const cardPropsInit: {
|
|
4
|
-
readonly bodyFullHeight: false;
|
|
5
|
-
readonly headerBordered: true;
|
|
6
|
-
readonly shadow: true;
|
|
7
|
-
readonly titleEllipsis: false;
|
|
8
|
-
};
|
|
9
|
-
export type CardProps = Omit<CardProps$1, 'content'> & {
|
|
10
|
-
bodyFullHeight?: boolean;
|
|
11
|
-
titleEllipsis?: boolean;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.mjs","names":[],"sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import type { CardProps as _CardProps } from 'tdesign-vue-next'\n\nexport const cardPropsInit = {\n bodyFullHeight: false,\n headerBordered: true,\n shadow: true,\n titleEllipsis: false,\n} as const\nexport type CardProps = Omit<_CardProps, 'content'> & {\n bodyFullHeight?: boolean\n titleEllipsis?: boolean\n}\n"],"mappings":";AAEA,MAAa,gBAAgB;CAC3B,gBAAgB;CAChB,gBAAgB;CAChB,QAAQ;CACR,eAAe;AACjB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CardProps } from "./card.js";
|
|
2
|
-
//#region ../../packages/components/card/src/card.vue.d.ts
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
4
|
-
headerBordered: boolean;
|
|
5
|
-
shadow: boolean;
|
|
6
|
-
bodyFullHeight: boolean;
|
|
7
|
-
titleEllipsis: boolean;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { _default as default };
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { cardPropsInit } from "./card.mjs";
|
|
2
|
-
import { computed, createBlock, defineComponent, getCurrentInstance, h, mergeDefaults, mergeProps, openBlock, resolveDynamicComponent, unref } from "vue";
|
|
3
|
-
import { Card } from "tdesign-vue-next";
|
|
4
|
-
//#region ../../packages/components/card/src/card.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var card_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
name: "TCard",
|
|
8
|
-
__name: "card",
|
|
9
|
-
props: /*@__PURE__*/ mergeDefaults({
|
|
10
|
-
actions: {
|
|
11
|
-
type: null,
|
|
12
|
-
required: false
|
|
13
|
-
},
|
|
14
|
-
avatar: {
|
|
15
|
-
type: null,
|
|
16
|
-
required: false
|
|
17
|
-
},
|
|
18
|
-
bordered: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
required: false
|
|
21
|
-
},
|
|
22
|
-
bodyClassName: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
bodyStyle: {
|
|
27
|
-
type: Object,
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
cover: {
|
|
31
|
-
type: null,
|
|
32
|
-
required: false
|
|
33
|
-
},
|
|
34
|
-
default: {
|
|
35
|
-
type: null,
|
|
36
|
-
required: false
|
|
37
|
-
},
|
|
38
|
-
description: {
|
|
39
|
-
type: null,
|
|
40
|
-
required: false
|
|
41
|
-
},
|
|
42
|
-
footer: {
|
|
43
|
-
type: null,
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
footerClassName: {
|
|
47
|
-
type: String,
|
|
48
|
-
required: false
|
|
49
|
-
},
|
|
50
|
-
footerStyle: {
|
|
51
|
-
type: Object,
|
|
52
|
-
required: false
|
|
53
|
-
},
|
|
54
|
-
header: {
|
|
55
|
-
type: null,
|
|
56
|
-
required: false
|
|
57
|
-
},
|
|
58
|
-
headerClassName: {
|
|
59
|
-
type: String,
|
|
60
|
-
required: false
|
|
61
|
-
},
|
|
62
|
-
headerStyle: {
|
|
63
|
-
type: Object,
|
|
64
|
-
required: false
|
|
65
|
-
},
|
|
66
|
-
headerBordered: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
required: false
|
|
69
|
-
},
|
|
70
|
-
hoverShadow: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
required: false
|
|
73
|
-
},
|
|
74
|
-
loading: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
required: false,
|
|
77
|
-
skipCheck: true
|
|
78
|
-
},
|
|
79
|
-
loadingProps: {
|
|
80
|
-
type: Object,
|
|
81
|
-
required: false
|
|
82
|
-
},
|
|
83
|
-
shadow: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
required: false
|
|
86
|
-
},
|
|
87
|
-
size: {
|
|
88
|
-
type: String,
|
|
89
|
-
required: false
|
|
90
|
-
},
|
|
91
|
-
status: {
|
|
92
|
-
type: String,
|
|
93
|
-
required: false
|
|
94
|
-
},
|
|
95
|
-
subtitle: {
|
|
96
|
-
type: null,
|
|
97
|
-
required: false
|
|
98
|
-
},
|
|
99
|
-
theme: {
|
|
100
|
-
type: String,
|
|
101
|
-
required: false
|
|
102
|
-
},
|
|
103
|
-
title: {
|
|
104
|
-
type: null,
|
|
105
|
-
required: false
|
|
106
|
-
},
|
|
107
|
-
bodyFullHeight: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
required: false
|
|
110
|
-
},
|
|
111
|
-
titleEllipsis: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
required: false
|
|
114
|
-
}
|
|
115
|
-
}, cardPropsInit),
|
|
116
|
-
setup(__props) {
|
|
117
|
-
const props = __props;
|
|
118
|
-
const otherProps = computed(() => {
|
|
119
|
-
const obj = { ...props };
|
|
120
|
-
delete obj.bodyFullHeight;
|
|
121
|
-
delete obj.titleEllipsis;
|
|
122
|
-
Object.keys(obj).forEach((key) => {
|
|
123
|
-
if (obj[key] === void 0) delete obj[key];
|
|
124
|
-
});
|
|
125
|
-
return obj;
|
|
126
|
-
});
|
|
127
|
-
const compo = Card;
|
|
128
|
-
const vm = getCurrentInstance();
|
|
129
|
-
function compoRef(instance) {
|
|
130
|
-
vm.exposed = instance ?? {};
|
|
131
|
-
}
|
|
132
|
-
return (_ctx, _cache) => {
|
|
133
|
-
return openBlock(), createBlock(resolveDynamicComponent(h(unref(compo), mergeProps(_ctx.$attrs, {
|
|
134
|
-
...otherProps.value,
|
|
135
|
-
ref: compoRef,
|
|
136
|
-
bodyClassName: [__props.bodyFullHeight ? "flex-1" : "", otherProps.value.bodyClassName].filter(Boolean).join(" ")
|
|
137
|
-
}, { class: {
|
|
138
|
-
"flex flex-col": __props.bodyFullHeight,
|
|
139
|
-
title_ellipsis: __props.titleEllipsis
|
|
140
|
-
} }), _ctx.$slots)));
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
//#endregion
|
|
145
|
-
export { card_vue_vue_type_script_setup_true_lang_default as default };
|
|
146
|
-
|
|
147
|
-
//# sourceMappingURL=card.vue_vue_type_script_setup_true_lang.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.vue_vue_type_script_setup_true_lang.mjs","names":["$attrs","$slots"],"sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CardProps } from './card'\nimport { Card as TCard } from 'tdesign-vue-next'\nimport { computed, getCurrentInstance, h, mergeProps } from 'vue'\nimport { cardPropsInit } from './card'\n\ndefineOptions({\n inheritAttrs: false,\n // eslint-disable-next-line vue/order-in-components -- perfectionist/sort-objects 按字母序\n name: 'TCard',\n})\n\nconst props = withDefaults(defineProps<CardProps>(), cardPropsInit)\nconst otherProps = computed(() => {\n const obj: Partial<CardProps> = {\n ...props,\n }\n\n delete obj.bodyFullHeight\n delete obj.titleEllipsis\n Object.keys(obj).forEach((key) => {\n if (obj[key as keyof typeof obj] === undefined) {\n delete obj[key as keyof typeof obj]\n }\n })\n return obj\n})\nconst compo = TCard\nconst vm = getCurrentInstance()!\n\nfunction compoRef(instance: any) {\n const exposed = instance ?? {}\n\n vm.exposed = exposed\n}\n</script>\n\n<template>\n <component\n :is=\"\n h(\n compo,\n mergeProps(\n $attrs,\n {\n ...otherProps,\n ref: compoRef,\n bodyClassName: [bodyFullHeight ? 'flex-1' : '', otherProps.bodyClassName]\n .filter(Boolean)\n .join(' '),\n },\n {\n class: {\n 'flex flex-col': bodyFullHeight,\n title_ellipsis: titleEllipsis,\n },\n },\n ),\n $slots,\n )\n \"\n >\n </component>\n</template>\n\n<!-- <style scoped>\n.title_ellipsis {\n :deep() {\n .t-card__header-wrapper {\n @apply inline overflow-hidden;\n }\n\n .t-card__title {\n @apply overflow-hidden text-ellipsis whitespace-nowrap;\n }\n }\n}\n\n:deep() {\n .t-card__title {\n line-height: 32px;\n }\n\n .t-card__header {\n align-items: flex-start;\n }\n\n .t-card__title--bordered {\n &:is(:last-child) {\n border-bottom: none;\n }\n }\n\n .t-card__body {\n &:has(> .t-form:is(:last-child)) {\n padding-bottom: 0;\n }\n }\n\n .t-card__actions {\n display: flex;\n align-items: center;\n min-height: 32px;\n color: inherit;\n }\n\n .t-loading__parent {\n /* stylelint-disable-next-line selector-class-pattern */\n &:has(.t-card__body.flex-1) {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow-y: auto;\n }\n }\n}\n</style> -->\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EACd,MAAM,aAAa,eAAe;GAChC,MAAM,MAA0B,EAC9B,GAAG,MACL;GAEA,OAAO,IAAI;GACX,OAAO,IAAI;GACX,OAAO,KAAK,GAAG,CAAC,CAAC,SAAS,QAAQ;IAChC,IAAI,IAAI,SAA6B,KAAA,GACnC,OAAO,IAAI;GAEf,CAAC;GACD,OAAO;EACT,CAAC;EACD,MAAM,QAAQ;EACd,MAAM,KAAK,mBAAmB;EAE9B,SAAS,SAAS,UAAe;GAG/B,GAAG,UAFa,YAAY,CAAC;EAG/B;;GAIE,OAAA,UAAA,GAAA,YAwBY,wBAvBE,EAAW,MAAA,KAAA,GAAe,WAAsBA,KAAAA,QAAAA;IAAmC,GAAA,WAAA;IAA6B,KAAA;IAAsC,eAAA,CAAA,QAAA,iBAAc,WAAA,IAAkB,WAAA,MAAW,aAAa,CAAA,CAAiB,OAAO,OAAO,CAAA,CAAiB,KAAI,GAAA;;IAAoF,iBAAA,QAAA;IAA8C,gBAAA,QAAA;GAA8DC,EAAAA,CAAAA,GAAAA,KAAAA,MAAAA,CAAAA,CAAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import card_vue_vue_type_script_setup_true_lang_default from "./card.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
-
//#region ../../packages/components/card/src/card.vue
|
|
3
|
-
var card_default = card_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { card_default as default };
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=card2.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card2.mjs","names":[],"sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CardProps } from './card'\nimport { Card as TCard } from 'tdesign-vue-next'\nimport { computed, getCurrentInstance, h, mergeProps } from 'vue'\nimport { cardPropsInit } from './card'\n\ndefineOptions({\n inheritAttrs: false,\n // eslint-disable-next-line vue/order-in-components -- perfectionist/sort-objects 按字母序\n name: 'TCard',\n})\n\nconst props = withDefaults(defineProps<CardProps>(), cardPropsInit)\nconst otherProps = computed(() => {\n const obj: Partial<CardProps> = {\n ...props,\n }\n\n delete obj.bodyFullHeight\n delete obj.titleEllipsis\n Object.keys(obj).forEach((key) => {\n if (obj[key as keyof typeof obj] === undefined) {\n delete obj[key as keyof typeof obj]\n }\n })\n return obj\n})\nconst compo = TCard\nconst vm = getCurrentInstance()!\n\nfunction compoRef(instance: any) {\n const exposed = instance ?? {}\n\n vm.exposed = exposed\n}\n</script>\n\n<template>\n <component\n :is=\"\n h(\n compo,\n mergeProps(\n $attrs,\n {\n ...otherProps,\n ref: compoRef,\n bodyClassName: [bodyFullHeight ? 'flex-1' : '', otherProps.bodyClassName]\n .filter(Boolean)\n .join(' '),\n },\n {\n class: {\n 'flex flex-col': bodyFullHeight,\n title_ellipsis: titleEllipsis,\n },\n },\n ),\n $slots,\n )\n \"\n >\n </component>\n</template>\n\n<!-- <style scoped>\n.title_ellipsis {\n :deep() {\n .t-card__header-wrapper {\n @apply inline overflow-hidden;\n }\n\n .t-card__title {\n @apply overflow-hidden text-ellipsis whitespace-nowrap;\n }\n }\n}\n\n:deep() {\n .t-card__title {\n line-height: 32px;\n }\n\n .t-card__header {\n align-items: flex-start;\n }\n\n .t-card__title--bordered {\n &:is(:last-child) {\n border-bottom: none;\n }\n }\n\n .t-card__body {\n &:has(> .t-form:is(:last-child)) {\n padding-bottom: 0;\n }\n }\n\n .t-card__actions {\n display: flex;\n align-items: center;\n min-height: 32px;\n color: inherit;\n }\n\n .t-loading__parent {\n /* stylelint-disable-next-line selector-class-pattern */\n &:has(.t-card__body.flex-1) {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow-y: auto;\n }\n }\n}\n</style> -->\n"],"mappings":""}
|
package/es/components/index.d.ts
DELETED
package/es/components/index.mjs
DELETED
package/es/index.d.ts
DELETED
package/es/index.mjs
DELETED
package/lib/component.d.ts
DELETED
package/lib/component.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CardProps as CardProps$1 } from "tdesign-vue-next";
|
|
2
|
-
//#region ../../packages/components/card/src/card.d.ts
|
|
3
|
-
export declare const cardPropsInit: {
|
|
4
|
-
readonly bodyFullHeight: false;
|
|
5
|
-
readonly headerBordered: true;
|
|
6
|
-
readonly shadow: true;
|
|
7
|
-
readonly titleEllipsis: false;
|
|
8
|
-
};
|
|
9
|
-
export type CardProps = Omit<CardProps$1, 'content'> & {
|
|
10
|
-
bodyFullHeight?: boolean;
|
|
11
|
-
titleEllipsis?: boolean;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region ../../packages/components/card/src/card.ts
|
|
3
|
-
const cardPropsInit = {
|
|
4
|
-
bodyFullHeight: false,
|
|
5
|
-
headerBordered: true,
|
|
6
|
-
shadow: true,
|
|
7
|
-
titleEllipsis: false
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
exports.cardPropsInit = cardPropsInit;
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","names":[],"sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import type { CardProps as _CardProps } from 'tdesign-vue-next'\n\nexport const cardPropsInit = {\n bodyFullHeight: false,\n headerBordered: true,\n shadow: true,\n titleEllipsis: false,\n} as const\nexport type CardProps = Omit<_CardProps, 'content'> & {\n bodyFullHeight?: boolean\n titleEllipsis?: boolean\n}\n"],"mappings":";;AAEA,MAAa,gBAAgB;CAC3B,gBAAgB;CAChB,gBAAgB;CAChB,QAAQ;CACR,eAAe;AACjB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CardProps } from "./card.js";
|
|
2
|
-
//#region ../../packages/components/card/src/card.vue.d.ts
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
4
|
-
headerBordered: boolean;
|
|
5
|
-
shadow: boolean;
|
|
6
|
-
bodyFullHeight: boolean;
|
|
7
|
-
titleEllipsis: boolean;
|
|
8
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { _default as default };
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
const require_card = require("./card.js");
|
|
2
|
-
let vue = require("vue");
|
|
3
|
-
let tdesign_vue_next = require("tdesign-vue-next");
|
|
4
|
-
//#region ../../packages/components/card/src/card.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var card_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
name: "TCard",
|
|
8
|
-
__name: "card",
|
|
9
|
-
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
10
|
-
actions: {
|
|
11
|
-
type: null,
|
|
12
|
-
required: false
|
|
13
|
-
},
|
|
14
|
-
avatar: {
|
|
15
|
-
type: null,
|
|
16
|
-
required: false
|
|
17
|
-
},
|
|
18
|
-
bordered: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
required: false
|
|
21
|
-
},
|
|
22
|
-
bodyClassName: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
bodyStyle: {
|
|
27
|
-
type: Object,
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
cover: {
|
|
31
|
-
type: null,
|
|
32
|
-
required: false
|
|
33
|
-
},
|
|
34
|
-
default: {
|
|
35
|
-
type: null,
|
|
36
|
-
required: false
|
|
37
|
-
},
|
|
38
|
-
description: {
|
|
39
|
-
type: null,
|
|
40
|
-
required: false
|
|
41
|
-
},
|
|
42
|
-
footer: {
|
|
43
|
-
type: null,
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
footerClassName: {
|
|
47
|
-
type: String,
|
|
48
|
-
required: false
|
|
49
|
-
},
|
|
50
|
-
footerStyle: {
|
|
51
|
-
type: Object,
|
|
52
|
-
required: false
|
|
53
|
-
},
|
|
54
|
-
header: {
|
|
55
|
-
type: null,
|
|
56
|
-
required: false
|
|
57
|
-
},
|
|
58
|
-
headerClassName: {
|
|
59
|
-
type: String,
|
|
60
|
-
required: false
|
|
61
|
-
},
|
|
62
|
-
headerStyle: {
|
|
63
|
-
type: Object,
|
|
64
|
-
required: false
|
|
65
|
-
},
|
|
66
|
-
headerBordered: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
required: false
|
|
69
|
-
},
|
|
70
|
-
hoverShadow: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
required: false
|
|
73
|
-
},
|
|
74
|
-
loading: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
required: false,
|
|
77
|
-
skipCheck: true
|
|
78
|
-
},
|
|
79
|
-
loadingProps: {
|
|
80
|
-
type: Object,
|
|
81
|
-
required: false
|
|
82
|
-
},
|
|
83
|
-
shadow: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
required: false
|
|
86
|
-
},
|
|
87
|
-
size: {
|
|
88
|
-
type: String,
|
|
89
|
-
required: false
|
|
90
|
-
},
|
|
91
|
-
status: {
|
|
92
|
-
type: String,
|
|
93
|
-
required: false
|
|
94
|
-
},
|
|
95
|
-
subtitle: {
|
|
96
|
-
type: null,
|
|
97
|
-
required: false
|
|
98
|
-
},
|
|
99
|
-
theme: {
|
|
100
|
-
type: String,
|
|
101
|
-
required: false
|
|
102
|
-
},
|
|
103
|
-
title: {
|
|
104
|
-
type: null,
|
|
105
|
-
required: false
|
|
106
|
-
},
|
|
107
|
-
bodyFullHeight: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
required: false
|
|
110
|
-
},
|
|
111
|
-
titleEllipsis: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
required: false
|
|
114
|
-
}
|
|
115
|
-
}, require_card.cardPropsInit),
|
|
116
|
-
setup(__props) {
|
|
117
|
-
const props = __props;
|
|
118
|
-
const otherProps = (0, vue.computed)(() => {
|
|
119
|
-
const obj = { ...props };
|
|
120
|
-
delete obj.bodyFullHeight;
|
|
121
|
-
delete obj.titleEllipsis;
|
|
122
|
-
Object.keys(obj).forEach((key) => {
|
|
123
|
-
if (obj[key] === void 0) delete obj[key];
|
|
124
|
-
});
|
|
125
|
-
return obj;
|
|
126
|
-
});
|
|
127
|
-
const compo = tdesign_vue_next.Card;
|
|
128
|
-
const vm = (0, vue.getCurrentInstance)();
|
|
129
|
-
function compoRef(instance) {
|
|
130
|
-
vm.exposed = instance ?? {};
|
|
131
|
-
}
|
|
132
|
-
return (_ctx, _cache) => {
|
|
133
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.h)((0, vue.unref)(compo), (0, vue.mergeProps)(_ctx.$attrs, {
|
|
134
|
-
...otherProps.value,
|
|
135
|
-
ref: compoRef,
|
|
136
|
-
bodyClassName: [__props.bodyFullHeight ? "flex-1" : "", otherProps.value.bodyClassName].filter(Boolean).join(" ")
|
|
137
|
-
}, { class: {
|
|
138
|
-
"flex flex-col": __props.bodyFullHeight,
|
|
139
|
-
title_ellipsis: __props.titleEllipsis
|
|
140
|
-
} }), _ctx.$slots)));
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
//#endregion
|
|
145
|
-
exports.default = card_vue_vue_type_script_setup_true_lang_default;
|
|
146
|
-
|
|
147
|
-
//# sourceMappingURL=card.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.vue_vue_type_script_setup_true_lang.js","names":["$attrs","$slots"],"sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CardProps } from './card'\nimport { Card as TCard } from 'tdesign-vue-next'\nimport { computed, getCurrentInstance, h, mergeProps } from 'vue'\nimport { cardPropsInit } from './card'\n\ndefineOptions({\n inheritAttrs: false,\n // eslint-disable-next-line vue/order-in-components -- perfectionist/sort-objects 按字母序\n name: 'TCard',\n})\n\nconst props = withDefaults(defineProps<CardProps>(), cardPropsInit)\nconst otherProps = computed(() => {\n const obj: Partial<CardProps> = {\n ...props,\n }\n\n delete obj.bodyFullHeight\n delete obj.titleEllipsis\n Object.keys(obj).forEach((key) => {\n if (obj[key as keyof typeof obj] === undefined) {\n delete obj[key as keyof typeof obj]\n }\n })\n return obj\n})\nconst compo = TCard\nconst vm = getCurrentInstance()!\n\nfunction compoRef(instance: any) {\n const exposed = instance ?? {}\n\n vm.exposed = exposed\n}\n</script>\n\n<template>\n <component\n :is=\"\n h(\n compo,\n mergeProps(\n $attrs,\n {\n ...otherProps,\n ref: compoRef,\n bodyClassName: [bodyFullHeight ? 'flex-1' : '', otherProps.bodyClassName]\n .filter(Boolean)\n .join(' '),\n },\n {\n class: {\n 'flex flex-col': bodyFullHeight,\n title_ellipsis: titleEllipsis,\n },\n },\n ),\n $slots,\n )\n \"\n >\n </component>\n</template>\n\n<!-- <style scoped>\n.title_ellipsis {\n :deep() {\n .t-card__header-wrapper {\n @apply inline overflow-hidden;\n }\n\n .t-card__title {\n @apply overflow-hidden text-ellipsis whitespace-nowrap;\n }\n }\n}\n\n:deep() {\n .t-card__title {\n line-height: 32px;\n }\n\n .t-card__header {\n align-items: flex-start;\n }\n\n .t-card__title--bordered {\n &:is(:last-child) {\n border-bottom: none;\n }\n }\n\n .t-card__body {\n &:has(> .t-form:is(:last-child)) {\n padding-bottom: 0;\n }\n }\n\n .t-card__actions {\n display: flex;\n align-items: center;\n min-height: 32px;\n color: inherit;\n }\n\n .t-loading__parent {\n /* stylelint-disable-next-line selector-class-pattern */\n &:has(.t-card__body.flex-1) {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow-y: auto;\n }\n }\n}\n</style> -->\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EACd,MAAM,cAAA,GAAa,IAAA,SAAA,OAAe;GAChC,MAAM,MAA0B,EAC9B,GAAG,MACL;GAEA,OAAO,IAAI;GACX,OAAO,IAAI;GACX,OAAO,KAAK,GAAG,CAAC,CAAC,SAAS,QAAQ;IAChC,IAAI,IAAI,SAA6B,KAAA,GACnC,OAAO,IAAI;GAEf,CAAC;GACD,OAAO;EACT,CAAC;EACD,MAAM,QAAQ,iBAAA;EACd,MAAM,MAAA,GAAK,IAAA,mBAAA,CAAmB;EAE9B,SAAS,SAAS,UAAe;GAG/B,GAAG,UAFa,YAAY,CAAC;EAG/B;;GAIE,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAwBY,IAAA,wBAAA,EAAA,GAvBE,IAAA,EAAA,EAAA,GAAW,IAAA,MAAA,CAAA,KAAA,IAAA,GAAe,IAAA,WAAA,CAAsBA,KAAAA,QAAAA;IAAmC,GAAA,WAAA;IAA6B,KAAA;IAAsC,eAAA,CAAA,QAAA,iBAAc,WAAA,IAAkB,WAAA,MAAW,aAAa,CAAA,CAAiB,OAAO,OAAO,CAAA,CAAiB,KAAI,GAAA;;IAAoF,iBAAA,QAAA;IAA8C,gBAAA,QAAA;GAA8DC,EAAAA,CAAAA,GAAAA,KAAAA,MAAAA,CAAAA,CAAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
//#region ../../packages/components/card/src/card.vue
|
|
6
|
-
var card_default = require("./card.vue_vue_type_script_setup_true_lang.js").default;
|
|
7
|
-
//#endregion
|
|
8
|
-
exports.default = card_default;
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=card2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card2.js","names":[],"sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CardProps } from './card'\nimport { Card as TCard } from 'tdesign-vue-next'\nimport { computed, getCurrentInstance, h, mergeProps } from 'vue'\nimport { cardPropsInit } from './card'\n\ndefineOptions({\n inheritAttrs: false,\n // eslint-disable-next-line vue/order-in-components -- perfectionist/sort-objects 按字母序\n name: 'TCard',\n})\n\nconst props = withDefaults(defineProps<CardProps>(), cardPropsInit)\nconst otherProps = computed(() => {\n const obj: Partial<CardProps> = {\n ...props,\n }\n\n delete obj.bodyFullHeight\n delete obj.titleEllipsis\n Object.keys(obj).forEach((key) => {\n if (obj[key as keyof typeof obj] === undefined) {\n delete obj[key as keyof typeof obj]\n }\n })\n return obj\n})\nconst compo = TCard\nconst vm = getCurrentInstance()!\n\nfunction compoRef(instance: any) {\n const exposed = instance ?? {}\n\n vm.exposed = exposed\n}\n</script>\n\n<template>\n <component\n :is=\"\n h(\n compo,\n mergeProps(\n $attrs,\n {\n ...otherProps,\n ref: compoRef,\n bodyClassName: [bodyFullHeight ? 'flex-1' : '', otherProps.bodyClassName]\n .filter(Boolean)\n .join(' '),\n },\n {\n class: {\n 'flex flex-col': bodyFullHeight,\n title_ellipsis: titleEllipsis,\n },\n },\n ),\n $slots,\n )\n \"\n >\n </component>\n</template>\n\n<!-- <style scoped>\n.title_ellipsis {\n :deep() {\n .t-card__header-wrapper {\n @apply inline overflow-hidden;\n }\n\n .t-card__title {\n @apply overflow-hidden text-ellipsis whitespace-nowrap;\n }\n }\n}\n\n:deep() {\n .t-card__title {\n line-height: 32px;\n }\n\n .t-card__header {\n align-items: flex-start;\n }\n\n .t-card__title--bordered {\n &:is(:last-child) {\n border-bottom: none;\n }\n }\n\n .t-card__body {\n &:has(> .t-form:is(:last-child)) {\n padding-bottom: 0;\n }\n }\n\n .t-card__actions {\n display: flex;\n align-items: center;\n min-height: 32px;\n color: inherit;\n }\n\n .t-loading__parent {\n /* stylelint-disable-next-line selector-class-pattern */\n &:has(.t-card__body.flex-1) {\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow-y: auto;\n }\n }\n}\n</style> -->\n"],"mappings":""}
|
package/lib/components/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_card = require("./card/src/card.js");
|
|
3
|
-
const require_card$1 = require("./card/src/card2.js");
|
|
4
|
-
exports.TCard = require_card$1.default;
|
|
5
|
-
exports.cardPropsInit = require_card.cardPropsInit;
|
package/lib/index.d.ts
DELETED
package/lib/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_card = require("./components/card/src/card.js");
|
|
3
|
-
const require_card$1 = require("./components/card/src/card2.js");
|
|
4
|
-
exports.TCard = require_card$1.default;
|
|
5
|
-
exports.cardPropsInit = require_card.cardPropsInit;
|