mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(select): finish scaffolding (#1601)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
@import '../../progress-bar/progress-bar-theme';
|
||||
@import '../../progress-circle/progress-circle-theme';
|
||||
@import '../../radio/radio-theme';
|
||||
@import '../../select/select-theme';
|
||||
@import '../../sidenav/sidenav-theme';
|
||||
@import '../../slide-toggle/slide-toggle-theme';
|
||||
@import '../../slider/slider-theme';
|
||||
@@ -37,6 +38,7 @@
|
||||
@include md-progress-bar-theme($theme);
|
||||
@include md-progress-circle-theme($theme);
|
||||
@include md-radio-theme($theme);
|
||||
@include md-select-theme($theme);
|
||||
@include md-sidenav-theme($theme);
|
||||
@include md-slide-toggle-theme($theme);
|
||||
@include md-slider-theme($theme);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
@import '../core/theming/palette';
|
||||
@import '../core/theming/theming';
|
||||
|
||||
@mixin md-select-theme($theme) {
|
||||
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
import {NgModule, ModuleWithProviders} from '@angular/core';
|
||||
import {MdSelect} from './select';
|
||||
import {MdOption} from './option';
|
||||
export * from './select';
|
||||
|
||||
@NgModule({
|
||||
imports: [],
|
||||
exports: [MdSelect],
|
||||
declarations: [MdSelect],
|
||||
exports: [MdSelect, MdOption],
|
||||
declarations: [MdSelect, MdOption],
|
||||
})
|
||||
export class MdSelectModule {
|
||||
static forRoot(): ModuleWithProviders {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'md-option',
|
||||
template: ``,
|
||||
styleUrls: ['select.css'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class MdOption {}
|
||||
@@ -1,10 +1,10 @@
|
||||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'md-select',
|
||||
templateUrl: 'select.html',
|
||||
styleUrls: ['select.css'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
moduleId: module.id,
|
||||
selector: 'md-select',
|
||||
templateUrl: 'select.html',
|
||||
styleUrls: ['select.css'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class MdSelect {}
|
||||
|
||||
Reference in New Issue
Block a user