Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
0defa9bf
Commit
0defa9bf
authored
Jul 26, 2017
by
高洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates project-create.md
Auto commit by GitBook Editor
parent
18684b9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
168 additions
and
165 deletions
+168
-165
project-create.md
project-create.md
+3
-3
project-update.md
project-update.md
+2
-1
hlsCombobox.md
前端组件/hlsCombobox.md
+163
-161
No files found.
project-create.md
View file @
0defa9bf
...
@@ -97,11 +97,11 @@ mvn clean install -Dmaven.test.skip=true
...
@@ -97,11 +97,11 @@ mvn clean install -Dmaven.test.skip=true
在 HelParent 项目录下执行:
在 HelParent 项目录下执行:
-
MySql
-
MySql
-
`mvn process-resources -D skipLiquibaseRun=false -D db.driver=com.mysql.jdbc.Driver -D db.url=jdbc:mysql://127.0.0.1:3306/hel
_dev
-Ddb.user=hel_dev -Ddb.password=hel_dev`
-
`mvn process-resources -D skipLiquibaseRun=false -D db.driver=com.mysql.jdbc.Driver -D db.url=jdbc:mysql://127.0.0.1:3306/hel -Ddb.user=hel_dev -Ddb.password=hel_dev`
-
SqlServer
-
SqlServer
-
`mvn process-resources -D skipLiquibaseRun=false -Ddb.user=hel_dev -Ddb.password=hel_dev-D db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver -D db.url="jdbc:sqlserver://127.0.0.1:1433; DatabaseName=hel
_dev
"`
-
`mvn process-resources -D skipLiquibaseRun=false -Ddb.user=hel_dev -Ddb.password=hel_dev-D db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver -D db.url="jdbc:sqlserver://127.0.0.1:1433; DatabaseName=hel"`
-
Oracle
-
Oracle
-
`mvn process-resources -D skipLiquibaseRun=false -D db.driver=oracle.jdbc.driver.OracleDriver -D db.url=jdbc:oracle:thin:@127.0.0.1:1521:
HEL
-Ddb.user=hel_dev -Ddb.password=hel_dev
-
`mvn process-resources -D skipLiquibaseRun=false -D db.driver=oracle.jdbc.driver.OracleDriver -D db.url=jdbc:oracle:thin:@127.0.0.1:1521:
hel
-Ddb.user=hel_dev -Ddb.password=hel_dev
- 以上命令中,需要按实际情况修改 url,user,password
- 以上命令中,需要按实际情况修改 url,user,password
### 测试
### 测试
...
...
project-update.md
View file @
0defa9bf
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
> 注意
> 注意
*
如果项目中过有覆盖过HEL的xml配置文件,更新以后请注意比对有没有变化
*
如果项目中过有覆盖过HEL的xml配置文件,更新以后请注意比对有没有变化
*
新建项目默认依赖的是1.0.0-RELEASE版本的HEL,后续更新可能会涉及数据库的变化,请注意同步更新数据库
*
新建项目默认依赖的是1.0.0-RELEASE版本的HEL,后续更新可能会涉及数据库的变化,请注意同步更新数据库,同步指令如下:
`mvn process-resources -D skipLiquibaseRun=false -D db.driver=com.mysql.jdbc.Driver -D db.url=jdbc:mysql://127.0.0.1:3306/hel -Ddb.user=hel_dev -Ddb.password=hel_dev -Ddb.skipUpdateTables=sys_user,sys_function_b`
\ No newline at end of file
前端组件/hlsCombobox.md
View file @
0defa9bf
# hlsCombobox标签
# hlsCombobox标签
hlsCombobox 下拉列表组件
hlsCombobox 下拉列表组件
```
xml
```
xml
<h:
hlsCombobox
placeholder=
"hlsCombobox"
<h:
hlsCombobox
placeholder=
"hlsCombobox"
valuePrimitive=
"true"
valuePrimitive=
"true"
dataTextField=
"text"
dataTextField=
"text"
dataValueField=
"value"
dataValueField=
"value"
bind=
"enabled: isEnabled, source: comboboxSource, value:data.productId"
bind=
"enabled: isEnabled, source: comboboxSource, value:data.productId"
style=
"width: 100%;"
/>
style=
"width: 100%;"
/>
```
```
### **主要属性**
### **主要属性**
| 属性名 | 类型 |
| 属性名 | 类型 |
| --- | --- |
| --- | --- |
| animation | Boolean |
| animation | Boolean |
| autoBind | Boolean |
| autoBind | Boolean |
| autoWidth | Boolean |
| autoWidth | Boolean |
| cascadeFrom | String |
| cascadeFrom | String |
| cascadeFromField | String |
| cascadeFromField | String |
| clearButton | Boolean |
| clearButton | Boolean |
| dataSource | DataSource |
| dataSource | DataSource |
| dataTextField | String |
| dataTextField | String |
| dataValueField | String |
| dataValueField | String |
| delay | Number |
| delay | Number |
| enable | Boolean |
| enable | Boolean |
| enforceMinLength | Boolean |
| enforceMinLength | Boolean |
| filter | String |
| filter | String |
| fixedGroupTemplate | String
\|
Function |
| fixedGroupTemplate | String
\|
Function |
| footerTemplate | String
\|
Function |
| footerTemplate | String
\|
Function |
| groupTemplate | String
\|
Function |
| groupTemplate | String
\|
Function |
| height | Number |
| height | Number |
| highlightFirst | Boolean |
| highlightFirst | Boolean |
| ignoreCase | Boolean |
| ignoreCase | Boolean |
| index | Number |
| index | Number |
| minLength | Number |
| minLength | Number |
| noDataTemplate | String
\|
Function |
| noDataTemplate | String
\|
Function |
| placeholder | String |
| placeholder | String |
| suggest | Boolean |
| suggest | Boolean |
| headerTemplate | String
\|
Function |
| headerTemplate | String
\|
Function |
| template | String
\|
Function |
| template | String
\|
Function |
| text | String |
| text | String |
| value | String |
| value | String |
| valuePrimitive | Boolean |
| valuePrimitive | Boolean |
| virtual | Boolean |
| virtual | Boolean |
| change | Function |
| change | Function |
| close | Function |
| close | Function |
| dataBound | Function |
| dataBound | Function |
| filtering | Function |
| filtering | Function |
| open | Function |
| open | Function |
| select | Function |
| select | Function |
| cascade | Function |
| cascade | Function |
> 属性用法请参考KendoUI文档 [http:\/\/docs.telerik.com\/kendo-ui\/api\/javascript\/ui\/combobox](http://docs.telerik.com/kendo-ui/api/javascript/ui/combobox)
> 属性用法请参考KendoUI文档 [http:\/\/docs.telerik.com\/kendo-ui\/api\/javascript\/ui\/combobox](http://docs.telerik.com/kendo-ui/api/javascript/ui/combobox)
### **用法示例**
### **用法示例**
```
javascript
```
javascript
//定义数据源DataSource
//定义数据源DataSource
var
dataSource
=
new
kendo
.
data
.
DataSource
({
var
dataSource
=
new
kendo
.
data
.
DataSource
({
data
:[
"one"
,
"two"
]
data
:[
"one"
,
"two"
]
});
});
//下拉列表渲染函数
//下拉列表渲染函数
var
itemTemplate
=
function
(){
var
itemTemplate
=
function
(){
//...
//...
}
}
//选中某一个列表选项后触发
//选中某一个列表选项后触发
function
onComboboxChange
(
e
){
function
onComboboxChange
(
e
){
var
value
=
this
.
value
();
var
value
=
this
.
value
();
// Use the value of the widget.
// Use the value of the widget.
}
}
//以上两种函数定义方法皆可
//以上两种函数定义方法皆可
```
```
```
xml
```
xml
<h:
hlsCombobox
id=
"hlsCombobox"
dataSource=
"dataSource"
clearButton=
"true"
placeholder=
"test"
enable=
"false"
template=
"fn:itemTemplate"
change=
"onComboboxChange"
/>
<h:
hlsCombobox
id=
"hlsCombobox"
dataSource=
"dataSource"
clearButton=
"true"
placeholder=
"test"
enable=
"false"
template=
"fn:itemTemplate"
change=
"onComboboxChange"
/>
```
```
> **提示:** 某些属性类型为**String \| Function** 时,表明它可以定义为字符串或者函数。因此当需要定义为Function时需要增加前缀**fn:**来区分\(例如函数template="fn:itemTemplate" \)
> **提示:** 某些属性类型为**String \| Function** 时,表明它可以定义为字符串或者函数。因此当需要定义为Function时需要增加前缀**fn:**来区分\(例如函数template="fn:itemTemplate" \)
### **主要子节点**
### **主要子节点**
*
animation
*
animation
*
popup
*
popup
*
virtual
*
virtual
### **animation**
### **animation**
主要用来定义动画效果,例如打开关闭效果
主要用来定义动画效果,例如打开关闭效果
*
open 打开效果
*
open 打开效果
*
close 关闭效果
*
close 关闭效果
| 属性 | 类型 |
| 属性 | 类型 |
| --- | --- |
| --- | --- |
| effects | String |
| effects | String |
| duration | Number |
| duration | Number |
```
xml
```
xml
<h:
hlsCombobox
id=
" hlsCombobox "
>
<h:
hlsCombobox
id=
" hlsCombobox "
>
<h:animation>
<h:animation>
<h:close
effects=
"zoom:out"
duration=
"300"
/>
<h:close
effects=
"zoom:out"
duration=
"300"
/>
<h:open
effects=
"zoom:in"
duration=
"300"
/>
<h:open
effects=
"zoom:in"
duration=
"300"
/>
</h:animation>
</h:animation>
<
/h: hlsCombobox >
<
/h: hlsCombobox >
```
```
### **popup**
### **popup**
弹出窗口设置
弹出窗口设置
| 属性 | 类型 |
| 属性 | 类型 |
| --- | --- |
| --- | --- |
| appendTo | String |
| appendTo | String |
| origin | String |
| origin | String |
| position | String |
| position | String |
```
xml
```
xml
<h:
hlsCombobox
id=
"combobox"
>
<h:
hlsCombobox
id=
"combobox"
>
<h:popup
appendTo=
"container"
origin=
"top left"
position=
"top left"
/>
<h:popup
appendTo=
"container"
origin=
"top left"
position=
"top left"
/>
<
/h: hlsCombobox >
<
/h: hlsCombobox >
```
```
### **virtual**
### **virtual**
动态加载相关设置
动态加载相关设置
| 属性 | 类型 |
| 属性 | 类型 |
| --- | --- |
| --- | --- |
| itemHeight | Number |
| itemHeight | Number |
| mapValueTo | String |
| mapValueTo | String |
| valueMapper | Function |
| valueMapper | Function |
```
javascript
```
javascript
function
valueMapper
(){
function
valueMapper
(){
$
.
ajax
({
$
.
ajax
({
url
:
"http://demos.telerik.com/kendo-ui/service/Orders/ValueMapper"
,
url
:
"http://demos.telerik.com/kendo-ui/service/Orders/ValueMapper"
,
type
:
"GET"
,
type
:
"GET"
,
dataType
:
"jsonp"
,
dataType
:
"jsonp"
,
data
:
convertValues
(
options
.
value
),
data
:
convertValues
(
options
.
value
),
success
:
function
(
data
)
{
success
:
function
(
data
)
{
//the **data** is either index or array of indices.
//the **data** is either index or array of indices.
//Example:
//Example:
// 10258 -> 10 (index in the Orders collection)
// 10258 -> 10 (index in the Orders collection)
// [10258, 10261] -> [10, 14] (indices in the Orders collection)
// [10258, 10261] -> [10, 14] (indices in the Orders collection)
options
.
success
(
data
);
options
.
success
(
data
);
}
}
})
})
}
}
```
```
```
xml
```
xml
<h:
hlsCombobox
id=
"combobox"
>
<h:
hlsCombobox
id=
"combobox"
>
<h:virtual
itemHeight =
"20"
mapValueTo=
"index"
valueMapper=
"valueMapper"
/>
<h:virtual
itemHeight =
"20"
mapValueTo=
"index"
valueMapper=
"valueMapper"
/>
<
/h: hlsCombobox >
<
/h: hlsCombobox >
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment