protocol.uts 543 字节
Newer Older
DCloud-yyl's avatar
DCloud-yyl 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import { SetClipboardDataOptions } from './interface.uts';

export const API_GET_CLIPBOARD_DATA = 'getClipboardData'
export const API_SET_CLIPBOARD_DATA = 'setClipboardData'
export const SetClipboardDataApiOptions: ApiOptions<SetClipboardDataOptions> = {
  formatArgs: new Map<string, boolean>([
    ['showToast', true]
  ])
}

export const SetClipboardDataProtocol = new Map<string, ProtocolOptions>([
  [
    'data',
    {
      type: 'string',
      required: true,
    }
  ],
  [
    'showToast',
    {
      type: 'boolean'
    }

  ]
])