dlzn-ui 1.19.0 → 1.20.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/element-plus-reset.css +79 -0
- package/assets/css/index.css +5 -2
- package/assets/css/other.css +16 -0
- package/assets/css/tailwindcss-entry.css +20 -0
- package/assets/css/tdesign-chat-reset.css +33 -0
- package/assets/css/tdesign-reset.css +355 -0
- package/package.json +2 -2
- package/prettier-config.mjs +2 -2
- package/vite-config.mjs +11 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* stylelint-disable selector-class-pattern */
|
|
2
|
+
body {
|
|
3
|
+
.el-popper__arrow {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.el-input__icon {
|
|
8
|
+
&.clear-icon {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.el-date-editor {
|
|
14
|
+
&.is-focus .el-input__wrapper {
|
|
15
|
+
/* 非range focus */
|
|
16
|
+
box-shadow: 0 0 0 2px var(--el-input-focus-border-color) inset;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.t-is-success {
|
|
20
|
+
.el-input__wrapper {
|
|
21
|
+
--el-input-border-color: var(--td-success-color);
|
|
22
|
+
--el-input-hover-border-color: var(--td-success-color);
|
|
23
|
+
--el-input-focus-border-color: var(--td-success-color);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.t-is-warning {
|
|
28
|
+
.el-input__wrapper {
|
|
29
|
+
--el-input-border-color: var(--td-warning-color);
|
|
30
|
+
--el-input-hover-border-color: var(--td-warning-color);
|
|
31
|
+
--el-input-focus-border-color: var(--td-warning-color);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.t-is-error {
|
|
36
|
+
.el-input__wrapper {
|
|
37
|
+
--el-input-border-color: var(--td-error-color);
|
|
38
|
+
--el-input-hover-border-color: var(--td-error-color);
|
|
39
|
+
--el-input-focus-border-color: var(--td-error-color);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.el-range-editor {
|
|
45
|
+
&.is-active {
|
|
46
|
+
/* range focus */
|
|
47
|
+
box-shadow: 0 0 0 2px var(--el-input-focus-border-color) inset !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.el-input__wrapper {
|
|
52
|
+
&.is-focus {
|
|
53
|
+
/* 时间输入框 focus */
|
|
54
|
+
box-shadow: 0 0 0 2px var(--el-input-focus-border-color) inset;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.t-form__controls {
|
|
59
|
+
&.t-is-error {
|
|
60
|
+
.el-input__wrapper {
|
|
61
|
+
/* TDatePicker */
|
|
62
|
+
--el-input-border-color: var(--td-error-color);
|
|
63
|
+
|
|
64
|
+
/* TDatePicker */
|
|
65
|
+
--el-input-hover-border-color: var(--td-error-color);
|
|
66
|
+
|
|
67
|
+
/* TDatePicker */
|
|
68
|
+
--el-input-focus-border-color: var(--td-error-color);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.el-date-editor {
|
|
73
|
+
--el-date-editor-width: 100%;
|
|
74
|
+
--el-date-editor-monthrange-width: 100%;
|
|
75
|
+
--el-date-editor-daterange-width: 100%;
|
|
76
|
+
--el-date-editor-datetimerange-width: 100%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
package/assets/css/index.css
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
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}
|
|
1
|
+
@import './tailwindcss-entry.css';
|
|
2
|
+
@import './tdesign-reset.css';
|
|
3
|
+
@import './tdesign-chat-reset.css';
|
|
4
|
+
@import './element-plus-reset.css';
|
|
5
|
+
@import './other.css';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@theme {
|
|
4
|
+
--font-sans: blinkmacsystemfont, -apple-system, 'Segoe UI', roboto, helvetica, arial, sans-serif;
|
|
5
|
+
|
|
6
|
+
/* stylelint-disable-next-line custom-property-pattern */
|
|
7
|
+
--color-*: initial;
|
|
8
|
+
|
|
9
|
+
/* 自定义变量 */
|
|
10
|
+
|
|
11
|
+
/* --color-primary: var(--td-brand-color-active); */
|
|
12
|
+
|
|
13
|
+
/* 同tdesign 保持一致 */
|
|
14
|
+
--breakpoint-xs: 20rem;
|
|
15
|
+
--breakpoint-sm: 48rem;
|
|
16
|
+
--breakpoint-md: 62rem;
|
|
17
|
+
--breakpoint-lg: 75rem;
|
|
18
|
+
--breakpoint-xl: 87.5rem;
|
|
19
|
+
--breakpoint-2xl: 117.5rem;
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* stylelint-disable custom-property-pattern */
|
|
2
|
+
.chatbot_wrapper {
|
|
3
|
+
--td-chat-item-gap: 12px;
|
|
4
|
+
--td-chat-item-left-avatar-margin: 0 8px 0 4px;
|
|
5
|
+
--td-chat-item-right-avatar-margin: 0 4px 0 8px;
|
|
6
|
+
--td-chat-item-content-padding: 6px 0 0;
|
|
7
|
+
--td-chat-font-size: var(--td-font-size-body-medium);
|
|
8
|
+
--td-chat-item-text-padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);
|
|
9
|
+
|
|
10
|
+
::part(t-chat__input__content) {
|
|
11
|
+
border-radius: var(--td-radius-default);
|
|
12
|
+
|
|
13
|
+
&:focus-within {
|
|
14
|
+
box-shadow: 0 0 0 1px var(--td-brand-color) inset;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::part(t-chat__text--user) {
|
|
19
|
+
background-color: var(--td-bg-color-container-active);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
::part(t-chat__input) {
|
|
23
|
+
padding: 0 12px 12px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
::part(t-chat__list) {
|
|
27
|
+
padding: 0 12px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::part(t-chat__item__inner) {
|
|
31
|
+
margin-top: 12px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
/* stylelint-disable custom-property-pattern */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--td-radius-default: 4px;
|
|
5
|
+
--td-radius-large: 8px;
|
|
6
|
+
--td-font-family: var(--font-sans);
|
|
7
|
+
--td-font-family-medium: var(--font-sans);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:root,
|
|
11
|
+
:root[theme-mode='light'] {
|
|
12
|
+
--td-font-gray-1: rgb(0 0 0 / 70%);
|
|
13
|
+
--td-brand-color-1: #f2f3ff;
|
|
14
|
+
--td-brand-color-2: #cadffc;
|
|
15
|
+
--td-brand-color-3: #a1cbfa;
|
|
16
|
+
--td-brand-color-4: #79b7f7;
|
|
17
|
+
--td-brand-color-5: #51a2f4;
|
|
18
|
+
--td-brand-color-6: #288ef2;
|
|
19
|
+
--td-brand-color-7: #007aef;
|
|
20
|
+
--td-brand-color-8: #005fbb;
|
|
21
|
+
--td-brand-color-9: #004586;
|
|
22
|
+
--td-brand-color-10: #002a52;
|
|
23
|
+
--td-gray-color-1: #fafafa;
|
|
24
|
+
--td-bg-color-page: rgb(244 245 250);
|
|
25
|
+
--td-shadow-1:
|
|
26
|
+
0 2px 2px -1px rgb(58 53 65 / 8%), 0 1px 5px 1px rgb(58 53 65 / 12%),
|
|
27
|
+
0 1px 8px 1px rgb(58 53 65 / 4%);
|
|
28
|
+
--td-shadow-2:
|
|
29
|
+
0 4px 5px -2px rgb(58 53 65 / 8%), 0 2px 10px 1px rgb(58 53 65 / 12%),
|
|
30
|
+
0 2px 16px 1px rgb(58 53 65 / 4%);
|
|
31
|
+
--td-shadow-3:
|
|
32
|
+
0 5px 7px -3px rgb(58 53 65 / 8%), 0 3px 13px 1px rgb(58 53 65 / 12%),
|
|
33
|
+
0 3px 21px 1px rgb(58 53 65 / 4%);
|
|
34
|
+
--td-mask-active: rgb(58 53 65 / 32%);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body {
|
|
38
|
+
> .t-loading__overlay {
|
|
39
|
+
background-color: rgb(255 255 255 / 10%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.t-list-item {
|
|
43
|
+
&:last-child {
|
|
44
|
+
&::after {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.t-radio__input,
|
|
51
|
+
.t-checkbox__input {
|
|
52
|
+
width: 20px;
|
|
53
|
+
height: 20px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.t-radio {
|
|
57
|
+
&.t-is-checked {
|
|
58
|
+
.t-radio__input {
|
|
59
|
+
border-width: 2px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.t-checkbox {
|
|
65
|
+
&.t-is-checked {
|
|
66
|
+
.t-checkbox__input {
|
|
67
|
+
transition: none;
|
|
68
|
+
|
|
69
|
+
&::after {
|
|
70
|
+
top: 8px;
|
|
71
|
+
left: 3px;
|
|
72
|
+
width: 8px;
|
|
73
|
+
height: 14px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.t-is-indeterminate {
|
|
79
|
+
.t-checkbox__input {
|
|
80
|
+
transition: none;
|
|
81
|
+
|
|
82
|
+
&::after {
|
|
83
|
+
top: 7px;
|
|
84
|
+
left: -4px;
|
|
85
|
+
width: 26px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* 里层的状态干不过外层的状态 */
|
|
92
|
+
.t-input:not(.t-range-input .t-input), /* input select inputNumber tagInput treeSelect */
|
|
93
|
+
.t-range-input, /* rangeInput */
|
|
94
|
+
.t-textarea__inner /* textarea */ {
|
|
95
|
+
&.t-is-focused,
|
|
96
|
+
&.t-input--focused {
|
|
97
|
+
box-shadow: 0 0 0 1px var(--td-brand-color) inset;
|
|
98
|
+
|
|
99
|
+
&.t-is-success {
|
|
100
|
+
box-shadow: 0 0 0 1px var(--td-success-color) inset;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.t-is-warning {
|
|
104
|
+
box-shadow: 0 0 0 1px var(--td-warning-color) inset;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.t-is-error {
|
|
108
|
+
box-shadow: 0 0 0 1px var(--td-error-color) inset;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.t-is-error {
|
|
114
|
+
.t-form__controls-content {
|
|
115
|
+
.t-input:not(.t-range-input .t-input),
|
|
116
|
+
.t-range-input,
|
|
117
|
+
.t-textarea__inner {
|
|
118
|
+
&.t-is-focused,
|
|
119
|
+
&.t-input--focused {
|
|
120
|
+
box-shadow: 0 0 0 1px var(--td-error-color) inset;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.t-tabs {
|
|
127
|
+
overflow: visible;
|
|
128
|
+
|
|
129
|
+
.t-tabs__nav-item {
|
|
130
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
131
|
+
.remove-btn {
|
|
132
|
+
position: relative;
|
|
133
|
+
right: 4px;
|
|
134
|
+
padding: 2px;
|
|
135
|
+
margin-left: 0;
|
|
136
|
+
font-size: 22px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:not(.t-is-disabled) {
|
|
140
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
141
|
+
.remove-btn {
|
|
142
|
+
&:hover {
|
|
143
|
+
background-color: var(--td-bg-color-container-hover);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:not(.t-is-active) {
|
|
148
|
+
&:hover {
|
|
149
|
+
.t-tabs__nav-item-wrapper {
|
|
150
|
+
background-color: inherit;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.t-tabs__nav-item-wrapper {
|
|
155
|
+
&:hover {
|
|
156
|
+
background-color: var(--td-bg-color-container-hover);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.t-tabs__operations--left,
|
|
164
|
+
.t-tabs__operations--right {
|
|
165
|
+
bottom: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.t-tabs__content {
|
|
169
|
+
overflow: visible;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.t-dialog__ctx {
|
|
174
|
+
.t-dialog__mask {
|
|
175
|
+
background-color: rgb(58 53 65 / 32%);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.t-dialog {
|
|
179
|
+
min-width: 320px;
|
|
180
|
+
max-width: calc(100% - 20px);
|
|
181
|
+
border-radius: var(--td-radius-default);
|
|
182
|
+
box-shadow:
|
|
183
|
+
rgb(58 53 65 / 8%) 0 11px 15px -7px,
|
|
184
|
+
rgb(58 53 65 / 12%) 0 24px 38px 3px,
|
|
185
|
+
rgb(58 53 65 / 4%) 0 9px 46px 8px;
|
|
186
|
+
|
|
187
|
+
&.t-dialog--default {
|
|
188
|
+
padding: var(--td-size-7);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
[class^='t-dialog__body'] {
|
|
192
|
+
&:is(:last-child),
|
|
193
|
+
&:has(> .t-form:is(:last-child)) {
|
|
194
|
+
padding-bottom: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&:has(> .t-typography:is(:first-child)),
|
|
198
|
+
&:has(> div:is(:first-child) > .t-typography:is(:first-child)),
|
|
199
|
+
&:has(> div:is(:first-child) > div:is(:first-child) > .t-typography:is(:first-child)) {
|
|
200
|
+
padding-top: 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&:has(.no_dialog_pt) {
|
|
204
|
+
padding-top: 0;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.t-dialog__footer {
|
|
209
|
+
@apply pt-0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.t-dialog--draggable {
|
|
214
|
+
.t-dialog__header-content {
|
|
215
|
+
cursor: move;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.t-link {
|
|
221
|
+
display: inline;
|
|
222
|
+
|
|
223
|
+
.t-link__prefix-icon {
|
|
224
|
+
display: inline;
|
|
225
|
+
margin-right: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.t-link__suffix-icon {
|
|
229
|
+
display: inline;
|
|
230
|
+
margin-left: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.t-tree__icon {
|
|
235
|
+
&:has(> .t-button) {
|
|
236
|
+
display: flex;
|
|
237
|
+
justify-content: center;
|
|
238
|
+
width: 32px;
|
|
239
|
+
|
|
240
|
+
.t-button {
|
|
241
|
+
left: 2px;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&:empty {
|
|
246
|
+
display: none;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.t-tree__item {
|
|
251
|
+
padding: 0 0 0 calc(32px * var(--level));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.t-tree__line {
|
|
255
|
+
--space: 32px;
|
|
256
|
+
|
|
257
|
+
&::before {
|
|
258
|
+
width: 20px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
left: calc(32px * var(--level) - 14px);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.t-input-adornment__append,
|
|
265
|
+
.t-input-adornment__prepend {
|
|
266
|
+
@apply flex items-center;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.t-list__load {
|
|
270
|
+
font-size: var(--td-font-size-body-small);
|
|
271
|
+
line-height: var(--td-line-height-body-small);
|
|
272
|
+
color: var(--td-text-color-placeholder);
|
|
273
|
+
background: transparent;
|
|
274
|
+
|
|
275
|
+
&:not(:empty) {
|
|
276
|
+
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-l);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&.t-list__load--load-more {
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.t-list__header,
|
|
285
|
+
.t-list__footer {
|
|
286
|
+
padding: 0;
|
|
287
|
+
background: transparent;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.t-input-adornment {
|
|
291
|
+
.t-input-adornment__prepend,
|
|
292
|
+
.t-input-adornment__append {
|
|
293
|
+
&:has(> .t-button) {
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
border: 1px solid var(--td-border-level-2-color);
|
|
297
|
+
|
|
298
|
+
.t-button {
|
|
299
|
+
margin: -1px;
|
|
300
|
+
border-radius: 0;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
&:has(> .t-button.t-button--theme-primary) {
|
|
305
|
+
border: none;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.t-drawer {
|
|
311
|
+
.t-drawer__body {
|
|
312
|
+
&:has(.no_drawer_body_padding) {
|
|
313
|
+
padding: 0;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.t-drawer__content-wrapper {
|
|
318
|
+
&:has(.no_drawer_content_shadow) {
|
|
319
|
+
box-shadow: none;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.t-popup {
|
|
325
|
+
&.t-is-head-menu {
|
|
326
|
+
.t-menu__item {
|
|
327
|
+
--td-comp-paddingLR-l: var(--td-size-4);
|
|
328
|
+
|
|
329
|
+
.t-menu__content {
|
|
330
|
+
width: 100%;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.t-popup__content {
|
|
337
|
+
border: 1px solid var(--td-border-level-2-color);
|
|
338
|
+
box-shadow: var(--td-shadow-2);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.t-empty {
|
|
342
|
+
@apply flex flex-col justify-center;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@media (width <= 540px) {
|
|
347
|
+
.t-dialog {
|
|
348
|
+
.t-form__item {
|
|
349
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
350
|
+
&[class*='col-span-'] {
|
|
351
|
+
@apply col-span-full;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"import": "./index.mjs",
|
|
11
11
|
"types": "./index.d.ts"
|
|
12
12
|
},
|
|
13
|
-
"./assets
|
|
13
|
+
"./assets/css/index.css": "./assets/css/index.css",
|
|
14
14
|
"./const": {
|
|
15
15
|
"import": "./const/index.mjs",
|
|
16
16
|
"types": "./const/index.d.ts"
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"**/*.css"
|
|
67
67
|
],
|
|
68
68
|
"type": "module",
|
|
69
|
-
"version": "1.
|
|
69
|
+
"version": "1.20.0",
|
|
70
70
|
"scripts": {}
|
|
71
71
|
}
|
package/prettier-config.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import { fileURLToPath } from 'node:url'
|
|
|
11
11
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
12
12
|
|
|
13
13
|
function resolveDefaultCssEntry() {
|
|
14
|
-
const distCss = resolve(here, 'assets/css/
|
|
15
|
-
const srcCss = resolve(here, 'src/assets/css/
|
|
14
|
+
const distCss = resolve(here, 'assets/css/tailwindcss-entry.css')
|
|
15
|
+
const srcCss = resolve(here, 'src/assets/css/tailwindcss-entry.css')
|
|
16
16
|
|
|
17
17
|
return existsSync(distCss) ? distCss : srcCss
|
|
18
18
|
}
|
package/vite-config.mjs
CHANGED
|
@@ -16,8 +16,8 @@ import tailwindAutoReference from 'vite-plugin-vue-tailwind-auto-reference'
|
|
|
16
16
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
17
17
|
|
|
18
18
|
function resolveDefaultCssEntry() {
|
|
19
|
-
const distCss = resolve(here, 'assets/css/
|
|
20
|
-
const srcCss = resolve(here, 'src/assets/css/
|
|
19
|
+
const distCss = resolve(here, 'assets/css/tailwindcss-entry.css')
|
|
20
|
+
const srcCss = resolve(here, 'src/assets/css/tailwindcss-entry.css')
|
|
21
21
|
|
|
22
22
|
return existsSync(distCss) ? distCss : srcCss
|
|
23
23
|
}
|
|
@@ -34,6 +34,14 @@ export default (env, options) => {
|
|
|
34
34
|
]
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
|
-
plugins: [
|
|
37
|
+
plugins: [
|
|
38
|
+
vue({
|
|
39
|
+
// features: {
|
|
40
|
+
// optionsAPI: false, // 不能删掉,tdesign 内部使用到了
|
|
41
|
+
// },
|
|
42
|
+
}),
|
|
43
|
+
tailwindAutoReference(...tailwindAutoReferenceParameters),
|
|
44
|
+
tailwindcss(),
|
|
45
|
+
],
|
|
38
46
|
}
|
|
39
47
|
}
|