chore: replace ns.is condition (#22531)

* chore: replace ns.is condition

* chore: sgconfig

* Revert "chore: sgconfig"

This reverts commit fa56c22673.
This commit is contained in:
Noblet Ouways
2025-10-20 04:09:03 +02:00
committed by GitHub
parent 3538d7f9d2
commit 8d32bc31d8
4 changed files with 4 additions and 6 deletions

View File

@@ -196,7 +196,7 @@ const leftPanelKls = computed(() => {
arrowLeftBtn: [ppNs.e('icon-btn'), 'd-arrow-left'],
arrowRightBtn: [
ppNs.e('icon-btn'),
{ [ppNs.is('disabled')]: !enableYearArrow.value },
ppNs.is('disabled', !enableYearArrow.value),
'd-arrow-right',
],
}

View File

@@ -309,9 +309,7 @@ const TableV2 = defineComponent({
props.class,
ns.b(),
ns.e('root'),
{
[ns.is('dynamic')]: unref(isDynamic),
},
ns.is('dynamic', unref(isDynamic)),
]
const footerProps = {

View File

@@ -259,7 +259,7 @@ export function treeCellPrefix<T extends DefaultRow>(
return [
h(
ElIcon,
{ class: { [ns.is('loading')]: treeNode.loading } },
{ class: ns.is('loading', treeNode.loading) },
{
default: () => [h(icon)],
}

View File

@@ -192,7 +192,7 @@ export default defineComponent({
'thead',
{
ref: 'theadRef',
class: { [ns.is('group')]: isGroup },
class: ns.is('group', isGroup),
},
columnRows.map((subColumns, rowIndex) =>
h(