Skip to content

基于vue2开发一套ui组件库 Developed a set of ui component libraries based on vue2

License

Notifications You must be signed in to change notification settings

cvEngineerAhang/garbageui

Repository files navigation

What is it

This is a component library You can add it to your project to try using him,

user

npm install garbageui
import garbageui from "garbageui";
import 'garbageui/dist/garbageui.css'
Vue.use(garbageui);

Then....

j-button..

<j-button></j-button>
You can add type or plain or round or circle and disable to tags,
It is now in the update phase and only finishes the button,
<j-button type="primary">primary Button</j-button>

j-dialog..

<j-dialog></j-dialog>
You can use slots to configure the title or body or footer of the dialog
You can also pass in top(distance from top), or pass in width
You can control the animation when the dialog appears by entering the direction(top,bottom,left,right), or select the default without typing
Like this
    <j-dialog title="title" direction="" top="" width="" :visible.sync="visible">
     <!-- <template v-slot:title>
        <span>title</sapn>
      </template> -->
      <span>内容</span>
      <template v-slot:footer>
        <j-button @click="visible = false"> Confirm </j-button>
        <j-button @click="visible = false"> close </j-button>
      </template>
    </j-dialog>
    <j-button round type="info" @click="visible = true">open dialog</j-button>

        <script>
            data() {
              return {
                  visible: false,
              };
        </script>
  },

j-input..

<j-input></j-input>
If you want to disable the input box, you can add Disable to the tab
Like this
<j-input type="password" disable name="" placeholder="Please enter"></j-input>

<j-input type="password" v-model="password" name="" placeholder="Please enter" width:"150px"></j-input>

        <script>
            data() {
              return {
                  password: "",
              };
        </script>

j-card..


<j-card></j-card>

    <j-card title="Card title">
      <!-- <j-card-image :src="url" /> -->
      <j-card-list-title>
        <div>Card</div>
      </j-card-list-title>
      <j-card-list-item>
        <div>Greyhound divisely hello coldly fonwderfully</div>
      </j-card-list-item>
      <j-card-list-actions>
        <j-button type="success">BUTTON</j-button>
        <j-button>BUTTON</j-button>
      </j-card-list-actions>
    </j-card>

j-switch..

  <j-switch></j-switch>

  <j-switch   @change="handleChange"></j-switch>

  You can set the color in the tags
  active-color="" inactive-color=""  circle-active-color ="" circle-inactive-color=""
  methods: {
    handleChange(e){
      console.log(e);
    }
  },

Wechat: 19136971947


Customize configuration

See Configuration Reference.

About

基于vue2开发一套ui组件库 Developed a set of ui component libraries based on vue2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published