Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
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-03-29 16:45:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8067ff931e0707c7c905fe13949c587d203041db
8067ff93
1 parent
39f23b1f
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
19 deletions
components.d.ts
src/views/index.vue
components.d.ts
View file @
8067ff9
...
...
@@ -7,8 +7,13 @@ export {}
declare
module
'@vue/runtime-core'
{
export
interface
GlobalComponents
{
__AppointmentField
:
typeof
import
(
'./src/components/__AppointmentField/index.vue'
)[
'default'
]
__AreaPickerField
:
typeof
import
(
'./src/components/__AreaPickerField/index.vue'
)[
'default'
]
_AreaPickerField
:
typeof
import
(
'./src/components/_AreaPickerField/index.vue'
)[
'default'
]
Appointment
:
typeof
import
(
'./src/components/Appointment/index.vue'
)[
'default'
]
AppointmentField
:
typeof
import
(
'./src/components/AppointmentField/index.vue'
)[
'default'
]
AppointmentField_
:
typeof
import
(
'./src/components/AppointmentField_/index.vue'
)[
'default'
]
'AppointmentField±'
:
typeof
import
(
'./src/components/AppointmentField±/index.vue'
)[
'default'
]
AreaPickerField
:
typeof
import
(
'./src/components/AreaPickerField/index.vue'
)[
'default'
]
ButtonField
:
typeof
import
(
'./src/components/ButtonField/index.vue'
)[
'default'
]
CalendarField
:
typeof
import
(
'./src/components/CalendarField/index.vue'
)[
'default'
]
...
...
src/views/index.vue
View file @
8067ff9
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-03-29 1
5:05:26
* @LastEditTime: 2023-03-29 1
6:24:48
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -163,9 +163,6 @@ const appointment = ref([]);
// 动态绑定ref数据
const setRefMap = (el, item) => {
if (el) {
if (item.component_props.tag === "area_picker") {
area_picker.value.push(el);
}
if (item.component_props.tag === "image_uploader") {
image_uploader.value.push(el);
}
...
...
@@ -425,9 +422,6 @@ const checkRules = () => {
// 操作绑定自定义字段回调
const onActive = (item) => {
if (item.key === "area_picker") {
postData.value[item.filed_name] = item.value;
}
if (item.key === "image_uploader") {
postData.value[item.filed_name] = item.value;
}
...
...
@@ -461,18 +455,6 @@ const validOther = () => {
status: true,
key: "",
};
if (area_picker.value) {
// 省市区地址
area_picker.value.forEach((item, index) => {
if (!area_picker.value[index].validAreaPicker()) {
valid = {
status: area_picker.value[index].validAreaPicker(),
key: "area_picker",
};
return false;
}
});
}
if (image_uploader.value) {
// 图片上传
image_uploader.value.forEach((item, index) => {
...
...
Please
register
or
login
to post a comment