dlzn-ui 1.41.0 → 1.50.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/LICENSE +1 -1
- package/es/component.d.ts +3 -0
- package/es/component.mjs +2 -0
- package/es/components/card/index.d.ts +3 -0
- package/es/components/card/index.mjs +3 -0
- package/es/components/card/src/card.d.ts +13 -0
- package/es/components/card/src/card.mjs +11 -0
- package/es/components/card/src/card.mjs.map +1 -0
- package/es/components/card/src/card.vue.d.ts +11 -0
- package/es/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs +147 -0
- package/es/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/es/components/card/src/card2.mjs +7 -0
- package/es/components/card/src/card2.mjs.map +1 -0
- package/es/components/index.d.ts +4 -0
- package/es/components/index.mjs +3 -0
- package/es/index.d.ts +4 -0
- package/es/index.mjs +3 -0
- package/lib/component.d.ts +3 -0
- package/lib/component.js +3 -0
- package/lib/components/card/index.d.ts +3 -0
- package/lib/components/card/index.js +5 -0
- package/lib/components/card/src/card.d.ts +13 -0
- package/lib/components/card/src/card.js +12 -0
- package/lib/components/card/src/card.js.map +1 -0
- package/lib/components/card/src/card.vue.d.ts +11 -0
- package/lib/components/card/src/card.vue_vue_type_script_setup_true_lang.js +147 -0
- package/lib/components/card/src/card.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/lib/components/card/src/card2.js +10 -0
- package/lib/components/card/src/card2.js.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.js +5 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -0
- package/package.json +67 -99
- package/_virtual/_plugin-vue_export-helper.mjs +0 -8
- package/assets/css/element-plus-reset.css +0 -79
- package/assets/css/index.css +0 -5
- package/assets/css/other.css +0 -16
- package/assets/css/tailwindcss-entry.css +0 -20
- package/assets/css/tdesign-chat-reset.css +0 -33
- package/assets/css/tdesign-reset.css +0 -355
- package/components/card/index.d.ts +0 -2
- package/components/card/index.mjs +0 -3
- package/components/card/src/card.d.ts +0 -11
- package/components/card/src/card.mjs +0 -9
- package/components/card/src/card.vue.d.ts +0 -10
- package/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs +0 -58
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_19794e6f_lang.css +0 -2
- package/components/card/src/card2.mjs +0 -7
- package/components/index.d.ts +0 -1
- package/components/index.mjs +0 -4
- package/const/index.d.ts +0 -1
- package/const/index.mjs +0 -2
- package/const/others.d.ts +0 -3
- package/const/others.mjs +0 -4
- package/ejs/slide-puzzle.ejs +0 -135
- package/index.d.ts +0 -1
- package/index.mjs +0 -4
- package/node/aliasElementPlus.d.ts +0 -5
- package/node/aliasElementPlus.mjs +0 -17
- package/node/autoImportStores.d.ts +0 -2
- package/node/autoImportStores.mjs +0 -17
- package/node/devSaveFolderAlias.d.ts +0 -3
- package/node/devSaveFolderAlias.mjs +0 -94
- package/node/eslint-config.d.ts +0 -3
- package/node/eslint-config.mjs +0 -197
- package/node/prettier-config.d.ts +0 -29
- package/node/prettier-config.mjs +0 -28
- package/node/stylelint-config.d.ts +0 -43
- package/node/stylelint-config.mjs +0 -48
- package/node/tDesignResolve.d.ts +0 -22
- package/node/tDesignResolve.mjs +0 -63
- package/node/utils/index.d.ts +0 -3
- package/node/utils/index.mjs +0 -19
- package/node/vite-config.d.ts +0 -12
- package/node/vite-config.mjs +0 -243
- package/node/vitePlugins.d.ts +0 -6
- package/node/vitePlugins.mjs +0 -58
- package/types/env.d.ts +0 -6
- package/types/globle.d.ts +0 -10
- package/types/shims.d.ts +0 -8
- package/utils/boolean.d.ts +0 -10
- package/utils/boolean.mjs +0 -14
- package/utils/index.d.ts +0 -5
- package/utils/index.mjs +0 -6
- package/utils/number.d.ts +0 -12
- package/utils/number.mjs +0 -33
- package/utils/string.d.ts +0 -14
- package/utils/string.mjs +0 -17
- package/utils/tool.d.ts +0 -4
- package/utils/tool.mjs +0 -21
- package/utils/tree.d.ts +0 -26
- package/utils/tree.mjs +0 -36
package/LICENSE
CHANGED
package/es/component.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -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,MAAa,gBAAgB;CAC3B,gBAAgB;CAChB,gBAAgB;CAChB,QAAQ;CACR,eAAe;AACjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
|
@@ -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,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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -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":""}
|
package/es/index.d.ts
ADDED
package/es/index.mjs
ADDED
package/lib/component.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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;
|