diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index 45107d361..000000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- // Use IntelliSense to learn about possible attributes.
- // Hover to view descriptions of existing attributes.
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "name": "ava my-package",
- "type": "node",
- "request": "launch",
- "runtimeExecutable": "${workspaceFolder}/packages/material-parser/node_modules/.bin/ava",
- "runtimeArgs": ["debug", "--break", "${file}"]
- },
- {
- "name": "ava code-gen",
- "type": "node",
- "request": "launch",
- "runtimeExecutable": "node",
- "runtimeArgs": ["${workspaceFolder}/node_modules/.bin/ava", "--serial", "${file}"],
- "cwd": "${workspaceFolder}/packages/code-generator",
- "outputCapture": "std"
- },
- ]
-}
diff --git a/packages/demo-server/CHANGELOG.md b/packages/demo-server/CHANGELOG.md
deleted file mode 100644
index 8399c6a18..000000000
--- a/packages/demo-server/CHANGELOG.md
+++ /dev/null
@@ -1,248 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-
-## [1.0.22](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.21...@ali/lowcode-demo-server@1.0.22) (2020-11-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.21](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.20...@ali/lowcode-demo-server@1.0.21) (2020-11-10)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.20](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.19...@ali/lowcode-demo-server@1.0.20) (2020-11-10)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.18...@ali/lowcode-demo-server@1.0.19) (2020-11-05)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.17...@ali/lowcode-demo-server@1.0.18) (2020-11-05)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.16...@ali/lowcode-demo-server@1.0.17) (2020-11-05)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.16](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.15...@ali/lowcode-demo-server@1.0.16) (2020-11-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.13...@ali/lowcode-demo-server@1.0.15) (2020-11-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.14](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.13...@ali/lowcode-demo-server@1.0.14) (2020-11-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.12...@ali/lowcode-demo-server@1.0.13) (2020-11-02)
-
-
-### Bug Fixes
-
-* build error ([d06d944](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/d06d944))
-* update demo-server deps ([23ded02](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/23ded02))
-
-
-
-
-
-## [1.0.12](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.11...@ali/lowcode-demo-server@1.0.12) (2020-10-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.11](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.10...@ali/lowcode-demo-server@1.0.11) (2020-10-19)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.10](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.9...@ali/lowcode-demo-server@1.0.10) (2020-09-29)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.9](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.8...@ali/lowcode-demo-server@1.0.9) (2020-09-28)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.8-0...@ali/lowcode-demo-server@1.0.8) (2020-09-28)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.8-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.7-0...@ali/lowcode-demo-server@1.0.8-0) (2020-09-09)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.7-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.6-0...@ali/lowcode-demo-server@1.0.7-0) (2020-09-02)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.6-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.5-0...@ali/lowcode-demo-server@1.0.6-0) (2020-09-02)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.5-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.4-0...@ali/lowcode-demo-server@1.0.5-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.4-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.3-0...@ali/lowcode-demo-server@1.0.4-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.3-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.2-0...@ali/lowcode-demo-server@1.0.3-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.2-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.1-0...@ali/lowcode-demo-server@1.0.2-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-## [1.0.1-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@1.0.0...@ali/lowcode-demo-server@1.0.1-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# [1.0.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@0.14.0...@ali/lowcode-demo-server@1.0.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# [0.14.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@0.13.0...@ali/lowcode-demo-server@0.14.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# [0.13.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@0.11.0...@ali/lowcode-demo-server@0.13.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# [0.12.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@0.11.0...@ali/lowcode-demo-server@0.12.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# [0.11.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@0.10.0...@ali/lowcode-demo-server@0.11.0) (2020-08-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# [0.10.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo-server@0.9.0...@ali/lowcode-demo-server@0.10.0) (2020-08-14)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo-server
-
-
-# 0.9.0 (2020-08-14)
-
-
-### Features
-
-* 🎸 add demo-server ([df35c6a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/df35c6a))
diff --git a/packages/demo-server/README.md b/packages/demo-server/README.md
deleted file mode 100644
index a59ef9241..000000000
--- a/packages/demo-server/README.md
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-
-
-[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
-[travis-url]: https://travis-ci.org/nestjs/nest
-[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
-[linux-url]: https://travis-ci.org/nestjs/nest
-
- A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-## Description
-
-[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
-
-## Installation
-
-```bash
-$ npm install
-```
-
-## Running the app
-
-```bash
-# development
-$ npm run start
-
-# watch mode
-$ npm run start:dev
-
-# production mode
-$ npm run start:prod
-```
-
-## Test
-
-```bash
-# unit tests
-$ npm run test
-
-# e2e tests
-$ npm run test:e2e
-
-# test coverage
-$ npm run test:cov
-```
-
-## Support
-
-Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
-
-## Stay in touch
-
-- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
-- Website - [https://nestjs.com](https://nestjs.com/)
-- Twitter - [@nestframework](https://twitter.com/nestframework)
-
-## License
-
- Nest is [MIT licensed](LICENSE).
diff --git a/packages/demo-server/nest-cli.json b/packages/demo-server/nest-cli.json
deleted file mode 100644
index 56167b36a..000000000
--- a/packages/demo-server/nest-cli.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "collection": "@nestjs/schematics",
- "sourceRoot": "src"
-}
diff --git a/packages/demo-server/package.json b/packages/demo-server/package.json
deleted file mode 100644
index aec800e16..000000000
--- a/packages/demo-server/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "name": "@ali/lowcode-demo-server",
- "version": "1.0.22",
- "private": true,
- "description": "低代码引擎 DEMO Server 端",
- "scripts": {
- "prebuild": "rimraf dist",
- "start": "nest start",
- "start:debug": "nest start --debug --watch",
- "start:dev": "nest start --watch",
- "start:prod": "node dist/main",
- "test": "jest",
- "test:cov": "jest --coverage",
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
- "test:e2e": "jest --config ./test/jest-e2e.json",
- "test:watch": "jest --watch"
- },
- "jest": {
- "coverageDirectory": "../coverage",
- "moduleFileExtensions": [
- "js",
- "json",
- "ts"
- ],
- "rootDir": "src",
- "testEnvironment": "node",
- "testRegex": ".spec.ts$",
- "transform": {
- "^.+\\.(t|j)s$": "ts-jest"
- }
- },
- "dependencies": {
- "@ali/lowcode-code-generator": "^1.0.22",
- "@ali/lowcode-types": "^1.0.20",
- "@nestjs/common": "^7.0.0",
- "@nestjs/core": "^7.0.0",
- "@nestjs/platform-express": "^7.0.0",
- "jszip": "^3.5.0",
- "reflect-metadata": "^0.1.13",
- "rimraf": "^3.0.2",
- "rxjs": "^6.5.4"
- },
- "devDependencies": {
- "@nestjs/cli": "^7.0.0",
- "@nestjs/schematics": "^7.0.0",
- "@nestjs/testing": "^7.0.0",
- "@types/express": "^4.17.3",
- "@types/jest": "25.2.3",
- "@types/node": "^13.9.1",
- "@types/supertest": "^2.0.8",
- "jest": "26.0.1",
- "supertest": "^4.0.2",
- "ts-jest": "26.1.0",
- "ts-loader": "^6.2.1",
- "ts-node": "^8.6.2",
- "tsconfig-paths": "^3.9.0",
- "typescript": "^3.7.4"
- }
-}
diff --git a/packages/demo-server/src/api/api.controller.spec.ts b/packages/demo-server/src/api/api.controller.spec.ts
deleted file mode 100644
index 2103b3840..000000000
--- a/packages/demo-server/src/api/api.controller.spec.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Test, TestingModule } from '@nestjs/testing';
-import { ApiController } from './api.controller';
-
-describe('Api Controller', () => {
- let controller: ApiController;
-
- beforeEach(async () => {
- const module: TestingModule = await Test.createTestingModule({
- controllers: [ApiController],
- }).compile();
-
- controller = module.get(ApiController);
- });
-
- it('should be defined', () => {
- expect(controller).toBeDefined();
- });
-});
diff --git a/packages/demo-server/src/api/api.controller.ts b/packages/demo-server/src/api/api.controller.ts
deleted file mode 100644
index a09b9b162..000000000
--- a/packages/demo-server/src/api/api.controller.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Controller, Res, Get, Post, Body, Header } from '@nestjs/common';
-import { Response } from 'express';
-import { ApiService } from './api.service';
-import { GenerateProjectDto } from '../dto/generate-project.dto';
-
-@Controller('api')
-export class ApiController {
- private readonly apiService: ApiService;
-
- constructor(apiService: ApiService) {
- this.apiService = apiService;
- }
-
- @Get('generate/test')
- generateTest() {
- return 'generate test';
- }
-
- @Post('generate/project')
- @Header('Content-Type', 'application/zip')
- async generateProject(@Res() res: Response, @Body() dto: GenerateProjectDto) {
- const file = await this.apiService.generateProject(dto.schema);
- file.pipe(res);
- }
-}
diff --git a/packages/demo-server/src/api/api.service.spec.ts b/packages/demo-server/src/api/api.service.spec.ts
deleted file mode 100644
index fae6fe722..000000000
--- a/packages/demo-server/src/api/api.service.spec.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Test, TestingModule } from '@nestjs/testing';
-import { ApiService } from './api.service';
-
-describe('ApiService', () => {
- let service: ApiService;
-
- beforeEach(async () => {
- const module: TestingModule = await Test.createTestingModule({
- providers: [ApiService],
- }).compile();
-
- service = module.get(ApiService);
- });
-
- it('should be defined', () => {
- expect(service).toBeDefined();
- });
-});
diff --git a/packages/demo-server/src/api/api.service.ts b/packages/demo-server/src/api/api.service.ts
deleted file mode 100644
index 3df789a84..000000000
--- a/packages/demo-server/src/api/api.service.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import * as os from 'os';
-import * as path from 'path';
-import * as fs from 'fs';
-import { Injectable } from '@nestjs/common';
-import CodeGenerator from '@ali/lowcode-code-generator';
-
-@Injectable()
-export class ApiService {
- async generateProject(schema: string) {
- const tmpDir = os.tmpdir();
- const createIceJsProjectBuilder = CodeGenerator.solutions.icejs;
- const builder = createIceJsProjectBuilder();
- const publisher = CodeGenerator.publishers.zip({
- outputPath: tmpDir,
- projectSlug: 'demo-project',
- });
- const filePath = path.join(tmpDir, 'demo-project.zip');
-
- const result = await builder.generateProject(schema);
- publisher.setProject(result);
- const response = await publisher.publish();
- if (!response.success) {
- throw new Error('generateProject failed');
- }
- return fs.createReadStream(filePath);
- }
-}
diff --git a/packages/demo-server/src/app.controller.spec.ts b/packages/demo-server/src/app.controller.spec.ts
deleted file mode 100644
index d22f3890a..000000000
--- a/packages/demo-server/src/app.controller.spec.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { Test, TestingModule } from '@nestjs/testing';
-import { AppController } from './app.controller';
-import { AppService } from './app.service';
-
-describe('AppController', () => {
- let appController: AppController;
-
- beforeEach(async () => {
- const app: TestingModule = await Test.createTestingModule({
- controllers: [AppController],
- providers: [AppService],
- }).compile();
-
- appController = app.get(AppController);
- });
-
- describe('root', () => {
- it('should return "Hello World!"', () => {
- expect(appController.getHello()).toBe('Hello World!');
- });
- });
-});
diff --git a/packages/demo-server/src/app.controller.ts b/packages/demo-server/src/app.controller.ts
deleted file mode 100644
index 0d1d6c9d5..000000000
--- a/packages/demo-server/src/app.controller.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { Controller, Get } from '@nestjs/common';
-import { AppService } from './app.service';
-
-@Controller()
-export class AppController {
- private readonly appService: AppService;
-
- constructor(appService: AppService) {
- this.appService = appService;
- }
-
- @Get()
- getHello(): string {
- return this.appService.getHello();
- }
-}
diff --git a/packages/demo-server/src/app.module.ts b/packages/demo-server/src/app.module.ts
deleted file mode 100644
index 4b3b55608..000000000
--- a/packages/demo-server/src/app.module.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Module } from '@nestjs/common';
-import { AppController } from './app.controller';
-import { AppService } from './app.service';
-import { ApiController } from './api/api.controller';
-import { ApiService } from './api/api.service';
-
-@Module({
- imports: [],
- controllers: [AppController, ApiController],
- providers: [AppService, ApiService],
-})
-export class AppModule {}
diff --git a/packages/demo-server/src/app.service.ts b/packages/demo-server/src/app.service.ts
deleted file mode 100644
index 927d7cca0..000000000
--- a/packages/demo-server/src/app.service.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { Injectable } from '@nestjs/common';
-
-@Injectable()
-export class AppService {
- getHello(): string {
- return 'Hello World!';
- }
-}
diff --git a/packages/demo-server/src/dto/generate-project.dto.spec.ts b/packages/demo-server/src/dto/generate-project.dto.spec.ts
deleted file mode 100644
index fb4b92f3a..000000000
--- a/packages/demo-server/src/dto/generate-project.dto.spec.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { GenerateProjectDto } from './generate-project.dto';
-
-describe('GenerateProjectDto', () => {
- it('should be defined', () => {
- expect(new GenerateProjectDto()).toBeDefined();
- });
-});
diff --git a/packages/demo-server/src/dto/generate-project.dto.ts b/packages/demo-server/src/dto/generate-project.dto.ts
deleted file mode 100644
index 70c1ba297..000000000
--- a/packages/demo-server/src/dto/generate-project.dto.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export class GenerateProjectDto {
- schema: string;
-}
diff --git a/packages/demo-server/src/main.ts b/packages/demo-server/src/main.ts
deleted file mode 100644
index 1b1812cdb..000000000
--- a/packages/demo-server/src/main.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { NestFactory } from '@nestjs/core';
-import { AppModule } from './app.module';
-
-async function bootstrap() {
- const app = await NestFactory.create(AppModule);
- app.enableCors();
- await app.listen(7002);
-}
-bootstrap();
diff --git a/packages/demo-server/test/app.e2e-spec.ts b/packages/demo-server/test/app.e2e-spec.ts
deleted file mode 100644
index 50cda6233..000000000
--- a/packages/demo-server/test/app.e2e-spec.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Test, TestingModule } from '@nestjs/testing';
-import { INestApplication } from '@nestjs/common';
-import * as request from 'supertest';
-import { AppModule } from './../src/app.module';
-
-describe('AppController (e2e)', () => {
- let app: INestApplication;
-
- beforeEach(async () => {
- const moduleFixture: TestingModule = await Test.createTestingModule({
- imports: [AppModule],
- }).compile();
-
- app = moduleFixture.createNestApplication();
- await app.init();
- });
-
- it('/ (GET)', () => {
- return request(app.getHttpServer())
- .get('/')
- .expect(200)
- .expect('Hello World!');
- });
-});
diff --git a/packages/demo-server/test/jest-e2e.json b/packages/demo-server/test/jest-e2e.json
deleted file mode 100644
index e9d912f3e..000000000
--- a/packages/demo-server/test/jest-e2e.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "moduleFileExtensions": ["js", "json", "ts"],
- "rootDir": ".",
- "testEnvironment": "node",
- "testRegex": ".e2e-spec.ts$",
- "transform": {
- "^.+\\.(t|j)s$": "ts-jest"
- }
-}
diff --git a/packages/demo-server/tsconfig.build.json b/packages/demo-server/tsconfig.build.json
deleted file mode 100644
index 64f86c6bd..000000000
--- a/packages/demo-server/tsconfig.build.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
-}
diff --git a/packages/demo-server/tsconfig.json b/packages/demo-server/tsconfig.json
deleted file mode 100644
index 3446d34a8..000000000
--- a/packages/demo-server/tsconfig.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "declaration": true,
- "removeComments": true,
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "allowSyntheticDefaultImports": true,
- "target": "es2017",
- "sourceMap": true,
- "outDir": "./dist",
- "baseUrl": "./",
- "incremental": true,
- "types": []
- }
-}
diff --git a/packages/demo/CHANGELOG.md b/packages/demo/CHANGELOG.md
deleted file mode 100644
index 68954b4ad..000000000
--- a/packages/demo/CHANGELOG.md
+++ /dev/null
@@ -1,833 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-
-## [1.0.22](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.21...@ali/lowcode-demo@1.0.22) (2020-11-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.21](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.20...@ali/lowcode-demo@1.0.21) (2020-11-10)
-
-
-### Bug Fixes
-
-* 修复数据源的接入问题 ([98ae1ed](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/98ae1ed))
-
-
-
-
-
-## [1.0.20](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.19...@ali/lowcode-demo@1.0.20) (2020-11-10)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.18...@ali/lowcode-demo@1.0.19) (2020-11-05)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.17...@ali/lowcode-demo@1.0.18) (2020-11-05)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.16...@ali/lowcode-demo@1.0.17) (2020-11-05)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.16](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.15...@ali/lowcode-demo@1.0.16) (2020-11-04)
-
-
-### Bug Fixes
-
-* 删除测试代码 ([f08a067](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f08a067))
-
-
-
-
-
-## [1.0.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.13...@ali/lowcode-demo@1.0.15) (2020-11-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.14](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.13...@ali/lowcode-demo@1.0.14) (2020-11-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.12...@ali/lowcode-demo@1.0.13) (2020-11-02)
-
-
-### Bug Fixes
-
-* 修复编辑器转化bug,增加窗口最大最小化功能 ([05666af](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/05666af))
-
-
-### Features
-
-* style 迁移 ([6ce97da](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6ce97da))
-
-
-
-
-
-## [1.0.12](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.11...@ali/lowcode-demo@1.0.12) (2020-10-20)
-
-
-### Bug Fixes
-
-* 合并分支 ([add2f23](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/add2f23))
-* fix array and sourceeditor bugs ([26b8b2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/26b8b2c))
-* monaco cdn url update ([7b2fe13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7b2fe13))
-
-
-
-
-
-## [1.0.11](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.10...@ali/lowcode-demo@1.0.11) (2020-10-19)
-
-
-### Bug Fixes
-
-* 将monaco基础包全部移除,采用cdn形式注入 ([510f1c0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/510f1c0))
-
-
-
-
-
-## [1.0.10](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.9...@ali/lowcode-demo@1.0.10) (2020-09-29)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.9](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.8...@ali/lowcode-demo@1.0.9) (2020-09-28)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.8-0...@ali/lowcode-demo@1.0.8) (2020-09-28)
-
-
-### Features
-
-* 新增class-name setter ([a9f1131](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a9f1131))
-* 组件面板支持业务组件独立展示 ([e9d8d3d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e9d8d3d))
-
-
-
-
-
-## [1.0.8-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.65...@ali/lowcode-demo@1.0.8-0) (2020-09-09)
-
-
-### Bug Fixes
-
-* 🐛 更改复杂类型生成工具的接口形式,减少调用复杂度 ([ce616b5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ce616b5))
-* 🐛 after event name & TabItem parent limitation ([76fb0b3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/76fb0b3))
-* 🐛 Card component's settings ([f44e7ab](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f44e7ab))
-* 🐛 Cascader init status ([e4a28c4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e4a28c4))
-* 🐛 codeout btn fix ([afda7d4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/afda7d4))
-* 🐛 Collapse render error ([6fed968](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6fed968))
-* 🐛 fix Menu & MenuButton assets cfg ([3d40aa2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3d40aa2))
-* 🐛 Menu Items ([5ecacef](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5ecacef))
-* 🐛 save and generator last page ([3e4254c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3e4254c))
-* 🐛 Tab & TabItem assets config ([0cc08fb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0cc08fb))
-* 🐛 Tag assets ([b460dcf](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b460dcf))
-* 🐛 Tag components setting ([de941da](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/de941da))
-* 🐛 Timeline asset config ([436dadd](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/436dadd))
-* 🐛 use JsonSetter as dataSource Setter ([553f924](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/553f924))
-* 😈 table 无法选中问题 ([34825f8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/34825f8))
-* 适配Nav组件 ([7e9829f](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7e9829f))
-* 修改插件面板配置 ([f9ceda5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f9ceda5))
-* 修改js面板的保存schema问题 ([0ee8892](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0ee8892))
-* demo 中引入locode-editor-general ([1f03857](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1f03857))
-* dropdown and menu schema ([ae1d125](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ae1d125))
-* fix mixsetter style ([0ecce83](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0ecce83))
-* fix NextTable callback function ([ce77375](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ce77375))
-* fix source edit bug ([047247c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/047247c))
-
-
-### Features
-
-* 🎸 add demo-server ([df35c6a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/df35c6a))
-* 🎸 Box config edit ([49b49ee](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/49b49ee))
-* 🎸 Button update ([7969273](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7969273))
-* 🎸 Collapse component update ([c682cc5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c682cc5))
-* 🎸 Collapse.panel has drop in Collapse ([d4d41e4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/d4d41e4))
-* 🎸 pagination update ([f13b3ab](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f13b3ab))
-* 🎸 saveload btn for demo ([f91da66](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f91da66))
-* 🎸 update upload component ([10abef5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/10abef5))
-* 🎸 upload update ([f81932b](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f81932b))
-* 适配TreeNode节点 ([8c36928](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/8c36928))
-* 新增分隔符物料配置 ([af39c17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/af39c17))
-* 新增simulatorurl,可以设置cdn使用simulator ([1f45b05](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1f45b05))
-* 增加出码按钮 ([6f7b066](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6f7b066))
-* 主设置面板里深层次界面通过 stagebox 进行过渡 ([783e945](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/783e945))
-* demo 构造 componentsMap ([f445ffe](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f445ffe))
-* tree 组件修改 ([7efa52f](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7efa52f))
-
-
-
-
-
-## [1.0.7-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.6-0...@ali/lowcode-demo@1.0.7-0) (2020-09-02)
-
-
-
-## [0.8.65](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.64...@ali/lowcode-demo@0.8.65) (2020-09-08)
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.64](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.63...@ali/lowcode-demo@0.8.64) (2020-09-03)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.63](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.62...@ali/lowcode-demo@0.8.63) (2020-09-03)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.62](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.61...@ali/lowcode-demo@0.8.62) (2020-08-27)
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.6-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.62...@ali/lowcode-demo@1.0.6-0) (2020-09-02)
-
-
-### Bug Fixes
-
-* 🐛 更改复杂类型生成工具的接口形式,减少调用复杂度 ([ce616b5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ce616b5))
-* 🐛 after event name & TabItem parent limitation ([76fb0b3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/76fb0b3))
-* 🐛 Card component's settings ([f44e7ab](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f44e7ab))
-* 🐛 Cascader init status ([e4a28c4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e4a28c4))
-* 🐛 codeout btn fix ([afda7d4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/afda7d4))
-* 🐛 Collapse render error ([6fed968](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6fed968))
-* 🐛 fix Menu & MenuButton assets cfg ([3d40aa2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3d40aa2))
-* 🐛 Menu Items ([5ecacef](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5ecacef))
-* 🐛 save and generator last page ([3e4254c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3e4254c))
-* 🐛 Tab & TabItem assets config ([0cc08fb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0cc08fb))
-* 🐛 Tag assets ([b460dcf](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b460dcf))
-* 🐛 Tag components setting ([de941da](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/de941da))
-* 🐛 Timeline asset config ([436dadd](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/436dadd))
-* 🐛 use JsonSetter as dataSource Setter ([553f924](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/553f924))
-* 😈 table 无法选中问题 ([34825f8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/34825f8))
-* 适配Nav组件 ([7e9829f](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7e9829f))
-* 修改插件面板配置 ([f9ceda5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f9ceda5))
-* 修改js面板的保存schema问题 ([0ee8892](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0ee8892))
-* dropdown and menu schema ([ae1d125](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ae1d125))
-* fix mixsetter style ([0ecce83](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0ecce83))
-* fix NextTable callback function ([ce77375](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ce77375))
-* fix source edit bug ([047247c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/047247c))
-
-
-### Features
-
-* 🎸 add demo-server ([df35c6a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/df35c6a))
-* 🎸 Box config edit ([49b49ee](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/49b49ee))
-* 🎸 Button update ([7969273](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7969273))
-* 🎸 Collapse component update ([c682cc5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c682cc5))
-* 🎸 Collapse.panel has drop in Collapse ([d4d41e4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/d4d41e4))
-* 🎸 pagination update ([f13b3ab](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f13b3ab))
-* 🎸 saveload btn for demo ([f91da66](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f91da66))
-* 🎸 update upload component ([10abef5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/10abef5))
-* 🎸 upload update ([f81932b](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f81932b))
-* 适配TreeNode节点 ([8c36928](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/8c36928))
-* 新增分隔符物料配置 ([af39c17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/af39c17))
-* 新增simulatorurl,可以设置cdn使用simulator ([1f45b05](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1f45b05))
-* 增加出码按钮 ([6f7b066](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6f7b066))
-* 主设置面板里深层次界面通过 stagebox 进行过渡 ([783e945](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/783e945))
-* demo 构造 componentsMap ([f445ffe](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f445ffe))
-* tree 组件修改 ([7efa52f](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7efa52f))
-
-
-
-
-
-## [1.0.3-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.2-0...@ali/lowcode-demo@1.0.3-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.2-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@1.0.1-0...@ali/lowcode-demo@1.0.2-0) (2020-08-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [1.0.1-0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.57...@ali/lowcode-demo@1.0.1-0) (2020-08-20)
-
-
-### Bug Fixes
-
-* 🐛 Card component's settings ([f44e7ab](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f44e7ab))
-* 🐛 Cascader init status ([e4a28c4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e4a28c4))
-* 🐛 codeout btn fix ([afda7d4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/afda7d4))
-* 🐛 Collapse render error ([6fed968](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6fed968))
-* 🐛 save and generator last page ([3e4254c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3e4254c))
-* 🐛 Tab & TabItem assets config ([0cc08fb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0cc08fb))
-* 🐛 Tag assets ([b460dcf](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b460dcf))
-* 🐛 Tag components setting ([de941da](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/de941da))
-* 🐛 use JsonSetter as dataSource Setter ([553f924](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/553f924))
-* 🐛 更改复杂类型生成工具的接口形式,减少调用复杂度 ([ce616b5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ce616b5))
-* 😈 table 无法选中问题 ([34825f8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/34825f8))
-* dropdown and menu schema ([ae1d125](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ae1d125))
-* fix source edit bug ([047247c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/047247c))
-
-
-### Features
-
-* 🎸 add demo-server ([df35c6a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/df35c6a))
-* 🎸 Box config edit ([49b49ee](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/49b49ee))
-* 🎸 Button update ([7969273](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7969273))
-* 🎸 Collapse component update ([c682cc5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c682cc5))
-* 🎸 Collapse.panel has drop in Collapse ([d4d41e4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/d4d41e4))
-* 🎸 saveload btn for demo ([f91da66](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f91da66))
-* demo 构造 componentsMap ([f445ffe](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f445ffe))
-* 主设置面板里深层次界面通过 stagebox 进行过渡 ([783e945](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/783e945))
-* 增加出码按钮 ([6f7b066](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6f7b066))
-* 新增分隔符物料配置 ([af39c17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/af39c17))
-
-
-
-
-
-# [1.0.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.15.0...@ali/lowcode-demo@1.0.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-# [0.15.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.14.0...@ali/lowcode-demo@0.15.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-# [0.14.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.12.0...@ali/lowcode-demo@0.14.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-# [0.13.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.12.0...@ali/lowcode-demo@0.13.0) (2020-08-17)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-# [0.12.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.11.0...@ali/lowcode-demo@0.12.0) (2020-08-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-# [0.11.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.10.0...@ali/lowcode-demo@0.11.0) (2020-08-14)
-
-
-### Bug Fixes
-
-* 🐛 Tab & TabItem assets config ([0cc08fb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0cc08fb))
-
-
-
-
-
-# [0.10.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.9.0...@ali/lowcode-demo@0.10.0) (2020-08-14)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-# [0.9.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.47...@ali/lowcode-demo@0.9.0) (2020-08-14)
-
-
-### Bug Fixes
-
-* 🐛 Card component's settings ([f44e7ab](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f44e7ab))
-* 🐛 Cascader init status ([e4a28c4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e4a28c4))
-* 🐛 codeout btn fix ([afda7d4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/afda7d4))
-* 🐛 Collapse render error ([6fed968](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6fed968))
-* 🐛 save and generator last page ([3e4254c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3e4254c))
-* 🐛 Tag assets ([b460dcf](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b460dcf))
-* 🐛 Tag components setting ([de941da](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/de941da))
-* 🐛 use JsonSetter as dataSource Setter ([553f924](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/553f924))
-* 🐛 更改复杂类型生成工具的接口形式,减少调用复杂度 ([ce616b5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ce616b5))
-* 😈 table 无法选中问题 ([34825f8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/34825f8))
-* dropdown and menu schema ([ae1d125](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/ae1d125))
-* fix source edit bug ([047247c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/047247c))
-
-
-### Features
-
-* 🎸 add demo-server ([df35c6a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/df35c6a))
-* 🎸 Box config edit ([49b49ee](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/49b49ee))
-* 🎸 Button update ([7969273](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7969273))
-* 🎸 saveload btn for demo ([f91da66](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f91da66))
-* demo 构造 componentsMap ([f445ffe](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f445ffe))
-* 主设置面板里深层次界面通过 stagebox 进行过渡 ([783e945](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/783e945))
-* 增加出码按钮 ([6f7b066](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6f7b066))
-* 新增分隔符物料配置 ([af39c17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/af39c17))
-
-
-
-
-
-## [0.8.47](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.46...@ali/lowcode-demo@0.8.47) (2020-08-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.46](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.44...@ali/lowcode-demo@0.8.46) (2020-08-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.45](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.44...@ali/lowcode-demo@0.8.45) (2020-08-04)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.43...@ali/lowcode-demo@0.8.44) (2020-07-29)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.42...@ali/lowcode-demo@0.8.43) (2020-07-28)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.41...@ali/lowcode-demo@0.8.42) (2020-07-23)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.40...@ali/lowcode-demo@0.8.41) (2020-07-22)
-
-
-### Features
-
-* rax render ([95bf331](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/95bf331))
-
-
-
-
-
-## [0.8.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.39...@ali/lowcode-demo@0.8.40) (2020-07-21)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.39](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.38...@ali/lowcode-demo@0.8.39) (2020-07-21)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.38](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.37...@ali/lowcode-demo@0.8.38) (2020-07-21)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.37](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.36...@ali/lowcode-demo@0.8.37) (2020-07-14)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.36](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.35...@ali/lowcode-demo@0.8.36) (2020-07-13)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.35](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.34...@ali/lowcode-demo@0.8.35) (2020-07-12)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.34](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.33...@ali/lowcode-demo@0.8.34) (2020-07-12)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.33](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.32...@ali/lowcode-demo@0.8.33) (2020-06-24)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.32](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.31...@ali/lowcode-demo@0.8.32) (2020-06-23)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.31](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.30...@ali/lowcode-demo@0.8.31) (2020-06-23)
-
-
-### Bug Fixes
-
-* 更改生成 id 的规则, 否则命中 recore 解析 id 的一个限制 ([5adff44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5adff44))
-
-
-
-
-
-## [0.8.30](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.29...@ali/lowcode-demo@0.8.30) (2020-06-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.29](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.28...@ali/lowcode-demo@0.8.29) (2020-06-15)
-
-
-### Bug Fixes
-
-* style ([4694331](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/4694331))
-
-
-
-
-
-## [0.8.28](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.27...@ali/lowcode-demo@0.8.28) (2020-05-20)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.27](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.26...@ali/lowcode-demo@0.8.27) (2020-05-19)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.26](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.25...@ali/lowcode-demo@0.8.26) (2020-05-18)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.25](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.24...@ali/lowcode-demo@0.8.25) (2020-05-18)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.23...@ali/lowcode-demo@0.8.24) (2020-05-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.23](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.22...@ali/lowcode-demo@0.8.23) (2020-05-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.22](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.21...@ali/lowcode-demo@0.8.22) (2020-05-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.21](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.20...@ali/lowcode-demo@0.8.21) (2020-05-15)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.20](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.19...@ali/lowcode-demo@0.8.20) (2020-05-15)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.18...@ali/lowcode-demo@0.8.19) (2020-05-15)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.17...@ali/lowcode-demo@0.8.18) (2020-05-13)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.16...@ali/lowcode-demo@0.8.17) (2020-05-13)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.16](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.15...@ali/lowcode-demo@0.8.16) (2020-05-08)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.14...@ali/lowcode-demo@0.8.15) (2020-05-08)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.14](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.13...@ali/lowcode-demo@0.8.14) (2020-05-07)
-
-
-### Bug Fixes
-
-* 🐛 add history pane for vision demo ([3ce7079](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3ce7079))
-* 🐛 清理无用代码 ([015b58a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/015b58a))
-
-
-
-
-
-## [0.8.13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.12...@ali/lowcode-demo@0.8.13) (2020-04-27)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.12](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.11...@ali/lowcode-demo@0.8.12) (2020-04-27)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.11](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.10...@ali/lowcode-demo@0.8.11) (2020-04-27)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.10](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.9...@ali/lowcode-demo@0.8.10) (2020-04-16)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.9](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.8...@ali/lowcode-demo@0.8.9) (2020-04-15)
-
-
-### Features
-
-* mixin-setter get all setter ([a5eb62d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a5eb62d))
-
-
-
-
-
-## [0.8.8](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.7...@ali/lowcode-demo@0.8.8) (2020-03-31)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.7](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.6...@ali/lowcode-demo@0.8.7) (2020-03-30)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.6](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.5...@ali/lowcode-demo@0.8.6) (2020-03-30)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.4...@ali/lowcode-demo@0.8.5) (2020-03-30)
-
-
-### Bug Fixes
-
-* depend ([c90996d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c90996d))
-
-
-
-
-
-## [0.8.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.3...@ali/lowcode-demo@0.8.4) (2020-03-30)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## [0.8.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.2...@ali/lowcode-demo@0.8.3) (2020-03-30)
-
-
-
-
-**Note:** Version bump only for package @ali/lowcode-demo
-
-
-## 0.8.2 (2020-03-30)
-
-
-### Features
-
-* complet preview ([56c16ff](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/56c16ff))
-* double outline & ZH_EN support ([b379bd7](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b379bd7))
-
-
-
-
-
-## 0.8.1 (2020-03-30)
-
-
-### Features
-
-* complet preview ([56c16ff](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/56c16ff))
-* double outline & ZH_EN support ([b379bd7](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b379bd7))
diff --git a/packages/demo/README.md b/packages/demo/README.md
deleted file mode 100644
index 6a1a5d0fa..000000000
--- a/packages/demo/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# ice-typescript-starter
-
-## 使用
-
-- 启动调试服务: `npm start`
-- 构建 dist: `npm run build`
-
-## 目录结构
-
-- 入口文件: `src/index.jsx`
-- 导航配置: `src/config/menu.js`
-- 路由配置: `src/config/routes.js`
-- 路由入口: `src/router.jsx`
-- 布局文件: `src/layouts`
-- 通用组件: `src/components`
-- 页面文件: `src/pages`
-
-## 效果图
-
-
diff --git a/packages/demo/build.json b/packages/demo/build.json
deleted file mode 100644
index f0775c7bd..000000000
--- a/packages/demo/build.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "entry": {
- "index": "src/index",
- "editor-preset-vision": "../editor-preset-vision/src/index.ts",
- "react-simulator-renderer": "../react-simulator-renderer/src/index.ts",
- "rax-simulator-renderer": "../rax-simulator-renderer/src/index.ts"
- },
- "vendor": false,
- "devServer": {
- "hot": false
- },
- "publicPath": "/",
- "externals": {
- "react": "var window.React",
- "react-dom": "var window.ReactDOM",
- "prop-types": "var window.PropTypes",
- "@alifd/next": "var window.Next",
- "@ali/visualengine": "var window.VisualEngine",
- "@ali/visualengine-utils": "var window.VisualEngineUtils",
- "monaco-editor/esm/vs/editor/editor.api":"var window.monaco",
- "monaco-editor/esm/vs/editor/editor.main.js":"var window.monaco",
- "rax": "var window.Rax"
- },
- "plugins": [
- [
- "build-plugin-react-app"
- ],
- [
- "build-plugin-fusion",
- {
- "themePackage": "@alife/theme-lowcode-light"
- }
- ],
- [
- "build-plugin-moment-locales",
- {
- "locales": [
- "zh-cn"
- ]
- }
- ],
- "./build.plugin.js"
- ]
-}
diff --git a/packages/demo/build.plugin.js b/packages/demo/build.plugin.js
deleted file mode 100644
index ef0b1f4a7..000000000
--- a/packages/demo/build.plugin.js
+++ /dev/null
@@ -1,14 +0,0 @@
-const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
-
-module.exports = ({ onGetWebpackConfig }) => {
- onGetWebpackConfig((config) => {
- config.resolve.plugin('tsconfigpaths').use(TsconfigPathsPlugin, [
- {
- configFile: './tsconfig.json',
- },
- ]);
-
- config.plugins.delete('hot');
- config.devServer.hot(false);
- });
-};
diff --git a/packages/demo/cloud-build.json b/packages/demo/cloud-build.json
deleted file mode 100644
index 1d0afbef7..000000000
--- a/packages/demo/cloud-build.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "entry": {
- "lowcode-editor": "src/vision/index.ts"
- },
- "vendor": false,
- "externals": {
- "react": "window.React",
- "react-dom": "window.ReactDOM",
- "prop-types": "window.PropTypes",
- "@ali/visualengine": "window.VisualEngine",
- "@ali/visualengine-utils": "window.VisualEngineUtils",
- "@ali/lowcode-editor-preset-general": "window.LowcodeEditor",
- "@ali/lowcode-editor-core": "window.LowcodeEditor",
- "@ali/lowcode-editor-skeleton": "window.LowcodeEditor",
- "@ali/lowcode-designer": "window.LowcodeEditor",
- "rax": "var window.Rax"
- },
- "sourcemap": true,
- "outputAssetsPath": {
- "js": "", "css": ""
- },
- "plugins": [
- ["build-plugin-react-app"],
- [
- "build-plugin-fusion",
- {
- "themePackage": "@alife/theme-lowcode-light"
- }
- ],
- [
- "build-plugin-moment-locales",
- {
- "locales": ["zh-cn"]
- }
- ]
- ]
-}
diff --git a/packages/demo/package.json b/packages/demo/package.json
deleted file mode 100644
index bf8f62789..000000000
--- a/packages/demo/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "@ali/lowcode-demo",
- "version": "1.0.22",
- "private": true,
- "description": "低代码引擎 DEMO",
- "scripts": {
- "cloud-build": "build-scripts build --config cloud-build.json",
- "start": "build-scripts start",
- "build": "build-scripts build"
- },
- "config": {},
- "dependencies": {
- "@ali/lowcode-editor-core": "^1.0.22",
- "@ali/lowcode-editor-skeleton": "^1.0.22",
- "@ali/lowcode-plugin-components-pane": "^1.0.22",
- "@ali/lowcode-plugin-designer": "^1.0.22",
- "@ali/lowcode-plugin-event-bind-dialog": "^1.0.21",
- "@ali/lowcode-plugin-outline-pane": "^1.0.21",
- "@ali/lowcode-plugin-sample-logo": "^1.0.21",
- "@ali/lowcode-plugin-sample-preview": "^1.0.21",
- "@ali/lowcode-plugin-settings-pane": "^0.8.8",
- "@ali/lowcode-plugin-undo-redo": "^1.0.21",
- "@ali/lowcode-plugin-variable-bind-dialog": "^1.0.21",
- "@ali/lowcode-plugin-zh-en": "^1.0.21",
- "@ali/lowcode-react-renderer": "^1.0.21",
- "@ali/lowcode-runtime": "^1.0.23",
- "@ali/lowcode-utils": "^1.0.21",
- "@ali/ve-action-pane": "^4.7.0-beta.0",
- "@ali/ve-datapool-pane": "^6.4.3",
- "@ali/ve-history-pane": "4.0.0",
- "@ali/ve-i18n-manage-pane": "^4.3.0",
- "@ali/ve-i18n-pane": "^4.0.0-beta.0",
- "@ali/ve-page-history": "1.2.0",
- "@ali/ve-page-history-pane": "^5.0.0-beta.0",
- "@ali/ve-trunk-pane": "^5.1.0-beta.14",
- "@ali/vs-variable-setter": "^3.1.0",
- "@ali/vu-function-parser": "^2.5.0-beta.0",
- "@ali/vu-legao-design-fetch-context": "^1.0.3",
- "@alifd/next": "^1.19.12",
- "@alife/theme-lowcode-light": "^0.1.0",
- "compare-versions": "^3.0.1",
- "react": "^16.8.1",
- "react-dom": "^16.8.1",
- "streamsaver": "^2.0.4",
- "web-streams-polyfill": "^2.1.1"
- },
- "devDependencies": {
- "@alib/build-scripts": "^0.1.18",
- "@types/events": "^3.0.0",
- "@types/react": "^16.8.3",
- "@types/react-dom": "^16.8.2",
- "@types/streamsaver": "^2.0.0",
- "build-plugin-fusion": "^0.1.0",
- "build-plugin-moment-locales": "^0.1.0",
- "build-plugin-react-app": "^1.1.2",
- "tsconfig-paths-webpack-plugin": "^3.2.0"
- }
-}
diff --git a/packages/demo/public/assets.json b/packages/demo/public/assets.json
deleted file mode 100644
index ef8650e05..000000000
--- a/packages/demo/public/assets.json
+++ /dev/null
@@ -1,15394 +0,0 @@
-{
- "version": "1.0.0",
- "packages": [
- {
- "package": "moment",
- "urls": ["https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"],
- "library": "moment"
- },
- {
- "title": "fusion组件库",
- "package": "@alifd/next",
- "version": "1.20.0",
- "urls": ["https://unpkg.antfin-inc.com/@alifd/next@1.20.0/dist/next.js", "https://unpkg.antfin-inc.com/@alifd/next@1.20.0/dist/next.css"],
- "library": "Next"
- },
- {
- "title": "NextTable",
- "package": "NextTable",
- "version": "1.0.0",
- "urls": ["http://alifd.alibabausercontent.com/materials/NextTable.js", "http://alifd.alibabausercontent.com/materials/NextTable.css"],
- "library": "NextTable"
- },
- {
- "title": "MCBreadcrumb",
- "package": "mc-breadcrumb",
- "version": "1.0.0",
- "urls": ["https://unpkg.alibaba-inc.com/mc-breadcrumb@1.0.0/dist/MCBreadcrumb.js", "https://unpkg.alibaba-inc.com/mc-breadcrumb@1.0.0/dist/MCBreadcrumb.css"],
- "library": "MCBreadcrumb"
- }
- ],
- "components": [
- {
- "componentName": "Page",
- "title": "Page",
- "props": [
- {
- "name": "style",
- "propType": "object",
- "defaultValue": {
- "padding": 12
- }
- }
- ],
- "configure": {
- "events": {
- "supportedLifecycles": [
- {
- "description": "初始化时",
- "name": "constructor"
- },
- {
- "description": "装载后",
- "name": "componentDidMount"
- },
- {
- "description": "更新时",
- "name": "componentDidMount"
- },
- {
- "description": "卸载时",
- "name": "componentWillUnmount"
- }
- ]
- },
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "a",
- "title": "Link",
- "npm": {
- "exportName": "a"
- },
- "props": [
- {
- "name": "href",
- "title": "链接",
- "propType": "string",
- "defaultValue": "https://fusion.design"
- },
- {
- "name": "children",
- "title": "内容",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "node"
- ]
- },
- "defaultValue": "这是一个超链接"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "target",
- "title": "新开页面",
- "propType": {
- "type": "oneOf",
- "value": [
- "_blank",
- "_self"
- ]
- }
- }
- ]
- },
- {
- "componentName": "img",
- "title": "Image",
- "npm": {
- "exportName": "img"
- },
- "props": [
- {
- "name": "src",
- "title": "图片链接",
- "propType": "string",
- "defaultValue": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg"
- },
- {
- "name": "title",
- "title": {
- "label": "标题",
- "tip": "HTML 原生 title 属性"
- },
- "propType": "string"
- },
- {
- "name": "alt",
- "title": {
- "label": "代替文本",
- "tip": "HTML 原生 alt 属性"
- },
- "propType": "string"
- },
- {
- "name": "width",
- "title": {
- "label": "宽度",
- "tip": "HTML 原生 width 属性"
- },
- "propType": "number"
- },
- {
- "name": "height",
- "title": {
- "label": "高度",
- "tip": "HTML 原生 height 属性"
- },
- "propType": "number"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Div",
- "title": "Div",
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Divider",
- "title": "Divider",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Divider",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "children",
- "propType": "string",
- "description": "文案",
- "defaultValue": "分隔符"
- },
-
- {
- "name": "dashed",
- "propType": {
- "type": "bool"
- },
- "description": "是否为虚线",
- "defaultValue": false
- },
-
- {
- "name": "direction",
- "propType": {
- "type": "oneOf",
- "value": [
- "hoz",
- "ver"
- ]
- },
- "description": "线是水平还是垂直类型",
- "defaultValue": "hoz"
- },
- {
- "name": "orientation",
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "right",
- "center"
- ]
- },
- "description": "分割线标题的位置",
- "defaultValue": "center"
- }
- ],
- "experimental": {
- "filters": [{
- "name": "",
- "filter": {
- "type": "JSFunction",
- "value": "filters"
- }
- }]
- }
- },
- {
- "componentName": "Drawer",
- "title": "抽屉",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Drawer",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "pure",
- "propType": "bool"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "width",
- "propType": {
- "type": "oneOfType",
- "value": [
- "number",
- "string"
- ]
- },
- "description": "宽度,仅在 placement是 left right 的时候生效"
- },
- {
- "name": "height",
- "propType": {
- "type": "oneOfType",
- "value": [
- "number",
- "string"
- ]
- },
- "description": "高度,仅在 placement是 top bottom 的时候生效"
- },
- {
- "name": "closeable",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "bool"
- ]
- },
- "description": "控制对话框关闭的方式,值可以为字符串或者布尔值,其中字符串是由以下值组成:\n**close** 表示点击关闭按钮可以关闭对话框\n**mask** 表示点击遮罩区域可以关闭对话框\n**esc** 表示按下 esc 键可以关闭对话框\n如 'close' 或 'close,esc,mask'\n如果设置为 true,则以上关闭方式全部生效\n如果设置为 false,则以上关闭方式全部失效",
- "defaultValue": true
- },
- {
- "name": "onClose",
- "propType": "func",
- "description": "对话框关闭时触发的回调函数\n@param {String} trigger 关闭触发行为的描述字符串\n@param {Object} event 关闭时事件对象"
- },
- {
- "name": "placement",
- "propType": {
- "type": "oneOf",
- "value": [
- "top",
- "right",
- "bottom",
- "left"
- ]
- },
- "description": "位于页面的位置",
- "defaultValue": "right"
- },
- {
- "name": "title",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "标题"
- },
- {
- "name": "headerStyle",
- "propType": "object",
- "description": "header上的样式"
- },
- {
- "name": "bodyStyle",
- "propType": "object",
- "description": "body上的样式"
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "是否显示"
- },
- {
- "name": "hasMask",
- "propType": "bool",
- "description": "是否显示遮罩",
- "defaultValue": true
- },
- {
- "name": "onVisibleChange",
- "propType": "func"
- },
- {
- "name": "animation",
- "propType": {
- "type": "oneOfType",
- "value": [
- "object",
- "bool"
- ]
- },
- "description": "显示隐藏时动画的播放方式\n@property {String} in 进场动画\n@property {String} out 出场动画"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "popupContainer",
- "propType": "any"
- }
- ],"configure": {
- "component": {
- "isContainer": true,
- "isModel": true
- },
- "props": [
- {
- "name": "prefix",
- "title": {
- "type": "i18n",
- "zh_CN": "前缀",
- "en_US": "prefix"
- }
- }
- ]
- }
- },
- {
- "componentName": "Drawer.Inner",
- "title": "Drawer.Inner",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Drawer",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Inner"
- },
- "props": [
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "closeable",
- "propType": "bool",
- "defaultValue": true
- },
- {
- "name": "role",
- "propType": "string",
- "defaultValue": "dialog"
- },
- {
- "name": "title",
- "propType": "string"
- },
- {
- "name": "placement",
- "propType": {
- "type": "oneOf",
- "value": [
- "top",
- "right",
- "bottom",
- "left"
- ]
- }
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "onClose",
- "propType": "func"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "headerStyle",
- "propType": "object"
- },
- {
- "name": "bodyStyle",
- "propType": "object"
- },
- {
- "name": "afterClose",
- "propType": "func"
- },
- {
- "name": "beforeOpen",
- "propType": "func"
- },
- {
- "name": "beforeClose",
- "propType": "func"
- },
- {
- "name": "cache",
- "propType": "bool"
- },
- {
- "name": "shouldUpdatePosition",
- "propType": "bool"
- }
- ]
- },
- {
- "componentName": "NextTable",
- "title": "NextTable",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "NextTable",
- "version": "1.19.18",
- "exportName": "NextTable",
- "main": "lib/index.js",
- "subName": ""
- },
- "props": [
- {
- "name": "columns",
- "title": "数据列",
- "propType": {
- "type": "arrayOf",
- "value": {
- "type": "shape",
- "value": [
- {
- "name": "title",
- "description": "列标题",
- "propType": "string",
- "defaultValue": "Title"
- },
- {
- "name": "dataKey",
- "description": "列索引",
- "propType": "string",
- "defaultValue": "Key"
- },
- {
- "name": "dataType",
- "description": "数据类型",
- "propType": {
- "type": "oneOf",
- "value": [
- "text",
- "timestamp",
- "cascadeTimestamp",
- "employee",
- "money",
- "moneyRange"
- ]
- },
- "defaultValue": "Key"
- },
- {
- "name": "editType",
- "description": "编辑类型",
- "propType": {
- "type": "oneOf",
- "value": [
- "select",
- "text",
- "radio",
- "date",
- "employee"
- ]
- },
- "defaultValue": "Key"
- }
- ]
- }
- }
- },
- {
- "name": "data",
- "title": "数据源",
- "propType": {
- "type": "oneOfType",
- "value": [
- "Json",
- "JSExpression"
- ]
- }
- },
- {
- "name": "actionTitle",
- "title": "操作列标题",
- "propType": "string"
- },
- {
- "name": "actionColumn",
- "title": "操作列",
- "propType": {
- "type": "arrayOf",
- "value": {
- "type": "shape",
- "value": [{
- "name": "title",
- "description": "列标题",
- "propType": "string",
- "defaultValue": "Title"
- },{
- "name": "callback",
- "description": "callback",
- "propType": "func",
- "defaultValue": {
- "type": "JSFunction",
- "value": "(rowData, action, table) => {\n return table.editRow(rowData).then((row) => {\n console.log(row);\n })}"
- }
- }]
- }
- }
- }
- ],
- "configure": {
- "props": [
- {
- "name": "StyleAndTheme",
- "title": "风格和样式",
- "type": "group",
- "extraProps": {
- "display": "entry"
- },
- "items": [
- {
- "name": "theme",
- "title": "主题",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "zebra",
- "value": "zebra"
- },{
- "label": "split",
- "value": "split"
- },{
- "label": "border",
- "value": "border"
- }
- ]
- }
- }
- },
- {
- "name": "hasHeader",
- "title": "是否显示表头",
- "setter": "BoolSetter"
- },
- {
- "name": "fixedHeader",
- "title": "是否固定表头",
- "setter": "BoolSetter"
- },
- {
- "name": "stickyHeader",
- "title": "表头是否是sticky",
- "setter": "BoolSetter"
- }
- ]
- },
- {
- "name": "Selector",
- "title": "行选择器",
- "type": "group",
- "extraProps": {
- "display": "entry"
- },
- "items": [
- {
- "name": "rowSelector",
- "title": "选择器模式",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "checkboxSelector",
- "value": "checkboxSelector"
- },{
- "label": "radioSelector",
- "value": "radioSelector"
- }
- ]
- }
- }
- },
- {
- "name": "showRowSelector",
- "title": "是否启用选择模式",
- "setter": "BoolSetter"
- }
- ]
- },
- {
- "name": "Pagination",
- "title": "分页设置",
- "type": "group",
- "extraProps": {
- "display": "entry"
- },
- "items": [
- {
- "name": "isPagination",
- "title": "是否显示分页",
- "setter": "BoolSetter",
- "initialValue": true
- },
- {
- "name": "pagination",
- "title": "分页设置",
- "setter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [
- {
- "name": "paginationPosition",
- "title": "翻页器显示位置",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "left",
- "value": "left"
- },{
- "label": "right",
- "value": "right"
- }
- ]
- }
- }
- },
- {
- "name": "size",
- "title": "分页组件大小",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "small",
- "value": "small"
- },{
- "label": "medium",
- "value": "medium"
- },{
- "label": "large",
- "value": "large"
- }
- ]
- }
- }
- },
- {
- "name": "type",
- "title": "分页组件类型",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "normal",
- "value": "normal"
- },{
- "label": "simple",
- "value": "simple"
- },{
- "label": "mini",
- "value": "mini"
- }
- ]
- }
- }
- },
- {
- "name": "shape",
- "title": "前进后退按钮样式",
- "setter": {
- "componentName": "SelectSetter",
- "props": {
- "dataSource": [
- {
- "label": "normal",
- "value": "normal"
- },{
- "label": "arrow-only",
- "value": "arrow-only"
- },{
- "label": "arrow-prev-only",
- "value": "arrow-prev-only"
- },{
- "label": "no-border",
- "value": "no-border"
- }
- ]
- }
- }
- },
- {
- "name": "pageSizeSelector",
- "title": "每页显示选择器类型",
- "setter": "BoolSetter"
- },
- {
- "name": "pageSizeList",
- "title": "每页显示选择器可选值",
- "setter": "StringSetter"
- },
- {
- "name": "pageSizePosition",
- "title": "每页显示选择器在组件中的位置",
- "setter": {
- "componentName": "SelectSetter",
- "props": {
- "dataSource": [
- {
- "label": "start",
- "value": "start"
- },{
- "label": "end",
- "value": "end"
- }
- ]
- }
- }
- },
- {
- "name": "hideOnlyOnePage",
- "title": "hideOnlyOnePage",
- "setter": "BoolSetter"
- },
- {
- "name": "showJump",
- "title": "showJump",
- "setter": "BoolSetter"
- },
- {
- "name": "pageShowCount",
- "title": "页码显示的数量",
- "setter": "NumberSetter"
- }
- ]
- }
- },
- "initialValue": {
- "type" : "normal",
- "shape" : "arrow-only",
- "pageSize" : 10,
- "pageSizeSelector" : false,
- "pageSizeList" : "5,10,20",
- "pageSizePosition" : "end",
- "paginationPosition" : "right",
- "hideOnlyOnePage" : false,
- "showJump" : true
- }
- }
- }
- ]
- },
- {
- "name": "ExpandAndTree",
- "title": "可折叠/树形表格",
- "type": "group",
- "extraProps": {
- "display": "entry"
- },
- "items": [
- {
- "name": "hasExpandedRowCtrl",
- "title": "启用折叠",
- "setter": "BoolSetter"
- },
- {
- "name": "isTree",
- "title": "启用树形",
- "setter": "BoolSetter"
- }
- ]
- },
- {
- "name": "TopAction",
- "title": "顶部操作选项",
- "type": "group",
- "extraProps": {
- "display": "entry"
- },
- "items": [
- {
- "name": "showActionBar",
- "title": "显示操作条",
- "setter": "BoolSetter"
- },
- {
- "name": "showLinkBar",
- "title": "显示外链条",
- "setter": "BoolSetter"
- },
- {
- "name": "showSearch",
- "title": "显示搜索",
- "setter": "BoolSetter"
- },
- {
- "name": "searchBarPlaceholder",
- "title": "搜索 placeholder",
- "setter": "StringSetter"
- },
- {
- "name": "showCustomColumn",
- "title": "显示筛选器",
- "setter": "BoolSetter"
- }
- ]
- },
- {
- "name": "actionBar",
- "title": "操作条",
- "setter": {
- "componentName": "ArraySetter",
- "props": {
- "itemSetter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [{
- "name": "title",
- "description": "标题",
- "setter": "StringSetter",
- "defaultValue": "Title"
- },{
- "name": "callback",
- "description": "callback",
- "setter": "FunctionSetter"
- }]
- }
- },
- "initialValue": {
- "title": "Title",
- "callback": {
- "type": "JSFunction",
- "value": "function(){}"
- }
- }
- }
- }
- }
- },
- {
- "name": "linkBar",
- "title": "外链操作条",
- "setter": {
- "componentName": "ArraySetter",
- "props": {
- "itemSetter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [{
- "name": "title",
- "description": "标题",
- "setter": "StringSetter",
- "defaultValue": "Title"
- },{
- "name": "callback",
- "description": "callback",
- "propType": "JsonSetter",
- "defaultValue": {
- "type": "JSFunction",
- "value": "(rowData, action, table) => {\n return table.editRow(rowData).then((row) => {\n console.log(row);\n })}"
- }
- }]
- }
- },
- "initialValue": {
- "title": "Title",
- "callback": {
- "type": "JSFunction",
- "value": "(rowData, action, table) => {\n return table.editRow(rowData).then((row) => {\n console.log(row);\n })}"
- }
- }
- }
- }
- }
- },
- {
- "name": "columns",
- "title": "数据列",
- "setter": {
- "componentName": "ArraySetter",
- "props": {
- "itemSetter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [
- {
- "name": "title",
- "description": "列标题",
- "setter": "StringSetter"
- },
- {
- "name": "dataKey",
- "description": "列索引",
- "setter": "StringSetter"
- },
- {
- "name": "dataType",
- "description": "数据类型",
- "setter": {
- "componentName": "SelectSetter",
- "props": {
- "dataSource": [
- {
- "label": "text",
- "value": "text"
- },{
- "label": "timestamp",
- "value": "timestamp"
- },{
- "label": "cascadeTimestamp",
- "value": "cascadeTimestamp"
- },{
- "label": "employee",
- "value": "employee"
- },{
- "label": "money",
- "value": "money"
- },{
- "label": "moneyRange",
- "value": "moneyRange"
- }
- ]
- }
- }
- },
- {
- "name": "editType",
- "description": "编辑类型",
- "setter": {
- "componentName": "SelectSetter",
- "props": {
- "dataSource": [
- {
- "label": "select",
- "value": "select"
- },{
- "label": "text",
- "value": "text"
- },{
- "label": "radio",
- "value": "radio"
- },{
- "label": "date",
- "value": "date"
- },{
- "label": "employee",
- "value": "employee"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "initialValue": {
- "title": "Title",
- "dataKey": "Key",
- "dataType": "text",
- "editType": "text"
- }
- }
- }
- }
- },
- {
- "name": "data",
- "title": "数据源",
- "setter": {
- "componentName": "MixedSetter",
- "props": {
- "setters": [
- "JsonSetter",
- "ExpressionSetter"
- ]
- }
- }
- },
- {
- "name": "action",
- "title": "操作列选项",
- "type": "group",
- "extraProps": {
- "display": "entry"
- },
- "items": [
- {
- "name": "actionTitle",
- "title": "操作列标题",
- "setter": "StringSetter"
- },
- {
- "name": "actionWidth",
- "title": "操作列宽度",
- "setter": "NumberSetter"
- },
- {
- "name": "actionType",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "link",
- "value": "link"
- },{
- "label": "button",
- "value": "button"
- }
- ]
- }
- }
- },
- {
- "name": "actionFixed",
- "setter": {
- "componentName": "RadioGroupSetter",
- "props": {
- "dataSource": [
- {
- "label": "right",
- "value": "right"
- },{
- "label": "none",
- "value": "none"
- }
- ]
- }
- }
- },
- {
- "name": "actionHidden",
- "setter": "BoolSetter",
- "initialValue": false
- }
- ]
- },
- {
- "name": "actionColumn",
- "title": "操作列",
- "setter": {
- "componentName": "ArraySetter",
- "props": {
- "itemSetter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [{
- "name": "title",
- "description": "列标题",
- "setter": "StringSetter",
- "defaultValue": "Title"
- },{
- "name": "callback",
- "description": "callback",
- "setter": "FunctionSetter"
- }]
- }
- },
- "initialValue": {
- "title": "Title",
- "callback": {
- "type": "JSFunction",
- "value": "function(){}"
- }
- }
- }
- }
- }
- }
- ]
- }
- },
- {
- "componentName": "Table",
- "title": "Table",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Table",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string"
- },
- {
- "name": "children",
- "propType": "string"
- },
- {
- "name": "pure",
- "propType": "bool"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "tableLayout",
- "propType": {
- "type": "oneOf",
- "value": [
- "fixed",
- "auto"
- ]
- }
- },
- {
- "name": "tableWidth",
- "propType": "number"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium"
- ]
- }
- },
- {
- "name": "dataSource",
- "propType": {
- "type": "arrayOf",
- "value": "object"
- }
- },
- {
- "name": "entireDataSource",
- "propType": "array"
- },
- {
- "name": "onRowClick",
- "propType": "func"
- },
- {
- "name": "onRowMouseEnter",
- "propType": "func"
- },
- {
- "name": "rowProps",
- "propType": "func"
- },
- {
- "name": "cellProps",
- "propType": "func"
- },
- {
- "name": "hasBorder",
- "propType": "bool"
- },
- {
- "name": "hasHeader",
- "propType": "bool"
- },
- {
- "name": "isZebra",
- "propType": "bool"
- },
- {
- "name": "loading",
- "propType": "bool"
- },
- {
- "name": "filterParams",
- "propType": "object"
- },
- {
- "name": "sort",
- "propType": "object"
- },
- {
- "name": "sortIcons",
- "propType": "object"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "components",
- "propType": "object"
- },
- {
- "name": "columns",
- "propType": {
- "type": "arrayOf",
- "value": {
- "type": "shape",
- "value": [{
- "name": "title",
- "description": "列标题",
- "propType": "string"
- },{
- "name": "dataIndex",
- "description": "列名称",
- "propType": "string"
- }]
- }
- }
- },
- {
- "name": "emptyContent",
- "propType": "node"
- },
- {
- "name": "primaryKey",
- "propType": "string"
- },
- {
- "name": "lockType",
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "right"
- ]
- }
- },{
- "name": "style",
- "propType": "object"
- },
- {
- "name": "wrapperContent",
- "propType": "any"
- },
- {
- "name": "refs",
- "propType": "object"
- },
- {
- "name": "expandedRowRender",
- "propType": "func"
- },
- {
- "name": "expandedRowIndent",
- "propType": "array"
- },
- {
- "name": "hasExpandedRowCtrl",
- "propType": "bool"
- },
- {
- "name": "getExpandedColProps",
- "propType": "func"
- },
- {
- "name": "openRowKeys",
- "propType": "array"
- },
- {
- "name": "onRowOpen",
- "propType": "func"
- },
- {
- "name": "onExpandedRowClick",
- "propType": "func"
- },
- {
- "name": "fixedHeader",
- "propType": "bool"
- },
- {
- "name": "rowSelection",
- "propType": "object"
- },
- {
- "name": "stickyHeader",
- "propType": "bool"
- },
- {
- "name": "offsetTop",
- "propType": "number"
- },
- {
- "name": "affixProps",
- "propType": "object"
- },
- {
- "name": "indent",
- "propType": "number"
- },
- {
- "name": "isTree",
- "propType": "bool"
- },
- {
- "name": "useVirtual",
- "propType": "bool"
- },
- {
- "name": "onBodyScroll",
- "propType": "func"
- },
- {
- "name": "expandedIndexSimulate",
- "propType": "bool"
- },
- {
- "name": "crossline",
- "propType": "bool"
- },
- {
- "name": "lengths",
- "propType": "object"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "dataSource",
- "setter": "JsonSetter"
- },
- {
- "name": "children",
- "setter": {
- "componentName": "ArraySetter",
- "props": {
- "itemSetter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [
- {
- "name": "componentName",
- "title": "子组件",
- "defaultValue": "Table.Column",
- "setter": {
- "componentName": "StringSetter"
- }
- },
- {
- "name": "props",
- "title": "props",
- "setter": {
- "componentName": "ObjectSetter",
- "props": {
- "config": {
- "items": [
- {
- "name": "title",
- "setter": {
- "componentName": "StringSetter"
- }
- },
- {
- "name": "dataIndex",
- "setter": {
- "componentName": "StringSetter"
- }
- }
- ]
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "extraProps": {
- "defaultValue": "",
- "onChange": {
- "type": "JSFunction",
- "value": "(val, field, editor) => {\n debugger;\n console.log('val', val);//field.nodes[0].children.import(val && {\"componentName\": \"Table.Column\", \"props\": {\"type\": val, \"style\": {\"marginRight\": 5}}}, true); //field.top.setPropValue('children', [{\"componentName\": \"Icon\", \"props\": {\"type\": val}}, (field.top.getPropValue('children') || []).slice(-1)]);\n}"
- }
- }
- }
- ]
- }
- }
- },
- {
- "componentName": "Table.Column",
- "title": "Table.Column",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Table",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Column"
- },
- "props": [
- {
- "name": "title",
- "propType": "string"
- },
- {
- "name": "dataIndex",
- "propType": "string"
- },
- {
- "name": "cell",
- "propType": "func"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [{
- "name": "cell",
- "setter": {
- "componentName": "SlotSetter",
- "props": {
- "supportParams": true
- }
- },
- "extraProps": {
- "display": "block"
- }
- }]
- }
- }
- },
- {
- "componentName": "Badge",
- "title": "Badge",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Badge",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "徽章依托的内容"
- },
- {
- "name": "count",
- "title": "count",
- "propType": "string",
- "description": "展示的数字,大于 overflowCount 时显示为 ${overflowCount}+,为 0 时默认隐藏",
- "defaultValue": 0
- },
- {
- "name": "showZero",
- "title": "showZero",
- "propType": "bool",
- "description": "当count为0时,是否显示count",
- "defaultValue": true
- },
- {
- "name": "content",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "自定义节点内容"
- },
- {
- "name": "overflowCount",
- "propType": {
- "type": "oneOfType",
- "value": [
- "number",
- "string"
- ]
- },
- "description": "展示的封顶的数字",
- "defaultValue": 99
- },
- {
- "name": "dot",
- "propType": "bool",
- "description": "不展示数字,只展示一个小红点",
- "defaultValue": false
- }
- ]
- },
- {
- "componentName": "Balloon",
- "title": "Balloon",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Balloon",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "pure",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "自定义类名"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内敛样式"
- },
- {
- "name": "type",
- "propType": {
- "type": "oneOf",
- "value": [
- "normal",
- "primary"
- ]
- },
- "description": "样式类型",
- "defaultValue": "normal"
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层当前显示的状态"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认显示的状态",
- "defaultValue": false
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层在显示和隐藏触发的事件\n@param {Boolean} visible 弹层是否隐藏和显示\n@param {String} type 触发弹层显示或隐藏的来源, closeClick 表示由自带的关闭按钮触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "alignEdge",
- "propType": "bool",
- "description": "弹出层对齐方式, 是否为边缘对齐",
- "defaultValue": false
- },
- {
- "name": "closable",
- "propType": "bool",
- "description": "是否显示关闭按钮",
- "defaultValue": true
- },
- {
- "name": "align",
- "propType": {
- "type": "oneOf",
- "value": [
- "t",
- "r",
- "b",
- "l",
- "tl",
- "tr",
- "bl",
- "br",
- "lt",
- "lb",
- "rt",
- "rb"
- ]
- },
- "description": "弹出层位置\n@enumdesc 上, 右, 下, 左, 上左, 上右, 下左, 下右, 左上, 左下, 右上, 右下 及其 两两组合",
- "defaultValue": "b"
- },
- {
- "name": "offset",
- "propType": {
- "type": "arrayOf",
- "value": "number"
- },
- "description": "弹层相对于trigger的定位的微调, 接收数组[hoz, ver], 表示弹层在 left / top 上的增量\ne.g. [100, 100] 表示往右(RTL 模式下是往左) 、下分布偏移100px",
- "defaultValue": [
- 0,
- 0
- ]
- },
- {
- "name": "trigger",
- "propType": "node",
- "description": "触发元素"
- },
- {
- "name": "triggerType",
- "title": "触发行为",
- "propType": {
- "type": "oneOf",
- "value": [
- "hover",
- "click"
- ]
- },
- "description": "触发行为\n鼠标悬浮, 鼠标点击('hover','click')或者它们组成的数组,如 ['hover', 'click'], 强烈不建议使用'focus',若弹窗内容有复杂交互请使用click",
- "defaultValue": "hover"
- },
- {
- "name": "onClick",
- "propType": "func"
- },
- {
- "name": "onClose",
- "propType": "func",
- "description": "任何visible为false时会触发的事件"
- },
- {
- "name": "onHover",
- "propType": "func"
- },
- {
- "name": "needAdjust",
- "propType": "bool",
- "description": "是否进行自动位置调整",
- "defaultValue": false
- },
- {
- "name": "delay",
- "propType": "number",
- "description": "弹层在触发以后的延时显示, 单位毫秒 ms"
- },
- {
- "name": "afterClose",
- "propType": "func",
- "description": "浮层关闭后触发的事件, 如果有动画,则在动画结束后触发"
- },
- {
- "name": "shouldUpdatePosition",
- "propType": "bool",
- "description": "强制更新定位信息"
- },
- {
- "name": "autoFocus",
- "propType": "bool",
- "description": "弹层出现后是否自动focus到内部第一个元素",
- "defaultValue": true
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Tooltip",
- "title": "Tooltip",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Balloon",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Tooltip"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "description": "样式类名的品牌前缀",
- "defaultValue": "next-"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "自定义类名"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- },
- {
- "name": "children",
- "propType": "node",
- "description": "tooltip的内容"
- },
- {
- "name": "align",
- "propType": {
- "type": "oneOf",
- "value": [
- "t",
- "r",
- "b",
- "l",
- "tl",
- "tr",
- "bl",
- "br",
- "lt",
- "lb",
- "rt",
- "rb"
- ]
- },
- "description": "弹出层位置\n@enumdesc 上, 右, 下, 左, 上左, 上右, 下左, 下右, 左上, 左下, 右上, 右下 及其 两两组合",
- "defaultValue": "b"
- },
- {
- "name": "trigger",
- "propType": "node",
- "description": "触发元素"
- },
- {
- "name": "triggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "hover",
- "click"
- ]
- },
- "description": "触发行为\n鼠标悬浮, 鼠标点击('hover', 'click')或者它们组成的数组,如 ['hover', 'click'], 强烈不建议使用'focus',若有复杂交互,推荐使用triggerType为click的Balloon组件",
- "defaultValue": "hover"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "弹层组件style,透传给Popup"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹层组件className,透传给Popup"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "弹层组件属性,透传给Popup"
- },
- {
- "name": "pure",
- "propType": "bool",
- "description": "是否pure render"
- },
- {
- "name": "popupContainer",
- "propType": "string",
- "description": "指定浮层渲染的父节点, 可以为节点id的字符串,也可以返回节点的函数。"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "id",
- "propType": "string",
- "description": "弹层id, 传入值才会支持无障碍"
- },
- {
- "name": "delay",
- "propType": "number",
- "description": "如果需要让 Tooltip 内容可被点击,可以设置这个参数,例如 100",
- "defaultValue": 0
- }
- ]
- },
- {
- "componentName": "BalloonInner",
- "title": "BalloonInner",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Balloon",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Inner"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "closable",
- "propType": "bool",
- "defaultValue": true
- },
- {
- "name": "children",
- "propType": "any"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "alignEdge",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "onClose",
- "propType": "func"
- },
- {
- "name": "style",
- "propType": "any"
- },
- {
- "name": "align",
- "propType": "string",
- "defaultValue": "b"
- },
- {
- "name": "type",
- "propType": "string",
- "defaultValue": "normal"
- },
- {
- "name": "isTooltip",
- "propType": "bool"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "pure",
- "propType": "bool",
- "defaultValue": false
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Breadcrumb",
- "title": "Breadcrumb",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Breadcrumb",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "description": "样式类名的品牌前缀",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "面包屑子节点,需传入 Breadcrumb.Item"
- },
- {
- "name": "maxNode",
- "propType": {
- "type": "oneOfType",
- "value": [
- "number",
- {
- "type": "oneOf",
- "value": [
- "auto"
- ]
- }
- ]
- },
- "description": "面包屑最多显示个数,超出部分会被隐藏, 设置为 auto 会自动根据父元素的宽度适配。",
- "defaultValue": 100
- },
- {
- "name": "separator",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "分隔符,可以是文本或 Icon"
- },
- {
- "name": "component",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "func"
- ]
- },
- "description": "设置标签类型",
- "defaultValue": "nav"
- },
- {
- "name": "className",
- "propType": "any"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- },
- "props": [
- {
- "name": "maxNode",
- "title": {
- "label": "最大节点数",
- "tip": "默认 100"
- },
- "setter": "NumberSetter"
- },
- {
- "name": "separator",
- "title": "分隔符",
- "setter": "StringSetter"
- }
- ]
- }
- },
- {
- "componentName": "MCBreadcrumb",
- "title": "MCBreadcrumb",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "mc-breadcrumb",
- "version": "1.0.0",
- "exportName": "MCBreadcrumb",
- "main": "lib/index.js",
- "destructuring": false,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "description": "样式类名的品牌前缀",
- "defaultValue": "next-"
- },
- {
- "name": "title",
- "propType": "string",
- "description": "标题",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "面包屑子节点,需传入 Breadcrumb.Item"
- },
- {
- "name": "maxNode",
- "propType": {
- "type": "oneOfType",
- "value": [
- "number",
- {
- "type": "oneOf",
- "value": [
- "auto"
- ]
- }
- ]
- },
- "description": "面包屑最多显示个数,超出部分会被隐藏, 设置为 auto 会自动根据父元素的宽度适配。",
- "defaultValue": 100
- },
- {
- "name": "separator",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "分隔符,可以是文本或 Icon"
- },
- {
- "name": "component",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "func"
- ]
- },
- "description": "设置标签类型",
- "defaultValue": "nav"
- },
- {
- "name": "className",
- "propType": "any"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true,
- "isModel": true,
- "rootSelector": "div.MCBreadcrumb"
- }
- }
- },
- {
- "componentName": "Breadcrumb.Item",
- "title": "Breadcrumb.Item",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Breadcrumb",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Item"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "children",
- "description": "内容",
- "propType": "string"
- },
- {
- "name": "link",
- "propType": "string",
- "description": "面包屑节点链接,如果设置这个属性,则该节点为`` ,否则是``"
- },
- {
- "name": "activated",
- "propType": "bool"
- },
- {
- "name": "separator",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "className",
- "propType": "any"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "props": [{
- "name": "children",
- "title": "文本内容",
- "setter": "StringSetter"
- }]
- }
- },
- {
- "componentName": "Button",
- "title": "Button",
- "icon": "https://img.alicdn.com/tfs/TB1rT0gPQL0gK0jSZFAXXcA9pXa-200-200.svg",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Button",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "children",
- "title": "内容",
- "propType": "string"
- },
- {
- "name": "icon",
- "propType": "string",
- "description": "自定义内联样式"
- },
- {
- "name": "type",
- "title": "类型",
- "propType": {
- "type": "oneOf",
- "value": [
- "primary",
- "secondary",
- "normal"
- ]
- },
- "description": "按钮的类型",
- "defaultValue": "normal"
- },
- {
- "name": "size",
- "title": "尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "按钮的尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "iconSize",
- "title": "Icon 尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "xxs",
- "xs",
- "small",
- "medium",
- "large",
- "xl",
- "xxl",
- "xxxl"
- ]
- },
- "defaultValue": "small",
- "description": "按钮中 Icon 的尺寸,用于替代 Icon 的默认大小"
- },
- {
- "name": "loading",
- "title": "loading",
- "propType": "bool",
- "description": "设置按钮的载入状态",
- "defaultValue": false
- },
- {
- "name": "ghost",
- "title": "ghost",
- "propType": {
- "type": "oneOf",
- "value": [
- true,
- false,
- "light",
- "dark"
- ]
- },
- "description": "是否为幽灵按钮",
- "defaultValue": false
- },
- {
- "name": "text",
- "title": "text",
- "propType": "bool",
- "description": "是否为文本按钮",
- "defaultValue": false
- },
- {
- "name": "warning",
- "title": "warning",
- "propType": "bool",
- "description": "是否为警告按钮",
- "defaultValue": false
- },
- {
- "name": "disabled",
- "title": "disabled",
- "propType": "bool",
- "description": "是否禁用",
- "defaultValue": false
- },
- {
- "name": "onClick",
- "title": "onClick",
- "propType": "func",
- "description": "点击按钮的回调\n@param {Object} e Event Object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "onMouseUp",
- "propType": "func"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "icon",
- "setter": "IconSetter",
- "extraProps": {
- "defaultValue": "",
- "onChange": {
- "type": "JSFunction",
- "value": "(val, field, editor) => {\n field.nodes[0].children.import(val && {\"componentName\": \"Icon\", \"props\": {\"type\": val, \"style\": {\"marginRight\": 5}}}, true); //field.top.setPropValue('children', [{\"componentName\": \"Icon\", \"props\": {\"type\": val}}, (field.top.getPropValue('children') || []).slice(-1)]);\n}"
- }
- }
- },
- {
- "name": "children",
- "title": {
- "label": {
- "type": "i18n",
- "zh_CN": "文本内容",
- "en_US": "content"
- },
- "tip": "按钮文本内容"
- },
- "setter": {
- "componentName": "MixedSetter",
- "props": {
- "setters": [
- "StringSetter",
- "ExpressionSetter"
- ]
- }
- }
- }
- ]
- }
- }
- },
- {
- "componentName": "Button.Group",
- "title": "Button.Group",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Button",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Group"
- },
- "props": [
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "size",
- "propType": "string",
- "description": "统一设置 Button 组件的按钮大小",
- "defaultValue": "medium"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Calendar",
- "title": "Calendar",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Calendar",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "默认选中的日期(moment 对象)"
- },
- {
- "name": "value",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "选中的日期值 (moment 对象)"
- },
- {
- "name": "modes",
- "propType": {
- "type": "instanceOf",
- "value": "array"
- }
- },
- {
- "name": "disableChangeMode",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "format",
- "propType": "string",
- "defaultValue": "YYYY-MM-DD"
- },
- {
- "name": "showOtherMonth",
- "propType": "bool",
- "description": "是否展示非本月的日期",
- "defaultValue": true
- },
- {
- "name": "defaultVisibleMonth",
- "propType": "func",
- "description": "默认展示的月份"
- },
- {
- "name": "shape",
- "propType": {
- "type": "oneOf",
- "value": [
- "card",
- "fullscreen",
- "panel"
- ]
- },
- "description": "展现形态",
- "defaultValue": "fullscreen"
- },
- {
- "name": "onSelect",
- "propType": "func",
- "description": "选择日期单元格时的回调\n@param {Object} value 对应的日期值 (moment 对象)"
- },
- {
- "name": "onModeChange",
- "propType": "func",
- "description": "面板模式变化时的回调\n@param {String} mode 对应面板模式 date month year"
- },
- {
- "name": "onVisibleMonthChange",
- "propType": "func",
- "description": "展现的月份变化时的回调\n@param {Object} value 显示的月份 (moment 对象)\n@param {String} reason 触发月份改变原因"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "自定义样式类"
- },
- {
- "name": "dateCellRender",
- "propType": "func",
- "description": "自定义日期渲染函数\n@param {Object} value 日期值(moment对象)\n@returns {ReactNode}"
- },
- {
- "name": "monthCellRender",
- "propType": "func",
- "description": "自定义月份渲染函数\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@returns {ReactNode}"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "不可选择的日期\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@returns {Boolean}"
- },
- {
- "name": "locale",
- "propType": "object",
- "description": "国际化配置"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "RangeCalendar",
- "title": "RangeCalendar",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Calendar",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "RangeCalendar"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "description": "样式前缀",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "defaultStartValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "默认的开始日期"
- },
- {
- "name": "defaultEndValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "默认的结束日期"
- },
- {
- "name": "startValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "开始日期(moment 对象)"
- },
- {
- "name": "endValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "结束日期(moment 对象)"
- },
- {
- "name": "disableChangeMode",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "format",
- "propType": "string",
- "defaultValue": "YYYY-MM-DD"
- },
- {
- "name": "showOtherMonth",
- "propType": "bool",
- "description": "是否显示非本月的日期",
- "defaultValue": false
- },
- {
- "name": "defaultVisibleMonth",
- "propType": "func",
- "description": "模板展示的月份(起始月份)"
- },
- {
- "name": "onVisibleMonthChange",
- "propType": "func",
- "description": "展现的月份变化时的回调\n@param {Object} value 显示的月份 (moment 对象)\n@param {String} reason 触发月份改变原因"
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "不可选择的日期\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@returns {Boolean}"
- },
- {
- "name": "onSelect",
- "propType": "func",
- "description": "选择日期单元格时的回调\n@param {Object} value 对应的日期值 (moment 对象)"
- },
- {
- "name": "dateCellRender",
- "propType": "func",
- "description": "自定义日期单元格渲染"
- },
- {
- "name": "monthCellRender",
- "propType": "func",
- "description": "自定义月份渲染函数\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@returns {ReactNode}"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "startValue",
- "setter": "DateSetter"
- },
- {
- "name": "defaultStartValue",
- "setter": "DateSetter"
- },
- {
- "name": "defaultEndValue",
- "setter": "DateSetter"
- },
- {
- "name": "endValue",
- "setter": "DateSetter"
- }
- ]
- }
- }
- },
- {
- "componentName": "Card",
- "title": "Card",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "title",
- "propType": {
- "type": "oneOfType",
- "value": [
- "node",
- "string"
- ]
- },
- "description": "标题"
- },
- {
- "name": "subTitle",
- "propType": {
- "type": "oneOfType",
- "value": [
- "node",
- "string"
- ]
- },
- "description": "副标题"
- },
- {
- "name": "extra",
- "propType": {
- "type": "oneOfType",
- "value": [
- "node",
- "string"
- ]
- },
- "description": "标题栏用户自定义内容"
- },
- {
- "name": "showTitleBullet",
- "propType": "bool",
- "description": "标题的项目符号",
- "defaultValue": true
- },
- {
- "name": "showHeadDivider",
- "propType": "bool",
- "description": "头部分隔线",
- "defaultValue": true
- },
- {
- "name": "contentHeight",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "number"
- ]
- },
- "description": "内容区域的固定高度",
- "defaultValue": 120
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "description": "文本方向是从右向左"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "CardHeader",
- "title": "CardHeader",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Header"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "title",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "卡片的标题"
- },
- {
- "name": "subTitle",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "卡片的副标题"
- },
- {
- "name": "extra",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "标题区域的用户自定义内容"
- },
- {
- "name": "component",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- },
- "description": "设置标签类型",
- "defaultValue": "div"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "CardMedia",
- "title": "CardMedia",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Media"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "component",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- },
- "description": "设置标签类型",
- "defaultValue": "div"
- },
- {
- "name": "image",
- "propType": "string",
- "description": "背景图片地址"
- },
- {
- "name": "src",
- "propType": "string",
- "description": "媒体源文件地址"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- }
- ]
- },
- {
- "componentName": "CardDivider",
- "title": "CardDivider",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Divider"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "component",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- },
- "description": "设置标签类型",
- "defaultValue": "hr"
- },
- {
- "name": "inset",
- "propType": "bool",
- "description": "分割线是否向内缩进"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "CardContent",
- "title": "CardContent",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Content"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "component",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- },
- "description": "设置标签类型",
- "defaultValue": "div"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "CardActions",
- "title": "CardActions",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Actions"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "component",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- },
- "description": "设置标签类型",
- "defaultValue": "div"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "CardBulletHeader",
- "title": "CardBulletHeader",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "BulletHeader"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "title",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "卡片的标题"
- },
- {
- "name": "subTitle",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "卡片的副标题"
- },
- {
- "name": "showTitleBullet",
- "propType": "bool",
- "description": "是否显示标题的项目符号",
- "defaultValue": true
- },
- {
- "name": "extra",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "标题区域的用户自定义内容"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "CardCollaspeContent",
- "title": "CardCollaspeContent",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Card",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "CollaspeContent"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "contentHeight",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "number"
- ]
- },
- "description": "内容区域的固定高度",
- "defaultValue": 120
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Cascader",
- "title": "Cascader",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Cascader",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "pure",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "选中值改变时触发的回调函数\n@param {String|Array} value 选中的值,单选时返回单个值,多选时返回数组\n@param {Object|Array} data 选中的数据,包括 value 和 label,单选时返回单个值,多选时返回数组,父子节点选中关联时,同时选中,只返回父节点\n@param {Object} extra 额外参数\n@param {Array} extra.selectedPath 单选时选中的数据的路径\n@param {Boolean} extra.checked 多选时当前的操作是选中还是取消选中\n@param {Object} extra.currentData 多选时当前操作的数据\n@param {Array} extra.checkedData 多选时所有被选中的数据\n@param {Array} extra.indeterminateData 多选时半选的数据"
- },
- {
- "name": "onSelect",
- "propType": "func"
- },
- {
- "name": "expandTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "展开触发的方式",
- "defaultValue": "click"
- },
- {
- "name": "onExpand",
- "propType": "func",
- "description": "展开时触发的回调函数\n@param {Array} expandedValue 各列展开值的数组"
- },
- {
- "name": "useVirtual",
- "propType": "bool",
- "description": "是否开启虚拟滚动",
- "defaultValue": false
- },
- {
- "name": "multiple",
- "propType": "bool",
- "description": "是否多选",
- "defaultValue": false
- },
- {
- "name": "canOnlySelectLeaf",
- "propType": "bool",
- "description": "单选时是否只能选中叶子节点",
- "defaultValue": false
- },
- {
- "name": "canOnlyCheckLeaf",
- "propType": "bool",
- "description": "多选时是否只能选中叶子节点",
- "defaultValue": false
- },
- {
- "name": "checkStrictly",
- "propType": "bool",
- "description": "父子节点是否选中不关联",
- "defaultValue": false
- },
- {
- "name": "listStyle",
- "propType": "object",
- "description": "每列列表样式对象"
- },
- {
- "name": "listClassName",
- "propType": "string",
- "description": "每列列表类名"
- },
- {
- "name": "itemRender",
- "propType": "func",
- "description": "每列列表项渲染函数\n@param {Object} data 数据\n@return {ReactNode} 列表项内容"
- },
- {
- "name": "loadData",
- "propType": "func",
- "description": "异步加载数据函数\n@param {Object} data 当前点击异步加载的数据\n@param {Object} source 当前点击数据,source是原始对象"
- },
- {
- "name": "searchValue",
- "propType": "string"
- },
- {
- "name": "onBlur",
- "propType": "func"
- },
- {
- "name": "filteredPaths",
- "propType": {
- "type": "instanceOf",
- "value": "array"
- }
- },
- {
- "name": "filteredListStyle",
- "propType": "object"
- },
- {
- "name": "resultRender",
- "propType": "func"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "dataSource",
- "propType": {
- "type": "arrayOf",
- "value": "object"
- },
- "setter": "JsonSetter"
- }
- ]
- },
- {
- "componentName": "CascaderSelect",
- "title": "CascaderSelect",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "CascaderSelect",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "pure",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "选择框大小",
- "defaultValue": "medium"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "选择框占位符"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用",
- "defaultValue": false
- },
- {
- "name": "hasArrow",
- "propType": "bool",
- "description": "是否有下拉箭头",
- "defaultValue": true
- },
- {
- "name": "hasBorder",
- "propType": "bool",
- "description": "是否有边框",
- "defaultValue": true
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否有清除按钮",
- "defaultValue": false
- },
- {
- "name": "label",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "自定义内联 label"
- },
- {
- "name": "readOnly",
- "propType": "bool",
- "description": "是否只读,只读模式下可以展开弹层但不能选"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "选中值改变时触发的回调函数\n@param {String|Array} value 选中的值,单选时返回单个值,多选时返回数组\n@param {Object|Array} data 选中的数据,包括 value 和 label,单选时返回单个值,多选时返回数组,父子节点选中关联时,同时选中,只返回父节点\n@param {Object} extra 额外参数\n@param {Array} extra.selectedPath 单选时选中的数据的路径\n@param {Boolean} extra.checked 多选时当前的操作是选中还是取消选中\n@param {Object} extra.currentData 多选时当前操作的数据\n@param {Array} extra.checkedData 多选时所有被选中的数据\n@param {Array} extra.indeterminateData 多选时半选的数据"
- },
- {
- "name": "expandTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "展开触发的方式",
- "defaultValue": "click"
- },
- {
- "name": "onExpand",
- "propType": "func"
- },
- {
- "name": "useVirtual",
- "propType": "bool",
- "description": "是否开启虚拟滚动",
- "defaultValue": false
- },
- {
- "name": "multiple",
- "propType": "bool",
- "description": "是否多选",
- "defaultValue": false
- },
- {
- "name": "changeOnSelect",
- "propType": "bool",
- "description": "是否选中即发生改变, 该属性仅在单选模式下有效",
- "defaultValue": false
- },
- {
- "name": "canOnlyCheckLeaf",
- "propType": "bool",
- "description": "是否只能勾选叶子项的checkbox,该属性仅在多选模式下有效",
- "defaultValue": false
- },
- {
- "name": "checkStrictly",
- "propType": "bool",
- "description": "父子节点是否选中不关联",
- "defaultValue": false
- },
- {
- "name": "listStyle",
- "propType": "object",
- "description": "每列列表样式对象"
- },
- {
- "name": "listClassName",
- "propType": "string",
- "description": "每列列表类名"
- },
- {
- "name": "displayRender",
- "propType": "func",
- "description": "选择框单选时展示结果的自定义渲染函数\n@param {Array} label 选中路径的文本数组\n@return {ReactNode} 渲染在选择框中的内容\n@default 单选时:labelPath => labelPath.join(' / ');多选时:labelPath => labelPath[labelPath.length - 1]"
- },
- {
- "name": "itemRender",
- "propType": "func",
- "description": "渲染 item 内容的方法\n@param {Object} item 渲染节点的item\n@return {ReactNode} item node"
- },
- {
- "name": "showSearch",
- "propType": "bool",
- "description": "是否显示搜索框",
- "defaultValue": false
- },
- {
- "name": "filter",
- "propType": "func",
- "description": "自定义搜索函数\n@param {String} searchValue 搜索的关键字\n@param {Array} path 节点路径\n@return {Boolean} 是否匹配\n@default 根据路径所有节点的文本值模糊匹配"
- },
- {
- "name": "resultRender",
- "propType": "func",
- "description": "搜索结果自定义渲染函数\n@param {String} searchValue 搜索的关键字\n@param {Array} path 匹配到的节点路径\n@return {ReactNode} 渲染的内容\n@default 按照节点文本 a / b / c 的模式渲染"
- },
- {
- "name": "resultAutoWidth",
- "propType": "bool",
- "description": "搜索结果列表是否和选择框等宽",
- "defaultValue": true
- },
- {
- "name": "notFoundContent",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "无数据时显示内容",
- "defaultValue": "Not Found"
- },
- {
- "name": "loadData",
- "propType": "func",
- "description": "异步加载数据函数\n@param {Object} data 当前点击异步加载的数据"
- },
- {
- "name": "header",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "自定义下拉框头部"
- },
- {
- "name": "footer",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "自定义下拉框底部"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "初始下拉框是否显示",
- "defaultValue": false
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "当前下拉框是否显示"
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "下拉框显示或关闭时触发事件的回调函数\n@param {Boolean} visible 是否显示\n@param {String} type 触发显示关闭的操作类型, fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "下拉框自定义样式对象"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "下拉框样式自定义类名"
- },
- {
- "name": "popupContainer",
- "propType": "any",
- "description": "下拉框挂载的容器节点"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "透传到 Popup 的属性对象"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态"
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {Array} value 选择值 { label: , value:}"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "dataSource",
- "propType": {
- "type": "arrayOf",
- "value": "object"
- },
- "setter": "JsonSetter"
- }
- ]
- },
- {
- "componentName": "Checkbox",
- "title": "Checkbox",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Checkbox",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "className",
- "propType": "string",
- "description": "自定义类名"
- },
- {
- "name": "id",
- "propType": "string",
- "description": "ID"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内敛样式"
- },
- {
- "name": "checked",
- "propType": "bool",
- "description": "选中状态"
- },
- {
- "name": "defaultChecked",
- "propType": "bool",
- "description": "默认选中状态",
- "defaultValue": false
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "禁用"
- },
- {
- "name": "label",
- "propType": "string",
- "description": "label"
- },
- {
- "name": "indeterminate",
- "propType": "bool",
- "description": "中间状态"
- },
- {
- "name": "defaultIndeterminate",
- "propType": "bool",
- "description": "默认中间态",
- "defaultValue": false
- },
- {
- "name": "value",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string"
- ]
- },
- "description": "value"
- },
- {
- "name": "name",
- "propType": "string",
- "description": "name"
- }
- ]
- },
- {
- "componentName": "CheckboxGroup",
- "title": "CheckboxGroup",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Checkbox",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Group"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "自定义类名"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内敛样式"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "整体禁用"
- },
- {
- "name": "value",
- "propType": {
- "type": "oneOfType",
- "value": [
- {
- "type": "instanceOf",
- "value": "array"
- },
- "string",
- "number"
- ]
- },
- "description": "被选中的值列表"
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "oneOfType",
- "value": [
- {
- "type": "instanceOf",
- "value": "array"
- },
- "string",
- "number"
- ]
- },
- "description": "默认被选中的值列表"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "选中值改变时的事件\n@param {Array} value 选中项列表\n@param {Event} e Dom 事件对象"
- },
- {
- "name": "itemDirection",
- "propType": {
- "type": "oneOf",
- "value": [
- "hoz",
- "ver"
- ]
- },
- "description": "子项目的排列方式\n- hoz: 水平排列 (default)\n- ver: 垂直排列",
- "defaultValue": "hoz"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态",
- "defaultValue": false
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {number} value 评分值"
- }
- ]
- },
- {
- "componentName": "Collapse",
- "title": "Collapse",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Collapse",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "dataSource",
- "propType": "Json",
- "description": "使用数据模型构建"
- },
- {
- "name": "defaultExpandedKeys",
- "propType": {
- "type": "arrayOf",
- "value": "string"
- },
- "description": "默认展开keys"
- },
- {
- "name": "expandedKeys",
- "propType": {
- "type": "arrayOf",
- "value": "string"
- },
- "description": "受控展开keys"
- },
- {
- "name": "onExpand",
- "propType": "func",
- "description": "展开状态发升变化时候的回调"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "所有禁用"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "扩展class"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "组件接受行内样式"
- },
- {
- "name": "accordion",
- "propType": "bool",
- "description": "手风琴模式,一次只能打开一个",
- "defaultValue": false
- },
- {
- "name": "rtl",
- "propType": "bool"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Collapse.Panel",
- "title": "Collapse.Panel",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Collapse",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Panel"
- },
- "props": [
- {
- "name": "children",
- "propType": "any"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "子组件接受行内样式"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁止用户操作"
- },
- {
- "name": "title",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "标题"
- }
- ],
- "configure": {
- "component": {
- "nestingRule": {
- "parentWhitelist": ["Collapse"]
- }
- }
- }
- },
- {
- "componentName": "ErrorBoundary",
- "title": "ErrorBoundary",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "ConfigProvider",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "ErrorBoundary"
- },
- "props": [
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "element"
- }
- },
- {
- "name": "afterCatch",
- "propType": "func",
- "description": "捕获错误后的自定义处理, 比如埋点上传\n@param {Object} error 错误\n@param {Object} errorInfo 错误详细信息"
- },
- {
- "name": "fallbackUI",
- "propType": "func",
- "description": "捕获错误后的展现 自定义组件\n@param {Object} error 错误\n@param {Object} errorInfo 错误详细信息\n@returns {Element} 捕获错误后的处理"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "DatePicker",
- "title": "DatePicker",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "DatePicker",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "label",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框内置标签"
- },
- {
- "name": "state",
- "propType": {
- "type": "oneOf",
- "value": [
- "success",
- "loading",
- "error"
- ]
- },
- "description": "输入框状态"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "输入提示"
- },
- {
- "name": "defaultVisibleMonth",
- "propType": "func",
- "description": "默认展现的月\n@return {MomentObject} 返回包含指定月份的 moment 对象实例"
- },
- {
- "name": "onVisibleMonthChange",
- "propType": "func"
- },
- {
- "name": "value",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "日期值(受控)moment 对象"
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "初始日期值,moment 对象"
- },
- {
- "name": "format",
- "propType": "string",
- "description": "日期值的格式(用于限定用户输入和展示)",
- "defaultValue": "YYYY-MM-DD"
- },
- {
- "name": "showTime",
- "propType": {
- "type": "oneOfType",
- "value": [
- "object",
- "bool"
- ]
- },
- "description": "是否使用时间控件,传入 TimePicker 的属性 { defaultValue, format, ... }",
- "defaultValue": false
- },
- {
- "name": "resetTime",
- "propType": "bool",
- "description": "每次选择日期时是否重置时间(仅在 showTime 开启时有效)",
- "defaultValue": false
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "禁用日期函数\n@param {MomentObject} 日期值\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@return {Boolean} 是否禁用"
- },
- {
- "name": "footerRender",
- "propType": "func",
- "description": "自定义面板页脚\n@return {Node} 自定义的面板页脚组件"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "日期值改变时的回调\n@param {MomentObject|String} value 日期值"
- },
- {
- "name": "onOk",
- "propType": "func",
- "description": "点击确认按钮时的回调\n@return {MomentObject|String} 日期值"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "输入框尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否显示清空按钮",
- "defaultValue": true
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层显示状态"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认是否显示",
- "defaultValue": false
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层展示状态变化时的回调\n@param {Boolean} visible 弹层是否显示\n@param {String} type 触发弹层显示和隐藏的来源 calendarSelect 表示由日期表盘的选择触发; okBtnClick 表示由确认按钮触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "popupTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "弹层触发方式",
- "defaultValue": "click"
- },
- {
- "name": "popupAlign",
- "propType": "string",
- "description": "弹层对齐方式,具体含义见 OverLay文档",
- "defaultValue": "tl tl"
- },
- {
- "name": "popupContainer",
- "propType": "any",
- "description": "弹层容器\n@param {Element} target 目标元素\n@return {Element} 弹层的容器元素"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "弹层自定义样式"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹层自定义样式类"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "弹层其他属性"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "inputProps",
- "propType": "object",
- "description": "输入框其他属性"
- },
- {
- "name": "dateCellRender",
- "propType": "func",
- "description": "自定义日期渲染函数\n@param {Object} value 日期值(moment对象)\n@returns {ReactNode}"
- },
- {
- "name": "monthCellRender",
- "propType": "func",
- "description": "自定义月份渲染函数\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@returns {ReactNode}"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "dateInputAriaLabel",
- "propType": "string",
- "description": "日期输入框的 aria-label 属性"
- },
- {
- "name": "timeInputAriaLabel",
- "propType": "string",
- "description": "时间输入框的 aria-label 属性"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态"
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {MomentObject} value 日期"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "name",
- "propType": "string"
- },
- {
- "name": "popupComponent",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- }
- },
- {
- "name": "popupContent",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "disableChangeMode",
- "propType": "bool"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "value",
- "setter": "DateSetter"
- }
- ]
- }
- }
- },
- {
- "componentName": "RangePicker",
- "title": "RangePicker",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "DatePicker",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "RangePicker"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "type",
- "propType": {
- "type": "oneOf",
- "value": [
- "date",
- "month",
- "year"
- ]
- },
- "description": "日期范围类型",
- "defaultValue": "date"
- },
- {
- "name": "defaultVisibleMonth",
- "propType": "func",
- "description": "默认展示的起始月份\n@return {MomentObject} 返回包含指定月份的 moment 对象实例"
- },
- {
- "name": "onVisibleMonthChange",
- "propType": "func"
- },
- {
- "name": "value",
- "propType": {
- "type": "instanceOf",
- "value": "array"
- },
- "description": "日期范围值数组 [moment, moment]"
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "instanceOf",
- "value": "array"
- },
- "description": "初始的日期范围值数组 [moment, moment]"
- },
- {
- "name": "format",
- "propType": "string",
- "description": "日期格式",
- "defaultValue": "YYYY-MM-DD"
- },
- {
- "name": "showTime",
- "propType": {
- "type": "oneOfType",
- "value": [
- "object",
- "bool"
- ]
- },
- "description": "是否使用时间控件,支持传入 TimePicker 的属性",
- "defaultValue": false
- },
- {
- "name": "resetTime",
- "propType": "bool",
- "description": "每次选择是否重置时间(仅在 showTime 开启时有效)",
- "defaultValue": false
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "禁用日期函数\n@param {MomentObject} 日期值\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@return {Boolean} 是否禁用"
- },
- {
- "name": "footerRender",
- "propType": "func",
- "description": "自定义面板页脚\n@return {Node} 自定义的面板页脚组件"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "日期范围值改变时的回调 [ MomentObject|String, MomentObject|String ]\n@param {Array} value 日期值"
- },
- {
- "name": "onOk",
- "propType": "func",
- "description": "点击确认按钮时的回调 返回开始时间和结束时间`[ MomentObject|String, MomentObject|String ]`\n@return {Array} 日期范围"
- },
- {
- "name": "label",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框内置标签"
- },
- {
- "name": "state",
- "propType": {
- "type": "oneOf",
- "value": [
- "error",
- "loading",
- "success"
- ]
- },
- "description": "输入框状态"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "输入框尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否显示清空按钮",
- "defaultValue": true
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层显示状态"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认是否显示",
- "defaultValue": false
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层展示状态变化时的回调\n@param {Boolean} visible 弹层是否显示\n@param {String} type 触发弹层显示和隐藏的来源 okBtnClick 表示由确认按钮触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "popupTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "弹层触发方式",
- "defaultValue": "click"
- },
- {
- "name": "popupAlign",
- "propType": "string",
- "description": "弹层对齐方式, 具体含义见 OverLay文档",
- "defaultValue": "tl tl"
- },
- {
- "name": "popupContainer",
- "propType": "any",
- "description": "弹层容器\n@param {Element} target 目标元素\n@return {Element} 弹层的容器元素"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "弹层自定义样式"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹层自定义样式类"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "弹层其他属性"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "inputProps",
- "propType": "object",
- "description": "输入框其他属性"
- },
- {
- "name": "dateCellRender",
- "propType": "func",
- "description": "自定义日期单元格渲染"
- },
- {
- "name": "monthCellRender",
- "propType": "func",
- "description": "自定义月份渲染函数\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@returns {ReactNode}"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "startDateInputAriaLabel",
- "propType": "string",
- "description": "开始日期输入框的 aria-label 属性"
- },
- {
- "name": "startTimeInputAriaLabel",
- "propType": "string",
- "description": "开始时间输入框的 aria-label 属性"
- },
- {
- "name": "endDateInputAriaLabel",
- "propType": "string",
- "description": "结束日期输入框的 aria-label 属性"
- },
- {
- "name": "endTimeInputAriaLabel",
- "propType": "string",
- "description": "结束时间输入框的 aria-label 属性"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态"
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {Array} value 日期区间"
- },
- {
- "name": "disableChangeMode",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "ranges",
- "propType": "object"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "name",
- "propType": "string"
- },
- {
- "name": "popupComponent",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- }
- },
- {
- "name": "popupContent",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "MonthPicker",
- "title": "MonthPicker",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "DatePicker",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "MonthPicker"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "label",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框内置标签"
- },
- {
- "name": "state",
- "propType": {
- "type": "oneOf",
- "value": [
- "success",
- "loading",
- "error"
- ]
- },
- "description": "输入框状态"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "输入提示"
- },
- {
- "name": "defaultVisibleYear",
- "propType": "func",
- "description": "默认展现的年\n@return {MomentObject} 返回包含指定年份的 moment 对象实例"
- },
- {
- "name": "value",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "日期值(受控)moment 对象"
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "初始日期值,moment 对象"
- },
- {
- "name": "format",
- "propType": "string",
- "description": "日期值的格式(用于限定用户输入和展示)",
- "defaultValue": "YYYY-MM"
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "禁用日期函数\n@param {MomentObject} 日期值\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@return {Boolean} 是否禁用"
- },
- {
- "name": "footerRender",
- "propType": "func",
- "description": "自定义面板页脚\n@return {Node} 自定义的面板页脚组件"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "日期值改变时的回调\n@param {MomentObject|String} value 日期值"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "输入框尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否显示清空按钮",
- "defaultValue": true
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层显示状态"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认是否显示"
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层展示状态变化时的回调\n@param {Boolean} visible 弹层是否显示\n@param {String} type 触发弹层显示和隐藏的来源 calendarSelect 表示由日期表盘的选择触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "popupTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "弹层触发方式",
- "defaultValue": "click"
- },
- {
- "name": "popupAlign",
- "propType": "string",
- "description": "弹层对齐方式, 具体含义见 OverLay文档",
- "defaultValue": "tl tl"
- },
- {
- "name": "popupContainer",
- "propType": "any",
- "description": "弹层容器\n@param {Element} target 目标元素\n@return {Element} 弹层的容器元素"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "弹层自定义样式"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹层自定义样式类"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "弹层其他属性"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "inputProps",
- "propType": "object",
- "description": "输入框其他属性"
- },
- {
- "name": "monthCellRender",
- "propType": "func",
- "description": "自定义月份渲染函数\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@returns {ReactNode}"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "dateInputAriaLabel",
- "propType": "string",
- "description": "日期输入框的 aria-label 属性"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态"
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {MomentObject} value 月份"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "name",
- "propType": "string"
- },
- {
- "name": "popupComponent",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- }
- },
- {
- "name": "popupContent",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "YearPicker",
- "title": "YearPicker",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "DatePicker",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "YearPicker"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "label",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框内置标签"
- },
- {
- "name": "state",
- "propType": {
- "type": "oneOf",
- "value": [
- "success",
- "loading",
- "error"
- ]
- },
- "description": "输入框状态"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "输入提示"
- },
- {
- "name": "value",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "日期值(受控)moment 对象"
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "初始日期值,moment 对象"
- },
- {
- "name": "format",
- "propType": "string",
- "description": "日期值的格式(用于限定用户输入和展示)",
- "defaultValue": "YYYY"
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "禁用日期函数\n@param {MomentObject} 日期值\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@return {Boolean} 是否禁用"
- },
- {
- "name": "footerRender",
- "propType": "func",
- "description": "自定义面板页脚\n@return {Node} 自定义的面板页脚组件"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "日期值改变时的回调\n@param {MomentObject|String} value 日期值"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "输入框尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否显示清空按钮",
- "defaultValue": true
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层显示状态"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认是否显示"
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层展示状态变化时的回调\n@param {Boolean} visible 弹层是否显示\n@param {String} reason 触发弹层显示和隐藏的来源 calendarSelect 表示由日期表盘的选择触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "popupTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "弹层触发方式",
- "defaultValue": "click"
- },
- {
- "name": "popupAlign",
- "propType": "string",
- "description": "弹层对齐方式, 具体含义见 OverLay文档",
- "defaultValue": "tl tl"
- },
- {
- "name": "popupContainer",
- "propType": "any",
- "description": "弹层容器\n@param {Element} target 目标元素\n@return {Element} 弹层的容器元素"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "弹层自定义样式"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹层自定义样式类"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "弹层其他属性"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "inputProps",
- "propType": "object",
- "description": "输入框其他属性"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "dateInputAriaLabel",
- "propType": "string",
- "description": "日期输入框的 aria-label 属性"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态"
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {MomentObject} value 年份"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "name",
- "propType": "string"
- },
- {
- "name": "popupComponent",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- }
- },
- {
- "name": "popupContent",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "WeekPicker",
- "title": "WeekPicker",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "DatePicker",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "WeekPicker"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "label",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框内置标签"
- },
- {
- "name": "state",
- "propType": {
- "type": "oneOf",
- "value": [
- "success",
- "loading",
- "error"
- ]
- },
- "description": "输入框状态"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "输入提示"
- },
- {
- "name": "defaultVisibleMonth",
- "propType": "func",
- "description": "默认展现的月\n@return {MomentObject} 返回包含指定月份的 moment 对象实例"
- },
- {
- "name": "onVisibleMonthChange",
- "propType": "func"
- },
- {
- "name": "value",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "日期值(受控)moment 对象"
- },
- {
- "name": "defaultValue",
- "propType": {
- "type": "instanceOf",
- "value": "custom"
- },
- "description": "初始日期值,moment 对象"
- },
- {
- "name": "format",
- "propType": "string",
- "description": "日期值的格式(用于限定用户输入和展示)",
- "defaultValue": "YYYY-wo"
- },
- {
- "name": "disabledDate",
- "propType": "func",
- "description": "禁用日期函数\n@param {MomentObject} 日期值\n@param {String} view 当前视图类型,year: 年, month: 月, date: 日\n@return {Boolean} 是否禁用"
- },
- {
- "name": "footerRender",
- "propType": "func",
- "description": "自定义面板页脚\n@return {Node} 自定义的面板页脚组件"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "日期值改变时的回调\n@param {MomentObject|String} value 日期值"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "输入框尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否显示清空按钮",
- "defaultValue": true
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层显示状态"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认是否显示",
- "defaultValue": false
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层展示状态变化时的回调\n@param {Boolean} visible 弹层是否显示\n@param {String} type 触发弹层显示和隐藏的来源 calendarSelect 表示由日期表盘的选择触发; okBtnClick 表示由确认按钮触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "popupTriggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "弹层触发方式",
- "defaultValue": "click"
- },
- {
- "name": "popupAlign",
- "propType": "string",
- "description": "弹层对齐方式,具体含义见 OverLay文档",
- "defaultValue": "tl tl"
- },
- {
- "name": "popupContainer",
- "propType": "any",
- "description": "弹层容器\n@param {Element} target 目标元素\n@return {Element} 弹层的容器元素"
- },
- {
- "name": "popupStyle",
- "propType": "object",
- "description": "弹层自定义样式"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹层自定义样式类"
- },
- {
- "name": "popupProps",
- "propType": "object",
- "description": "弹层其他属性"
- },
- {
- "name": "followTrigger",
- "propType": "bool",
- "description": "是否跟随滚动"
- },
- {
- "name": "inputProps",
- "propType": "object",
- "description": "输入框其他属性"
- },
- {
- "name": "dateCellRender",
- "propType": "func",
- "description": "自定义日期渲染函数\n@param {Object} value 日期值(moment对象)\n@returns {ReactNode}"
- },
- {
- "name": "monthCellRender",
- "propType": "func",
- "description": "自定义月份渲染函数\n@param {Object} calendarDate 对应 Calendar 返回的自定义日期对象\n@returns {ReactNode}"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态"
- },
- {
- "name": "renderPreview",
- "propType": "func",
- "description": "预览态模式下渲染的内容\n@param {MomentObject} value 年份"
- },
- {
- "name": "yearCellRender",
- "propType": "func"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "name",
- "propType": "string"
- },
- {
- "name": "popupComponent",
- "propType": {
- "type": "instanceOf",
- "value": "elementType"
- }
- },
- {
- "name": "popupContent",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Dialog",
- "title": "Dialog",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Dialog",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "visible",
- "propType": {
- "type": "oneOfType",
- "value": [
- "JSExpression",
- "bool"
- ]
- },
- "description": "是否显示",
- "defaultValue": false
- },
- {
- "name": "title",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "node"
- ]
- },
- "description": "标题"
- },
- {
- "name": "children",
- "propType": {
- "type": "oneOfType",
- "value": [
- "bool",
- {
- "type": "instanceOf",
- "value": "node"
- }
- ]
- },
- "description": "内容"
- },
- {
- "name": "footer",
- "propType": {
- "type": "oneOfType",
- "value": [
- "bool"
- ]
- },
- "description": "底部按钮"
- },
- {
- "name": "footerAlign",
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "center",
- "right"
- ]
- },
- "description": "操作对齐方式",
- "defaultValue": "right"
- },
- {
- "name": "closeable",
- "propType": {
- "type": "oneOf",
- "value": [
- "close",
- "mask",
- "esc,close",
- "close,esc,mask",
- "esc"
- ]
- },
- "description": "关闭方式",
- "defaultValue": "esc,close"
- },
- {
- "name": "onClose",
- "propType": "func",
- "description": "对话框关闭时触发的回调函数\n@param {String} trigger 关闭触发行为的描述字符串\n@param {Object} event 关闭时事件对象"
- },
- {
- "name": "hasMask",
- "propType": "bool",
- "description": "是否显示遮罩",
- "defaultValue": true
- },
- {
- "name": "animation",
- "propType": {
- "type": "oneOfType",
- "value": [
- "object",
- "bool"
- ]
- },
- "description": "显示隐藏时动画的播放方式\n@property {String} in 进场动画\n@property {String} out 出场动画"
- },
- {
- "name": "autoFocus",
- "propType": "bool",
- "description": "是否获得焦点",
- "defaultValue": false
- },
- {
- "name": "isFullScreen",
- "propType": "bool",
- "description": "是否全屏",
- "defaultValue": false
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true,
- "isModel": true,
- "rootSelector": "div.next-dialog"
- }
- }
- },
- {
- "componentName": "Inner",
- "title": "Inner",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Dialog",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Inner"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "title",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "footer",
- "propType": {
- "type": "oneOfType",
- "value": [
- "bool",
- {
- "type": "instanceOf",
- "value": "node"
- }
- ]
- }
- },
- {
- "name": "footerAlign",
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "center",
- "right"
- ]
- },
- "defaultValue": "right"
- },
- {
- "name": "footerActions",
- "propType": {
- "type": "instanceOf",
- "value": "array"
- },
- "defaultValue": [
- "ok",
- "cancel"
- ]
- },
- {
- "name": "onOk",
- "propType": "func"
- },
- {
- "name": "onCancel",
- "propType": "func"
- },
- {
- "name": "okProps",
- "propType": "object"
- },
- {
- "name": "cancelProps",
- "propType": "object"
- },
- {
- "name": "closeable",
- "propType": "bool",
- "defaultValue": true
- },
- {
- "name": "onClose",
- "propType": "func"
- },
- {
- "name": "locale",
- "propType": "object"
- },
- {
- "name": "role",
- "propType": "string",
- "defaultValue": "dialog"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "height",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Dropdown",
- "title": "Dropdown",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Dropdown",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- },
- {
- "name": "pure",
- "propType": "bool",
- "defaultValue": false
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "弹层内容"
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "弹层当前是否显示"
- },
- {
- "name": "defaultVisible",
- "propType": "bool",
- "description": "弹层默认是否显示",
- "defaultValue": false
- },
- {
- "name": "onVisibleChange",
- "propType": "func",
- "description": "弹层显示或隐藏时触发的回调函数\n@param {Boolean} visible 弹层是否显示\n@param {String} type 触发弹层显示或隐藏的来源 fromContent 表示由Dropdown内容触发; fromTrigger 表示由trigger的点击触发; docClick 表示由document的点击触发"
- },
- {
- "name": "trigger",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "触发弹层显示或者隐藏的元素"
- },
- {
- "name": "triggerType",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- {
- "type": "instanceOf",
- "value": "array"
- }
- ]
- },
- "description": "触发弹层显示或隐藏的操作类型,可以是 'click','hover',或者它们组成的数组,如 ['hover', 'click']",
- "defaultValue": "hover"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "设置此属性,弹层无法显示或隐藏",
- "defaultValue": false
- },
- {
- "name": "align",
- "propType": "string",
- "description": "弹层相对于触发元素的定位, 详见 Overlay 的定位部分",
- "defaultValue": "tl bl"
- },
- {
- "name": "offset",
- "propType": {
- "type": "instanceOf",
- "value": "array"
- },
- "description": "弹层相对于trigger的定位的微调, 接收数组[hoz, ver], 表示弹层在 left / top 上的增量\ne.g. [100, 100] 表示往右(RTL 模式下是往左) 、下分布偏移100px",
- "defaultValue": [
- 0,
- 0
- ]
- },
- {
- "name": "delay",
- "propType": "number",
- "description": "弹层显示或隐藏的延时时间(以毫秒为单位),在 triggerType 被设置为 hover 时生效",
- "defaultValue": 200
- },
- {
- "name": "autoFocus",
- "propType": "bool",
- "description": "弹层打开时是否让其中的元素自动获取焦点"
- },
- {
- "name": "hasMask",
- "propType": "bool",
- "description": "是否显示遮罩",
- "defaultValue": false
- },
- {
- "name": "cache",
- "propType": "bool",
- "description": "隐藏时是否保留子节点",
- "defaultValue": false
- },
- {
- "name": "animation",
- "propType": {
- "type": "oneOfType",
- "value": [
- "object",
- "bool"
- ]
- },
- "description": "配置动画的播放方式,支持 { in: 'enter-class', out: 'leave-class' } 的对象参数,如果设置为 false,则不播放动画\n@default { in: 'expandInDown', out: 'expandOutUp' }"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Form",
- "title": "Form",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Form",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "inline",
- "propType": "bool",
- "description": "内联表单"
- },
- {
- "name": "size",
- "title": {
- "label": "Size",
- "tip": "单个 Item 的 size 自定义,优先级高于 Form 的 size, 并且当组件与 Item 一起使用时,组件自身设置 size 属性无效。\n@enumdesc 大, 中, 小"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "large",
- "medium",
- "small"
- ]
- },
- "description": "单个 Item 的 size 自定义,优先级高于 Form 的 size, 并且当组件与 Item 一起使用时,组件自身设置 size 属性无效。\n@enumdesc 大, 中, 小",
- "defaultValue": "medium"
- },
- {
- "name": "fullWidth",
- "propType": "bool",
- "description": "单个 Item 中表单类组件宽度是否是100%"
- },
- {
- "name": "labelAlign",
- "title": {
- "label": "标签的位置",
- "tip": "上, 左, 内"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "top",
- "left",
- "inset"
- ]
- },
- "description": "标签的位置\n@enumdesc 上, 左, 内",
- "defaultValue": "left"
- },
- {
- "name": "labelTextAlign",
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "right"
- ]
- },
- "description": "标签的左右对齐方式\n@enumdesc 左, 右"
- },
- {
- "name": "onSubmit",
- "propType": "func",
- "description": "form内有 `htmlType=\"submit\"` 的元素的时候会触发"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "扩展class"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- },
- {
- "name": "value",
- "propType": {
- "type": "oneOfType",
- "value": [
- "Json",
- "JSExpression"
- ]
- },
- "description": "表单数值"
- },
- {
- "name": "onChange",
- "propType": "func",
- "description": "表单变化回调\n@param {Object} values 表单数据\n@param {Object} item 详细\n@param {String} item.name 变化的组件名\n@param {String} item.value 变化的数据\n@param {Object} item.field field 实例"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "device",
- "propType": {
- "type": "oneOf",
- "value": [
- "phone",
- "tablet",
- "desktop"
- ]
- },
- "description": "预设屏幕宽度",
- "defaultValue": "desktop"
- },
- {
- "name": "responsive",
- "propType": "bool",
- "description": "是否开启内置的响应式布局 (使用ResponsiveGrid)"
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否开启预览态"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Form.Item",
- "title": "Form.Item",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Form",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Item"
- },
- "props": [
- {
- "name": "id",
- "propType": "string"
- },
- {
- "name": "rtl",
- "propType": "bool"
- },
- {
- "name": "label",
- "propType": "string",
- "description": "标签"
- },
- {
- "name": "labelCol",
- "propType": {
- "type": "shape",
- "value": [{
- "name": "span",
- "description": "span",
- "propType": "number"
- },{
- "name": "offset",
- "description": "offset",
- "propType": "number"
- }]
- },
- "description": "label 标签布局,通 `` 组件,设置 span offset 值,如 {span: 8, offset: 16},该项仅在垂直表单有效"
- },
- {
- "name": "wrapperCol",
- "propType": {
- "type": "shape",
- "value": [{
- "name": "span",
- "description": "span",
- "propType": "number"
- },{
- "name": "offset",
- "description": "offset",
- "propType": "number"
- }]
- },
- "description": "需要为输入控件设置布局样式时,使用该属性,用法同 labelCol"
- },
- {
- "name": "help",
- "title": {
- "label": "自定义提示信息",
- "tip": "如不设置,则会根据校验规则自动生成."
- },
- "propType": "string",
- "description": "自定义提示信息,如不设置,则会根据校验规则自动生成."
- },
- {
- "name": "extra",
- "title": {
- "label": "额外的提示信息",
- "tip": "和 help 类似,当需要错误信息和提示文案同时出现时,可以使用这个。 位于错误信息后面"
- },
- "propType": "string",
- "description": "额外的提示信息,和 help 类似,当需要错误信息和提示文案同时出现时,可以使用这个。 位于错误信息后面"
- },
- {
- "name": "validateState",
- "title": {
- "label": "校验状态",
- "tip": "如不设置,则会根据校验规则自动生成\n@enumdesc 失败, 成功, 校验中, 警告"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "error",
- "success",
- "loading",
- "warning"
- ]
- },
- "description": "校验状态,如不设置,则会根据校验规则自动生成\n@enumdesc 失败, 成功, 校验中, 警告"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- },
- {
- "name": "size",
- "title": {
- "label": "Size",
- "tip": "单个 Item 的 size 自定义,优先级高于 Form 的 size, 并且当组件与 Item 一起使用时,组件自身设置 size 属性无效。"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "large",
- "small",
- "medium"
- ]
- },
- "description": "单个 Item 的 size 自定义,优先级高于 Form 的 size, 并且当组件与 Item 一起使用时,组件自身设置 size 属性无效。"
- },
- {
- "name": "fullWidth",
- "title": {
- "label": "fullWidth",
- "tip": "单个 Item 中表单类组件宽度是否是100%"
- },
- "propType": "bool",
- "description": "单个 Item 中表单类组件宽度是否是100%"
- },
- {
- "name": "labelAlign",
- "title": {
- "label": "标签的位置",
- "tip": "上, 左, 内"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "top",
- "left",
- "inset"
- ]
- },
- "description": "标签的位置\n@enumdesc 上, 左, 内"
- },
- {
- "name": "labelTextAlign",
- "title": {
- "label": "标签的左右对齐方式",
- "tip": "左, 右"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "right"
- ]
- },
- "description": "标签的左右对齐方式\n@enumdesc 左, 右"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "扩展class"
- },
- {
- "name": "required",
- "title": {
- "label": "不能为空",
- "tip": "[表单校验] 不能为空"
- },
- "propType": "bool",
- "description": "[表单校验] 不能为空"
- },
- {
- "name": "requiredMessage",
- "title": {
- "label": "自定义错误信息",
- "tip": "[表单校验]为空时自定义错误信息"
- },
- "propType": "string",
- "description": "required 自定义错误信息"
- },
- {
- "name": "min",
- "title": {
- "label": "最小值",
- "tip": "[表单校验] 最小值"
- },
- "propType": "number",
- "description": "[表单校验] 最小值"
- },
- {
- "name": "max",
- "title": {
- "label": "最大值",
- "tip": "[表单校验] 最大值"
- },
- "propType": "number",
- "description": "[表单校验] 最大值"
- },
- {
- "name": "minmaxMessage",
- "title": {
- "label": "min/max message",
- "tip": "[表单校验] min/max 自定义错误信息"
- },
- "propType": "string",
- "description": "min/max 自定义错误信息"
- },
- {
- "name": "minLength",
- "title": {
- "label": "最小长度",
- "tip": "[表单校验] 字符串最小长度 / 数组最小个数"
- },
- "propType": "number",
- "description": "[表单校验] 字符串最小长度 / 数组最小个数"
- },
- {
- "name": "maxLength",
- "title": {
- "label": "最大长度",
- "tip": "[表单校验] 字符串最大长度 / 数组最大个数"
- },
- "propType": "number",
- "description": "[表单校验] 字符串最大长度 / 数组最大个数"
- },
- {
- "name": "minmaxLengthMessage",
- "title": {
- "label": "max|min length error message",
- "tip": "[表单校验] minLength/maxLength 自定义错误信息"
- },
- "propType": "string",
- "description": "minLength/maxLength 自定义错误信息"
- },
- {
- "name": "length",
- "title": {
- "label": "长度",
- "tip": "[表单校验] 字符串精确长度 / 数组精确个数"
- },
- "propType": "number",
- "description": "[表单校验] 字符串精确长度 / 数组精确个数"
- },
- {
- "name": "lengthMessage",
- "title": {
- "label": "length error message",
- "tip": "[表单校验] minLength/maxLength 自定义错误信息"
- },
- "propType": "string",
- "description": "length 自定义错误信息"
- },
- {
- "name": "pattern",
- "title": {
- "label": "正则",
- "tip": "[表单校验] 正则校验"
- },
- "propType": "string",
- "description": "正则校验"
- },
- {
- "name": "patternMessage",
- "title": {
- "label": "pattern error message",
- "tip": "[表单校验] pattern 自定义错误信息"
- },
- "propType": "string",
- "description": "pattern 自定义错误信息"
- },
- {
- "name": "format",
- "title": {
- "label": "format",
- "tip": "[表单校验] 四种常用的 pattern"
- },
- "propType": {
- "type": "oneOf",
- "value": [
- "number",
- "email",
- "url",
- "tel"
- ]
- },
- "description": "[表单校验] 四种常用的 pattern"
- },
- {
- "name": "formatMessage",
- "title": {
- "label": "format error message",
- "tip": "[表单校验] format 自定义错误信息"
- },
- "propType": "string",
- "description": "format 自定义错误信息"
- },
- {
- "name": "validator",
- "propType": "func",
- "description": "[表单校验] 自定义校验函数"
- },
- {
- "name": "autoValidate",
- "propType": "bool",
- "description": "是否修改数据时自动触发校验"
- },
- {
- "name": "device",
- "propType": {
- "type": "oneOf",
- "value": [
- "phone",
- "tablet",
- "desktop"
- ]
- },
- "description": "预设屏幕宽度"
- },
- {
- "name": "responsive",
- "propType": "bool"
- },
- {
- "name": "colSpan",
- "propType": "number",
- "description": "在响应式布局模式下,表单项占多少列"
- },
- {
- "name": "labelWidth",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- "number"
- ]
- },
- "description": "在响应式布局下,且label在左边时,label的宽度是多少",
- "defaultValue": 100
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否开启预览态"
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Form.Submit",
- "title": "Form.Submit",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Form",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Submit"
- },
- "props": [
- {
- "name": "onClick",
- "propType": "func",
- "description": "点击提交后触发\n@param {Object} value 数据\n@param {Object} errors 错误数据\n@param {class} field 实例"
- },
- {
- "name": "validate",
- "propType": {
- "type": "oneOfType",
- "value": [
- "bool",
- {
- "type": "instanceOf",
- "value": "array"
- }
- ]
- },
- "description": "是否校验/需要校验的 name 数组"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "children",
- "title": "内容",
- "propType": "string"
- },
- {
- "name": "icon",
- "propType": "string",
- "description": "自定义内联样式"
- },
- {
- "name": "type",
- "title": "类型",
- "propType": {
- "type": "oneOf",
- "value": [
- "primary",
- "secondary",
- "normal"
- ]
- },
- "description": "按钮的类型",
- "defaultValue": "normal"
- },
- {
- "name": "size",
- "title": "尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "按钮的尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "iconSize",
- "title": "Icon 尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "xxs",
- "xs",
- "small",
- "medium",
- "large",
- "xl",
- "xxl",
- "xxxl"
- ]
- },
- "defaultValue": "small",
- "description": "按钮中 Icon 的尺寸,用于替代 Icon 的默认大小"
- },
- {
- "name": "loading",
- "title": "loading",
- "propType": "bool",
- "description": "设置按钮的载入状态",
- "defaultValue": false
- },
- {
- "name": "ghost",
- "title": "ghost",
- "propType": {
- "type": "oneOf",
- "value": [
- true,
- false,
- "light",
- "dark"
- ]
- },
- "description": "是否为幽灵按钮",
- "defaultValue": false
- },
- {
- "name": "text",
- "title": "text",
- "propType": "bool",
- "description": "是否为文本按钮",
- "defaultValue": false
- },
- {
- "name": "warning",
- "title": "warning",
- "propType": "bool",
- "description": "是否为警告按钮",
- "defaultValue": false
- },
- {
- "name": "disabled",
- "title": "disabled",
- "propType": "bool",
- "description": "是否禁用",
- "defaultValue": false
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "onMouseUp",
- "propType": "func"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "icon",
- "setter": "IconSetter",
- "extraProps": {
- "defaultValue": "",
- "onChange": {
- "type": "JSFunction",
- "value": "(val, field, editor) => {\n field.nodes[0].children.import(val && {\"componentName\": \"Icon\", \"props\": {\"type\": val, \"style\": {\"marginRight\": 5}}}, true); //field.top.setPropValue('children', [{\"componentName\": \"Icon\", \"props\": {\"type\": val}}, (field.top.getPropValue('children') || []).slice(-1)]);\n}"
- }
- }
- },
- {
- "name": "children",
- "title": {
- "label": {
- "type": "i18n",
- "zh_CN": "文本内容",
- "en_US": "content"
- },
- "tip": "按钮文本内容"
- },
- "setter": {
- "componentName": "MixedSetter",
- "props": {
- "setters": [
- "StringSetter",
- "ExpressionSetter"
- ]
- }
- }
- }
- ]
- }
- }
- },
- {
- "componentName": "Form.Reset",
- "title": "Form.Reset",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Form",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Reset"
- },
- "props": [
- {
- "name": "onClick",
- "propType": "func",
- "description": "点击提交后触发"
- },
- {
- "name": "toDefault",
- "propType": "bool",
- "description": "返回默认值"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "children",
- "title": "内容",
- "propType": "string"
- },
- {
- "name": "icon",
- "propType": "string",
- "description": "自定义内联样式"
- },
- {
- "name": "type",
- "title": "类型",
- "propType": {
- "type": "oneOf",
- "value": [
- "primary",
- "secondary",
- "normal"
- ]
- },
- "description": "按钮的类型",
- "defaultValue": "normal"
- },
- {
- "name": "size",
- "title": "尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "按钮的尺寸",
- "defaultValue": "medium"
- },
- {
- "name": "iconSize",
- "title": "Icon 尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "xxs",
- "xs",
- "small",
- "medium",
- "large",
- "xl",
- "xxl",
- "xxxl"
- ]
- },
- "defaultValue": "small",
- "description": "按钮中 Icon 的尺寸,用于替代 Icon 的默认大小"
- },
- {
- "name": "loading",
- "title": "loading",
- "propType": "bool",
- "description": "设置按钮的载入状态",
- "defaultValue": false
- },
- {
- "name": "ghost",
- "title": "ghost",
- "propType": {
- "type": "oneOf",
- "value": [
- true,
- false,
- "light",
- "dark"
- ]
- },
- "description": "是否为幽灵按钮",
- "defaultValue": false
- },
- {
- "name": "text",
- "title": "text",
- "propType": "bool",
- "description": "是否为文本按钮",
- "defaultValue": false
- },
- {
- "name": "warning",
- "title": "warning",
- "propType": "bool",
- "description": "是否为警告按钮",
- "defaultValue": false
- },
- {
- "name": "disabled",
- "title": "disabled",
- "propType": "bool",
- "description": "是否禁用",
- "defaultValue": false
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "onMouseUp",
- "propType": "func"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "icon",
- "setter": "IconSetter",
- "extraProps": {
- "defaultValue": "",
- "onChange": {
- "type": "JSFunction",
- "value": "(val, field, editor) => {\n field.nodes[0].children.import(val && {\"componentName\": \"Icon\", \"props\": {\"type\": val, \"style\": {\"marginRight\": 5}}}, true); //field.top.setPropValue('children', [{\"componentName\": \"Icon\", \"props\": {\"type\": val}}, (field.top.getPropValue('children') || []).slice(-1)]);\n}"
- }
- }
- },
- {
- "name": "children",
- "title": {
- "label": {
- "type": "i18n",
- "zh_CN": "文本内容",
- "en_US": "content"
- },
- "tip": "按钮文本内容"
- },
- "setter": {
- "componentName": "MixedSetter",
- "props": {
- "setters": [
- "StringSetter",
- "ExpressionSetter"
- ]
- }
- }
- }
- ]
- }
- }
- },
- {
- "componentName": "Form.Error",
- "title": "Form.Error",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Form",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Error"
- },
- "props": [
- {
- "name": "name",
- "propType": {
- "type": "oneOfType",
- "value": [
- "string",
- {
- "type": "instanceOf",
- "value": "array"
- }
- ]
- },
- "description": "表单名"
- },
- {
- "name": "field",
- "propType": "object",
- "description": "自定义 field (在 Form 内不需要设置)"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "children",
- "propType": {
- "type": "oneOfType",
- "value": [
- {
- "type": "instanceOf",
- "value": "node"
- },
- "func"
- ]
- },
- "description": "自定义错误渲染, 可以是 node 或者 function(errors, state)"
- },
- {
- "name": "prefix",
- "propType": "string",
- "defaultValue": "next-"
- }
- ]
- },
- {
- "componentName": "Icon",
- "title": "Icon",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Icon",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "type",
- "propType": "icon",
- "description": "指定显示哪种图标"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOfType",
- "value": [
- {
- "type": "oneOf",
- "value": [
- "xxs",
- "xs",
- "small",
- "medium",
- "large",
- "xl",
- "xxl",
- "xxxl",
- "inherit"
- ]
- },
- "number"
- ]
- },
- "description": "指定图标大小",
- "defaultValue": "medium"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ],
- "configure": {
- "props": {
- "isExtends": true,
- "override": [
- {
- "name": "type",
- "setter": {
- "componentName": "IconSetter",
- "props": {
- "hasClear": false
- }
- }
- }
- ]
- }
- }
- },
- {
- "componentName": "Input",
- "title": "Input",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Input",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "label",
- "propType": "string",
- "title":"标签文案",
- "description": "label"
- },
- {
- "name": "name",
- "propType": "string"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否出现清除按钮"
- },
- {
- "name": "state",
- "title": "状态",
- "propType": {
- "type": "oneOf",
- "value": [
- "error",
- "loading",
- "success",
- "warning"
- ]
- },
- "description": "状态\n@enumdesc 错误, 校验中, 成功, 警告"
- },
- {
- "name": "size",
- "title": "尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "尺寸\n@enumdesc 小, 中, 大",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "maxLength",
- "propType": "number",
- "description": "最大长度"
- },
- {
- "name": "hasLimitHint",
- "propType": "bool",
- "description": "是否展现最大长度样式"
- },
- {
- "name": "cutString",
- "propType": "bool",
- "description": "是否截断超出字符串"
- },
- {
- "name": "readOnly",
- "propType": "bool",
- "description": "是否只读"
- },
- {
- "name": "trim",
- "propType": "bool",
- "description": "onChange返回会自动去除头尾空字符"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "输入提示"
- },
- {
- "name": "hasBorder",
- "propType": "bool",
- "description": "是否有边框"
- },
-
- {
- "name": "onPressEnter",
- "propType": "func",
- "description": "按下回车的回调"
- },
- {
- "name": "onClear",
- "propType": "func"
- },
- {
- "name": "hint",
- "title": "Icon 水印",
- "propType": "icon",
- "description": "水印 (Icon的type类型,和hasClear占用一个地方)"
- },
- {
- "name": "innerBefore",
- "propType": "string",
- "description": "文字前附加内容"
- },
- {
- "name": "innerAfter",
- "propType": "string",
- "description": "文字后附加内容"
- },
- {
- "name": "addonBefore",
- "propType": "string",
- "description": "输入框前附加内容"
- },
- {
- "name": "addonAfter",
- "propType": "string",
- "description": "输入框后附加内容"
- },
- {
- "name": "addonTextBefore",
- "propType": "string",
- "description": "输入框前附加文字"
- },
- {
- "name": "addonTextAfter",
- "propType": "string",
- "description": "输入框后附加文字"
- },
- {
- "name": "autoFocus",
- "propType": "bool",
- "description": "自动聚焦"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Input.Password",
- "title": "Input.Password",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Input",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Password"
- },
- "props": [
- {
- "name": "showToggle",
- "propType": "bool",
- "description": "是否展示切换按钮",
- "defaultValue": true
- },
- {
- "name": "label",
- "propType": "string",
- "title":"标签文案",
- "description": "label"
- },
- {
- "name": "hasClear",
- "propType": "bool",
- "description": "是否出现清除按钮"
- },
- {
- "name": "state",
- "title": "状态",
- "propType": {
- "type": "oneOf",
- "value": [
- "error",
- "loading",
- "success",
- "warning"
- ]
- },
- "description": "状态\n@enumdesc 错误, 校验中, 成功, 警告"
- },
- {
- "name": "size",
- "title": "尺寸",
- "propType": {
- "type": "oneOf",
- "value": [
- "small",
- "medium",
- "large"
- ]
- },
- "description": "尺寸\n@enumdesc 小, 中, 大",
- "defaultValue": "medium"
- },
- {
- "name": "disabled",
- "propType": "bool",
- "description": "是否禁用"
- },
- {
- "name": "maxLength",
- "propType": "number",
- "description": "最大长度"
- },
- {
- "name": "hasLimitHint",
- "propType": "bool",
- "description": "是否展现最大长度样式"
- },
- {
- "name": "cutString",
- "propType": "bool",
- "description": "是否截断超出字符串"
- },
- {
- "name": "readOnly",
- "propType": "bool",
- "description": "是否只读"
- },
- {
- "name": "trim",
- "propType": "bool",
- "description": "onChange返回会自动去除头尾空字符"
- },
- {
- "name": "placeholder",
- "propType": "string",
- "description": "输入提示"
- },
- {
- "name": "hasBorder",
- "propType": "bool",
- "description": "是否有边框"
- },
-
- {
- "name": "onPressEnter",
- "propType": "func",
- "description": "按下回车的回调"
- },
- {
- "name": "onClear",
- "propType": "func"
- },
- {
- "name": "hint",
- "title": "Icon 水印",
- "propType": "string",
- "description": "水印 (Icon的type类型,和hasClear占用一个地方)"
- },
- {
- "name": "innerBefore",
- "propType": "string",
- "description": "文字前附加内容"
- },
- {
- "name": "innerAfter",
- "propType": "string",
- "description": "文字后附加内容"
- },
- {
- "name": "addonBefore",
- "propType": "string",
- "description": "输入框前附加内容"
- },
- {
- "name": "addonAfter",
- "propType": "string",
- "description": "输入框后附加内容"
- },
- {
- "name": "addonTextBefore",
- "propType": "string",
- "description": "输入框前附加文字"
- },
- {
- "name": "addonTextAfter",
- "propType": "string",
- "description": "输入框后附加文字"
- },
- {
- "name": "autoFocus",
- "propType": "bool",
- "description": "自动聚焦"
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Input.TextArea",
- "title": "Input.TextArea",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Input",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "TextArea"
- },
- "props": [
- {
- "name": "hasBorder",
- "propType": "bool",
- "description": "是否有边框",
- "defaultValue": true
- },
- {
- "name": "state",
- "propType": {
- "type": "oneOf",
- "value": [
- "error",
- "warning"
- ]
- },
- "description": "状态\n@enumdesc 错误"
- },
- {
- "name": "autoHeight",
- "propType": "bool",
- "description": "自动高度 true / {minRows: 2, maxRows: 4}",
- "defaultValue": false
- },
- {
- "name": "rows",
- "propType": "number",
- "description": "多行文本框高度
(不要直接用height设置多行文本框的高度, ie9 10会有兼容性问题)",
- "defaultValue": 4
- },
- {
- "name": "isPreview",
- "propType": "bool",
- "description": "是否为预览态",
- "defaultValue": false
- },
- {
- "name": "style",
- "propType": "object"
- }
- ]
- },
- {
- "componentName": "Input.Group",
- "title": "Input.Group",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Input",
- "main": "src/index.js",
- "destructuring": true,
- "subName": "Group"
- },
- "props": [
- {
- "name": "prefix",
- "propType": "string",
- "description": "样式前缀",
- "defaultValue": "next-"
- },
- {
- "name": "className",
- "propType": "string"
- },
- {
- "name": "style",
- "propType": "object"
- },
- {
- "name": "children",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- }
- },
- {
- "name": "addonBefore",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框前附加内容"
- },
- {
- "name": "addonBeforeClassName",
- "propType": "string",
- "description": "输入框前附加内容css"
- },
- {
- "name": "addonAfter",
- "propType": {
- "type": "instanceOf",
- "value": "node"
- },
- "description": "输入框后附加内容"
- },
- {
- "name": "addonAfterClassName",
- "propType": "string",
- "description": "输入框后额外css"
- },
- {
- "name": "rtl",
- "propType": "bool",
- "description": "rtl"
- }
- ]
- },
- {
- "componentName": "Loading",
- "title": "Loading",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Loading",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "tip",
- "propType": "string",
- "description": "自定义内容"
- },
- {
- "name": "tipAlign",
- "propType": {
- "type": "oneOf",
- "value": [
- "right",
- "bottom"
- ]
- },
- "description": "自定义内容位置",
- "defaultValue": "bottom"
- },
- {
- "name": "visible",
- "propType": "bool",
- "description": "loading 状态, 默认 true",
- "defaultValue": true
- },
- {
- "name": "onVisibleChange",
- "propType": "func"
- },
- {
- "name": "className",
- "propType": "string",
- "description": "自定义class"
- },
- {
- "name": "style",
- "propType": "object",
- "description": "自定义内联样式"
- },
- {
- "name": "size",
- "propType": {
- "type": "oneOf",
- "value": [
- "large",
- "medium"
- ]
- },
- "description": "设置动画尺寸\n@description 仅仅对默认动画效果起作用\n@enumdesc 大号, 中号",
- "defaultValue": "large"
- },
- {
- "name": "color",
- "propType": "color",
- "description": "动画颜色"
- },
- {
- "name": "fullScreen",
- "propType": "bool",
- "description": "全屏展示"
- },
- {
- "name": "inline",
- "title": "inline",
- "propType": "bool",
- "description": "should loader be displayed inline",
- "defaultValue": true
- }
- ],
- "configure": {
- "component": {
- "isContainer": true
- }
- }
- },
- {
- "componentName": "Menu",
- "title": "Menu",
- "docUrl": "",
- "screenshot": "",
- "npm": {
- "package": "@alifd/next",
- "version": "1.19.18",
- "exportName": "Menu",
- "main": "src/index.js",
- "destructuring": true,
- "subName": ""
- },
- "props": [
- {
- "name": "onItemClick",
- "propType": "func",
- "description": "点击菜单项触发的回调函数\n@param {String} key 点击的菜单项的 key 值\n@param {Object} item 点击的菜单项对象\n@param {Object} event 点击的事件对象"
- },
- {
- "name": "defaultOpenAll",
- "propType": "bool",
- "description": "初始展开所有的子菜单,只在 mode 设置为 'inline' 以及 openMode 设置为 'multiple' 下生效,优先级高于 defaultOpenKeys",
- "defaultValue": false
- },
- {
- "name": "onOpen",
- "propType": "func",
- "description": "打开或关闭子菜单触发的回调函数\n@param {String} key 打开的所有子菜单的 key 值\n@param {Object} extra 额外参数\n@param {String} extra.key 当前操作子菜单的 key 值\n@param {Boolean} extra.open 是否是打开"
- },
- {
- "name": "mode",
- "propType": {
- "type": "oneOf",
- "value": [
- "inline",
- "popup"
- ]
- },
- "description": "子菜单打开的模式",
- "defaultValue": "inline"
- },
- {
- "name": "triggerType",
- "propType": {
- "type": "oneOf",
- "value": [
- "click",
- "hover"
- ]
- },
- "description": "子菜单打开的触发行为",
- "defaultValue": "click"
- },
- {
- "name": "openMode",
- "propType": {
- "type": "oneOf",
- "value": [
- "single",
- "multiple"
- ]
- },
- "description": "展开内连子菜单的模式,同时可以展开一个子菜单还是多个子菜单,该属性仅在 mode 为 inline 时生效",
- "defaultValue": "multiple"
- },
- {
- "name": "inlineIndent",
- "propType": "number",
- "description": "内连子菜单缩进距离",
- "defaultValue": 20
- },
- {
- "name": "inlineArrowDirection",
- "propType": {
- "type": "oneOf",
- "value": [
- "down",
- "right"
- ]
- },
- "defaultValue": "down"
- },
- {
- "name": "popupAutoWidth",
- "propType": "bool",
- "description": "是否自动让弹层的宽度和菜单项保持一致,如果弹层的宽度比菜单项小则和菜单项保持一致,如果宽度大于菜单项则不做处理",
- "defaultValue": false
- },
- {
- "name": "popupAlign",
- "propType": {
- "type": "oneOf",
- "value": [
- "follow",
- "outside"
- ]
- },
- "description": "弹层的对齐方式",
- "defaultValue": "follow"
- },
- {
- "name": "popupClassName",
- "propType": "string",
- "description": "弹出子菜单自定义 className"
- },
- {
- "name": "onSelect",
- "propType": "func",
- "description": "选中或取消选中菜单项触发的回调函数\n@param {Array} selectedKeys 选中的所有菜单项的值\n@param {Object} item 选中或取消选中的菜单项\n@param {Object} extra 额外参数\n@param {Boolean} extra.select 是否是选中\n@param {Array} extra.key 菜单项的 key\n@param {Object} extra.label 菜单项的文本\n@param {Array} extra.keyPath 菜单项 key 的路径"
- },
- {
- "name": "selectMode",
- "propType": {
- "type": "oneOf",
- "value": [
- "single",
- "multiple"
- ]
- },
- "description": "选中模式,单选还是多选,默认无值,不可选"
- },
- {
- "name": "shallowSelect",
- "propType": "bool",
- "description": "是否只能选择第一层菜单项(不能选择子菜单中的菜单项)",
- "defaultValue": false
- },
- {
- "name": "hasSelectedIcon",
- "propType": "bool",
- "description": "是否显示选中图标,如果设置为 false 需配合配置平台设置选中时的背景色以示区分",
- "defaultValue": true
- },
- {
- "name": "labelToggleChecked",
- "propType": "bool",
- "defaultValue": true
- },
- {
- "name": "isSelectIconRight",
- "propType": "bool",
- "description": "是否将选中图标居右,仅当 hasSelectedIcon 为true 时生效。\n注意:SubMenu 上的选中图标一直居左,不受此API控制",
- "defaultValue": false
- },
- {
- "name": "direction",
- "propType": {
- "type": "oneOf",
- "value": [
- "ver",
- "hoz"
- ]
- },
- "description": "菜单第一层展示方向",
- "defaultValue": "ver"
- },
- {
- "name": "hozAlign",
- "propType": {
- "type": "oneOf",
- "value": [
- "left",
- "right"
- ]
- },
- "description": "横向菜单条 item 和 footer 的对齐方向,在 direction 设置为 'hoz' 并且 header 存在时生效",
- "defaultValue": "left"
- },
- {
- "name": "hozInLine",
- "propType": "bool",
- "description": "横向菜单模式下,是否维持在一行,即超出一行折叠成 SubMenu 显示, 仅在 direction='hoz' mode='popup' 时生效",
- "defaultValue": false
- },
- {
- "name": "header",
- "propType": "node",
- "description": "自定义菜单头部"
- },
- {
- "name": "footer",
- "propType": "node",
- "description": "自定义菜单尾部"
- },
- {
- "name": "autoFocus",
- "propType": "bool",
- "description": "是否自动获得焦点",
- "defaultValue": false
- },
- {
- "name": "focusedKey",
- "propType": "string",
- "description": "当前获得焦点的子菜单或菜单项 key 值"
- },
- {
- "name": "focusable",
- "propType": "bool",
- "defaultValue": true
- },
- {
- "name": "onItemFocus",
- "propType": "func"
- },
- {
- "name": "onBlur",
- "propType": "func"
- },
- {
- "name": "embeddable",
- "propType": "bool",
- "description": "是否开启嵌入式模式,一般用于Layout的布局中,开启后没有默认背景、外层border、box-shadow,可以配合`