refactor: 💡 convert select component to nested structure
This commit is contained in:
6 files changed
+10
-22
No files matched your search
@@ -1,11 +0,0 @@
|
||||
import Component from '@ember/component';
|
||||
import layout from '../../../templates/components/rose/form/select';
|
||||
import ComponentAutoId from '../../../mixins/component-auto-id';
|
||||
|
||||
/**
|
||||
* A `<select>` element context component which yields option components.
|
||||
*/
|
||||
export default Component.extend(ComponentAutoId, {
|
||||
layout,
|
||||
tagName: '',
|
||||
});
|
||||
File renamed without changes.
@@ -0,0 +1,10 @@
|
||||
import Component from '@glimmer/component';
|
||||
import { generateComponentID } from '../../../../utilities/component-auto-id';
|
||||
|
||||
export default class RoseFormSelectComponent extends Component {
|
||||
|
||||
// =attributes
|
||||
|
||||
id = generateComponentID();
|
||||
|
||||
}
|
||||
File renamed without changes.
@@ -1,11 +0,0 @@
|
||||
import Component from '@ember/component';
|
||||
import layout from '../../../../templates/components/rose/form/select/select';
|
||||
|
||||
/**
|
||||
* This component is used internally by rose/form/select and should not be
|
||||
* instantiated directly.
|
||||
*/
|
||||
export default Component.extend({
|
||||
layout,
|
||||
tagName: '',
|
||||
});
|
||||
Reference in new issue
Block a user