Implementing a Custom showToast Action
This article describes the implementation of compatible actions, which are adapted to mini-program actions and Web actions, enabling cross-platform usage.
If it is only adapted to a single platform (Mini Program or Web), it can only be used on that single platform.
Preparations
Refer to the Create Your First Component Library document to complete:
- Create a cloud component library
- Associate the local component library
Step 1: Edit the component library configuration
Refer to the Component Library Configuration document to edit the configuration.
Step 2: Edit the action configuration
Refer to the Action Configuration document to edit the configuration.
Step 3: Edit the mini-program action source code
Refer to the Mini-Program Action Source Code document to edit the source code.
Step 4: Edit the Web action source code
Refer to the Web Action Source Code document to edit the source code.
Step 5: Debug the action
Action debugging is not currently supported individually.
Refer to the Create Your First Component Library document and debug the action using the debug local component library capability.
Step 6: Publish the action
Action publishing is not currently supported individually.
Refer to the Create Your First Component Library document and publish the action using the publish local component library and publish cloud component library capabilities.