Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c058048f
authored
Dec 01, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营销:适配商城装修组件【用户资产】
parent
2c1edfa7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
src/components/DiyEditor/components/mobile/UserWallet/config.ts
+23
-0
src/components/DiyEditor/components/mobile/UserWallet/index.vue
+15
-0
src/components/DiyEditor/components/mobile/UserWallet/property.vue
+17
-0
No files found.
src/components/DiyEditor/components/mobile/UserWallet/config.ts
0 → 100644
View file @
c058048f
import
{
ComponentStyle
,
DiyComponent
}
from
'@/components/DiyEditor/util'
/** 用户资产属性 */
export
interface
UserWalletProperty
{
// 组件样式
style
:
ComponentStyle
}
// 定义组件
export
const
component
=
{
id
:
'UserWallet'
,
name
:
'用户资产'
,
icon
:
'ep:wallet-filled'
,
property
:
{
style
:
{
bgType
:
'color'
,
bgColor
:
''
,
marginLeft
:
8
,
marginRight
:
8
,
marginBottom
:
8
}
as
ComponentStyle
}
}
as
DiyComponent
<
UserWalletProperty
>
src/components/DiyEditor/components/mobile/UserWallet/index.vue
0 → 100644
View file @
c058048f
<
template
>
<el-image
src=
"https://shopro.sheepjs.com/admin/static/images/shop/decorate/couponCardStyle.png"
/>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
UserWalletProperty
}
from
'./config'
/** 用户资产 */
defineOptions
({
name
:
'UserWallet'
})
// 定义属性
defineProps
<
{
property
:
UserWalletProperty
}
>
()
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
src/components/DiyEditor/components/mobile/UserWallet/property.vue
0 → 100644
View file @
c058048f
<
template
>
<ComponentContainerProperty
v-model=
"formData.style"
/>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
UserWalletProperty
}
from
'./config'
import
{
usePropertyForm
}
from
'@/components/DiyEditor/util'
// 用户资产属性面板
defineOptions
({
name
:
'UserWalletProperty'
})
const
props
=
defineProps
<
{
modelValue
:
UserWalletProperty
}
>
()
const
emit
=
defineEmits
([
'update:modelValue'
])
const
{
formData
}
=
usePropertyForm
(
props
.
modelValue
,
emit
)
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
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