Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion-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
tangfh
fashion-ui
Commits
5cea3951
Commit
5cea3951
authored
Nov 01, 2024
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
4112ad25
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
168 additions
and
2 deletions
+168
-2
index.vue
pages/index/index.vue
+10
-2
changelog.md
uni_modules/f-checkbox-txt/changelog.md
+8
-0
f-checkbox-txt.vue
...checkbox-txt/components/f-checkbox-txt/f-checkbox-txt.vue
+66
-0
package.json
uni_modules/f-checkbox-txt/package.json
+83
-0
readme.md
uni_modules/f-checkbox-txt/readme.md
+1
-0
No files found.
pages/index/index.vue
View file @
5cea3951
...
@@ -3,8 +3,11 @@
...
@@ -3,8 +3,11 @@
<f-status-view
v-if=
"statusViewUI.isShow"
:status=
"statusViewUI.status"
:style=
"statusViewStyle"
<f-status-view
v-if=
"statusViewUI.isShow"
:status=
"statusViewUI.status"
:style=
"statusViewStyle"
@
tap=
"onStatusViewClick"
></f-status-view>
@
tap=
"onStatusViewClick"
></f-status-view>
<view
class=
"v-row"
>
<view
class=
"v-row"
>
<f-date-time-picker
style=
"width: 100%;"
mode=
"datetime"
returnType=
"yyyy-MM-dd"
@
change=
"onPopDatetimePickerChange"
<f-checkbox-txt
:isEnable=
"isEnable"
@
click=
"onCheckboxTxtClick"
></f-checkbox-txt>
@
dismiss=
"onPopDatatimePickerDismiss"
></f-date-time-picker>
</view>
<view
class=
"v-row"
>
<f-date-time-picker
style=
"width: 100%;"
mode=
"datetime"
returnType=
"yyyy-MM-dd"
@
change=
"onPopDatetimePickerChange"
@
dismiss=
"onPopDatatimePickerDismiss"
></f-date-time-picker>
</view>
</view>
<view
class=
"v-row"
>
<view
class=
"v-row"
>
<f-avatar-edit
:avatar=
"avatar"
@
onAvatarSelected=
"onAvatarSelected"
@
click=
"onAvatarClick"
<f-avatar-edit
:avatar=
"avatar"
@
onAvatarSelected=
"onAvatarSelected"
@
click=
"onAvatarClick"
...
@@ -103,6 +106,7 @@
...
@@ -103,6 +106,7 @@
data
()
{
data
()
{
return
{
return
{
title
:
'fashion-ui'
,
title
:
'fashion-ui'
,
isEnable
:
false
,
avatar
:
"/static/logo.png"
,
avatar
:
"/static/logo.png"
,
statusViewStyle
:
{
statusViewStyle
:
{
width
:
""
,
width
:
""
,
...
@@ -174,6 +178,10 @@
...
@@ -174,6 +178,10 @@
onAvatarSelected
(
res
)
{
onAvatarSelected
(
res
)
{
this
.
avatar
=
res
[
0
]
this
.
avatar
=
res
[
0
]
},
},
onCheckboxTxtClick
()
{
console
.
log
(
"hello"
);
this
.
isEnable
=
!
this
.
isEnable
},
onAvatarClick
(
res
)
{
onAvatarClick
(
res
)
{
},
},
...
...
uni_modules/f-checkbox-txt/changelog.md
0 → 100644
View file @
5cea3951
## 1.0.3(2024-11-01)
1.
0.3
## 1.0.2(2024-11-01)
1.
0.2
## 1.0.1(2024-11-01)
1.
0.1
## 1.0.0(2024-11-01)
1.
0.0
uni_modules/f-checkbox-txt/components/f-checkbox-txt/f-checkbox-txt.vue
0 → 100644
View file @
5cea3951
<
template
>
<view
class=
"v-parent flex-row row-center-v"
:style=
"
{'background-color': getBgColor(), 'padding': getPadding(), 'border': getBorder()}" @click="onClick">
<image
class=
"i-circle"
v-if=
"!isEnable"
style=
"margin-right: 2rpx;"
></image>
<text
class=
"t-txt"
:style=
"
{'color': getColor()}">
{{
isEnable
?
txtEnable
:
txtDisable
}}
</text>
<image
class=
"i-circle"
v-if=
"isEnable"
style=
"margin-left: 2rpx;"
></image>
</view>
</
template
>
<
script
>
export
default
{
name
:
'f-checkbox-txt'
,
props
:
{
txtEnable
:
{
type
:
String
,
default
:
"开启"
},
txtDisable
:
{
type
:
String
,
default
:
"禁用"
},
isEnable
:
{
type
:
Boolean
,
default
:
"false"
}
},
methods
:
{
getColor
()
{
return
this
.
isEnable
?
"#333"
:
"#999"
},
getBgColor
()
{
return
this
.
isEnable
?
"#F8C514"
:
"#fff"
},
getPadding
()
{
return
this
.
isEnable
?
"2rpx 2rpx 2rpx 10rpx"
:
"2rpx 10rpx 2rpx 2rpx"
},
getBorder
()
{
return
this
.
isEnable
?
"1rpx solid #F8C514"
:
"1rpx solid #ededed"
},
onClick
()
{
this
.
$emit
(
"click"
)
}
},
created
()
{
}
}
</
script
>
<
style
>
.v-parent
{
height
:
36
rpx
;
border-radius
:
36
rpx
;
padding
:
2
rpx
;
}
.i-circle
{
width
:
34
rpx
;
height
:
34
rpx
;
background-color
:
white
;
border-radius
:
34
rpx
;
box-shadow
:
0px
0px
2px
0px
rgba
(
0
,
0
,
0
,
0.5
);
}
.t-txt
{
font-size
:
26
rpx
;
}
</
style
>
\ No newline at end of file
uni_modules/f-checkbox-txt/package.json
0 → 100644
View file @
5cea3951
{
"id"
:
"f-checkbox-txt"
,
"displayName"
:
"f-checkbox-txt"
,
"version"
:
"1.0.3"
,
"description"
:
"带文本checkbox"
,
"keywords"
:
[
"带文本checkbox"
],
"repository"
:
"http://git.guoguodz.com/tangfh/fashion-ui.git"
,
"engines"
:
{
"HBuilderX"
:
"^3.8.0"
},
"dcloudext"
:
{
"type"
:
"component-vue"
,
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
},
"sourcecode"
:
{
"price"
:
"0.00"
}
},
"contact"
:
{
"qq"
:
""
},
"declaration"
:
{
"ads"
:
"无"
,
"data"
:
"插件不采集任何数据"
,
"permissions"
:
"无"
},
"npmurl"
:
""
},
"uni_modules"
:
{
"dependencies"
:
[],
"encrypt"
:
[],
"platforms"
:
{
"cloud"
:
{
"tcb"
:
"y"
,
"aliyun"
:
"y"
,
"alipay"
:
"y"
},
"client"
:
{
"Vue"
:
{
"vue2"
:
"y"
,
"vue3"
:
"y"
},
"App"
:
{
"app-vue"
:
"u"
,
"app-nvue"
:
"u"
,
"app-uvue"
:
"u"
},
"H5-mobile"
:
{
"Safari"
:
"u"
,
"Android Browser"
:
"u"
,
"微信浏览器(Android)"
:
"u"
,
"QQ浏览器(Android)"
:
"u"
},
"H5-pc"
:
{
"Chrome"
:
"u"
,
"IE"
:
"u"
,
"Edge"
:
"u"
,
"Firefox"
:
"u"
,
"Safari"
:
"u"
},
"小程序"
:
{
"微信"
:
"u"
,
"阿里"
:
"u"
,
"百度"
:
"u"
,
"字节跳动"
:
"u"
,
"QQ"
:
"u"
,
"钉钉"
:
"u"
,
"快手"
:
"u"
,
"飞书"
:
"u"
,
"京东"
:
"u"
},
"快应用"
:
{
"华为"
:
"u"
,
"联盟"
:
"u"
}
}
}
}
}
\ No newline at end of file
uni_modules/f-checkbox-txt/readme.md
0 → 100644
View file @
5cea3951
# f-checkbox-txt
\ No newline at end of file
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