Bản khảo sát nghiên cứu: Cho chúng tôi biết trải nghiệm của bạn khi sử dụng Blockly
Bắt đầu khảo sát
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
blockly > Block > decompose
Thuộc tính Block.decompose
Một hàm không bắt buộc điền sẵn trình đơn bật lên của công cụ sửa đổi bằng các khối đại diện cho cấu hình của khối này.
Chữ ký:
decompose?: (workspace: Workspace) => Block;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["`Block.decompose` is an optional function that can be defined for a block."],["If defined, it is used to populate a mutator's dialog with the block's internal components, allowing users to modify the block's structure."],["It receives the workspace as input and is expected to return a block that will be displayed within the mutator's dialog."]]],["The `Block.decompose` property is an optional function within the Blockly framework. Its purpose is to populate a mutator's dialog with the block's components. This function takes a `Workspace` as input and returns a `Block`. It is used to define how a block can be broken down or modified within the mutator interface.\n"]]