layui/example/docs/zh-CN/components/iconPicker.md

127 lines
1.5 KiB
Markdown
Raw Normal View History

::: anchor
:::
::: title 基本介绍
:::
::: describe 内置 icon 图标选择组件, 常用于权限管理, 菜单定制。
:::
2021-10-25 17:13:23 +00:00
::: title 基础使用
2021-10-19 14:28:44 +00:00
:::
::: 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>
:::
2021-10-25 17:13:23 +00:00
::: title 默认选择
2021-10-19 14:28:44 +00:00
:::
::: demo
<template>
2021-10-07 14:47:51 +00:00
<lay-icon-picker v-model="icon" type="layui-icon-face-smile"></lay-icon-picker>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2021-10-07 14:47:51 +00:00
const icon = ref("layui-icon-home")
return {
}
}
}
</script>
:::
2021-10-25 17:13:23 +00:00
::: title 开启分页
2021-10-19 14:28:44 +00:00
:::
::: 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>
2021-10-08 03:09:44 +00:00
:::
2021-10-25 17:13:23 +00:00
::: title 开启搜索
2021-10-19 14:28:44 +00:00
:::
::: 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>
:::
2021-10-25 17:13:23 +00:00
::: title icon-picker 属性
2021-10-13 02:04:43 +00:00
:::
2021-10-12 10:00:09 +00:00
2021-11-07 07:55:08 +00:00
::: table
| | | |
| ---------- | -------- | --- |
| v-model | 默认值 | -- |
| page | 开启分页 | -- |
| showSearch | 启用搜索 | -- |
2021-11-07 07:55:08 +00:00
2021-11-07 07:56:24 +00:00
:::
2021-12-16 09:57:59 +00:00
::: comment
2022-01-12 06:19:06 +00:00
:::
::: previousNext iconPicker
2021-12-16 09:57:59 +00:00
:::