Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jul 5, 2024
1 parent f81f04b commit 538d522
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 40 deletions.
2 changes: 1 addition & 1 deletion tdesign-component/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ linter:
- empty_statements
# 不要出现可以在编译阶段推算出恒true或者false的条件判断
- invariant_booleans
# 当containns方法的参数和可枚举的类型不同,不要触发可枚举类型的contains方法
# 当contains方法的参数和可枚举的类型不同,不要触发可枚举类型的contains方法
- iterable_contains_unrelated_type
# 用小写加下划线做库的命名
- library_prefixes
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<scene sceneID="the-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
Expand Down
4 changes: 2 additions & 2 deletions tdesign-component/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:tdesign_flutter/src/util/log.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';

import 'base/example_route.dart';
import 'base/intl_resouce_delegate.dart';
import 'base/intl_resource_delegate.dart';
import 'config.dart';
import 'home.dart';

Expand Down Expand Up @@ -86,7 +86,7 @@ class _MyAppState extends State<MyApp> {
Map<String, WidgetBuilder> _getRoutes() {
if (PlatformUtil.isWeb) {
return {for (var model in examplePageList) model.name: (context) => model.pageBuilder.call(context, model)}
..putIfAbsent('/', () => (context) => const MyHomePage(title: 'TDesgin Flutter 组件库'));
..putIfAbsent('/', () => (context) => const MyHomePage(title: 'TDesign Flutter 组件库'));
} else {
return const {};
}
Expand Down
2 changes: 1 addition & 1 deletion tdesign-site/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ docClass: timeline

## 0.0.7

* 修改 exmaple的main.dart
* 修改 example的main.dart

## 0.0.6

Expand Down
2 changes: 1 addition & 1 deletion tdesign-site/script/generate-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function updateVersion() {
rl.on('line', (input) => {
let newVersion = '';
if (!input) {
newVersion = pkg.version.replace(/(\d+\.\d+\.)(\d+)/, (verion, $1, $2) => $1 + (Number($2) + 1));
newVersion = pkg.version.replace(/(\d+\.\d+\.)(\d+)/, (version, $1, $2) => $1 + (Number($2) + 1));
} else if (!VERSION_REG.test(input)) {
console.log('\x1B[31m%s\x1B[0m', '\n⚡ 不要搞事年轻人,请输入正确版本号格式!\n');
rl.prompt();
Expand Down
2 changes: 1 addition & 1 deletion tdesign-site/script/prerender.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function initPreviewServer() {
fs.mkdirSync(path.dirname(filePath));
} catch {}

console.log('\x1b[32m', `writting ${url}... \n`);
console.log('\x1b[32m', `writing ${url}... \n`);
fs.writeFileSync(filePath, html);
}

Expand Down
2 changes: 1 addition & 1 deletion tdesign-site/script/test/transform.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 由于开启 vritualHost=true 之后,selectComponent 无法获取,暂时在单测关闭 virtualHost
// 由于开启 virtualHost=true 之后,selectComponent 无法获取,暂时在单测关闭 virtualHost
const path = require('path');
const babelJest = require('babel-jest');

Expand Down
2 changes: 1 addition & 1 deletion tdesign-site/site/docs/custom-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ page {
}
```

> 目前仅有部分组件支持自定义主题,支持的组件在其文档有陈列对应的 CSS Varialbes,可以访问 [tab-bar-item.less](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/tab-bar-item/tab-bar-item.less)
> 目前仅有部分组件支持自定义主题,支持的组件在其文档有陈列对应的 CSS Variables,可以访问 [tab-bar-item.less](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/tab-bar-item/tab-bar-item.less)
4 changes: 2 additions & 2 deletions tdesign-site/site/plugin-tdoc/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let demoCodesImports: Record<string, string> = {};

export default {
before({ source, file, md }: any) {
const resouceDir = path.dirname(file);
const resourceDir = path.dirname(file);
const reg = file.match(/src\/(\S*)(?=\/\S*.md)/);
const name = reg && reg[1];
demoCodesImports = {};
Expand All @@ -23,7 +23,7 @@ export default {

// 替换成对应 demo 文件
source = source.replace(/{{\s+(.+)\s+}}/g, (_: string, demoDirName: string) => {
const demoPath = path.resolve(resouceDir, `./_example/${demoDirName}`);
const demoPath = path.resolve(resourceDir, `./_example/${demoDirName}`);
if (!fs.existsSync(demoPath)) {
console.log('\x1B[36m%s\x1B[0m', `${name} 组件需要实现 _example/${demoDirName} 示例!`);
return '\n<h3>DEMO (🚧建设中)...</h3>';
Expand Down

0 comments on commit 538d522

Please sign in to comment.