Web Demo Mobile Demo Angular Demo Vue Demo React Demo
源代码
import { Component } from '@angular/core';

@Component({
	selector: 'app-root',
	template: `
		<h2>Basic NumberBox</h2>
		<p>The NumberBox component only accept inputing numbers.</p>
		<div style="margin-bottom:10px">
			<label [for]="n1" align="top">Amount:</label>
			<eui-numberbox #n1 value="100" [spinners]="true"></eui-numberbox>
		</div>
		<div style="margin-bottom:10px">
			<label [for]="n2" align="top">List Price:</label>
			<eui-numberbox #n2 value="234.56" precision="2" [spinners]="false"></eui-numberbox>
		</div>
		<div style="margin-bottom:10px">
			<label [for]="n3" align="top">Discount:</label>
			<eui-numberbox #n3 value="60" suffix="%" [spinners]="false"></eui-numberbox>
		</div>
	`
})
export class AppComponent {
	
}
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { EasyUIModule } from 'easyui/easyui/easyui.module';


import { AppComponent }   from './app.component';

@NgModule({
  bootstrap: [
    AppComponent
  ],
  declarations: [
    AppComponent
  ],
  imports: [
    FormsModule,
    BrowserModule,
    HttpModule,
    EasyUIModule
  ]
})
export class AppModule { }

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';

enableProdMode();

platformBrowserDynamic().bootstrapModule(AppModule);