2.1.1 • Published 3 years ago

vue-remove-whitespace v2.1.1

Weekly downloads
62
License
MIT
Repository
github
Last release
3 years ago

vue-remove-whitespace

A reusable remove whitespace directive for reusable Vue.js components

Overview

英語では通常、単語は空白文字で区切られます。一方、中国語、日本語、タイ語などの言語では通常、単語間の区切り文字は一切使用されません。

spanやa、またそれらを内包したVue コンポーネントなどのinline要素内での改行は、意図しないWhitespaceを作ってしまいます。

vue-remove-whitespace はそれらの課題を解決します。

Requirements

  • vue: ^2.0.0

API

directives

import { removeWhitespace } from 'vue-remove-whitespace';

export default {
  directives: { removeWhitespace: removeWhitespace },
  template: `
    <p v-remove-whitespace>
      お問い合わせは
      <a href="#">こちらから</a>
      お願いします
    </p>
  `,
};

mixin

import { mixin as removeWhitespaceMixin } from 'vue-remove-whitespace';

export default {
  mixins: [ removeWhitespaceMixin ],
  template: `
    <p v-remove-whitespace>
      お問い合わせは
      <a href="#">こちらから</a>
      お願いします
    </p>
  `,
};

Notes

forked configuration vue-focus

License

MIT

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago