-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from vipshop/develop
feat: v0.21.1
- Loading branch information
Showing
75 changed files
with
860 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,4 @@ package-lock.json | |
/packages/*/lib | ||
/material-list.json | ||
/test/_coverage | ||
.scannerwork/ | ||
/plugins/vscode/*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
/backup | ||
package-lock.json | ||
dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
# 示例列表 | ||
|
||
## router | ||
## PC端示例本地开发调试 | ||
``` | ||
cd ./examples/router | ||
cd ./router | ||
npm i | ||
npm run dev | ||
``` | ||
- npm 集成 | ||
- router | ||
- 完整示例 | ||
- 完整示例 | ||
- dev | ||
- 本地开发dev环境 | ||
|
||
## 移动端示例本地开发调试 | ||
``` | ||
cd ./mobile | ||
npm i | ||
npm run dev | ||
``` | ||
|
||
## unpkg本地开发调试 | ||
``` | ||
cd ./router | ||
npm i | ||
npm run dev | ||
``` | ||
打开 [http://localhost:9526/examples/unpkg/script.html]() | ||
|
||
- 通过脚本集成示例 | ||
- script.html | ||
- 通过脚本集成 | ||
- all.html | ||
- resources、render集中配置在一个block示例 | ||
|
20 changes: 20 additions & 0 deletions
20
examples/router/src/ams-config/cases-block/dragimage-updown.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import ams from '@ams-team/ams'; | ||
|
||
ams.block('dragimage-updown', { | ||
blocks: { | ||
dragImagePicUpDownBlock: { | ||
type: 'drag-image-up-down', | ||
ctx: 'view', | ||
options: { | ||
url: 'http://d.vpimg1.com/upcb/2019/11/14/158/ias_234c5f37ab34a15253340464c9ca0d7b.png', | ||
width: 768, // 底图宽度 | ||
height: 368, // 底图高度 | ||
cutHeight: 200, // 需要裁剪的尺寸高度 | ||
imgHeight: '368px', // 图片展示宽度 | ||
top: 10, // 需要裁剪的区域离上面距离 | ||
ratio: 0.04, // 移动速度 | ||
showFrame: true // 是否展示裁剪框 | ||
} | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import ams from '@ams-team/ams'; | ||
|
||
ams.block('drawer', { | ||
blocks: { | ||
'drawer1': { | ||
type: 'component', | ||
operations: { | ||
drawer1: { | ||
type: 'button', | ||
label: '示例1', | ||
event: 'drawerPop.show' | ||
} | ||
} | ||
}, | ||
'drawerPop': { | ||
type: 'drawer', | ||
data: { | ||
title: '普通示例1', | ||
visible: false | ||
} | ||
} | ||
|
||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.