diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04912c0944a2f0779b44a32058e0c668b8240151..73250b8e64d5e2cf2a8b837a5b18b280f146345f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,14 +3,18 @@ title: 更新日志 | TinyNG
---
## 更新日志
-### 1.0.0-beta.2
+### 1.0.2(Angular13、Angular14、Angular15、Angular16)
-*2023-05-16*
+*2023-11-09*
-1. Latest version
+1.menu:单独使用该模块时国际化词条报错。
-### 1.0.0-beta.1
+### 1.0.1(Angular13、Angular14、Angular15、Angular16)
-*2023-04-19*
+*2023-07-27*
-1. Latest version
+1.tree:单选树子层级只有一项时,使用`selectNode`方法时无法高亮子级,会高亮父节点。
+
+### 1.0.0(Angular13、Angular14、Angular15)
+
+*2023-06-09*
diff --git a/README-zh_CN.md b/README-zh_CN.md
index ce9045dbe3773c27d9b2280a3bca2d6c68fd3ff3..41a7ffe104096b674f528018dc89c65ab65e496c 100644
--- a/README-zh_CN.md
+++ b/README-zh_CN.md
@@ -58,8 +58,8 @@ export class AppModule {
```diff
{
"styles": [
-+ "node_modules/@opentiny/ng/themes/styles.css",
-+ "node_modules/@opentiny/ng/themes/theme-default.css",
++ "node_modules/@opentiny/ng-themes/styles.css",
++ "node_modules/@opentiny/ng-themes/theme-default.css",
]
}
```
diff --git a/README.md b/README.md
index 50977fdc4cf5720928fca42d1ce234123de2dd13..85dbfae3fffe3aba7afd831f94cdb866dd76d5a6 100644
--- a/README.md
+++ b/README.md
@@ -59,8 +59,8 @@ And import style file link in `angular.json`.
```diff
{
"styles": [
-+ "node_modules/@opentiny/ng/themes/styles.css",
-+ "node_modules/@opentiny/ng/themes/theme-default.css",
++ "node_modules/@opentiny/ng-themes/styles.css",
++ "node_modules/@opentiny/ng-themes/theme-default.css",
]
}
```
diff --git a/build.md b/build.md
index 1605545eca86ce2da12ae91e43d0473578d92178..521979e69ae18140cf8e13bd321c46cfd0d1381d 100644
--- a/build.md
+++ b/build.md
@@ -99,9 +99,54 @@
```
或执行命令行:
- ```
+ ```bash
ng run ng-demo:preview
```
功能:1. 构建打包相关 @opentiny/ng-xxx 发布包(.tgz);2. 在 ng-demo 项目中 npm install 安装 .tgz 包;3. ng-demo 项目生产环境构建;4. 启动浏览器在8020 端口运行
+
+### 基于 Angular13 构建的 lib 在 Angular14/15 的应用中使用效果预览命令
+
+ 执行命令行:
+ ```bash
+ ng preview ng-demo --configuration ng14(或者 ng15)
+ ```
+
+ 或执行命令行:
+ ```bash
+ ng run ng-demo:preview --configuration ng14(或者 ng15)
+ ```
+
+ 功能:
+ 1. 基于 Angular13 构建打包相关 @opentiny/ng-xxx 发布包(.tgz);
+ 2. 在 src/ng/ngversion 项目中 npm install 安装 Angular14/15,同时安装 @opentiny/ng-xxx 的 tgz 包;
+ 3. 基于 Angular14/15 对 ng-demo 项目进行生产环境构建;
+ 4. 启动浏览器在 8020 端口运行,查看 Angular13 的 lib 在 Angular14/15 demo中的使用效果。
+
+### 发布组件
+
+1. 发布全量组件:
+
+ 执行命令行:
+ ```bash
+ ng publish ng --args="--tag=xxxx" (例如:ng publish ng --args="--tag=latest")
+ ```
+
+ 或执行命令行:
+ ```bash
+ ng run ng:publish --args="--tag=xxxx"
+ ```
+
+2. 发布单个组件:
+
+ 执行命令行:
+ ```bash
+ ng publish 组件名 --args="--tag=xxxx" (例如:ng publish select --args="--tag=latest")
+ ```
+
+ 或执行命令行:
+ ```bash
+ ng run 组件名:publish --args="--tag=xxxx"
+ ```
+
diff --git a/build/buildwc.js b/build/buildwc.js
index e17e6d2876f1df385efee2c3de9acbfa328f4afe..736a625ad91893a766e206cc510b9de1c5c3bfc1 100644
--- a/build/buildwc.js
+++ b/build/buildwc.js
@@ -4,7 +4,7 @@ const { execSync } = require('child_process');
// 1.删除 dist 目录
execSync('npm run clean');
-// 2.编译生产环境 tiny3demo
+// 2.编译生产环境 tinyng-demo
execSync('ng run ng-demo:build:wc --skip-nx-cache');
// 3.编译基础样式
execSync('npx lessc src/themes/basic/build.less dist/apps/ng/assets/themes/styles.css');
diff --git a/build/preview-demo.js b/build/preview-demo.js
index 16975397fd8205b38b427946e636023b5feea893..cbd8a3c898bded86d14089db41cc40e98d053056 100644
--- a/build/preview-demo.js
+++ b/build/preview-demo.js
@@ -40,14 +40,15 @@ serverDemo();
function ready(){
- execSync('npm run prepreview');
+ execSync('npm run prepreview', { stdio: 'inherit' });
}
function buildLib() {
- execSync(`ng build ${name}`);
+ console.log('---------------- build lib ---------------');
+ execSync(`ng build ${name}`, { stdio: 'inherit' });
if (isNeedThemesBuild() && !isNgDemoPreview) {
- execSync('ng build themes');
+ execSync('ng build themes', { stdio: 'inherit' });
}
}
@@ -65,15 +66,19 @@ function changePathAliasAndInstallLib() {
if (isNgDemoPreview) {
delete baseTsConfigData.compilerOptions.paths;
- execSync(`ng pack ${ngDemoDir}`);
+
+ console.log('---------------- pack lib ---------------');
+ execSync(`ng pack ${ngDemoDir}`, { stdio: 'inherit' });
}
dirs.forEach((dir) => {
// 去除掉 compilerOptions.paths 中当前组件 demo 中使用的当前组件 lib 库的路径,以便在后续构建当前组件demo 时使用 node_modules 中的当前组件 lib 库
if (!isNgDemoPreview) {
delete baseTsConfigData.compilerOptions.paths[`@opentiny/ng-${dir}`];
- // 打包压缩 lib 库
- execSync(`ng pack ${dir}`);
+
+ console.log('---------------- pack lib ---------------');
+ // 打包压缩 lib 库,路径为 ng-xx 需要去除前三位
+ execSync(`ng pack ${dir.slice(3)}`, { stdio: 'inherit' });
}
// 拼凑 npm install 时所需的 lib 库的 tgz 包路径
@@ -86,8 +91,10 @@ function changePathAliasAndInstallLib() {
installs += `dist/libs/${dir}/${fileName} `;
}
});
+
+ console.log('---------------- install lib ---------------');
// 安装当前组件 lib 库
- execSync(`npm install ${installs} --legacy-peer-deps`);
+ execSync(`npm install ${installs} --legacy-peer-deps`, { stdio: 'inherit' });
// 将经上面处理过的 tsconfig.base.json 文件内容再写入
fs.writeFileSync(baseTsConfigPath, JSON.stringify(baseTsConfigData, "", "\t"));
@@ -111,16 +118,18 @@ function configDemoThemes() {
}
function buildDemo() {
- execSync(`ng build ${name}-demo`);
+ console.log('---------------- build demo ---------------');
+ execSync(`ng build ${name}-demo`, { stdio: 'inherit' });
}
function reset() {
const param = isNeedThemesBuild() ? ` ${name}` : '';
- execSync(`npm run resetpreview${param}`);
+ execSync(`npm run resetpreview${param}`, { stdio: 'inherit' });
}
function serverDemo() {
- execSync(`npx live-server dist/apps/${name} --port=8020`);
+ console.log('---------------- serve demo ---------------');
+ execSync(`npx live-server dist/apps/${name} --port=8020`, { stdio: 'inherit' });
}
function isNeedThemesBuild() {
diff --git a/build/preview-ngversion-demo.js b/build/preview-ngversion-demo.js
new file mode 100644
index 0000000000000000000000000000000000000000..e52cf92c12deb5827a4e9bfcfb88a0f44f58134d
--- /dev/null
+++ b/build/preview-ngversion-demo.js
@@ -0,0 +1,87 @@
+/**
+ * 基于 Angular13 构建的 lib 在 Angular14/15 的应用demo中使用效果(生产环境)预览。
+ * 使用方式:在根目录下,执行 `ng preview ng-demo --configuration ng14(或者 ng15)`。
+ */
+const path = require('path');
+const fs = require('fs-extra');
+const { execSync } = require('child_process');
+
+// 处理输入参数,获取目标组件名
+const args = process.argv;
+if (args.length !== 3) {
+ throw new TypeError('请输入要预览的组件名称!');
+ return;
+}
+const name = args[2];
+console.log('name', name);
+// 删除 dist、node_modules/@opentiny 等
+ready();
+
+// build 构建 lib
+buildLib();
+
+// 打包压缩 lib 为 tgz 文件
+packLib();
+
+// 在对应目录执行 npm install,并安装 demo 所依赖的 lib 的 tgz 包。
+installLib();
+
+// 打包构建 demo
+buildDemo();
+
+// // 启动 demo
+serverDemo();
+
+
+function ready(){
+ execSync('npm run clean', { stdio: 'inherit' });
+}
+
+function buildLib() {
+ console.log('---------------- build lib ---------------');
+ execSync(`ng build ng`, { stdio: 'inherit' });
+}
+
+function packLib() {
+ console.log('---------------- pack lib ---------------');
+ execSync('ng pack ng', { stdio: 'inherit' });
+}
+
+function installLib() {
+ const distLibsPath = path.resolve(__dirname, '../dist/libs');
+ const dirs = fs.readdirSync(distLibsPath);
+ let installs = '';
+ dirs.forEach((dir) => {
+ // 拼凑 npm install 时所需的 lib 库的 tgz 包路径
+ const dirPath = path.resolve(distLibsPath, `${dir}`);
+ const fileName = fs.readdirSync(dirPath).filter((file) => {
+ return file.endsWith('.tgz');
+ })[0];
+
+ if (fileName) {
+ installs += `../../../../dist/libs/${dir}/${fileName} `;
+ }
+ });
+ console.log('---------------- install lib ---------------');
+ // 安装当前组件 lib 库
+ execSync(`cd src/ng/ngversion/${name} && npm install --force && npm install ${installs} --legacy-peer-deps`, { stdio: 'inherit' });
+}
+
+function buildDemo() {
+ // 解决 ng16 时生产环境启动运行时报错问题
+ if (name === 'ng16') {
+ fs.moveSync(path.resolve(__dirname, '../src/browserslist'),path.resolve(__dirname, '../src/browserslist_bak'))
+ }
+
+ console.log(`---------------- build ${name} demo ---------------`);
+ execSync(`cd src/ng/ngversion/${name} && npm run build`, { stdio: 'inherit' });
+
+ if (name === 'ng16') {
+ fs.moveSync(path.resolve(__dirname, '../src/browserslist_bak'),path.resolve(__dirname, '../src/browserslist'))
+ }
+}
+
+function serverDemo() {
+ console.log(`---------------- serve ${name} demo ---------------`);
+ execSync(`npx live-server dist/apps/${name} --port=8022`, { stdio: 'inherit' });
+}
diff --git a/src/accordion/lib/package.json b/src/accordion/lib/package.json
index a93ead23fb49565e4408576b3277cc93a19ccc10..879d992fe30713592787e82608140b478cbee52e 100644
--- a/src/accordion/lib/package.json
+++ b/src/accordion/lib/package.json
@@ -1,13 +1,13 @@
{
"name": "@opentiny/ng-accordion",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/core": ">=13.0.0",
- "@opentiny/ng-base": "~1.0.0-beta.2",
+ "@opentiny/ng-base": "~1.0.2",
"@angular/animations": ">=13.0.0",
"@angular/common": ">=13.0.0",
- "@opentiny/ng-outline": "~1.0.0-beta.2",
- "@opentiny/ng-icon": "~1.0.0-beta.2"
+ "@opentiny/ng-outline": "~1.0.2",
+ "@opentiny/ng-icon": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/actionmenu/demo/src/app/actionmenu/actionmenu-items.html b/src/actionmenu/demo/src/app/actionmenu/actionmenu-items.html
index 9432098ff0511b0145fd8eee3022d4e3e2111dcb..6b13e5047247445c8da448a76f46ae5545b54826 100644
--- a/src/actionmenu/demo/src/app/actionmenu/actionmenu-items.html
+++ b/src/actionmenu/demo/src/app/actionmenu/actionmenu-items.html
@@ -1,6 +1,5 @@
描述
Actionmenu菜单按钮组件,选项数目依照最大个数和宽度空间。
-注: 10.1.5版本改动默认最大显示数量3个(包括menu)
示例
diff --git a/src/actionmenu/demo/src/app/actionmenu/actionmenu-templete-test.html b/src/actionmenu/demo/src/app/actionmenu/actionmenu-templete-test.html
index 450948fa443e021b05278de91f089167c9d153a3..cd2ff2ce1acb1963b513b5b61b905ef57069543e 100644
--- a/src/actionmenu/demo/src/app/actionmenu/actionmenu-templete-test.html
+++ b/src/actionmenu/demo/src/app/actionmenu/actionmenu-templete-test.html
@@ -1,7 +1,7 @@
描述
自定义模板测试
示例
-
1.兼容旧版模板测试(10.0.3 之前版本)
+
1.兼容旧版模板测试
自定义 item 模板(未添加 #item 标签)
diff --git a/src/actionmenu/demo/src/app/actionmenu/actionmenu-tips-test.html b/src/actionmenu/demo/src/app/actionmenu/actionmenu-tips-test.html
index 4a5f29bd850e97aae5568e7cd969a3c0807e5a8f..fa48b2c54edd321e1be741f2f23af7a19e1ffa13 100644
--- a/src/actionmenu/demo/src/app/actionmenu/actionmenu-tips-test.html
+++ b/src/actionmenu/demo/src/app/actionmenu/actionmenu-tips-test.html
@@ -43,7 +43,7 @@
-
5.兼容旧版模板测试(10.0.3 之前版本)
+
5.兼容旧版模板测试
自定义 item 模板(未添加 #item 标签) + 自定义 tip 模板
diff --git a/src/actionmenu/lib/package.json b/src/actionmenu/lib/package.json
index ad31380ccc9cb53126da1cf7921d90098b139d31..557826d5b83a6ad63b2e8d6c348df5a9f4e4255d 100644
--- a/src/actionmenu/lib/package.json
+++ b/src/actionmenu/lib/package.json
@@ -1,14 +1,14 @@
{
"name": "@opentiny/ng-actionmenu",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
- "@opentiny/ng-base": "~1.0.0-beta.2",
- "@opentiny/ng-menu": "~1.0.0-beta.2",
- "@opentiny/ng-locale": "~1.0.0-beta.2",
+ "@opentiny/ng-base": "~1.0.2",
+ "@opentiny/ng-menu": "~1.0.2",
+ "@opentiny/ng-locale": "~1.0.2",
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
- "@opentiny/ng-tip": "~1.0.0-beta.2",
- "@opentiny/ng-popconfirm": "~1.0.0-beta.2"
+ "@opentiny/ng-tip": "~1.0.2",
+ "@opentiny/ng-popconfirm": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/actionmenu/lib/src/TiActionmenuComponent.ts b/src/actionmenu/lib/src/TiActionmenuComponent.ts
index b172c5864a7de10d9a651965880f2ac00cfc7fcd..24933948050ce0bdf7671819edcb50a6c10215a1 100644
--- a/src/actionmenu/lib/src/TiActionmenuComponent.ts
+++ b/src/actionmenu/lib/src/TiActionmenuComponent.ts
@@ -254,7 +254,7 @@ export class TiActionmenuComponent extends TiFormComponent {
}
/**
* 兼容旧版:
- * 10.0.3 版本之前只能内嵌一个模板,无命名。
+ * 之前只能内嵌一个模板,无命名。
* 新版可以内嵌两个模板,示例书写要求都命名(#item,#tip)。
* 但需要兼容旧版无命名测试用例。
*/
diff --git a/src/alert/demo/src/app/alert/AlertDarkthemeComponent.ts b/src/alert/demo/src/app/alert/AlertDarkthemeComponent.ts
index 3dedf6cdb387da26eaf894b3cb3337040daf6552..9cb9a78490010f4377e27949a814f549cbb7f3ff 100644
--- a/src/alert/demo/src/app/alert/AlertDarkthemeComponent.ts
+++ b/src/alert/demo/src/app/alert/AlertDarkthemeComponent.ts
@@ -3,4 +3,12 @@ import { Component } from '@angular/core';
@Component({
templateUrl: './alert-darktheme.html'
})
-export class AlertDarkthemeComponent {}
+export class AlertDarkthemeComponent {
+ public isShow: boolean = false;
+ //当10000ms之后,所有的提示都消失后,显示提示信息,避免服务误认为啥都没显示。
+ ngAfterViewInit(): void {
+ setTimeout(() => {
+ this.isShow = true;
+ }, 10100);
+ }
+}
diff --git a/src/alert/demo/src/app/alert/AlertTestModule.ts b/src/alert/demo/src/app/alert/AlertTestModule.ts
index a5d5ab0337b86d23f2b6f88f78b1305b9f1c32b3..acbb31fc81e1a7db506a834b6027baaf240d51ae 100644
--- a/src/alert/demo/src/app/alert/AlertTestModule.ts
+++ b/src/alert/demo/src/app/alert/AlertTestModule.ts
@@ -3,9 +3,6 @@ import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { TiAlertModule, TiButtonModule, TiSelectModule } from '@opentiny/ng';
-// import { TiAlertModule } from '@opentiny/ng-alert';
-// import { TiButtonModule } from '@opentiny/ng-button';
-// import { TiSelectModule } from '@opentiny/ng-select';
import { DemoLogModule } from '../../../../../ng/demolog/DemoLogModule';
import { AlertTypeComponent } from './AlertTypeComponent';
diff --git a/src/alert/demo/src/app/alert/alert-darktheme.html b/src/alert/demo/src/app/alert/alert-darktheme.html
index feeac2361bb1743a99a258fed0720eef618b459a..032b2d99eaf166a60f222bfe32890b7d38f40ab2 100644
--- a/src/alert/demo/src/app/alert/alert-darktheme.html
+++ b/src/alert/demo/src/app/alert/alert-darktheme.html
@@ -5,3 +5,4 @@
warn类型
error类型
+告警已消失,重新加载请刷新。
diff --git a/src/alert/demo/src/app/alert/alert-dismiss.html b/src/alert/demo/src/app/alert/alert-dismiss.html
index df27c24c3f72443189b4877a328aa6531e5305e5..ab537ca99f82222167ccbfa36b8f2d6fce7d9cbd 100644
--- a/src/alert/demo/src/app/alert/alert-dismiss.html
+++ b/src/alert/demo/src/app/alert/alert-dismiss.html
@@ -1 +1 @@
-5000ms后自动消失
+5000ms后自动消失
diff --git a/src/alert/lib/package.json b/src/alert/lib/package.json
index b263f01875bd0c71086b1bb0316486a1820d38e1..e14ede780be690706035f4729aa036bcf7cee199 100644
--- a/src/alert/lib/package.json
+++ b/src/alert/lib/package.json
@@ -1,14 +1,14 @@
{
"name": "@opentiny/ng-alert",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/common": ">=13.0.0",
- "@opentiny/ng-base": "~1.0.0-beta.2",
- "@opentiny/ng-utils": "~1.0.0-beta.2",
+ "@opentiny/ng-base": "~1.0.2",
+ "@opentiny/ng-utils": "~1.0.2",
"@angular/core": ">=13.0.0",
- "@opentiny/ng-icon": "~1.0.0-beta.2",
- "@opentiny/ng-outline": "~1.0.0-beta.2",
+ "@opentiny/ng-icon": "~1.0.2",
+ "@opentiny/ng-outline": "~1.0.2",
"@angular/animations": ">=13.0.0"
}
}
\ No newline at end of file
diff --git a/src/alert/lib/src/TiAlertComponent.ts b/src/alert/lib/src/TiAlertComponent.ts
index 1069a43bffaa8350564bd2a498c31e75532bc98a..e2c43534dfe673faf8863fa1c602d7f1405a476f 100644
--- a/src/alert/lib/src/TiAlertComponent.ts
+++ b/src/alert/lib/src/TiAlertComponent.ts
@@ -34,7 +34,7 @@ import packageInfo from '../package.json';
/**
* Alert组件用于消息提示,提供了四种类型
*
- * 10.1.13版本之后,使用此组件时需要开发者在项目模块(建议在根模块)
+ * 使用此组件时需要开发者在项目模块(建议在根模块)
* 中引入BrowserAnimationsModule。这是因为此组件中使用了Angular动画,需要引入BrowserAnimationsModule,
* 但是 BrowserAnimationsModule 不能在懒加载模块被重复引入,所以需要开发者来引入BrowserAnimationsModule,保证其引入一次。
*
diff --git a/src/anchor/lib/package.json b/src/anchor/lib/package.json
index afe74b1d6cdcbe9126132aa96780059ade6e8d9d..b649fdb7eea7c738f2b3f0ba5432af1f3e024c97 100644
--- a/src/anchor/lib/package.json
+++ b/src/anchor/lib/package.json
@@ -1,10 +1,10 @@
{
"name": "@opentiny/ng-anchor",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
- "@opentiny/ng-base": "~1.0.0-beta.2"
+ "@opentiny/ng-base": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/anchor/lib/src/TiAnchorComponent.ts b/src/anchor/lib/src/TiAnchorComponent.ts
index fd750eef5aee5dfb9144cea8169d623189feda1b..a7b4be4a8fe15ec49891b974fd3fbf9d24122e6a 100644
--- a/src/anchor/lib/src/TiAnchorComponent.ts
+++ b/src/anchor/lib/src/TiAnchorComponent.ts
@@ -50,7 +50,7 @@ export interface TiAnchorItem {
styleUrls: ['./anchor.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
- '[class.tp-anchor-container]': 'true'
+ '[class.ti3-anchor-container]': 'true'
}
})
export class TiAnchorComponent extends TiBaseComponent {
diff --git a/src/anchor/lib/src/anchor.html b/src/anchor/lib/src/anchor.html
index fcdcdf261806d1a9079e3cda3826f47c32dffced..ee8bf9e3a997c27d895692360c668d8e863e064c 100644
--- a/src/anchor/lib/src/anchor.html
+++ b/src/anchor/lib/src/anchor.html
@@ -1,9 +1,9 @@
- -
+
-
diff --git a/src/anchor/lib/src/anchor.less b/src/anchor/lib/src/anchor.less
index da279a16d5f35545c25143f7c015f1bd8542364b..aa41a6887870a0eb87f5f30a4a880715b2d8be5b 100644
--- a/src/anchor/lib/src/anchor.less
+++ b/src/anchor/lib/src/anchor.less
@@ -1,21 +1,21 @@
@import '../../../themes/basic/base-all.less';
:host {
- // --tp-anchor-link-title-padding-left: calc(var(--ti-common-space-5x) + var(--ti-common-space-3x) + var(--tp-anchor-link-badge-width)); // IE下不解析
- --tp-anchor-link-title-padding-left: calc(
- var(--tp-anchor-link-badge-left) + var(--ti-common-space-3x) + var(--tp-anchor-link-badge-width)
+ // --ti3-anchor-link-title-padding-left: calc(var(--ti-common-space-5x) + var(--ti-common-space-3x) + var(--ti3-anchor-link-badge-width)); // IE下不解析
+ --ti3-anchor-link-title-padding-left: calc(
+ var(--ti3-anchor-link-badge-left) + var(--ti-common-space-3x) + var(--ti3-anchor-link-badge-width)
); // 锚点小圆左侧间距 20px + 锚点小圆与文本间间距 12px + 锚点小圆宽度
- --tp-anchor-link-title-line-height: calc(var(--ti-common-font-size-base) * var(--ti-common-line-height-number));
- --tp-anchor-link-line-width: var(--ti-common-border-weight-normal);
- --tp-anchor-link-badge-width: var(--ti-common-size-2x);
- --tp-anchor-link-badge-height: var(--tp-anchor-link-badge-width);
- --tp-anchor-link-badge-left: var(--ti-common-space-5x);
- --tp-anchor-link-line-color: var(--ti-common-color-line-dividing);
- --tp-anchor-link-title-color: var(--ti-common-color-text-primary);
- --tp-anchor-link-title-color-hover: var(--ti-common-color-text-highlight);
- --tp-anchor-link-title-color-selected: var(--ti-common-color-text-highlight);
+ --ti3-anchor-link-title-line-height: calc(var(--ti-common-font-size-base) * var(--ti-common-line-height-number));
+ --ti3-anchor-link-line-width: var(--ti-common-border-weight-normal);
+ --ti3-anchor-link-badge-width: var(--ti-common-size-2x);
+ --ti3-anchor-link-badge-height: var(--ti3-anchor-link-badge-width);
+ --ti3-anchor-link-badge-left: var(--ti-common-space-5x);
+ --ti3-anchor-link-line-color: var(--ti-common-color-line-dividing);
+ --ti3-anchor-link-title-color: var(--ti-common-color-text-primary);
+ --ti3-anchor-link-title-color-hover: var(--ti-common-color-text-highlight);
+ --ti3-anchor-link-title-color-selected: var(--ti-common-color-text-highlight);
}
-:host.tp-anchor-container {
+:host.ti3-anchor-container {
display: inline-block;
width: var(--ti-common-size-40x);
padding: 30px 2px; // 左右加2px的padding是为了保证聚焦的情况下边框不会被遮挡。默认聚焦样式是宽度为2的黑色边框。
@@ -23,18 +23,18 @@
.box-sizing(border-box);
}
-.tp-anchor-link {
+.ti3-anchor-link {
padding: 0 0 var(--ti-common-space-5x) 0;
position: relative;
list-style: none;
&:after {
content: '';
position: absolute;
- left: calc(var(--tp-anchor-link-badge-left) + (var(--tp-anchor-link-badge-width) - var(--tp-anchor-link-line-width)) / 2);
- top: calc((var(--tp-anchor-link-title-line-height) + var(--tp-anchor-link-badge-width)) / 2);
- width: var(--tp-anchor-link-line-width);
- height: ~'calc(100% - var(--tp-anchor-link-badge-width))';
- background-color: var(--tp-anchor-link-line-color);
+ left: calc(var(--ti3-anchor-link-badge-left) + (var(--ti3-anchor-link-badge-width) - var(--ti3-anchor-link-line-width)) / 2);
+ top: calc((var(--ti3-anchor-link-title-line-height) + var(--ti3-anchor-link-badge-width)) / 2);
+ width: var(--ti3-anchor-link-line-width);
+ height: ~'calc(100% - var(--ti3-anchor-link-badge-width))';
+ background-color: var(--ti3-anchor-link-line-color);
}
&:last-child {
@@ -46,11 +46,11 @@
}
}
-.tp-anchor-link-title {
- padding: 0 var(--ti-common-space-5x) 0 var(--tp-anchor-link-title-padding-left);
+.ti3-anchor-link-title {
+ padding: 0 var(--ti-common-space-5x) 0 var(--ti3-anchor-link-title-padding-left);
text-decoration: none;
- color: var(--tp-anchor-link-title-color);
- line-height: var(--tp-anchor-link-title-line-height);
+ color: var(--ti3-anchor-link-title-color);
+ line-height: var(--ti3-anchor-link-title-line-height);
font-size: var(--ti-common-font-size-base);
font-weight: var(--ti-common-font-weight-4);
position: relative;
@@ -60,21 +60,21 @@
&:before {
content: '';
position: absolute;
- left: var(--tp-anchor-link-badge-left);
- top: calc((var(--tp-anchor-link-title-line-height) - var(--tp-anchor-link-badge-height)) / 2);
- width: var(--tp-anchor-link-badge-width);
- height: var(--tp-anchor-link-badge-height);
- background-color: var(--tp-anchor-link-line-color);
+ left: var(--ti3-anchor-link-badge-left);
+ top: calc((var(--ti3-anchor-link-title-line-height) - var(--ti3-anchor-link-badge-height)) / 2);
+ width: var(--ti3-anchor-link-badge-width);
+ height: var(--ti3-anchor-link-badge-height);
+ background-color: var(--ti3-anchor-link-line-color);
border-radius: 50%;
box-sizing: border-box;
}
&:hover {
- color: var(--tp-anchor-link-title-color-hover);
+ color: var(--ti3-anchor-link-title-color-hover);
}
- .tp-anchor-link-active & {
- color: var(--tp-anchor-link-title-color-selected);
+ .ti3-anchor-link-active & {
+ color: var(--ti3-anchor-link-title-color-selected);
&:before {
background-color: var(--ti-common-color-bg-emphasize);
diff --git a/src/autocomplete/demo/src/app/autocomplete/autocomplete-events.html b/src/autocomplete/demo/src/app/autocomplete/autocomplete-events.html
index 4d3c737fd019edafe629a10ab7a095bc9f82eec4..f0d940a7debec8abe2c16cecca67cc311f6b7d3a 100644
--- a/src/autocomplete/demo/src/app/autocomplete/autocomplete-events.html
+++ b/src/autocomplete/demo/src/app/autocomplete/autocomplete-events.html
@@ -10,7 +10,6 @@
(suggest)="onSuggest($event)"
(clear)="onClear($event)"
(select)="onSelect($event)"
- clearable
>
diff --git a/src/autocomplete/demo/src/app/autocomplete/autocomplete-maxlength.html b/src/autocomplete/demo/src/app/autocomplete/autocomplete-maxlength.html
index a6f18b7ebf42c4f25404187a5f010fe333c2d357..b05de578e3ca9eef65e4ed4867935fd9efba11be 100644
--- a/src/autocomplete/demo/src/app/autocomplete/autocomplete-maxlength.html
+++ b/src/autocomplete/demo/src/app/autocomplete/autocomplete-maxlength.html
@@ -4,5 +4,5 @@
[(ngModel)]="value"
placeholder="请选择/输入地区"
[options]="options"
- maxlength="12"
+ [maxlength]="12"
>
diff --git a/src/autocomplete/demo/src/app/autocomplete/autocomplete-valid.html b/src/autocomplete/demo/src/app/autocomplete/autocomplete-valid.html
index fc58aabbc6da5481ce926efe7f7fc50bc2029689..008a21d1fe5e9e83dcb7f11f88c5bb67686c6cfe 100644
--- a/src/autocomplete/demo/src/app/autocomplete/autocomplete-valid.html
+++ b/src/autocomplete/demo/src/app/autocomplete/autocomplete-valid.html
@@ -5,5 +5,5 @@
[options]="options"
placeholder="请选择/输入地区"
tiValidation
- tiRequired
+ [tiRequired]="true"
>
diff --git a/src/autocomplete/lib/package.json b/src/autocomplete/lib/package.json
index 74f4972101f4efdb55e3e21bfa1040a36abf9670..7dcc78373bc9c2d4e373b0975059c4426047daba 100644
--- a/src/autocomplete/lib/package.json
+++ b/src/autocomplete/lib/package.json
@@ -1,13 +1,13 @@
{
"name": "@opentiny/ng-autocomplete",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/core": ">=13.0.0",
- "@opentiny/ng-base": "~1.0.0-beta.2",
- "@opentiny/ng-droplist": "~1.0.0-beta.2",
- "@opentiny/ng-text": "~1.0.0-beta.2",
- "@opentiny/ng-utils": "~1.0.0-beta.2",
+ "@opentiny/ng-base": "~1.0.2",
+ "@opentiny/ng-droplist": "~1.0.2",
+ "@opentiny/ng-text": "~1.0.2",
+ "@opentiny/ng-utils": "~1.0.2",
"@angular/common": ">=13.0.0",
"@angular/forms": ">=13.0.0"
}
diff --git a/src/autocomplete/lib/src/TiAutocompleteComponent.ts b/src/autocomplete/lib/src/TiAutocompleteComponent.ts
index 55420a11d2974b62fe2ea31624df9713b199947a..63f94f1a1cf73a172da5a26d195501fb9b6155b5 100644
--- a/src/autocomplete/lib/src/TiAutocompleteComponent.ts
+++ b/src/autocomplete/lib/src/TiAutocompleteComponent.ts
@@ -41,8 +41,6 @@ export class TiAutocompleteComponent extends TiFormComponent {
@Input() placeholder: string = '';
/**
* 是否开启清除功能,
- *
- * 10.1.0/9.1.0版本之后默认不开启,在此之前版本默认开启
*/
@Input() clearable: boolean = false;
/**
diff --git a/src/avatar/lib/package.json b/src/avatar/lib/package.json
index 4335a92b720922ce6fd31841175a061313979e5e..42cdd1a9bd9d7574506fc60b8e879f49681f6098 100644
--- a/src/avatar/lib/package.json
+++ b/src/avatar/lib/package.json
@@ -1,11 +1,11 @@
{
"name": "@opentiny/ng-avatar",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
- "@opentiny/ng-icon": "~1.0.0-beta.2",
- "@opentiny/ng-base": "~1.0.0-beta.2"
+ "@opentiny/ng-icon": "~1.0.2",
+ "@opentiny/ng-base": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/base/lib/package.json b/src/base/lib/package.json
index 81407b441e2242ac83c23949770c23d9ac10bd47..2ab7353e97848d78ae54412ad1a136805f735576 100644
--- a/src/base/lib/package.json
+++ b/src/base/lib/package.json
@@ -1,9 +1,9 @@
{
"name": "@opentiny/ng-base",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
- "@opentiny/ng-utils": "~1.0.0-beta.2",
+ "@opentiny/ng-utils": "~1.0.2",
"@angular/core": ">=13.0.0",
"@angular/forms": ">=13.0.0"
}
diff --git a/src/button/demo/src/app/button/button-icon.html b/src/button/demo/src/app/button/button-icon.html
index d00e5936ad5af823da23629746b2c86e54ea872e..cd0a0109795277d0e46f3a83b688f675bec41d84 100644
--- a/src/button/demo/src/app/button/button-icon.html
+++ b/src/button/demo/src/app/button/button-icon.html
@@ -1,4 +1,4 @@
-
-
+
Current value: {{ selected1 | json }}
diff --git a/src/buttongroup/demo/src/app/buttongroup/webdoc/buttongroup-demos.js b/src/buttongroup/demo/src/app/buttongroup/webdoc/buttongroup-demos.js
index f04a0c52f4259f9f2e81028e4d1635ee0700d90a..2917c1053345d69c85e308e9447edb1e42a4822f 100644
--- a/src/buttongroup/demo/src/app/buttongroup/webdoc/buttongroup-demos.js
+++ b/src/buttongroup/demo/src/app/buttongroup/webdoc/buttongroup-demos.js
@@ -143,7 +143,7 @@ export default {
},
desc: {
'zh-CN':
- '通过
items.tipContent
配置提示信息,10.1.1 版本起,tip 接口的类型扩展为:string | TemplateRef
| Component,旧版本为:string。通过items.tipPosition
配置提示信息方位。超长文本以 title 显示,不建议使用 tip 提示。',
+ '通过items.tipContent
配置提示信息,tip 接口的类型为:string | TemplateRef | Component。通过items.tipPosition
配置提示信息方位。超长文本以 title 显示,不建议使用 tip 提示。',
'en-US': '',
},
apis: [
diff --git a/src/buttongroup/lib/package.json b/src/buttongroup/lib/package.json
index 37f9575f65be174872c6f8c6b6427a14f4657e6c..eaa74a599f9546a26df8aa4655b12585d19e32e9 100644
--- a/src/buttongroup/lib/package.json
+++ b/src/buttongroup/lib/package.json
@@ -1,14 +1,14 @@
{
"name": "@opentiny/ng-buttongroup",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
- "@opentiny/ng-utils": "~1.0.0-beta.2",
+ "@opentiny/ng-utils": "~1.0.2",
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
- "@opentiny/ng-tip": "~1.0.0-beta.2",
- "@opentiny/ng-outline": "~1.0.0-beta.2",
- "@opentiny/ng-icon": "~1.0.0-beta.2",
- "@opentiny/ng-base": "~1.0.0-beta.2"
+ "@opentiny/ng-tip": "~1.0.2",
+ "@opentiny/ng-outline": "~1.0.2",
+ "@opentiny/ng-icon": "~1.0.2",
+ "@opentiny/ng-base": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/buttongroup/lib/src/TiButtongroupComponent.ts b/src/buttongroup/lib/src/TiButtongroupComponent.ts
index 3370c0fcff692ae0cb275784a8e8454bd865448a..4010173bd295bf70643bcd5eaf5bf668689060de 100644
--- a/src/buttongroup/lib/src/TiButtongroupComponent.ts
+++ b/src/buttongroup/lib/src/TiButtongroupComponent.ts
@@ -61,7 +61,7 @@ export interface TiButtonItem {
*
* 对象类型,包含两个属性:1.text: 显示的文本;2.class:标志的样式;eg: {text: string; class: string}
*
- * 10.1.2版本之后可以通过 #sup 模板配置选块角标,因此隐藏sup键值对
+ * 可以通过 #sup 模板配置选块角标,因此隐藏sup键值对
*/
sup?: {
text?: string;
@@ -208,7 +208,7 @@ export class TiButtongroupComponent extends TiWholeComponent {
/**
* 兼容旧版:
- * 10.1.2 版本之前只能内嵌一个模板,无命名。
+ * 之前只能内嵌一个模板,无命名。
* 新版可以内嵌两个模板,示例书写要求都命名(#item,#sup)。
* 但需要兼容旧版无命名测试用例。
*/
diff --git a/src/buttonselect/lib/package.json b/src/buttonselect/lib/package.json
index b59b2bbd2a34cf4cb233d7d07da77c3cae3be12d..25e061ea3422898bc53b11468d203b6dac3380bf 100644
--- a/src/buttonselect/lib/package.json
+++ b/src/buttonselect/lib/package.json
@@ -1,13 +1,13 @@
{
"name": "@opentiny/ng-buttonselect",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"peerDependencies": {
- "@opentiny/ng-base": "~1.0.0-beta.2",
+ "@opentiny/ng-base": "~1.0.2",
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
"@angular/forms": ">=13.0.0",
- "@opentiny/ng-droplist": "~1.0.0-beta.2",
- "@opentiny/ng-icon": "~1.0.0-beta.2",
- "@opentiny/ng-outline": "~1.0.0-beta.2"
+ "@opentiny/ng-droplist": "~1.0.2",
+ "@opentiny/ng-icon": "~1.0.2",
+ "@opentiny/ng-outline": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/buttonselect/lib/src/buttonselect.less b/src/buttonselect/lib/src/buttonselect.less
index 8e74f1530f129ff1b68221ea54e097e3b9d79ea3..cd1be15a8b4a2474f1022c3fd9bd3787fe3502ea 100644
--- a/src/buttonselect/lib/src/buttonselect.less
+++ b/src/buttonselect/lib/src/buttonselect.less
@@ -1,8 +1,9 @@
-::ng-deep :root {
+:host {
--ti-buttonselect-maxwidth: 300px;
- --ti-buttonselect-padding: 20px;
- --ti-buttonselect-triangle-width: 16px;
- --ti-button-group-height: 28px;
+ --ti-buttonselect-padding: var(--ti-common-space-5x);
+ --ti-buttonselect-triangle-width: var(--ti-common-size-4x);
+ --ti-buttonselect-height: var(--ti-common-size-7x);
+ --ti-buttonselect-checkmark-size: var(--ti-common-size-3x);
}
:host {
@@ -10,14 +11,14 @@
}
.ti-btnselect-triangle {
display: inline-block;
- width: 16px;
+ width: var(--ti-buttonselect-triangle-width);
&:after {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 5px solid var(--ti-common-color-icon-normal);
content: '';
position: absolute;
- top: 10.5px;
+ top: calc((var(--ti-buttonselect-height) - 2px - 5px) / 2); // (组件高度 - 边框高度 - 三角标高度) / 2
}
}
.ti-btnselect-triangle-up:after {
@@ -30,14 +31,16 @@
padding: 0 var(--ti-buttonselect-padding);
position: relative;
display: inline-block;
- height: var(--ti-button-group-height);
+ height: var(--ti-buttonselect-height);
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
- color: #252b3a;
- background-color: #e9edfa;
- line-height: calc(var(--ti-button-group-height) - 2px);
+ color: var(--ti-common-color-text-primary);
+ font-size: var(--ti-common-font-size-base);
+ font-weight: var(--ti-common-font-weight-4);
+ background-color: var(--ti-common-color-bg-light-normal);
+ line-height: calc(var(--ti-buttonselect-height) - 2px);
max-width: var(--ti-buttonselect-maxwidth);
&.ti-buttonselect-dominator-border {
border: 1px solid var(--ti-common-color-bg-emphasize);
@@ -60,16 +63,16 @@
color: #fff;
width: 0;
height: 0;
- border-right: 16px solid #5e7ce0;
+ border-right: 16px solid var(--ti-common-color-bg-emphasize);
border-bottom: 16px solid transparent;
position: absolute;
right: 0px;
top: 0px;
- font-size: 12px;
& .ti3-icon-checkmark-small {
+ font-size: var(--ti-buttonselect-checkmark-size);
position: relative;
- right: -5px;
- top: -8px;
+ right: -5px; // - (16 - 12 + 1)
+ bottom: calc((var(--ti-buttonselect-height) - var(--ti-buttonselect-checkmark-size)) / 2);
}
}
.ti-buttonselect-list {
diff --git a/src/card/demo/src/app/card/card-grid.html b/src/card/demo/src/app/card/card-grid.html
index cfad87849060203a33366c97eb075fcbc1d48981..3742559fdafcddc2dd52474fc851ec4670405c05 100644
--- a/src/card/demo/src/app/card/card-grid.html
+++ b/src/card/demo/src/app/card/card-grid.html
@@ -1,4 +1,4 @@
-
+
{{card.title}}
diff --git a/src/card/demo/src/app/card/card-grid2.html b/src/card/demo/src/app/card/card-grid2.html
index 3c4150fdfbf23e6e823a563e7b282218f9e6a728..fd62c05a5dd570a0c7a06114920bcd937a98e9d7 100644
--- a/src/card/demo/src/app/card/card-grid2.html
+++ b/src/card/demo/src/app/card/card-grid2.html
@@ -1,4 +1,4 @@
-
+
{{card.title}}
diff --git a/src/card/demo/src/app/card/webdoc/card-demos.js b/src/card/demo/src/app/card/webdoc/card-demos.js
index 024f7ef8e7ccf79c75f0afd1f7f59e3b1a223ab7..8a768666f4ff4413af50b5eb7e1781516ce5991d 100644
--- a/src/card/demo/src/app/card/webdoc/card-demos.js
+++ b/src/card/demo/src/app/card/webdoc/card-demos.js
@@ -54,7 +54,7 @@ export default {
'en-US': 'card grid',
},
desc: {
- 'zh-CN': '
使用栅格布局需要导入TiGridModule
模块,根据栅格体系,自适应依据规范定义的四种分辨率 xs:1280~1439【1280、1366】, sm:1440~1599【1440】,md:1600~1759【1680】, lg: 1760~1920【1920】,通过不同的样式类设置子元素的宽度,使用 ti-row 定义一行,使用 ti-col-xs-[num] 设置一行所所占的比。
',
+ 'zh-CN': '
使用栅格布局需要导入TiGridModule
模块,根据栅格体系,自适应依据规范定义的四种分辨率 xs:1280~1439【1280、1366】, sm:1440~1599【1440】,md:1600~1759【1680】, lg: 1760~1920【1920】,通过不同的样式类设置子元素的宽度,使用 ti3-row 定义一行,使用 ti-col-xs-[num] 设置一行所所占的比。
',
'en-US': '
card icon
',
}
},
diff --git a/src/card/lib/package.json b/src/card/lib/package.json
index 6d97f7ec5be6652b8e7d0e444acfb011ea126455..1e3f4f1233f2e38309b88c46848ca59c0a4e8e6a 100644
--- a/src/card/lib/package.json
+++ b/src/card/lib/package.json
@@ -1,11 +1,11 @@
{
"name": "@opentiny/ng-card",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/core": ">=13.0.0",
- "@opentiny/ng-base": "~1.0.0-beta.2",
+ "@opentiny/ng-base": "~1.0.2",
"@angular/common": ">=13.0.0",
- "@opentiny/ng-icon": "~1.0.0-beta.2"
+ "@opentiny/ng-icon": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/cascader/lib/package.json b/src/cascader/lib/package.json
index 284e8deee5fd8bfe7d5977e1edf46c5d7dc33aeb..e05111a2de2df9379df915aac733ec13f12b2e00 100644
--- a/src/cascader/lib/package.json
+++ b/src/cascader/lib/package.json
@@ -1,17 +1,17 @@
{
"name": "@opentiny/ng-cascader",
- "version": "1.0.0-beta.2",
+ "version": "1.0.2",
"license": "MIT",
"peerDependencies": {
- "@opentiny/ng-dominator": "~1.0.0-beta.2",
- "@opentiny/ng-drop": "~1.0.0-beta.2",
- "@opentiny/ng-droplist": "~1.0.0-beta.2",
- "@opentiny/ng-base": "~1.0.0-beta.2",
- "@opentiny/ng-list": "~1.0.0-beta.2",
+ "@opentiny/ng-dominator": "~1.0.2",
+ "@opentiny/ng-drop": "~1.0.2",
+ "@opentiny/ng-droplist": "~1.0.2",
+ "@opentiny/ng-base": "~1.0.2",
+ "@opentiny/ng-list": "~1.0.2",
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
"@angular/forms": ">=13.0.0",
- "@opentiny/ng-tip": "~1.0.0-beta.2",
- "@opentiny/ng-utils": "~1.0.0-beta.2"
+ "@opentiny/ng-tip": "~1.0.2",
+ "@opentiny/ng-utils": "~1.0.2"
}
}
\ No newline at end of file
diff --git a/src/cascader/lib/src/TiCascaderComponent.ts b/src/cascader/lib/src/TiCascaderComponent.ts
index cd7349d299554e9ff59dc70f7f112a840f5b855b..b4bdbd572db6e474a9626d2fadcdbbb2c16b8fad 100644
--- a/src/cascader/lib/src/TiCascaderComponent.ts
+++ b/src/cascader/lib/src/TiCascaderComponent.ts
@@ -67,7 +67,7 @@ export interface TiCascaderItem {
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
'(blur)': 'onBlur()',
- '[class.tp-cascader-dominator]': 'true'
+ '[class.ti3-cascader-dominator]': 'true'
}
})
export class TiCascaderComponent extends TiFormComponent {
diff --git a/src/cascader/lib/src/cascader.html b/src/cascader/lib/src/cascader.html
index 93c310e3e93649ce097b4456afde7afa40d09e86..c25168101bb2cb06240dafb0a876c7cfe444493a 100644
--- a/src/cascader/lib/src/cascader.html
+++ b/src/cascader/lib/src/cascader.html
@@ -26,7 +26,7 @@
#commonList
[id]="appendId('list_' + panelIndex)"
[ngStyle]="{width: panelWidth}"
- class="tp-cascader-list"
+ class="ti3-cascader-list"
[options]="options"
[labelKey]="labelKey"
[idKey]="idKey"
@@ -41,7 +41,7 @@
#commonList
[id]="appendId('list_' + panelIndex)"
[ngStyle]="{width: panelWidth}"
- class="tp-cascader-list"
+ class="ti3-cascader-list"
[options]="options"
[labelKey]="labelKey"
[idKey]="idKey"
diff --git a/src/cascader/lib/src/cascader.less b/src/cascader/lib/src/cascader.less
index 37d0fed051b6142b5adfb01535622acba7ff065d..1393b61cce58f20588cb4575997610ab1ad60120 100644
--- a/src/cascader/lib/src/cascader.less
+++ b/src/cascader/lib/src/cascader.less
@@ -1,12 +1,12 @@
@import '../../../themes/basic/base-all.less';
@import '../../../themes/basic/compnent-container-border.less';
-:host.tp-cascader-dominator :extend(.ti3-compnent-container-border all) {
+:host.ti3-cascader-dominator :extend(.ti3-compnent-container-border all) {
width: var(--ti-common-size-50x);
font-size: var(--ti-common-font-size-base);
font-weight: var(--ti-common-font-weight-4);
}
-.tp-cascader-input {
+.ti3-cascader-input {
display: inline-block;
height: 100%;
width: 100%;
@@ -16,7 +16,7 @@
background-color: transparent;
cursor: inherit;
}
-.tp-cascader-list {
+.ti3-cascader-list {
height: 100%;
&:not(:first-child) {
display: none;
diff --git a/src/checkbox/demo/src/app/checkbox/CheckboxGroupLevelComponent.ts b/src/checkbox/demo/src/app/checkbox/CheckboxGroupLevelComponent.ts
index ee50165d7ec8dfcde5e018888a045b943d37d907..acbc2b8acffae8604f10cce93bdfdeccaf4b0769 100644
--- a/src/checkbox/demo/src/app/checkbox/CheckboxGroupLevelComponent.ts
+++ b/src/checkbox/demo/src/app/checkbox/CheckboxGroupLevelComponent.ts
@@ -31,5 +31,5 @@ export class CheckboxGroupLevelComponent {
{ items: this.females, checkeds: this.femalesSet, label: '女性' }
];
- checkedSet1: Array
= [];
+ checkedSet1: any = [];
}
diff --git a/src/checkbox/demo/src/app/checkbox/CheckboxGroupValuekeyComponent.ts b/src/checkbox/demo/src/app/checkbox/CheckboxGroupValuekeyComponent.ts
index 2bcb9314ca42f722b74568d077888ce259d6c69e..83c9284413301448e392ee65aebdee680e9c33e1 100644
--- a/src/checkbox/demo/src/app/checkbox/CheckboxGroupValuekeyComponent.ts
+++ b/src/checkbox/demo/src/app/checkbox/CheckboxGroupValuekeyComponent.ts
@@ -11,7 +11,7 @@ export class CheckboxGroupValuekeyComponent {
{ id: 3, text: 'customer' },
{ id: 4, text: 'admin' }
];
- checked: Array = [1, 2];
+ checked: any = [1, 2];
items: Array = [
{
diff --git a/src/checkbox/demo/src/app/checkbox/CheckboxIndeterminateComponent.ts b/src/checkbox/demo/src/app/checkbox/CheckboxIndeterminateComponent.ts
index 4902f83c6eb9d22bf08ca09b0403d04522c39d3b..c5b0ed056b7ae8fa38345579afb1bc8e5794fa0c 100644
--- a/src/checkbox/demo/src/app/checkbox/CheckboxIndeterminateComponent.ts
+++ b/src/checkbox/demo/src/app/checkbox/CheckboxIndeterminateComponent.ts
@@ -11,5 +11,5 @@ export class CheckboxIndeterminateComponent {
{ id: 4, text: 'admin' }
];
- checked: Array = [this.data[0], this.data[2]];
+ checked: any = [this.data[0], this.data[2]];
}
diff --git a/src/checkbox/demo/src/app/checkbox/checkbox-group-validation.html b/src/checkbox/demo/src/app/checkbox/checkbox-group-validation.html
index d71df3b157e4ad156d8fda4c822c44045275b592..24f26df402576f4d9d6effcc0f12ff0052dcaa12 100644
--- a/src/checkbox/demo/src/app/checkbox/checkbox-group-validation.html
+++ b/src/checkbox/demo/src/app/checkbox/checkbox-group-validation.html
@@ -6,11 +6,11 @@
name="formcheckbox"
[(ngModel)]="value"
[tiValidation]="validationConfig"
- tiRequired
+ [tiRequired]="true"
>
- 请直接点击此处查看校验结果
+ 请直接点击此处查看校验结果
2.响应式表单