Skip to content

Commit

Permalink
chore: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 3, 2024
2 parents 6516408 + b23221e commit c437f8f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -116585,7 +116585,7 @@
"trigger_elements": "",
"deprecated": 0,
"version": null,
"test_description": "{\"PC\":{\"props\":{\"content\":\"This is a long long long long long tag\"},\"attribute\":[{\"value\":\"150px\",\"expect\":[{\"dom\":\"self\",\"attribute\":{\"style.maxWidth\":\"150px\"}},{\"dom\":\".t-tag--text\",\"attribute\":{\"title\":\"toBeUndefined\"}}]}]}}",
"test_description": "{\"PC\":{\"props\":{\"content\":\"This is a long long long long long tag\"},\"attribute\":[{\"value\":\"150px\",\"expect\":[{\"dom\":\"self\",\"attribute\":{\"style.maxWidth\":\"150px\"}},{\"dom\":\".t-tag--text\",\"attribute\":{\"title\":\"This is a long long long long long tag\"}}]}]}}",
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
Expand Down Expand Up @@ -116813,7 +116813,7 @@
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": "{\"PC\":{\"props\":{\"content\":\"This is a long long long long long tag\",\"maxWidth\":\"150px\"},\"attribute\":[{\"value\":\"This is a long long long long long tag\",\"expect\":[{\"dom\":\"self\",\"attribute\":{\"style.maxWidth\":\"150px\"}},{\"dom\":\".t-tag--text\",\"attribute\":{\"title\":\"This is a long long long long long tag\"}}]}]}}",
"test_description": "{\"PC\":{\"props\":{\"content\":\"This is a long long long long long tag\",\"maxWidth\":\"150px\"},\"attribute\":[{\"value\":\"This is a long tag\",\"expect\":[{\"dom\":\"self\",\"attribute\":{\"style.maxWidth\":\"150px\"}},{\"dom\":\".t-tag--text\",\"attribute\":{\"title\":\"This is a long tag\"}}]},{\"value\":\"\",\"expect\":[{\"dom\":\"self\",\"attribute\":{\"style.maxWidth\":\"150px\"}},{\"dom\":\".t-tag--text\",\"attribute\":{\"title\":\"This is a long long long long long tag\"}}]},{\"expect\":[{\"dom\":\"self\",\"attribute\":{\"style.maxWidth\":\"150px\"}},{\"dom\":\".t-tag--text\",\"attribute\":{\"title\":\"This is a long long long long long tag\"}}]}]}}",
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
Expand Down
23 changes: 21 additions & 2 deletions packages/scripts/vitest/tests/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ module.exports = {
value: '150px',
expect: [
{ dom: 'self', attribute: { 'style.maxWidth': '150px' } },
{ dom: '.t-tag--text', attribute: { title: 'toBeUndefined' } },
{
dom: '.t-tag--text',
attribute: { title: 'This is a long long long long long tag' },
},
],
},
],
Expand All @@ -64,7 +67,23 @@ module.exports = {
props: { content: 'This is a long long long long long tag', maxWidth: '150px' },
attribute: [
{
value: 'This is a long long long long long tag',
value: 'This is a long tag',
expect: [
{ dom: 'self', attribute: { 'style.maxWidth': '150px' } },
{ dom: '.t-tag--text', attribute: { title: 'This is a long tag' } },
],
},
{
value: '',
expect: [
{ dom: 'self', attribute: { 'style.maxWidth': '150px' } },
{
dom: '.t-tag--text',
attribute: { title: 'This is a long long long long long tag' },
},
],
},
{
expect: [
{ dom: 'self', attribute: { 'style.maxWidth': '150px' } },
{
Expand Down

0 comments on commit c437f8f

Please sign in to comment.