118 lines
1.4 KiB
Markdown
118 lines
1.4 KiB
Markdown
::: anchor
|
|
:::
|
|
|
|
::: title 基础使用
|
|
:::
|
|
|
|
::: demo
|
|
|
|
<template>
|
|
<lay-icon-picker type="layui-icon-face-smile"></lay-icon-picker>
|
|
</template>
|
|
|
|
<script>
|
|
import { ref } from 'vue'
|
|
|
|
export default {
|
|
setup() {
|
|
|
|
const icon = ref("layui-icon-home")
|
|
|
|
return {
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
:::
|
|
|
|
::: title 默认选择
|
|
:::
|
|
|
|
::: demo
|
|
|
|
<template>
|
|
<lay-icon-picker v-model="icon" type="layui-icon-face-smile"></lay-icon-picker>
|
|
</template>
|
|
|
|
<script>
|
|
import { ref } from 'vue'
|
|
|
|
export default {
|
|
setup() {
|
|
|
|
const icon = ref("layui-icon-home")
|
|
|
|
return {
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
:::
|
|
|
|
::: title 开启分页
|
|
:::
|
|
|
|
::: demo
|
|
|
|
<template>
|
|
<lay-icon-picker v-model="icon" type="layui-icon-face-smile" page></lay-icon-picker>
|
|
</template>
|
|
|
|
<script>
|
|
import { ref } from 'vue'
|
|
|
|
export default {
|
|
setup() {
|
|
|
|
const icon = ref("layui-icon-home")
|
|
|
|
return {
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
:::
|
|
|
|
::: title 开启搜索
|
|
:::
|
|
|
|
::: demo
|
|
|
|
<template>
|
|
<lay-icon-picker v-model="icon" type="layui-icon-face-smile" page showSearch></lay-icon-picker>
|
|
</template>
|
|
|
|
<script>
|
|
import { ref } from 'vue'
|
|
|
|
export default {
|
|
setup() {
|
|
|
|
const icon = ref("layui-icon-home")
|
|
|
|
return {
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
:::
|
|
|
|
::: title icon-picker 属性
|
|
:::
|
|
|
|
::: table
|
|
|
|
| | | |
|
|
| ---------- | -------- | --- |
|
|
| v-model | 默认值 | -- |
|
|
| page | 开启分页 | -- |
|
|
| showSearch | 启用搜索 | -- |
|
|
|
|
:::
|
|
|
|
::: comment
|
|
::: |