Skip to content

Commit 3d05e2a

Browse files
sleepritegitee-org
authored andcommitted
!167 2.1.2
Merge pull request !167 from 就眠儀式/2.x
2 parents 82289a9 + f4d7dcb commit 3d05e2a

File tree

25 files changed

+214
-785
lines changed

25 files changed

+214
-785
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"@layui/layui-vue": "workspace:*",
2525
"@layui/icons-vue": "workspace:*",
2626
"@layui/layer-vue": "workspace:*",
27-
"vue": "3.2.45"
27+
"vue": "3.3.4"
2828
},
2929
"peerDependencies": {
30-
"vue": "3.2.45"
30+
"vue": "3.3.4"
3131
},
3232
"devDependencies": {
3333
"@commitlint/cli": "^16.2.1",
@@ -38,7 +38,7 @@
3838
"commitizen": "^4.2.4",
3939
"commitlint-config-cz": "^0.13.3",
4040
"cz-conventional-changelog": "^3.3.0",
41-
"@vue/runtime-core": "3.2.45",
41+
"@vue/runtime-core": "3.3.4",
4242
"cz-customizable": "^6.3.0",
4343
"eslint": "^8.5.0",
4444
"eslint-config-prettier": "^8.3.0",
@@ -54,8 +54,8 @@
5454
"@types/uuid": "^8.3.4",
5555
"@vitejs/plugin-vue": "^2.3.3",
5656
"@vitejs/plugin-vue-jsx": "^1.3.10",
57-
"@vue/compiler-sfc": "3.2.45",
58-
"@vue/server-renderer": "3.2.45",
57+
"@vue/compiler-sfc": "3.3.4",
58+
"@vue/server-renderer": "3.3.4",
5959
"less": "^4.1.3",
6060
"rimraf": "^3.0.2",
6161
"rollup": "^2.75.5",

package/component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@layui/layui-vue",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"author": "就眠儀式",
55
"license": "MIT",
66
"description": "a component library for Vue 3 base on layui-vue",
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"@layui/icons-vue": "1.1.0",
49-
"@layui/layer-vue": "1.8.7",
49+
"@layui/layer-vue": "1.8.8",
5050
"@vueuse/core": "8.7.3",
5151
"@umijs/ssr-darkreader": "^4.9.45",
5252
"@ctrl/tinycolor": "^3.4.1",

package/component/src/component/autoComplete/index.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@
1919
color: var(--global-checked-color) !important;
2020
font-weight: 700 !important;
2121
}
22+
23+
.lay-autocomplete-content {
24+
max-height: 300px;
25+
overflow-y: auto;
26+
}
27+
28+
.lay-autocomplete-content::-webkit-scrollbar { width: 8px; height: 8px; }
29+
.lay-autocomplete-content::-webkit-scrollbar-thumb { border-radius: 10px; background-color: #eeeeee; }
30+
.lay-autocomplete-content::-webkit-scrollbar-thumb:hover { background-color: #dddddd; }

package/component/src/component/autoComplete/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</template>
4848
<template v-else>
4949
<template v-if="innerOptions.length > 0">
50-
<lay-dropdown-menu>
50+
<lay-dropdown-menu class="lay-autocomplete-content">
5151
<template v-for="(option, index) in innerOptions">
5252
<lay-dropdown-menu-item
5353
@click="clickOptions(option)"

package/document-component/src/document/zh-CN/components/autoComplete.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
::: title 基本介绍
55
:::
66

7-
::: describe 输入框自动完成功能 (1.9.2)
7+
::: describe 输入框自动完成功能。
88
:::
99

1010
::: title 基础使用
@@ -25,7 +25,26 @@ export default {
2525
const value = ref("");
2626
const fetchSuggestions = function(value) {
2727
return new Promise((resolve) => {
28-
resolve([])
28+
resolve([
29+
{value: "稻香 - 周杰伦"},
30+
{value: "蒲公英的约定 - 周杰伦"},
31+
{value: "爱在西元前 - 周杰伦"},
32+
{value: "不能说的秘密 - 周杰伦"},
33+
{value: "七里香 - 周杰伦"},
34+
{value: "龙卷风 - 周杰伦"},
35+
{value: "稻香 - 周杰伦"},
36+
{value: "蒲公英的约定 - 周杰伦"},
37+
{value: "爱在西元前 - 周杰伦"},
38+
{value: "不能说的秘密 - 周杰伦"},
39+
{value: "七里香 - 周杰伦"},
40+
{value: "龙卷风 - 周杰伦"},
41+
{value: "稻香 - 周杰伦"},
42+
{value: "蒲公英的约定 - 周杰伦"},
43+
{value: "爱在西元前 - 周杰伦"},
44+
{value: "不能说的秘密 - 周杰伦"},
45+
{value: "七里香 - 周杰伦"},
46+
{value: "龙卷风 - 周杰伦"},
47+
])
2948
});
3049
}
3150

package/document-component/src/document/zh-CN/components/form.md

Lines changed: 0 additions & 243 deletions
Original file line numberDiff line numberDiff line change
@@ -7,249 +7,6 @@
77
::: describe 高性能表单控件,自带数据域管理。包含数据录入、校验以及对应样式。
88
:::
99

10-
::: title 测试沙盒
11-
:::
12-
13-
::: demo 通过 `lay-form``lay-form-item` 标签,创建 `form` 组件。
14-
15-
<template>
16-
<lay-json-schema-form :model="jsonModel" :jsonSchema="jsonSchema" :pane="true" :space="10">
17-
<template #submitButton>
18-
<lay-button-container>
19-
<lay-button type="primary" @click="submitButton">保存</lay-button>
20-
<lay-button>取消</lay-button>
21-
</lay-button-container>
22-
</template>
23-
</lay-json-schema-form>
24-
</template>
25-
26-
<script setup>
27-
import { ref, reactive } from 'vue'
28-
import { layer } from '@layui/layer-vue'
29-
30-
const jsonModel = reactive({
31-
name1: "admin",
32-
name2: "admin",
33-
name5: "admin"
34-
})
35-
36-
const jsonSchema = ref({
37-
"name1": {
38-
label: "标签",
39-
type: "lay-input",
40-
grid: {
41-
md: 12
42-
},
43-
props: {
44-
placeholder: "请输入"
45-
}
46-
},
47-
"name2": {
48-
label: "标签",
49-
type: "lay-input",
50-
grid: {
51-
md: 12
52-
},
53-
props: {
54-
placeholder: "请输入"
55-
}
56-
},
57-
"name3": {
58-
label: "头像",
59-
type: "lay-icon-picker",
60-
grid: {
61-
md: 12
62-
},
63-
props: {
64-
placeholder: "请输入"
65-
}
66-
},
67-
"name4": {
68-
label: "年龄",
69-
type: "lay-input-number",
70-
grid: {
71-
md: 12
72-
},
73-
props: {
74-
style: "width:100%",
75-
placeholder: "请输入"
76-
}
77-
},
78-
"name6": {
79-
label: "日期",
80-
type: "lay-date-picker",
81-
grid: {
82-
md: 12
83-
},
84-
props: {
85-
placeholder: "请选择",
86-
style: "width:100%;"
87-
}
88-
},
89-
"name7": {
90-
label: "开关",
91-
type: "lay-switch",
92-
grid: {
93-
md: 12
94-
},
95-
props: {
96-
placeholder: "请选择",
97-
}
98-
},
99-
"name8": {
100-
label: "下拉",
101-
type: "lay-select",
102-
grid: {
103-
md: 24
104-
},
105-
props: {
106-
placeholder: "请选择",
107-
style: "width:100%",
108-
items: [
109-
{label:'选项1', value:1},
110-
{label:'选项2', value:2},
111-
{label:'选项3', value:3},
112-
]
113-
}
114-
},
115-
"name9": {
116-
label: "文本",
117-
type: "lay-textarea",
118-
grid: {
119-
md: 24
120-
},
121-
props: {
122-
placeholder: "请选择"
123-
}
124-
},
125-
"name12": {
126-
label: "评分",
127-
type: "lay-rate",
128-
grid: {
129-
md: 24
130-
},
131-
props: {
132-
style: "width: 100%",
133-
},
134-
},
135-
"name10": {
136-
label: "建议",
137-
type: "lay-autocomplete",
138-
grid: {
139-
md: 12
140-
},
141-
props: {
142-
style: "width: 100%",
143-
fetchSuggestions: (value) => {
144-
if(value != "") {
145-
return new Promise((resolve) => {
146-
setTimeout(() => {
147-
resolve([
148-
{value: "稻香 - 周杰伦"},
149-
{value: "蒲公英的约定 - 周杰伦"},
150-
{value: "爱在西元前 - 周杰伦"},
151-
{value: "不能说的秘密 - 周杰伦"},
152-
{value: "七里香 - 周杰伦"},
153-
{value: "龙卷风 - 周杰伦"},
154-
])
155-
}, 500)
156-
});
157-
}
158-
}
159-
}
160-
},
161-
"name11": {
162-
label: "级联",
163-
type: "lay-cascader",
164-
grid: {
165-
md: 12
166-
},
167-
props: {
168-
style: "width: 100%",
169-
options: [
170-
{
171-
value: "Guide",
172-
label: "指南",
173-
children: [
174-
{
175-
value: "shejiyuanze",
176-
label: "设计原则",
177-
},
178-
{
179-
value: "daohang",
180-
label: "导航",
181-
},
182-
],
183-
},
184-
],
185-
},
186-
},
187-
"name15": {
188-
label: "单选",
189-
type: "lay-radio",
190-
grid: {
191-
md: 12
192-
},
193-
props: {
194-
options: [
195-
{
196-
value: "1",
197-
label: "指南",
198-
},
199-
{
200-
value: "2",
201-
label: "指南",
202-
},
203-
{
204-
value: "3",
205-
label: "指南",
206-
disabled: true
207-
},
208-
],
209-
},
210-
},
211-
212-
"name13": {
213-
label: "复选",
214-
type: "lay-checkbox",
215-
grid: {
216-
md: 12
217-
},
218-
props: {
219-
options: [
220-
{
221-
value: "1",
222-
label: "指南",
223-
},
224-
{
225-
value: "2",
226-
label: "指南",
227-
},
228-
{
229-
value: "3",
230-
label: "指南",
231-
disabled: true
232-
},
233-
],
234-
},
235-
},
236-
"name14": {
237-
slots: {
238-
customRender: "submitButton"
239-
},
240-
grid: {
241-
md: 24
242-
},
243-
},
244-
})
245-
246-
const submitButton = () => {
247-
layer.msg(JSON.stringify(jsonModel))
248-
}
249-
</script>
250-
251-
:::
252-
25310
::: title 基础使用
25411
:::
25512

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy