npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

element-ui-international

v2.16.32

Published

A Component Library for Vue.js.

Downloads

89

Readme

阿拉伯文显示解决方案

阿拉伯语是个神奇的语言,有看到过阿拉伯语言阅读和写作习惯是从右到左,为了方便不同客户,提供elementUI镜像翻转效果,基于element UI框架,在保证原有组件原始特性为前提, 针对阿拉伯语言特殊阅读方式进行修改,适配阿拉伯语言网站使用。

Element will stay with Vue 2.x

Install

npm install element-ui-international -S

Quick Start

// main.js
import Vue from 'vue'
import Element from 'element-ui-international'
Vue.use(ElementUI, { size: 'small' });
// or
import {
  Select,
  Button
  // ...
} from 'element-ui-international'

Vue.component(Select.name, Select)
Vue.component(Button.name, Button)

Use RTL

import VueI18n from 'vue-i18n';
// 引入修改语言方法Locale
import Locale from 'element-ui-international/lib/locale';

Vue.use(VueI18n);
const i18n = new VueI18n({
// 合并项目中的语言包
  messages: {
    ...require('@/lang/zh-cn'), //项目中的语言包
    ...require('@/lang/en'),
    ...require('@/lang/ar')
  }
});
// 动态获取elementUI的语言包, uiLang 为 :'ar', 'en' 或 ’zh-CN‘等, 
const newLang = require('element-ui-international/lib/locale/lang/' + uiLang).default;
// 设置uiLang = 'ar' 将切换为RTL布局
Locale.use(newLang, 'ar')
// 配合vueI18n 设置语言
i18n.local = uiLang

For more information, please refer to Quick Start in our documentation.

Browser Support

Modern browsers and Internet Explorer 10+.