fx-module-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

fx-module-utils

How to use?

You must install fx-module-i18n, fx-module-api and fx-module-style first!!! Please use the latest version

  1. install
pnpm install fx-module-utils
  1. import
// src/main.ts
import {
    disable,
    doubleClickFullScreen,
    draggable,
    focus,
    load,
} from "fx-module-utils";
import "fx-module-utils/dist/index.css"; // loading components style

app.directive("focus", focus);
app.directive("load", load);
app.directive("draggable", draggable);
app.directive("disable", disable);
app.directive("dblclick-fullscreen", doubleClickFullScreen);
  1. use
<template>
    <div>
        <div>
            <input v-model="input" />
        </div>
        <div
            v-load="true"
            :loading-text="input"
            style="background: #0caa41; height: 300px"
        ></div>
        <div>{{ input }}</div>
    </div>
</template>

<script setup lang="ts">
import { ref } from "vue";

const input = ref("123");
</script>

<style scoped lang="scss"></style>

Donate wanfuxiong.com

Readme

Keywords

none

Package Sidebar

Install

npm i fx-module-utils

Weekly Downloads

2

Version

0.0.5

License

none

Unpacked Size

24.9 kB

Total Files

28

Last publish

Collaborators

  • wanfuxiong