dlzn-ui 1.16.0 → 1.19.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/assets/css/index.css +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 +9 -0
- package/components/card/src/card.vue.d.ts +10 -0
- package/components/card/src/card.vue_vue_type_script_setup_true_lang.mjs +58 -0
- package/components/card/src/card.vue_vue_type_style_index_0_scoped_19794e6f_lang.css +2 -0
- package/components/card/src/card2.mjs +7 -0
- package/components/index.d.ts +1 -1
- package/components/index.mjs +4 -4
- package/index.mjs +3 -3
- package/package.json +10 -1
- package/prettier-config.mjs +14 -3
- package/vite-config.mjs +39 -0
- package/components/button/index.d.ts +0 -2
- package/components/button/index.mjs +0 -3
- package/components/button/src/button.d.ts +0 -28
- package/components/button/src/button.mjs +0 -29
- package/components/button/src/button.vue.d.ts +0 -65
- package/components/button/src/button.vue_vue_type_script_lang.mjs +0 -16
- package/components/button/src/button.vue_vue_type_style_index_0_scoped_4046b257_lang.css +0 -1
- package/components/button/src/button2.mjs +0 -24
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:blinkmacsystemfont, -apple-system, "Segoe UI", roboto, helvetica, arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.contents{display:contents}.flex{display:flex}.inline{display:inline}.flex-1{flex:1}.flex-col{flex-direction:column}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}:root{--td-radius-default:4px;--td-radius-large:8px;--td-font-family:var(--font-sans);--td-font-family-medium:var(--font-sans)}:root,:root[theme-mode=light]{--td-font-gray-1:#000000b3;--td-brand-color-1:#f2f3ff;--td-brand-color-2:#cadffc;--td-brand-color-3:#a1cbfa;--td-brand-color-4:#79b7f7;--td-brand-color-5:#51a2f4;--td-brand-color-6:#288ef2;--td-brand-color-7:#007aef;--td-brand-color-8:#005fbb;--td-brand-color-9:#004586;--td-brand-color-10:#002a52;--td-gray-color-1:#fafafa;--td-bg-color-page:#f4f5fa;--td-shadow-1:0 2px 2px -1px #3a354114, 0 1px 5px 1px #3a35411f, 0 1px 8px 1px #3a35410a;--td-shadow-2:0 4px 5px -2px #3a354114, 0 2px 10px 1px #3a35411f, 0 2px 16px 1px #3a35410a;--td-shadow-3:0 5px 7px -3px #3a354114, 0 3px 13px 1px #3a35411f, 0 3px 21px 1px #3a35410a;--td-mask-active:#3a354152}body>.t-loading__overlay{background-color:#ffffff1a}body .t-list-item:last-child:after{display:none}body .t-radio__input,body .t-checkbox__input{width:20px;height:20px}body .t-radio.t-is-checked .t-radio__input{border-width:2px}body .t-checkbox.t-is-checked .t-checkbox__input{transition:none}body .t-checkbox.t-is-checked .t-checkbox__input:after{width:8px;height:14px;top:8px;left:3px}body .t-checkbox.t-is-indeterminate .t-checkbox__input{transition:none}body .t-checkbox.t-is-indeterminate .t-checkbox__input:after{width:26px;top:7px;left:-4px}:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-is-focused,:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-input--focused{box-shadow:0 0 0 1px var(--td-brand-color) inset}:is(:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-is-focused,:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-input--focused).t-is-success{box-shadow:0 0 0 1px var(--td-success-color) inset}:is(:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-is-focused,:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-input--focused).t-is-warning{box-shadow:0 0 0 1px var(--td-warning-color) inset}:is(:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-is-focused,:is(body .t-input:not(.t-range-input .t-input),body .t-range-input,body .t-textarea__inner).t-input--focused).t-is-error,:is(body .t-is-error .t-form__controls-content .t-input:not(.t-range-input .t-input),body .t-is-error .t-form__controls-content .t-range-input,body .t-is-error .t-form__controls-content .t-textarea__inner).t-is-focused,:is(body .t-is-error .t-form__controls-content .t-input:not(.t-range-input .t-input),body .t-is-error .t-form__controls-content .t-range-input,body .t-is-error .t-form__controls-content .t-textarea__inner).t-input--focused{box-shadow:0 0 0 1px var(--td-error-color) inset}body .t-tabs{overflow:visible}body .t-tabs .t-tabs__nav-item .remove-btn{margin-left:0;padding:2px;font-size:22px;position:relative;right:4px}body .t-tabs .t-tabs__nav-item:not(.t-is-disabled) .remove-btn:hover{background-color:var(--td-bg-color-container-hover)}body .t-tabs .t-tabs__nav-item:not(.t-is-disabled):not(.t-is-active):hover .t-tabs__nav-item-wrapper{background-color:inherit}body .t-tabs .t-tabs__nav-item:not(.t-is-disabled):not(.t-is-active) .t-tabs__nav-item-wrapper:hover{background-color:var(--td-bg-color-container-hover)}body .t-tabs .t-tabs__operations--left,body .t-tabs .t-tabs__operations--right{bottom:0}body .t-tabs .t-tabs__content{overflow:visible}body .t-dialog__ctx .t-dialog__mask{background-color:#3a354152}body .t-dialog__ctx .t-dialog{border-radius:var(--td-radius-default);min-width:320px;max-width:calc(100% - 20px);box-shadow:0 11px 15px -7px #3a354114,0 24px 38px 3px #3a35411f,0 9px 46px 8px #3a35410a}body .t-dialog__ctx .t-dialog.t-dialog--default{padding:var(--td-size-7)}body .t-dialog__ctx .t-dialog [class^=t-dialog__body]:last-child{padding-bottom:0}body .t-dialog__ctx .t-dialog [class^=t-dialog__body]:has(>.t-form:last-child){padding-bottom:0}:is(body .t-dialog__ctx .t-dialog [class^=t-dialog__body]:has(>.t-typography:first-child),body .t-dialog__ctx .t-dialog [class^=t-dialog__body]:has(>div:first-child>.t-typography:first-child),body .t-dialog__ctx .t-dialog [class^=t-dialog__body]:has(>div:first-child>div:first-child>.t-typography:first-child),body .t-dialog__ctx .t-dialog [class^=t-dialog__body]:has(.no_dialog_pt),body .t-dialog__ctx .t-dialog .t-dialog__footer){padding-top:0}body .t-dialog__ctx .t-dialog--draggable .t-dialog__header-content{cursor:move}body .t-link{display:inline}body .t-link .t-link__prefix-icon{margin-right:0;display:inline}body .t-link .t-link__suffix-icon{margin-left:0;display:inline}body .t-tree__icon:has(>.t-button){justify-content:center;width:32px;display:flex}body .t-tree__icon:has(>.t-button) .t-button{left:2px}body .t-tree__icon:empty{display:none}body .t-tree__item{padding:0 0 0 calc(32px * var(--level))}body .t-tree__line{--space:32px}body .t-tree__line:before{width:20px}body .t-tree__line{left:calc(32px * var(--level) - 14px)}body .t-input-adornment__append,body .t-input-adornment__prepend{align-items:center;display:flex}body .t-list__load{font-size:var(--td-font-size-body-small);line-height:var(--td-line-height-body-small);color:var(--td-text-color-placeholder);background:0 0}body .t-list__load:not(:empty){padding:var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-l)}body .t-list__load.t-list__load--load-more{cursor:pointer}body .t-list__header,body .t-list__footer{background:0 0;padding:0}:is(body .t-input-adornment .t-input-adornment__prepend,body .t-input-adornment .t-input-adornment__append):has(>.t-button){border:1px solid var(--td-border-level-2-color);flex-shrink:0;overflow:hidden}:is(body .t-input-adornment .t-input-adornment__prepend,body .t-input-adornment .t-input-adornment__append):has(>.t-button) .t-button{border-radius:0;margin:-1px}:is(body .t-input-adornment .t-input-adornment__prepend,body .t-input-adornment .t-input-adornment__append):has(>.t-button.t-button--theme-primary){border:none}body .t-drawer .t-drawer__body:has(.no_drawer_body_padding){padding:0}body .t-drawer .t-drawer__content-wrapper:has(.no_drawer_content_shadow){box-shadow:none}body .t-popup.t-is-head-menu .t-menu__item{--td-comp-paddingLR-l:var(--td-size-4)}body .t-popup.t-is-head-menu .t-menu__item .t-menu__content{width:100%}body .t-popup__content{border:1px solid var(--td-border-level-2-color);box-shadow:var(--td-shadow-2)}body .t-empty{flex-direction:column;justify-content:center;display:flex}@media (width<=540px){.t-dialog .t-form__item[class*=col-span-]{grid-column:1/-1}}.chatbot_wrapper{--td-chat-item-gap:12px;--td-chat-item-left-avatar-margin:0 8px 0 4px;--td-chat-item-right-avatar-margin:0 4px 0 8px;--td-chat-item-content-padding:6px 0 0;--td-chat-font-size:var(--td-font-size-body-medium);--td-chat-item-text-padding:var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s)}.chatbot_wrapper ::part(t-chat__input__content){border-radius:var(--td-radius-default)}.chatbot_wrapper ::part(t-chat__input__content):focus-within{box-shadow:0 0 0 1px var(--td-brand-color) inset}.chatbot_wrapper ::part(t-chat__text--user){background-color:var(--td-bg-color-container-active)}.chatbot_wrapper ::part(t-chat__input){padding:0 12px 12px}.chatbot_wrapper ::part(t-chat__list){padding:0 12px}.chatbot_wrapper ::part(t-chat__item__inner){margin-top:12px}body .el-popper__arrow{display:none}body .el-input__icon.clear-icon{font-size:16px}body .el-date-editor.is-focus .el-input__wrapper{box-shadow:0 0 0 2px var(--el-input-focus-border-color) inset}body .el-date-editor.t-is-success .el-input__wrapper{--el-input-border-color:var(--td-success-color);--el-input-hover-border-color:var(--td-success-color);--el-input-focus-border-color:var(--td-success-color)}body .el-date-editor.t-is-warning .el-input__wrapper{--el-input-border-color:var(--td-warning-color);--el-input-hover-border-color:var(--td-warning-color);--el-input-focus-border-color:var(--td-warning-color)}body .el-date-editor.t-is-error .el-input__wrapper{--el-input-border-color:var(--td-error-color);--el-input-hover-border-color:var(--td-error-color);--el-input-focus-border-color:var(--td-error-color)}body .el-range-editor.is-active{box-shadow:0 0 0 2px var(--el-input-focus-border-color) inset!important}body .el-input__wrapper.is-focus{box-shadow:0 0 0 2px var(--el-input-focus-border-color) inset}body .t-form__controls.t-is-error .el-input__wrapper{--el-input-border-color:var(--td-error-color);--el-input-hover-border-color:var(--td-error-color);--el-input-focus-border-color:var(--td-error-color)}body .t-form__controls .el-date-editor{--el-date-editor-width:100%;--el-date-editor-monthrange-width:100%;--el-date-editor-daterange-width:100%;--el-date-editor-datetimerange-width:100%}:root{--bprogress-color:var(--td-brand-color)!important}.full_screen{z-index:2000;width:100%;height:100%;position:fixed;top:0;left:0}img{-webkit-user-select:none;user-select:none}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
@@ -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,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,58 @@
|
|
|
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 src/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 };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.title_ellipsis[data-v-19794e6f] .t-card__header-wrapper{display:inline;overflow:hidden}.title_ellipsis[data-v-19794e6f] .t-card__title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-v-19794e6f] .t-card__title{line-height:32px}[data-v-19794e6f] .t-card__header{align-items:flex-start}[data-v-19794e6f] .t-card__title--bordered:last-child{border-bottom:none}[data-v-19794e6f] .t-card__body:has(>.t-form:last-child){padding-bottom:0}[data-v-19794e6f] .t-card__actions{min-height:32px;color:inherit;align-items:center;display:flex}[data-v-19794e6f] .t-loading__parent:has(.t-card__body.flex-1){flex-direction:column;flex:1;display:flex;overflow-y:auto}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./card.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
import './card.vue_vue_type_style_index_0_scoped_19794e6f_lang.css';/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
//#region src/components/card/src/card.vue
|
|
5
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-19794e6f"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
package/components/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './card';
|
package/components/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "./
|
|
3
|
-
import "./
|
|
4
|
-
export { t as
|
|
1
|
+
import { cardPropsInit as e } from "./card/src/card.mjs";
|
|
2
|
+
import t from "./card/src/card2.mjs";
|
|
3
|
+
import "./card/index.mjs";
|
|
4
|
+
export { t as TCard, e as cardPropsInit };
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "./components/
|
|
1
|
+
import { cardPropsInit as e } from "./components/card/src/card.mjs";
|
|
2
|
+
import t from "./components/card/src/card2.mjs";
|
|
3
3
|
import "./components/index.mjs";
|
|
4
|
-
export { t as
|
|
4
|
+
export { t as TCard, e as cardPropsInit };
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"import": "./index.mjs",
|
|
11
11
|
"types": "./index.d.ts"
|
|
12
12
|
},
|
|
13
|
+
"./assets/*": "./assets/*",
|
|
13
14
|
"./const": {
|
|
14
15
|
"import": "./const/index.mjs",
|
|
15
16
|
"types": "./const/index.d.ts"
|
|
@@ -20,6 +21,9 @@
|
|
|
20
21
|
"./utils": {
|
|
21
22
|
"import": "./utils/index.mjs",
|
|
22
23
|
"types": "./utils/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./vite-config": {
|
|
26
|
+
"import": "./vite-config.mjs"
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
"keywords": [],
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"@antfu/eslint-config": "^9.3.0",
|
|
30
34
|
"@prettier/plugin-xml": "^3.4.2",
|
|
31
35
|
"@stylistic/stylelint-config": "^5.0.0",
|
|
36
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
32
37
|
"@tsconfig/node-lts": "^24.0.0",
|
|
33
38
|
"@types/node": "^26.1.2",
|
|
34
39
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
@@ -49,8 +54,11 @@
|
|
|
49
54
|
"stylelint-define-config": "^17.14.0",
|
|
50
55
|
"stylelint-order": "^8.1.1",
|
|
51
56
|
"stylelint-use-nesting": "^6.0.2",
|
|
57
|
+
"tailwindcss": "^4.3.3",
|
|
58
|
+
"tdesign-vue-next": "^1.20.5",
|
|
52
59
|
"typescript": "^6.0.3",
|
|
53
60
|
"vite": "^8.2.0",
|
|
61
|
+
"vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
|
|
54
62
|
"vue": "^3.5.41",
|
|
55
63
|
"vue-tsc": "^3.3.9"
|
|
56
64
|
},
|
|
@@ -58,5 +66,6 @@
|
|
|
58
66
|
"**/*.css"
|
|
59
67
|
],
|
|
60
68
|
"type": "module",
|
|
61
|
-
"version": "1.
|
|
69
|
+
"version": "1.19.0",
|
|
70
|
+
"scripts": {}
|
|
62
71
|
}
|
package/prettier-config.mjs
CHANGED
|
@@ -4,9 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// @ts-check
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { existsSync } from 'node:fs'
|
|
8
|
+
import { dirname, resolve } from 'node:path'
|
|
9
|
+
import { fileURLToPath } from 'node:url'
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
const here = dirname(fileURLToPath(import.meta.url))
|
|
12
|
+
|
|
13
|
+
function resolveDefaultCssEntry() {
|
|
14
|
+
const distCss = resolve(here, 'assets/css/index.css')
|
|
15
|
+
const srcCss = resolve(here, 'src/assets/css/index.css')
|
|
16
|
+
|
|
17
|
+
return existsSync(distCss) ? distCss : srcCss
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
|
|
10
21
|
export default {
|
|
11
22
|
$schema: 'https://json.schemastore.org/prettierrc',
|
|
12
23
|
arrowParens: 'always', // 单参数箭头函数参数周围使用圆括号-eg: (x) => x
|
|
@@ -26,7 +37,7 @@ export default {
|
|
|
26
37
|
singleAttributePerLine: false, // 会在 HTML、JSX、Vue 和 Angular 中格式化为每个属性单独占一行。
|
|
27
38
|
singleQuote: true, // 使用单引号
|
|
28
39
|
tabWidth: 2, // 缩进长度
|
|
29
|
-
tailwindStylesheet:
|
|
40
|
+
tailwindStylesheet: resolveDefaultCssEntry(),
|
|
30
41
|
trailingComma: 'all',
|
|
31
42
|
useTabs: false, // 使用空格代替tab缩进
|
|
32
43
|
vueIndentScriptAndStyle: false, // 不对vue中的script及style标签缩进
|
package/vite-config.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs'
|
|
2
|
+
import { dirname, resolve } from 'node:path'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
4
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
5
|
+
import vue from '@vitejs/plugin-vue'
|
|
6
|
+
import tailwindAutoReference from 'vite-plugin-vue-tailwind-auto-reference'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @typedef {import('vite').ConfigEnv} ConfigEnv
|
|
10
|
+
* @typedef {typeof import('vite-plugin-vue-tailwind-auto-reference').default} TailwindAutoReference
|
|
11
|
+
* @typedef {Parameters<TailwindAutoReference>} TailwindAutoReferenceParameters
|
|
12
|
+
* @typedef {{ tailwindAutoReferenceParameters?: TailwindAutoReferenceParameters }} DlznViteOptions
|
|
13
|
+
* @typedef {import('vite').UserConfig} UserConfig
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const here = dirname(fileURLToPath(import.meta.url))
|
|
17
|
+
|
|
18
|
+
function resolveDefaultCssEntry() {
|
|
19
|
+
const distCss = resolve(here, 'assets/css/index.css')
|
|
20
|
+
const srcCss = resolve(here, 'src/assets/css/index.css')
|
|
21
|
+
|
|
22
|
+
return existsSync(distCss) ? distCss : srcCss
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ConfigEnv} env
|
|
27
|
+
* @param {DlznViteOptions} options
|
|
28
|
+
* @returns {UserConfig} Vite config
|
|
29
|
+
*/
|
|
30
|
+
export default (env, options) => {
|
|
31
|
+
const tailwindAutoReferenceParameters = [
|
|
32
|
+
options.tailwindAutoReferenceParameters?.[0] ?? resolveDefaultCssEntry(),
|
|
33
|
+
...(options.tailwindAutoReferenceParameters?.slice(1) ?? []),
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
plugins: [vue(), tailwindAutoReference(...tailwindAutoReferenceParameters), tailwindcss()],
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare const buttonProps: {
|
|
3
|
-
circle: {
|
|
4
|
-
default: boolean;
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
};
|
|
7
|
-
disabled: {
|
|
8
|
-
default: boolean;
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
};
|
|
11
|
-
icon: {
|
|
12
|
-
default: string;
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
};
|
|
15
|
-
plain: {
|
|
16
|
-
default: boolean;
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
};
|
|
19
|
-
round: {
|
|
20
|
-
default: boolean;
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
};
|
|
23
|
-
type: {
|
|
24
|
-
default: string;
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region src/components/button/src/button.ts
|
|
2
|
-
var e = {
|
|
3
|
-
circle: {
|
|
4
|
-
default: !1,
|
|
5
|
-
type: Boolean
|
|
6
|
-
},
|
|
7
|
-
disabled: {
|
|
8
|
-
default: !1,
|
|
9
|
-
type: Boolean
|
|
10
|
-
},
|
|
11
|
-
icon: {
|
|
12
|
-
default: "",
|
|
13
|
-
type: String
|
|
14
|
-
},
|
|
15
|
-
plain: {
|
|
16
|
-
default: !1,
|
|
17
|
-
type: Boolean
|
|
18
|
-
},
|
|
19
|
-
round: {
|
|
20
|
-
default: !1,
|
|
21
|
-
type: Boolean
|
|
22
|
-
},
|
|
23
|
-
type: {
|
|
24
|
-
default: "default",
|
|
25
|
-
type: String
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { e as buttonProps };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
4
|
-
declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
5
|
-
circle: {
|
|
6
|
-
default: boolean;
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
};
|
|
9
|
-
disabled: {
|
|
10
|
-
default: boolean;
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
};
|
|
13
|
-
icon: {
|
|
14
|
-
default: string;
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
};
|
|
17
|
-
plain: {
|
|
18
|
-
default: boolean;
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
};
|
|
21
|
-
round: {
|
|
22
|
-
default: boolean;
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
};
|
|
25
|
-
type: {
|
|
26
|
-
default: string;
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
};
|
|
29
|
-
}>, {
|
|
30
|
-
clickHandle: (e: Event) => void;
|
|
31
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", PublicProps, Readonly< ExtractPropTypes<{
|
|
32
|
-
circle: {
|
|
33
|
-
default: boolean;
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
};
|
|
36
|
-
disabled: {
|
|
37
|
-
default: boolean;
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
};
|
|
40
|
-
icon: {
|
|
41
|
-
default: string;
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
};
|
|
44
|
-
plain: {
|
|
45
|
-
default: boolean;
|
|
46
|
-
type: BooleanConstructor;
|
|
47
|
-
};
|
|
48
|
-
round: {
|
|
49
|
-
default: boolean;
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
};
|
|
52
|
-
type: {
|
|
53
|
-
default: string;
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
};
|
|
56
|
-
}>> & Readonly<{
|
|
57
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
58
|
-
}>, {
|
|
59
|
-
circle: boolean;
|
|
60
|
-
disabled: boolean;
|
|
61
|
-
icon: string;
|
|
62
|
-
plain: boolean;
|
|
63
|
-
round: boolean;
|
|
64
|
-
type: string;
|
|
65
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { buttonProps as e } from "./button.mjs";
|
|
2
|
-
import { defineComponent as t } from "vue";
|
|
3
|
-
//#region src/components/button/src/button.vue?vue&type=script&lang.ts
|
|
4
|
-
var n = t({
|
|
5
|
-
emits: ["click"],
|
|
6
|
-
name: "DuyiButton",
|
|
7
|
-
props: e,
|
|
8
|
-
setup(e, { emit: t }) {
|
|
9
|
-
function n(e) {
|
|
10
|
-
t("click", e);
|
|
11
|
-
}
|
|
12
|
-
return { clickHandle: n };
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { n as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.duyi-button[data-v-4046b257]{color:#606266;cursor:pointer;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;justify-content:center;align-items:center;padding:8px 16px;font-size:14px;line-height:1;display:inline-flex}.duyi-button[data-v-4046b257]:hover{color:#409eff;border-color:#c6e2ff}.duyi-button.is-disabled[data-v-4046b257],.duyi-button[data-v-4046b257]:disabled{cursor:not-allowed;opacity:.6}.duyi-button.is-round[data-v-4046b257]{border-radius:20px}.duyi-button.is-circle[data-v-4046b257]{border-radius:50%;padding:8px}.duyi-button-primary[data-v-4046b257]{color:#fff;background-color:#409eff;border-color:#409eff}.duyi-button-primary[data-v-4046b257]:hover{color:#fff;background-color:#66b1ff;border-color:#66b1ff}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import e from "./button.vue_vue_type_script_lang.mjs";
|
|
2
|
-
import './button.vue_vue_type_style_index_0_scoped_4046b257_lang.css';/* empty css */
|
|
3
|
-
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
import { createCommentVNode as n, createElementBlock as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
|
|
5
|
-
//#region src/components/button/src/button.vue
|
|
6
|
-
var s = ["disabled"], c = { key: 1 };
|
|
7
|
-
function l(e, t, l, u, d, f) {
|
|
8
|
-
return a(), r("button", {
|
|
9
|
-
class: i(["duyi-button", [`duyi-button-${e.type}`, {
|
|
10
|
-
"is-plain": e.plain,
|
|
11
|
-
"is-round": e.round,
|
|
12
|
-
"is-circle": e.circle,
|
|
13
|
-
"is-disabled": e.disabled
|
|
14
|
-
}]]),
|
|
15
|
-
disabled: e.disabled,
|
|
16
|
-
onClick: t[0] ||= (...t) => e.clickHandle && e.clickHandle(...t)
|
|
17
|
-
}, [e.icon ? (a(), r("i", {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: i(`duyi-icon-${e.icon}`)
|
|
20
|
-
}, null, 2)) : n("", !0), e.$slots.default ? (a(), r("span", c, [o(e.$slots, "default", {}, void 0, !0)])) : n("", !0)], 10, s);
|
|
21
|
-
}
|
|
22
|
-
var u = /*#__PURE__*/ t(e, [["render", l], ["__scopeId", "data-v-4046b257"]]);
|
|
23
|
-
//#endregion
|
|
24
|
-
export { u as default };
|