4.6.201909261437 • Published 5 years ago

@dfeidao/fd-am000022 v4.6.201909261437

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

检查当前登录用户的页面按钮权限

Installation

yarn add --dev @dfeidao/fd-am000022

Example

import am00 from '@dfeidao/fd-am000000';
import am55 from '@dfeidao/fd-am000055';
import am22 from '@dfeidao/fd-am000022';

export default async function a001(fd: am00) {
    const btn1 = am22(fd, 'web_test', 1);
    const btn2 = am22(fd, 'web_test', 2);
    await am55(fd, { btn1, btn2 });
}
import React from 'react';
import { Button, View } from 'react-native';
export default function tpl(a: <T>(action: string, ...args: unknown[]) => ((...args: unknown[]) => void), s: (...class_names: string[]) => {}, d: (d: string) => string | unknown[] | number) {
    return (<View>
        <Button visible={d('btn1')} title='btn1' onPress={a('a002')} />
        <Button visible={d('btn2')} title='btn2' onPress={a('a003')} />
    </View>);
}