Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-04-13 15:30:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f7fe822205e8f3f6cc36970bc81ba7cf4c7184d2
f7fe8222
1 parent
02ab19cd
✨ feat(签名控件): 样式和功能调整
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
components.d.ts
package.json
src/components/SignField/index.vue
src/hooks/useComponentType.js
yarn.lock
components.d.ts
View file @
f7fe822
...
...
@@ -31,6 +31,7 @@ declare module '@vue/runtime-core' {
NutCell
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Cell'
]
NutCheckbox
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Checkbox'
]
NutCheckboxGroup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'CheckboxGroup'
]
NutCol
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Col'
]
NutConfigProvider
:
typeof
import
(
'@nutui/nutui-taro'
)[
'ConfigProvider'
]
NutDatePicker
:
typeof
import
(
'@nutui/nutui-taro'
)[
'DatePicker'
]
NutDialog
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Dialog'
]
...
...
@@ -46,6 +47,8 @@ declare module '@vue/runtime-core' {
NutRadio
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Radio'
]
NutRadioGroup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'RadioGroup'
]
NutRate
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Rate'
]
NutRow
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Row'
]
NutSignature
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Signature'
]
NutSwiper
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Swiper'
]
NutSwiperItem
:
typeof
import
(
'@nutui/nutui-taro'
)[
'SwiperItem'
]
NutTextarea
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Textarea'
]
...
...
package.json
View file @
f7fe822
...
...
@@ -40,7 +40,7 @@
"@nutui/icons-vue-taro"
:
"^0.0.9"
,
"@nutui/nutui-taro"
:
"^4.0.5"
,
"@tarojs/components"
:
"3.6.2"
,
"@tarojs/extend"
:
"^
3.6.2"
,
"@tarojs/extend"
:
"
3.6.2"
,
"@tarojs/helper"
:
"3.6.2"
,
"@tarojs/plugin-framework-vue3"
:
"3.6.2"
,
"@tarojs/plugin-html"
:
"3.6.2"
,
...
...
@@ -59,10 +59,13 @@
"axios-miniprogram"
:
"^2.0.0-rc-2"
,
"browser-md5-file"
:
"^1.1.1"
,
"dayjs"
:
"^1.11.7"
,
"js-sha1"
:
"^0.6.0"
,
"pinia"
:
"2.0.10"
,
"taro-plugin-pinia"
:
"^1.0.0"
,
"taro-plugin-style-resource"
:
"^0.1.9"
,
"uuid"
:
"^9.0.0"
,
"vue"
:
"^3.0.0"
,
"vue-esign"
:
"^1.1.4"
,
"weixin-js-sdk"
:
"^1.6.0"
},
"devDependencies"
:
{
...
...
src/components/SignField/index.vue
View file @
f7fe822
This diff is collapsed. Click to expand it.
src/hooks/useComponentType.js
View file @
f7fe822
...
...
@@ -12,7 +12,7 @@ import ImageUploaderField from '@/components/ImageUploaderField/index.vue'
import
FileUploaderField
from
'@/components/FileUploaderField/index.vue'
import
PhoneField
from
'@/components/PhoneField/index.vue'
import
EmailField
from
'@/components/EmailField/index.vue'
//
import SignField from '@/components/SignField/index.vue'
import
SignField
from
'@/components/SignField/index.vue'
import
RatePickerField
from
'@/components/RatePickerField/index.vue'
// import CalendarField from '@/components/CalendarField/index.vue'
import
IdentityField
from
'@/components/IdentityField/index.vue'
...
...
@@ -119,10 +119,10 @@ export function createComponentType(data) {
item
.
name
=
item
.
key
item
.
component
=
EmailField
}
//
if (item.component_props.tag === 'sign') {
//
item.name = item.key
//
item.component = SignField
//
}
if
(
item
.
component_props
.
tag
===
'sign'
)
{
item
.
name
=
item
.
key
item
.
component
=
SignField
}
if
(
item
.
component_props
.
tag
===
'rate'
)
{
item
.
name
=
item
.
key
item
.
component
=
RatePickerField
...
...
yarn.lock
View file @
f7fe822
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment