Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiit-liri-pc-page-div
Overview
Overview
Details
Activity
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
张伟豪
weiit-liri-pc-page-div
Commits
dac741b6
Commit
dac741b6
authored
Nov 05, 2025
by
Hao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
2d11b02d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
41 deletions
+3
-41
test/shopHome.js
+2
-33
test/shopHome.vue
+1
-8
No files found.
test/shopHome.js
View file @
dac741b6
...
...
@@ -4,37 +4,6 @@ import Antd from "ant-design-vue";
import
"ant-design-vue/dist/antd.css"
;
Vue
.
use
(
Antd
);
Vue
.
config
.
productionTip
=
false
;
let
router
=
null
;
let
instance
=
null
;
function
render
(
props
=
{})
{
const
{
container
}
=
props
;
// router = new VueRouter({
// base: window.__POWERED_BY_QIANKUN__ ? '/app-vue/' : '/',
// mode: 'history',
// routes,
// });
instance
=
new
Vue
({
new
Vue
({
render
:
(
h
)
=>
h
(
shopHome
),
}).
$mount
(
container
?
container
.
querySelector
(
'#app'
)
:
'#app'
);
}
if
(
!
window
.
__POWERED_BY_QIANKUN__
)
{
render
();
}
export
async
function
bootstrap
()
{
console
.
log
(
'[vue] vue app bootstraped'
);
}
export
async
function
mount
(
props
)
{
console
.
log
(
'[vue] props from main framework'
,
props
);
render
(
props
);
}
export
async
function
unmount
()
{
instance
.
$destroy
();
instance
.
$el
.
innerHTML
=
''
;
instance
=
null
;
router
=
null
;
}
// new Vue({
// render: (h) => h(shopHome),
// }).$mount("#app");
}).
$mount
(
"#app"
);
test/shopHome.vue
View file @
dac741b6
<
template
>
<div
id=
"app"
>
<shop-home
option=
"table"
:config=
"config"
:shopList=
"shopList"
>
<!--
<a-select
v-if=
"appCode == 'TC00'"
v-model:value=
"shopId"
placeholder=
"选择门店"
style=
"width:200px;margin-right:10px;"
:options=
"shopList"
@
change=
"shopChange"
></a-select>
-->
</shop-home>
</div>
</
template
>
...
...
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