Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Miykael_xxm
amazeui
提交
8dce6caf
A
amazeui
项目概览
Miykael_xxm
/
amazeui
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
amazeui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8dce6caf
编写于
12月 02, 2014
作者:
M
Minwe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bump Figure version
上级
821ee8d9
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
7 deletion
+10
-7
vendor/amazeui.hbs.partials.js
vendor/amazeui.hbs.partials.js
+1
-1
widget/figure/HISTORY.md
widget/figure/HISTORY.md
+4
-0
widget/figure/README.md
widget/figure/README.md
+2
-2
widget/figure/package.json
widget/figure/package.json
+1
-1
widget/figure/src/figure.hbs
widget/figure/src/figure.hbs
+1
-2
widget/figure/src/figure.js
widget/figure/src/figure.js
+1
-1
未找到文件。
vendor/amazeui.hbs.partials.js
浏览文件 @
8dce6caf
...
...
@@ -8,7 +8,7 @@
hbs
.
registerPartial
(
'
duoshuo
'
,
"
{{#this}}
\n
<div data-am-widget=
\"
duoshuo
\"
class=
\"
am-duoshuo{{#if theme}} am-duoshuo-{{theme}}{{else}} am-duoshuo-default{{/if}}{{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"
{{#if id}} id=
\"
{{id}}
\"
{{/if}} {{#if options.shortName}}data-ds-short-name=
\"
{{options.shortName}}
\"
{{/if}}>
\n
<div class=
\"
ds-thread
\"
{{#if content}}{{#each content}}{{#ifCond @key '==' 'threadKey'}} data-thread-key=
\"
{{this}}
\"
{{else}} data-{{@key}}=
\"
{{this}}
\"
{{/ifCond}}{{/each}}{{/if}}>
\n
</div>
\n
</div>
\n
{{/this}}
"
);
hbs
.
registerPartial
(
'
figure
'
,
"
{{#this}}
\n
<figure data-am-widget=
\"
figure
\"
class=
\"
am am-figure {{#if theme}}am-figure-{{theme}}{{else}}am-figure-default{{/if}} {{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"
{{#if id}}
\n
id=
\"
{{id}}
\"
{{/if}} data-am-figure=
\"
{ {{#if options.zoomAble}} pureview: '{{options.zoomAble}}'
,
\n
{{/if}} }
\"
>
\n
{{#if content.link}}<a href=
\"
{{content.link}}
\"
title=
\"
{{content.figcaption}}
\"
>{{/if}}
\n\n
{{#if options.figcaptionPosition}}
\n
{{#ifCond options.figcaptionPosition '==' 'top'}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-top
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/ifCond}}
\n
{{/if}}
\n\n
{{#if content.img}}
\n
<img src=
\"
{{content.img}}
\"
{{#if content.rel}}data-rel=
\"
{{content.rel}}
\"
{{/if}} alt=
\"
{{#if content.imgAlt}}{{content.imgAlt}}{{else}}{{content.figcaption}}{{/if}}
\"
/>
\n
{{/if}}
\n
{{#if options.figcaptionPosition}}
\n
{{#ifCond options.figcaptionPosition '==' 'bottom'}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-btm
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/ifCond}}
\n
{{else}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-btm
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/if}}
\n\n
{{#if content.link}}</a>{{/if}}
\n
</figure>
\n
{{/this}}
\n
"
);
hbs
.
registerPartial
(
'
figure
'
,
"
{{#this}}
\n
<figure data-am-widget=
\"
figure
\"
class=
\"
am am-figure {{#if theme}}am-figure-{{theme}}{{else}}am-figure-default{{/if}} {{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"
{{#if id}}
\n
id=
\"
{{id}}
\"
{{/if}} data-am-figure=
\"
{ {{#if options.zoomAble}} pureview: '{{options.zoomAble}}'{{/if}} }
\"
>
\n
{{#if content.link}}<a href=
\"
{{content.link}}
\"
title=
\"
{{content.figcaption}}
\"
>{{/if}}
\n\n
{{#if options.figcaptionPosition}}
\n
{{#ifCond options.figcaptionPosition '==' 'top'}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-top
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/ifCond}}
\n
{{/if}}
\n\n
{{#if content.img}}
\n
<img src=
\"
{{content.img}}
\"
{{#if content.rel}}data-rel=
\"
{{content.rel}}
\"
{{/if}} alt=
\"
{{#if content.imgAlt}}{{content.imgAlt}}{{else}}{{content.figcaption}}{{/if}}
\"
/>
\n
{{/if}}
\n
{{#if options.figcaptionPosition}}
\n
{{#ifCond options.figcaptionPosition '==' 'bottom'}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-btm
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/ifCond}}
\n
{{else}}
\n
{{#if content.figcaption}}
\n
<figcaption class=
\"
am-figure-capition-btm
\"
>
\n
{{content.figcaption}}
\n
</figcaption>
\n
{{/if}}
\n
{{/if}}
\n\n
{{#if content.link}}</a>{{/if}}
\n
</figure>
\n
{{/this}}
\n
"
);
hbs
.
registerPartial
(
'
footer
'
,
"
{{#this}}
\n
<footer data-am-widget=
\"
footer
\"\n
class=
\"
am-footer {{#if theme}}am-footer-{{theme}}{{else}}am-footer-default {{/if}}{{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{className}}{{/if}}
\"\n
{{#if id}}id=
\"
{{id}}
\"
{{/if}}>
\n
<div class=
\"
am-footer-switch
\"
>
\n
<span class=
\"
{{#if options.modal}}am-footer-ysp{{/if}}
\"
data-rel=
\"
mobile
\"\n
data-am-modal=
\"
{target: '#am-switch-mode'}
\"
>
\n
{{#unless content.switchName}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
Mobile
\n
{{else}}
\n
云适配版
\n
{{/ifCond}}
\n
{{else}}
\n
{{content.switchName}}
\n
{{/unless}}
\n
</span>
\n
<span class=
\"
am-footer-divider
\"
> | </span>
\n
<a id=
\"
godesktop
\"
data-rel=
\"
desktop
\"
class=
\"
am-footer-desktop
\"
href=
\"
#
\"
>
\n
{{#ifCond content.lang '==' 'en'}}
\n
Desktop
\n
{{else}}
\n
电脑版
\n
{{/ifCond}}
\n
</a>
\n
</div>
\n
<div class=
\"
am-footer-miscs {{#if options.textPosition}}am-text-left{{/if}}
\"
>
\n\n
{{#if options.techSupportCo}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
<p>Supported by {{#if options.techSupportSite}}<a href=
\"
{{options.techSupportSite}}
\"\n
title=
\"
{{options.techSupportCo}}
\"\n
target=
\"
_blank
\"
>{{{options.techSupportCo}}}</a>{{else}}{{{options.techSupportCo}}}{{/if}}
\n
.</p>
\n
{{else}}
\n
<p>由 {{#if options.techSupportSite}}<a href=
\"
{{options.techSupportSite}}
\"
title=
\"
{{options.techSupportCo}}
\"\n
target=
\"
_blank
\"
>{{{options.techSupportCo}}}</a>{{else}}{{{options.techSupportCo}}}{{/if}}
\n
提供技术支持</p>
\n
{{/ifCond}}
\n\n
{{/if}}
\n\n
{{#if content.poweredBy }}
\n
{{ content.poweredBy }}
\n
{{else}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
<p>Powered by AllMobilize.</p>
\n
{{else}}
\n
<p>云适配驱动</p>
\n
{{/ifCond}}
\n
{{/if}}
\n
{{#each content.companyInfo}}
\n
<p>{{{detail}}}</p>
\n
{{/each}}
\n
</div>
\n
</footer>
\n\n
<div id=
\"
am-footer-mode
\"\n
class=
\"
am-modal am-modal-no-btn am-switch-mode-m {{#if theme}}am-switch-mode-m-{{theme}}{{/if}}
\"
>
\n
<div class=
\"
am-modal-dialog
\"
>
\n
<div class=
\"
am-modal-hd am-modal-footer-hd
\"
>
\n
<a href=
\"
javascript:void(0)
\"
data-dismiss=
\"
modal
\"
class=
\"
am-close am-close-spin
\"
data-am-modal-close>×</a>
\n
</div>
\n
<div class=
\"
am-modal-bd
\"
>
\n
{{#ifCond content.lang '==' 'en'}}
\n
You are visiting
\n
{{else}}
\n
您正在浏览的是
\n
{{/ifCond}}
\n\n
<span class=
\"
am-switch-mode-owner
\"
>
\n
{{#if content.owner}}
\n
{{content.owner}}
\n
{{else}}
\n
云适配
\n
{{/if}}
\n
</span>
\n\n
<span class=
\"
am-switch-mode-slogan
\"
>
\n
{{#if content.slogan}}
\n
{{{content.slogan}}}
\n
{{else}}
\n
{{#ifCond content.lang '==' 'en'}}
\n
mobilized version for your device.
\n
{{else}}
\n
为您当前手机订制的移动网站。
\n
{{/ifCond}}
\n
{{/if}}
\n
</span>
\n
</div>
\n
</div>
\n
</div>
\n
{{/this}}
\n
"
);
...
...
widget/figure/HISTORY.md
浏览文件 @
8dce6caf
# Figure 更新记录
---
## v2.0.1 (2014.12.02)
-
`CHANGED`
调整 Figure 图片缩放选项。
## v2.0.0 (2014.10.30)
-
`NEW`
使用 jQuery。
...
...
widget/figure/README.md
浏览文件 @
8dce6caf
...
...
@@ -40,7 +40,7 @@ return data;
"
theme
"
:
""
,
"
options
"
:
{
"
figcaptionPosition
"
:
"
bottom
"
,
// 图标标题位置 top - 图片上方, bottom - 图片下方
"
zoomble
"
:
false
// 是否启用图片缩放功能
"
zoomble
"
:
false
// 是否启用图片缩放功能
['auto'|true|false]
},
"
content
"
:
[
{
...
...
@@ -51,4 +51,4 @@ return data;
}
]
}
```
\ No newline at end of file
```
widget/figure/package.json
浏览文件 @
8dce6caf
{
"name"
:
"figure"
,
"version"
:
"2.0.
0
"
,
"version"
:
"2.0.
1
"
,
"localName"
:
{
"en"
:
"Figure"
,
"zh-cn"
:
"单张图片"
...
...
widget/figure/src/figure.hbs
浏览文件 @
8dce6caf
{{#
this
}}
<figure
data-am-widget=
"figure"
class=
"am am-figure
{{#if
theme
}}
am-figure-
{{
theme
}}{{else}}
am-figure-default
{{/if}}
{{#if
widgetId
}}
{{
widgetId
}}{{/if}}{{#if
className
}}
{{
className
}}{{/if}}
"
{{#if
id
}}
id=
"
{{
id
}}
"
{{/if}}
data-am-figure=
"{
{{#if
options
.
zoomAble
}}
pureview: '
{{
options
.
zoomAble
}}
',
{{/if}}
}"
>
id=
"
{{
id
}}
"
{{/if}}
data-am-figure=
"{
{{#if
options
.
zoomAble
}}
pureview: '
{{
options
.
zoomAble
}}
'
{{/if}}
}"
>
{{#if
content
.
link
}}
<a
href=
"
{{
content
.
link
}}
"
title=
"
{{
content
.
figcaption
}}
"
>
{{/if}}
{{#if
options
.
figcaptionPosition
}}
...
...
widget/figure/src/figure.js
浏览文件 @
8dce6caf
...
...
@@ -42,6 +42,6 @@ $(window).on('load', function() {
});
module
.
exports
=
$
.
AMUI
.
figure
=
{
VERSION
:
'
2.0.
0
'
,
VERSION
:
'
2.0.
1
'
,
init
:
figureInit
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录