parent
68249a0458
commit
b16b5893c8
17 changed files with 267 additions and 165 deletions
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 24 KiB |
@ -0,0 +1,48 @@ |
||||
export default { |
||||
HK: { |
||||
dashboard: { |
||||
name: 'Dashboard', |
||||
workplace: {name: '工作台'}, |
||||
analysis: {name: '分析頁'} |
||||
}, |
||||
form: { |
||||
name: '表單頁', |
||||
basic: {name: '基礎表單'}, |
||||
step: {name: '分步表單'}, |
||||
advance: {name: '分步表單'} |
||||
}, |
||||
list: { |
||||
name: '列表頁', |
||||
query: {name: '查詢表格'}, |
||||
primary: {name: '標準列表'}, |
||||
card: {name: '卡片列表'}, |
||||
search: { |
||||
name: '搜索列表', |
||||
article: {name: '文章'}, |
||||
application: {name: '應用'}, |
||||
project: {name: '項目'} |
||||
} |
||||
}, |
||||
details: { |
||||
name: '詳情頁', |
||||
basic: {name: '基礎詳情頁'}, |
||||
advance: {name: '高級詳情頁'} |
||||
}, |
||||
result: { |
||||
name: '結果頁', |
||||
success: {name: '成功'}, |
||||
error: {name: '失敗'} |
||||
}, |
||||
exception: { |
||||
name: '異常頁', |
||||
404: {name: '404'}, |
||||
403: {name: '403'}, |
||||
500: {name: '500'} |
||||
}, |
||||
components: { |
||||
name: '小組件', |
||||
taskCard: {name: '任務卡片'}, |
||||
palette: {name: '顏色複選框'} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,24 @@ |
||||
/** |
||||
* 给对象注入属性 |
||||
* @param keys 属性key数组, 如 keys = ['config', 'path'] , 则会给对象注入 object.config.path 的属性 |
||||
* @param value 属性值 |
||||
* @returns {Object} |
||||
*/ |
||||
Object.defineProperty(Object.prototype, 'assignProps', { |
||||
writable: false, |
||||
enumerable: false, |
||||
configurable: true, |
||||
value: function (keys, value) { |
||||
let props = this |
||||
for (let i = 0; i < keys.length; i++) { |
||||
let key = keys[i] |
||||
if (i == keys.length - 1) { |
||||
props[key] = value |
||||
} else { |
||||
props[key] = props[key] == undefined ? {} : props[key] |
||||
props = props[key] |
||||
} |
||||
} |
||||
return this |
||||
} |
||||
}) |
@ -1,48 +0,0 @@ |
||||
.textOverflow() { |
||||
overflow: hidden; |
||||
text-overflow: ellipsis; |
||||
word-break: break-all; |
||||
white-space: nowrap; |
||||
} |
||||
|
||||
.textOverflowMulti(@line: 3, @bg: #fff) { |
||||
overflow: hidden; |
||||
position: relative; |
||||
line-height: 1.5em; |
||||
max-height: @line * 1.5em; |
||||
text-align: justify; |
||||
margin-right: -1em; |
||||
padding-right: 1em; |
||||
&:before { |
||||
background: @bg; |
||||
content: '...'; |
||||
padding: 0 1px; |
||||
position: absolute; |
||||
right: 14px; |
||||
bottom: 0; |
||||
} |
||||
&:after { |
||||
background: white; |
||||
content: ''; |
||||
margin-top: 0.2em; |
||||
position: absolute; |
||||
right: 14px; |
||||
width: 1em; |
||||
height: 1em; |
||||
} |
||||
} |
||||
|
||||
.clearfix() { |
||||
zoom: 1; |
||||
&:before, |
||||
&:after { |
||||
content: ' '; |
||||
display: table; |
||||
} |
||||
&:after { |
||||
clear: both; |
||||
visibility: hidden; |
||||
font-size: 0; |
||||
height: 0; |
||||
} |
||||
} |
Loading…
Reference in new issue