diff --git a/.github/workflow/deploy.yml b/.github/workflow/deploy.yml
new file mode 100644
index 000000000..229071059
--- /dev/null
+++ b/.github/workflow/deploy.yml
@@ -0,0 +1,35 @@
+name: deploy
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - name: Setup Node.js
+ uses: actions/setup-node@v1
+ with:
+ node-version: 10
+ - name: NPM Install and Test
+ run: |
+ npm install
+ npm run test
+ npm run compile
+ npm run build:gh-pages
+ - name: Publish
+ uses: JS-DevTools/npm-publish@v1
+ with:
+ token: ${{ secrets.NPM_TOKEN }}
+ - name: Deploy to gh-pages
+ uses: JamesIves/github-pages-deploy-action@releases/v3
+ with:
+ ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
+ BRANCH: gh-pages
+ FOLDER: dist
diff --git a/.github/workflow/test.yml b/.github/workflow/test.yml
new file mode 100644
index 000000000..266e6433b
--- /dev/null
+++ b/.github/workflow/test.yml
@@ -0,0 +1,22 @@
+name: test
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [10.x, 12.x]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: NPM Install and Test
+ run: |
+ npm install
+ npm run test
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 699386789..f450a1c01 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,34 @@
# 更新日志
+## 2.12.0
+
+- 新增 `
{item} | - }) - } -
---|
-
-
- {cell.text || cell.value}
-
-
- |
- )
+ this.getWeeks().map((item, index) => {
+ return {item} | }) }
---|