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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
89 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
{
"name"
:
"custom_form"
,
"version"
:
"1.0.0"
,
"private"
:
true
,
"description"
:
"自定义表单"
,
"templateInfo"
:
{
"name"
:
"vue3-NutUI4"
,
"typescript"
:
false
,
"css"
:
"less"
},
"scripts"
:
{
"build:weapp"
:
"taro build --type weapp"
,
"build:swan"
:
"taro build --type swan"
,
"build:alipay"
:
"taro build --type alipay"
,
"build:tt"
:
"taro build --type tt"
,
"build:h5"
:
"taro build --type h5"
,
"build:rn"
:
"taro build --type rn"
,
"build:qq"
:
"taro build --type qq"
,
"build:jd"
:
"taro build --type jd"
,
"build:quickapp"
:
"taro build --type quickapp"
,
"dev:weapp"
:
"npm run build:weapp -- --watch"
,
"dev:swan"
:
"npm run build:swan -- --watch"
,
"dev:alipay"
:
"npm run build:alipay -- --watch"
,
"dev:tt"
:
"npm run build:tt -- --watch"
,
"dev:h5"
:
"npm run build:h5 -- --watch"
,
"dev:rn"
:
"npm run build:rn -- --watch"
,
"dev:qq"
:
"npm run build:qq -- --watch"
,
"dev:jd"
:
"npm run build:jd -- --watch"
,
"dev:quickapp"
:
"npm run build:quickapp -- --watch"
},
"browserslist"
:
[
"last 3 versions"
,
"Android >= 4.1"
,
"ios >= 8"
],
"author"
:
""
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@babel/runtime"
:
"^7.7.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/helper"
:
"3.6.2"
,
"@tarojs/plugin-framework-vue3"
:
"3.6.2"
,
"@tarojs/plugin-html"
:
"3.6.2"
,
"@tarojs/plugin-http"
:
"^3.6.2"
,
"@tarojs/plugin-platform-alipay"
:
"3.6.2"
,
"@tarojs/plugin-platform-h5"
:
"3.6.2"
,
"@tarojs/plugin-platform-jd"
:
"3.6.2"
,
"@tarojs/plugin-platform-qq"
:
"3.6.2"
,
"@tarojs/plugin-platform-swan"
:
"3.6.2"
,
"@tarojs/plugin-platform-tt"
:
"3.6.2"
,
"@tarojs/plugin-platform-weapp"
:
"3.6.2"
,
"@tarojs/runtime"
:
"3.6.2"
,
"@tarojs/shared"
:
"3.6.2"
,
"@tarojs/taro"
:
"3.6.2"
,
"@vant/area-data"
:
"^1.4.1"
,
"axios-miniprogram"
:
"^2.0.0-rc-2"
,
"browser-md5-file"
:
"^1.1.1"
,
"dayjs"
:
"^1.11.7"
,
"pinia"
:
"2.0.10"
,
"taro-plugin-pinia"
:
"^1.0.0"
,
"taro-plugin-style-resource"
:
"^0.1.9"
,
"vue"
:
"^3.0.0"
,
"weixin-js-sdk"
:
"^1.6.0"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.8.0"
,
"@tarojs/cli"
:
"3.6.2"
,
"@tarojs/webpack5-runner"
:
"3.6.2"
,
"@types/webpack-env"
:
"^1.13.6"
,
"@vue/babel-plugin-jsx"
:
"^1.0.6"
,
"@vue/compiler-sfc"
:
"^3.0.0"
,
"babel-preset-taro"
:
"3.6.2"
,
"css-loader"
:
"3.4.2"
,
"eslint"
:
"^8.12.0"
,
"eslint-config-taro"
:
"3.6.2"
,
"eslint-plugin-vue"
:
"^8.0.0"
,
"style-loader"
:
"1.3.0"
,
"stylelint"
:
"9.3.0"
,
"unplugin-vue-components"
:
"^0.23.0"
,
"vue-loader"
:
"^17.0.0"
,
"webpack"
:
"5.69.0"
}
"name"
:
"custom_form"
,
"version"
:
"1.0.0"
,
"private"
:
true
,
"description"
:
"自定义表单"
,
"templateInfo"
:
{
"name"
:
"vue3-NutUI4"
,
"typescript"
:
false
,
"css"
:
"less"
},
"scripts"
:
{
"build:weapp"
:
"taro build --type weapp"
,
"build:swan"
:
"taro build --type swan"
,
"build:alipay"
:
"taro build --type alipay"
,
"build:tt"
:
"taro build --type tt"
,
"build:h5"
:
"taro build --type h5"
,
"build:rn"
:
"taro build --type rn"
,
"build:qq"
:
"taro build --type qq"
,
"build:jd"
:
"taro build --type jd"
,
"build:quickapp"
:
"taro build --type quickapp"
,
"dev:weapp"
:
"npm run build:weapp -- --watch"
,
"dev:swan"
:
"npm run build:swan -- --watch"
,
"dev:alipay"
:
"npm run build:alipay -- --watch"
,
"dev:tt"
:
"npm run build:tt -- --watch"
,
"dev:h5"
:
"npm run build:h5 -- --watch"
,
"dev:rn"
:
"npm run build:rn -- --watch"
,
"dev:qq"
:
"npm run build:qq -- --watch"
,
"dev:jd"
:
"npm run build:jd -- --watch"
,
"dev:quickapp"
:
"npm run build:quickapp -- --watch"
},
"browserslist"
:
[
"last 3 versions"
,
"Android >= 4.1"
,
"ios >= 8"
],
"author"
:
""
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@babel/runtime"
:
"^7.7.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/helper"
:
"3.6.2"
,
"@tarojs/plugin-framework-vue3"
:
"3.6.2"
,
"@tarojs/plugin-html"
:
"3.6.2"
,
"@tarojs/plugin-http"
:
"^3.6.2"
,
"@tarojs/plugin-platform-alipay"
:
"3.6.2"
,
"@tarojs/plugin-platform-h5"
:
"3.6.2"
,
"@tarojs/plugin-platform-jd"
:
"3.6.2"
,
"@tarojs/plugin-platform-qq"
:
"3.6.2"
,
"@tarojs/plugin-platform-swan"
:
"3.6.2"
,
"@tarojs/plugin-platform-tt"
:
"3.6.2"
,
"@tarojs/plugin-platform-weapp"
:
"3.6.2"
,
"@tarojs/runtime"
:
"3.6.2"
,
"@tarojs/shared"
:
"3.6.2"
,
"@tarojs/taro"
:
"3.6.2"
,
"@vant/area-data"
:
"^1.4.1"
,
"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"
:
{
"@babel/core"
:
"^7.8.0"
,
"@tarojs/cli"
:
"3.6.2"
,
"@tarojs/webpack5-runner"
:
"3.6.2"
,
"@types/webpack-env"
:
"^1.13.6"
,
"@vue/babel-plugin-jsx"
:
"^1.0.6"
,
"@vue/compiler-sfc"
:
"^3.0.0"
,
"babel-preset-taro"
:
"3.6.2"
,
"css-loader"
:
"3.4.2"
,
"eslint"
:
"^8.12.0"
,
"eslint-config-taro"
:
"3.6.2"
,
"eslint-plugin-vue"
:
"^8.0.0"
,
"style-loader"
:
"1.3.0"
,
"stylelint"
:
"9.3.0"
,
"unplugin-vue-components"
:
"^0.23.0"
,
"vue-loader"
:
"^17.0.0"
,
"webpack"
:
"5.69.0"
}
}
...
...
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