Skip to content

Commit

Permalink
fix: 将文档中kktrc替换为kktprc
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Mar 27, 2023
1 parent bf6c178 commit af8d8fb
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

严格遵循 [`Semantic Versioning 2.0.0`](http://semver.org/lang/zh-CN/) 语义化版本规范。

## 6.0.0

- @kkt/pro
- 🐞 将kkt替换为@kkt/pro

## 5.3.20(未发版)

- @uiw-admin/config
Expand Down
1 change: 1 addition & 0 deletions examples/base/config/.kktprc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export default {
TOKEN_NAME: 'aaa',
TOKEN_STORAGE: 'bbb',
},
publicPath: './',
}
13 changes: 11 additions & 2 deletions examples/website/src/menus.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
[
{
"label": "快速开始",
"divider": true,
"label": "入门"
},
{
"label": "开始使用",
"path": "/quick-start"
},
{
"label": "更新日志",
"target": "__blank",
"path": "https://github.com/uiwjs/uiw-admin/blob/master/CHANGELOG.md"
},
{
"label": "@kkt/pro",
"target": "__blank",
"path": "https://kktjs.github.io/kkt-pro/#/doc/kktp"
},
{
"divider": true,
"label": "示例"
},
{
"label": "Example 示例",
"label": "Uiw Admin 示例",
"path": "/example"
},
{
Expand Down
4 changes: 2 additions & 2 deletions packages/authorized/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## 何时使用

当项目需要根据权限判断组件是否展示
使用组件时,请在 `.kktrc.js`文件中配置全局变量(`define`)中`AUTH=true`
使用组件时,请在 `.kktprc.js`文件中配置全局变量(`define`)中`AUTH=true`

```diff
import config from "@uiw-admin/config"
Expand Down Expand Up @@ -96,7 +96,7 @@ export default Demos

window.AUTH = true // 是否开启权限校验
window.STORAGE = "session" // 本地存储数据方式
// 上面这两种变量可以在`.kktrc.js`文件中配置全局变量(`define`)
// 上面这两种变量可以在`.kktprc.js`文件中配置全局变量(`define`)
sessionStorage.setItem('auth',JSON.stringify(["/dom/save","/dom/edit"])) // 权限数据
// 以上数据只能为了能正常渲染设置的变量

Expand Down
4 changes: 2 additions & 2 deletions packages/basic-layouts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export default BasicLayoutScreen

**菜单搜索功能**

在根目录`.kktrc.js`文件配置 `SEARCH_MENU` 参数,类型:`boolen` 默认`true`
在根目录`.kktprc.js`文件配置 `SEARCH_MENU` 参数,类型:`boolen` 默认`true`

```ts
// .kktrc.js
// .kktprc.js
import config from "@uiw-admin/config"
export default config({
define:{
Expand Down
2 changes: 1 addition & 1 deletion packages/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://img.shields.io/npm/v/@uiw-admin/config.svg?label=@uiw-admin/config)](https://www.npmjs.com/package/@uiw-admin/config)

简化 `.kktrc` 配置,默认集成 `@uiw-admin/plugins``@kkt/less-modules``@kkt/raw-modules``@kkt/scope-plugin-options` 依赖包。
简化 `.kktprc` 配置,默认集成 `@uiw-admin/plugins``@kkt/less-modules``@kkt/raw-modules``@kkt/scope-plugin-options` 依赖包。
其他配置查询[`kkt`](https://github.com/kktjs/kkt)

## 安装
Expand Down
2 changes: 1 addition & 1 deletion packages/uiw-admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ UIW Admin Project
[![npm version](https://img.shields.io/npm/v/uiw-admin.svg)](https://www.npmjs.com/package/uiw-admin)
[![npm unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/uiw-admin/file/README.md)

一个基于 [uiw](https://github.com/uiwjs/uiw/)[kkt](https://github.com/kktjs/kkt) 的初始级别项目。
一个基于 [uiw](https://github.com/uiwjs/uiw/)[@kkt/pro](https://github.com/kktjs/kkt-pro) 的初始级别项目。

## 👀 预览

Expand Down

0 comments on commit af8d8fb

Please sign in to comment.