Skip to content

Commit

Permalink
feat: add config module for x6-next (#1945)
Browse files Browse the repository at this point in the history
* docs: 📚️ add alt for img in readme

* feat: ✨ add configs module for x6-next
  • Loading branch information
NewByVector authored Mar 27, 2022
1 parent 5913369 commit 075db14
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
简体中文 | [English](/README.en-us.md)

<p align="center"><img src="/flow.svg"></p>
<p align="center"><img alt="flow" src="/flow.svg"></p>

<p align="center"><strong>X6 是 AntV 旗下的图编辑引擎</strong></p>
<p align="center"><strong>提供简单易用的节点定制能力和开箱即用的交互组件,方便我们快速搭建流程图、DAG 图、ER 图等图应用</strong></p>
Expand Down
2 changes: 1 addition & 1 deletion packages/x6-next/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
简体中文 | [English](/README.en-us.md)

<p align="center"><img src="/flow.svg"></p>
<p align="center"><img alt="flow" src="/flow.svg"></p>

<p align="center"><strong>X6 是 AntV 旗下的图编辑引擎</strong></p>
<p align="center"><strong>提供简单易用的节点定制能力和开箱即用的交互组件,方便我们快速搭建流程图、DAG 图、ER 图等图应用</strong></p>
Expand Down
2 changes: 1 addition & 1 deletion packages/x6-next/__tests__/version.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from '../src/version'
import { version } from '../src/global'

describe('version', () => {
it('should match the `version` field of package.json', () => {
Expand Down
5 changes: 5 additions & 0 deletions packages/x6-next/src/global/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const Config = {
prefixCls: 'x6',
autoInsertCSS: true,
useCSSSelector: true,
}
2 changes: 2 additions & 0 deletions packages/x6-next/src/global/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './config'
export * from './version'
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/x6-next/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './version'
export * from './global'

0 comments on commit 075db14

Please sign in to comment.