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
2025-02-13 16:29:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e624a8dc438970bc4f5ee05fcadda36c7ae884fc
e624a8dc
1 parent
35458b90
fix 屏蔽失焦操作
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
src/views/index.vue
src/views/index.vue
View file @
e624a8d
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-02-13 1
4:31:19
* @LastEditTime: 2025-02-13 1
6:28:32
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -604,11 +604,23 @@ onMounted(async () => {
});
// 自定义失焦操作
const onBlur = (item) => {
// TODO: 之后新增判断逻辑
// TODO:数据变化获取后台数据填充
console.warn(item);
}
// const onBlur = async (item) => {
// console.warn(item);
// // const history_data = await queryFormDataAPI({ form_code: $route.query.code, data_id, openid: iframe_openid, force_back, page_type });
// // if (history_data.code) {
// // // 结构优化一下
// // let object = history_data.data;
// // 如果字段有数据了 object里面的字段需要删掉
// // delete historyData.value[item.key];
// // const objectMap = new Map(Object.entries(object)); // 将 object 转换为 Map,Object.entries() 方法用于返回一个给定对象自身可枚举属性的键值对数组,数组中的每个元素是一个包含键值对的数组,[ ["name", "Alice"], ["age", 30], ["city", "New York"] ]
// // formData.value.forEach((item) => {
// // if (objectMap.has(item.key)) {
// // item.component_props.default = objectMap.get(item.key);
// // }
// // });
// // historyData.value = history_data.data; // 历史表单字段数据
// // }
// }
// 打开轮询用户是否关注
const onTap = () => {
...
...
Please
register
or
login
to post a comment