Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"mitt": "^3.0.0",
"raf": "^3.4.1",
"sortablejs": "^1.15.0",
"tdesign-icons-vue": "^0.3.6",
"tdesign-icons-vue": "^0.4.1",
"tinycolor2": "^1.4.2",
"validator": "^13.5.1"
},
Expand Down Expand Up @@ -181,7 +181,6 @@
"rollup-plugin-styles": "^4.0.0",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-vue": "^5.1.9",
"tdesign-icons-view": "^0.3.7",
"tdesign-publish-cli": "^0.0.12",
"@tdesign/site-components": "^0.17.0",
"tdesign-theme-generator": "^1.0.0",
Expand Down
3 changes: 0 additions & 3 deletions site/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import '@tdesign/site-components/lib/styles/style.css';
import '@tdesign/site-components/lib/styles/prism-theme.less';
import '@tdesign/site-components/lib/styles/prism-theme-dark.less';

// import icons webcomponents
import 'tdesign-icons-view';

// 主题生成器挂件
import 'tdesign-theme-generator';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`AnchorTarget > <slot> > should render default slot 1`] = `
"<h1 id="test-target" class="t-anchor__target">this is default slots<svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-file-copy t-anchor__copy">
<path fill="currentColor" d="M6 1H15.4142L21 6.58579V19H6V1ZM8 3V17H19V9H13V3H8ZM15 3.41421V7H18.5858L15 3.41421ZM4 5V21H15V23H2V5H4Z"></path>
"<h1 id="test-target" class="t-anchor__target">this is default slots<svg fill="none" viewBox="0 0 24 24" width="1em" height="1em" class="t-icon t-icon-file-copy t-anchor__copy" style="fill: none;">
<g id="file-copy">
<path id="fill1" fill="transparent" d="M7 18V2H14V8H20V18H7Z"></path>
<path id="stroke1" stroke="currentColor" d="M14 2V8H20M14 2H15L20 7V8M14 2H7V18H20V8" stroke-width="2"></path>
<path id="stroke2" stroke="currentColor" d="M3 6L3 22H14" stroke-linecap="square" stroke-width="2"></path>
</g>
</svg></h1>"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,21 @@ exports[`BackTop Component > props.shape is equal to circle 1`] = `
class="t-icon t-icon-backtop t-back-top__icon"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M4 4H20V6H4V4ZM12 7.58579L18.9142 14.5L17.5 15.9142L13 11.4142V21H11V11.4142L6.5 15.9142L5.08579 14.5L12 7.58579Z"
fill="currentColor"
/>
<g
id="backtop"
>
<path
d="M17.5 14.5L12 9L6.5 14.5M5 5H19M12 10.25V20"
id="stroke1"
stroke="currentColor"
stroke-linecap="square"
stroke-width="2"
/>
</g>
</svg>
<span
class="t-back-top__text"
Expand All @@ -67,13 +75,21 @@ exports[`BackTop Component > props.shape is equal to square 1`] = `
class="t-icon t-icon-backtop t-back-top__icon"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M4 4H20V6H4V4ZM12 7.58579L18.9142 14.5L17.5 15.9142L13 11.4142V21H11V11.4142L6.5 15.9142L5.08579 14.5L12 7.58579Z"
fill="currentColor"
/>
<g
id="backtop"
>
<path
d="M17.5 14.5L12 9L6.5 14.5M5 5H19M12 10.25V20"
id="stroke1"
stroke="currentColor"
stroke-linecap="square"
stroke-width="2"
/>
</g>
</svg>
<span
class="t-back-top__text"
Expand Down
32 changes: 24 additions & 8 deletions src/breadcrumb/__tests__/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ exports[`Breadcrumb > <slot> > <separator> 1`] = `
class="t-icon t-icon-chevron-right"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M8.08594 17.5L13.5859 12L8.08594 6.50003L9.50015 5.08582L16.4144 12L9.50015 18.9142L8.08594 17.5Z"
fill="currentColor"
/>
<g
id="chevron-right"
>
<path
d="M9.5 17.5L15 12L9.5 6.5"
id="stroke1"
stroke="currentColor"
stroke-linecap="square"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down Expand Up @@ -63,13 +71,21 @@ exports[`Breadcrumb > <slot> > <separator> 1`] = `
class="t-icon t-icon-chevron-right"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M8.08594 17.5L13.5859 12L8.08594 6.50003L9.50015 5.08582L16.4144 12L9.50015 18.9142L8.08594 17.5Z"
fill="currentColor"
/>
<g
id="chevron-right"
>
<path
d="M9.5 17.5L15 12L9.5 6.5"
id="stroke1"
stroke="currentColor"
stroke-linecap="square"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down
75 changes: 63 additions & 12 deletions src/date-picker/__tests__/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,30 @@ exports[`DatePicker > :mode 1`] = `
class="t-icon t-icon-calendar"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M6 4V1.5H8V4H16V1.5H18V4H22V22H2V4H6ZM4 6V9H20V6H4ZM20 11H4V20H20V11Z"
fill="currentColor"
/>
<g
id="calendar"
>
<path
d="M21 10H3V21H21V10Z"
fill="transparent"
id="fill1"
/>
<path
d="M21 10H3V5H21V10Z"
fill="transparent"
id="fill2"
/>
<path
d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5"
id="stroke1"
stroke="currentColor"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down Expand Up @@ -78,13 +95,30 @@ exports[`DatePicker > :range 1`] = `
class="t-icon t-icon-calendar"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M6 4V1.5H8V4H16V1.5H18V4H22V22H2V4H6ZM4 6V9H20V6H4ZM20 11H4V20H20V11Z"
fill="currentColor"
/>
<g
id="calendar"
>
<path
d="M21 10H3V21H21V10Z"
fill="transparent"
id="fill1"
/>
<path
d="M21 10H3V5H21V10Z"
fill="transparent"
id="fill2"
/>
<path
d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5"
id="stroke1"
stroke="currentColor"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down Expand Up @@ -124,13 +158,30 @@ exports[`DatePicker > :value 1`] = `
class="t-icon t-icon-calendar"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M6 4V1.5H8V4H16V1.5H18V4H22V22H2V4H6ZM4 6V9H20V6H4ZM20 11H4V20H20V11Z"
fill="currentColor"
/>
<g
id="calendar"
>
<path
d="M21 10H3V21H21V10Z"
fill="transparent"
id="fill1"
/>
<path
d="M21 10H3V5H21V10Z"
fill="transparent"
id="fill2"
/>
<path
d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5"
id="stroke1"
stroke="currentColor"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down
75 changes: 63 additions & 12 deletions src/date-picker/__tests__/__snapshots__/rangepicker.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,30 @@ exports[`DateRangePicker > :mode 1`] = `
class="t-icon t-icon-calendar"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M6 4V1.5H8V4H16V1.5H18V4H22V22H2V4H6ZM4 6V9H20V6H4ZM20 11H4V20H20V11Z"
fill="currentColor"
/>
<g
id="calendar"
>
<path
d="M21 10H3V21H21V10Z"
fill="transparent"
id="fill1"
/>
<path
d="M21 10H3V5H21V10Z"
fill="transparent"
id="fill2"
/>
<path
d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5"
id="stroke1"
stroke="currentColor"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down Expand Up @@ -78,13 +95,30 @@ exports[`DateRangePicker > :range 1`] = `
class="t-icon t-icon-calendar"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M6 4V1.5H8V4H16V1.5H18V4H22V22H2V4H6ZM4 6V9H20V6H4ZM20 11H4V20H20V11Z"
fill="currentColor"
/>
<g
id="calendar"
>
<path
d="M21 10H3V21H21V10Z"
fill="transparent"
id="fill1"
/>
<path
d="M21 10H3V5H21V10Z"
fill="transparent"
id="fill2"
/>
<path
d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5"
id="stroke1"
stroke="currentColor"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down Expand Up @@ -124,13 +158,30 @@ exports[`DateRangePicker > :value 1`] = `
class="t-icon t-icon-calendar"
fill="none"
height="1em"
style="fill: none;"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M6 4V1.5H8V4H16V1.5H18V4H22V22H2V4H6ZM4 6V9H20V6H4ZM20 11H4V20H20V11Z"
fill="currentColor"
/>
<g
id="calendar"
>
<path
d="M21 10H3V21H21V10Z"
fill="transparent"
id="fill1"
/>
<path
d="M21 10H3V5H21V10Z"
fill="transparent"
id="fill2"
/>
<path
d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5"
id="stroke1"
stroke="currentColor"
stroke-width="2"
/>
</g>
</svg>
</span>
</div>
Expand Down
Loading
Loading