Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
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
easyUI
hls-easy-ui
Commits
14e90b9d
Commit
14e90b9d
authored
Aug 16, 2024
by
王纵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组件部分兼容vue3修改
parent
565b1d5f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
24 deletions
+51
-24
utils.js
build/utils.js
+1
-1
webpack.base.conf.js
build/webpack.base.conf.js
+0
-1
DUrl.vue
src/Dynamic/ConfigRenderComponent/DForm/FormItem/DUrl.vue
+3
-4
index.vue
src/Dynamic/ConfigRenderComponent/QueryForm/index.vue
+2
-2
readme.md
src/Dynamic/readme.md
+25
-0
hlsHttp.js
src/Dynamic/utils/hlsHttp.js
+20
-16
vars.less
src/Dynamic/vars.less
+0
-0
No files found.
build/utils.js
View file @
14e90b9d
...
...
@@ -5,7 +5,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
const
pkg
=
require
(
'../package.json'
)
const
myTheme
=
path
.
resolve
(
__dirname
,
"../src/
global
.less"
);
const
myTheme
=
path
.
resolve
(
__dirname
,
"../src/
Dynamic/vars
.less"
);
console
.
log
(
'__dirname'
,
__dirname
,
myTheme
)
...
...
build/webpack.base.conf.js
View file @
14e90b9d
...
...
@@ -9,7 +9,6 @@ function resolve (dir) {
return
path
.
join
(
__dirname
,
'..'
,
dir
)
}
const
myTheme
=
path
.
resolve
(
__dirname
,
"./src/global.less"
);
let
webpackConfig
=
{
context
:
path
.
resolve
(
__dirname
,
'../'
),
...
...
src/Dynamic/ConfigRenderComponent/DForm/FormItem/DUrl.vue
View file @
14e90b9d
...
...
@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-08-01 09:55:12
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-08-1
4 17:40:37
* @LastEditTime: 2024-08-1
6 15:27:59
* @Version: 1.0.0
* @Description: 动态渲染-超链接组件
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -10,7 +10,7 @@
<
template
>
<van-cell
center
class=
"d-form-item d-url"
:required=
"required"
>
<d-label
:label=
"label"
:help=
"help"
slot=
"title"
/>
<d-custom-render
<d-custom-render
:getData=
"getCurrentRecord"
:renderer=
"renderer"
:fieldConfig=
"fieldConfig"
...
...
@@ -19,12 +19,11 @@
<img
src=
"../../../assets/url-icon.png"
alt=
""
class=
"right-icon"
/>
<a>
{{
value
}}
</a>
</div>
</d-custom-render>
</d-custom-render>
<!--
<fragment
v-else
>
<img
src=
"../../../assets/url-icon.png"
alt=
""
class=
"right-icon"
/>
<a>
{{
value
}}
</a>
</fragment>
-->
</div>
</van-cell>
</
template
>
...
...
src/Dynamic/ConfigRenderComponent/QueryForm/index.vue
View file @
14e90b9d
...
...
@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-29 10:51:56
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-08-16 1
0:13:35
* @LastEditTime: 2024-08-16 1
5:15:24
* @Version: 1.0.0
* @Description: 查询表单渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -45,7 +45,7 @@
import
{
Search
,
Icon
,
Popup
,
Button
}
from
'vant'
;
import
DForm
from
'../DForm'
;
import
EventBus
from
'../../utils/eventBus'
;
import
{
isNull
,
isUndefined
}
from
'
../../../../packages
'
;
import
{
isNull
,
isUndefined
}
from
'
lodash
'
;
export
default
{
name
:
'QueryForm'
,
...
...
src/Dynamic/readme.md
0 → 100644
View file @
14e90b9d
<!--
*
@Author: zong.wang01@hand-china.com
*
@Date: 2024-08-16 14:40:38
*
@LastEditors: zong.wang01@hand-china.com
*
@LastEditTime: 2024-08-16 14:43:54
*
@Version: 1.0.0
*
@Description:
*
@Copyright: Copyright (c) 2021, Hand-RongJing
-->
# 低代码组件说明
### 需要添加的依赖
"less-loader": "5.0.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-preset-vue": "^2.0.2",
"better-scroll": "1.15.1",
"lodash": "^4.17.21",
"vant": "^2.13.2",
"vue": "^2.5.2",
"vue-fragment": "^1.6.0",
### .babelrc
"plugins":
[
"transform-runtime", "transform-vue-jsx"
]
\ No newline at end of file
src/Dynamic/utils/hlsHttp.js
View file @
14e90b9d
...
...
@@ -2,19 +2,21 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-29 16:36:23
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-08-1
0 00:00:58
* @LastEditTime: 2024-08-1
6 15:50:20
* @Version: 1.0.0
* @Description:
* @Copyright: Copyright (c) 2021, Hand-RongJing
*/
// 引入axios
import
axios
from
'axios'
import
{
hlsPopup
}
from
'../../../packages/index'
import
{
Toast
}
from
'vant'
;
import
qs
from
'qs'
let
promiseArr
=
{}
let
cancel
=
{}
const
CancelToken
=
axios
.
CancelToken
const
baseUrl
=
process
.
env
.
apiPath
const
withTokenAxios
=
axios
.
create
({
transformResponse
(
data
)
{
// 对 data 进行任意转换处理
...
...
@@ -59,10 +61,10 @@ withTokenAxios.interceptors.response.use(response => {
return
null
;
}
if
(
data
&&
data
.
failed
)
{
hlsPopup
.
hideLoading
()
//
hlsPopup.hideLoading()
const
err
=
{}
err
.
message
=
response
.
data
.
message
hlsPopup
.
showError
(
err
.
message
)
Toast
.
fail
(
err
.
message
)
throw
err
;
}
else
{
return
response
.
data
;
...
...
@@ -113,16 +115,18 @@ withTokenAxios.interceptors.response.use(response => {
err
.
message
=
'连接到服务器失败'
}
if
(
err
.
response
&&
err
.
response
.
status
===
401
)
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showPopup
({
title
:
'登录失效,重新登录'
,
onConfirm
:
()
=>
{
Toast
.
fail
(
err
.
message
)
// hlsPopup.hideLoading()
// hlsPopup.showPopup({
// title: '登录失效,重新登录',
// onConfirm: () => {
},
})
//
},
//
})
}
else
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showError
(
err
.
message
+
'<br/>'
+
(
err
.
response
.
data
?
err
.
response
.
data
.
message
:
''
))
// hlsPopup.hideLoading()
Toast
.
fail
(
err
.
message
+
'<br/>'
+
(
err
.
response
.
data
?
err
.
response
.
data
.
message
:
''
))
// hlsPopup.showError(err.message + '<br/>' + (err.response.data ? err.response.data.message : ''))
}
throw
err
;
})
...
...
@@ -152,7 +156,7 @@ export function get (url, param = {}) {
return
new
Promise
((
resolve
,
reject
)
=>
{
withTokenAxios
({
method
:
'get'
,
url
:
process
.
env
.
apiPath
+
url
,
url
:
baseUrl
+
url
,
headers
:
headers
,
params
:
param
,
}).
then
(
res
=>
{
...
...
@@ -188,7 +192,7 @@ export function post (url, param = {}) {
withTokenAxios
({
method
:
'post'
,
headers
:
headers
,
url
:
process
.
env
.
apiPath
+
url
,
url
:
baseUrl
+
url
,
data
:
param
,
}).
then
(
res
=>
{
resolve
(
res
)
...
...
@@ -218,7 +222,7 @@ export function put (url, param = {}, queryParams = {}) {
withTokenAxios
({
method
:
'put'
,
headers
:
headers
,
url
:
process
.
env
.
apiPath
+
url
,
url
:
baseUrl
+
url
,
data
:
param
,
params
:
queryParams
}).
then
(
res
=>
{
...
...
@@ -249,7 +253,7 @@ export function deletes (url, param = {}, queryParams = {}) {
withTokenAxios
({
method
:
'delete'
,
headers
:
headers
,
url
:
process
.
env
.
apiPath
+
url
,
url
:
baseUrl
+
url
,
data
:
param
,
params
:
queryParams
}).
then
(
res
=>
{
...
...
src/
global
.less
→
src/
Dynamic/vars
.less
View file @
14e90b9d
File moved
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