Skip to content

Commit f371e2a

Browse files
authored
feat: increase compatibility with the new component ElSpliter (#158)
* feat: increase compatibility with the new component ElSpliter * chore: update playground
1 parent 995e6ea commit f371e2a

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@nuxt/schema": "^3.13.2",
5353
"@nuxtjs/eslint-config-typescript": "^12.1.0",
5454
"@types/node": "^22.8.6",
55-
"element-plus": "^2.8.7",
55+
"element-plus": "^2.10.1",
5656
"eslint": "^8.57.1",
5757
"nuxi": "^3.15.0",
5858
"nuxt": "^3.13.2",

playground/components/form-card.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ interface RestaurantItem {
55
}
66
77
const value = ref('Nuxt module playground!')
8+
const tagValue = ref([])
89
const autocompleteValue = ref()
910
const cascaderValue = ref()
1011
const dateValue = ref()
@@ -114,6 +115,9 @@ const createFilter = (queryString: string) => {
114115
<el-form-item label="input">
115116
<el-input v-model="value" clearable />
116117
</el-form-item>
118+
<el-form-item label="input-tag">
119+
<el-input-tag v-model="tagValue" clearable />
120+
</el-form-item>
117121
<el-form-item label="autocomplete">
118122
<el-autocomplete
119123
v-model="autocompleteValue"

playground/components/other-card.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@ const load = () => {
5454
{{ i }}
5555
</li>
5656
</ul>
57+
58+
<div class="splitter">
59+
<el-splitter>
60+
<el-splitter-panel size="30%">
61+
<div class="splitter-panel">
62+
1
63+
</div>
64+
</el-splitter-panel>
65+
<el-splitter-panel :min="200">
66+
<div class="splitter-panel">
67+
2
68+
</div>
69+
</el-splitter-panel>
70+
</el-splitter>
71+
</div>
5772
</el-watermark>
5873
</el-card>
5974
</template>
@@ -110,4 +125,13 @@ const load = () => {
110125
.infinite-list .infinite-list-item + .list-item {
111126
margin-top: 10px;
112127
}
128+
129+
.splitter {
130+
margin: 10px;
131+
height: 250px;
132+
border: 1px solid var(--el-border-color-light);
133+
}
134+
.splitter .splitter-panel {
135+
padding: 10px;
136+
}
113137
</style>

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const allSubComponents: Record<string, string[]> = {
6666
ElRadio: ['ElRadioGroup', 'ElRadioButton'],
6767
ElSkeleton: ['ElSkeletonItem'],
6868
ElSelect: ['ElOption', 'ElOptionGroup'],
69+
ElSplitter: ['ElSplitterPanel'],
6970
ElSteps: ['ElStep'],
7071
ElTable: ['ElTableColumn'],
7172
ElTableV2: ['ElAutoResizer'],

0 commit comments

Comments
 (0)