Comments (8)
@Dushusir 我觉得点击外部按钮或其它区域时不应该主动触发失焦,因为那样可能会导致我们在通过外部按钮做某些需要获取当前选区的功能时遇到困难。
我觉得这个场景,应该在用户点击“导出表格数据”按钮时,由开发人员编码调用Univer提供的API来失焦或存储当前用户正在输入的值,然后再执行导出的代码。
from univer.
@Dushusir 我觉得点击外部按钮或其它区域时不应该主动触发失焦,因为那样可能会导致我们在通过外部按钮做某些需要获取当前选区的功能时遇到困难。
我觉得这个场景,应该在用户点击“导出表格数据”按钮时,由开发人员编码调用Univer提供的API来失焦或存储当前用户正在输入的值,然后再执行导出的代码。
The defocusing here doesn't mean that the cell itself becomes unfocused, but rather that it exits the editing mode.
However, the user can still obtain the cell that is currently in focus.
from univer.
@Jocs 考虑如果用户点击到表格外部,是否需要失焦
from univer.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@Jocs Consider whether the focus needs to be lost if the user clicks outside the table
from univer.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@Dushusir I think out-of-focus is actively triggered when clicking an external button or other area, because that may cause us to encounter difficulties when doing certain functions that require obtaining the current selection through external buttons.
I think in this scenario, when the user clicks the "Export Table Data" button, the developer should code to call the API provided by Univer to defocus or store the value currently being entered by the user, and then execute the exported code.
from univer.
请教一下,导出功能怎么做,文档里面没有这个导出功能介绍
from univer.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Please tell me how to use the export function. There is no introduction to the export function in the document.
from univer.
In order to deal with more complex scenarios, we don't intend to implement this feature internally.
Fortunately, your can implement this feature via the Facade API.
import { DeviceInputEventType } from '@univerjs/engine-render';
import { FUniver } from '@univerjs/facade';
const univerAPI = FUniver.newAPI(univer);
$btn.addEventListener('click', () => {
univerAPI.executeCommand('sheet.operation.set-cell-edit-visible', {
visible: false,
_eventType: DeviceInputEventType.PointerUp,
});
});
from univer.
Related Issues (20)
- [Bug]When editing data pasted into UniverSheet from Excel, the saved result prints an error, changing from a normal number to undefined. HOT 1
- [Feature] Clear custom fields when clearing content HOT 1
- [Feature] Related to conditional format HOT 2
- [Feature] Math Formula NETWORKDAYS.INTL WEEKDAY CHOOSE
- I want to modify the top of the sheet without changing the source code, such as the position of the summation formula icon, or modify the content in the right-click menu. Is there such a plug-in? I think Univer/UI can do it, but I don’t quite understand it. HOT 2
- [Bug] low node version depends error "export 'bufferTime' (imported as 'Ei') was not found in 'rxjs' HOT 7
- [Feature] Existing tool methods can support dynamic configuration. HOT 2
- [Bug] InsertRowCommand not work, cellValue not showing
- [Bug] How to disable the context menu HOT 1
- [Feature] Workbook read only HOT 2
- [Bug] Can not recovery display the hidden worksheet
- [Bug] How to distinguish the click and right-click command
- [Bug] add custom-function to vue3 HOT 2
- [Bug] When copying formula data to another sheet, an error occurs.
- [Feature] 关于csv格式的大文件导入的速度优化
- [Feature] 树形表格支持吗 HOT 1
- [Bug] When there is a formula in a row, the row cannot be deleted successfully. HOT 1
- [Bug] When there is a formula in a row, if you delete a row, the formula will not be deleted. HOT 2
- [Bug] Formula entry remains stuck when clicking another cell
- Fix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from univer.