refactor: 💡 migrate old style table components to nested
This commit is contained in:
4 files changed
+3
-3
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<tr ...attributes class='rose-table-row'>
|
||||
{{yield (hash
|
||||
cell=(component 'rose/anonymous'
|
||||
tagName='td'
|
||||
class='rose-table-cell'
|
||||
)
|
||||
headerCell=(component 'rose/anonymous'
|
||||
tagName='th'
|
||||
class='rose-table-header-cell'
|
||||
)
|
||||
)}}
|
||||
</tr>
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import Component from '@ember/component';
|
||||
import layout from '../../../templates/components/rose/table/row';
|
||||
import layout from './index';
|
||||
|
||||
/**
|
||||
* A table row component that uses tr table element and
|
||||
@@ -0,0 +1,3 @@
|
||||
{{yield (hash
|
||||
row=(component 'rose/table/row')
|
||||
)}}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import Component from '@ember/component';
|
||||
import layout from '../../../templates/components/rose/table/section';
|
||||
import layout from './index';
|
||||
|
||||
/**
|
||||
* A table section component that configures a row component.
|
||||
Reference in new issue
Block a user