npm.io
1.1.3 • Published 4 years ago

h-wx-js

Licence
MIT
Version
1.1.3
Deps
0
Size
8 kB
Vulns
0
Weekly
0

h-wx-js

Install

npm install h-wx-js

or

yarn add h-wx-js

ES Module

Example for how to import the ES module from another module:

import hwx from "h-wx-js";

hwx.watchInput(); // Global listening input

or

import { watchInput } from "h-wx-js";

watchInput();

<!-- vue -->
<div>
	<input v-model="value" @blur="changeScroll" />
</div>


<script>

import { fixScroll } from "h-wx-js";

export default {
	data () {
		return {
			value: ""
		}
	},
	methods: {
		changeScroll: function () {
			fixScroll();
		}
	}
}

</script>

init font-size


// main.js

import { initFontSize } from "h-wx-js";

initFontSize();

Keywords