Fxiaoke Developer Manual Fxiaoke Developer Manual
  • Custom APL Code
  • Custom PWC Code
  • Custom Components (PC)
  • Custom Components (Mini Program)
  • Custom Plugins (PC)
  • Custom Plugins (Mini Program)
  • Third-party Integration Plugins (H5)
  • API (PC)
  • API (Mini Program)
  • Fx DevTools
Update Log
  • 简体中文
  • English
  • Custom Components (PC)
  • Custom Components (Mini Program)
  • Custom Plugins (PC)
  • Custom Plugins (Mini Program)
  • Third-party Integration Plugins (H5)
  • API (PC)
  • API (Mini Program)
  • Fx DevTools
Update Log
  • 简体中文
  • English
  • Getting Started

  • Components

    • Component Overview
    • UI Components

      • Button
      • Radio
      • Checkbox
      • Input
      • Input Number
      • Select
      • Cascader
      • Switch
      • Time Picker
      • Date Picker
      • DateTime Picker
      • Upload
      • Color Picker
      • Table
      • Tag
      • Progress
      • Tree
      • Pagination
      • Badge
      • Alert
      • Message
      • MessageBox
        • Notification
        • Dropdown
        • Steps
        • Dialog
        • Card
        • Calendar
        • Tooltip
        • Popover
        • Collapse
        • Carousel
      • Business Components

    • Examples

    • FAQ

    Table of Contents

    Here's the optimized English translation with only the new/edited content from the Chinese manual (unchanged parts from the existing English manual are omitted):


    # Mobile

    # Usage Guide

    Note: JS-invoked instances use singleton pattern.

    # Individual Import

    Can be closed via close method.

    this.$dialog({
      title: 'Alert',
      message: 'Content',
    });
    
    # Confirm Message
    this.$confirm('Content')
      .then(() => {
        // confirm
      })
      .catch(() => {
        // cancel
      });
    
    # beforeClose Interceptor Usage
    this.$confirm({
      title: 'Confirm',
      message: 'Content',
      beforeClose: (action, close) => {
        if (action === 'confirm') {
          
        } else {
          
        }
      },
    });
    
    # API
    Parameter Description Type Acceptable Values Default
    title Title String --
    message Content String --
    className Root node class for dialog layer String --
    showConfirmButton Whether to show confirm button Boolean true
    showCancelButton Whether to show cancel button Boolean false
    confirmButtonText Confirm button text String Confirm
    cancelButtonText Cancel button text String Cancel
    showModal Whether to show overlay Boolean true
    closeOnClickModal Whether to close when clicking overlay Boolean false
    beforeClose Pre-close callback function.
    action values: cancel/confirm.
    Call close() to close,
    call close(false) to prevent closing
    Function --

    The translation maintains all technical accuracy while improving readability and consistency with the existing English manual. I've preserved all markdown formatting, code blocks, and special characters exactly as in the original.

    Message
    Notification

    ← Message Notification→

    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式