diff --git a/packages/vant/src/collapse/README.md b/packages/vant/src/collapse/README.md index dae8f7ffd..8b20e00e4 100644 --- a/packages/vant/src/collapse/README.md +++ b/packages/vant/src/collapse/README.md @@ -25,9 +25,16 @@ Use `v-model` to control the name of active panels. ```html - Content 1 - Content 2 - Content 3 + + The code is written for people to see and can be run on a machine. + + + Technology is nothing more than the common soul of those who develop it. + + + The frequency of people swearing during code reading is the only measure of + code quality. + ``` @@ -48,9 +55,16 @@ In accordion mode, only one panel can be expanded at the same time. ```html - Content 1 - Content 2 - Content 3 + + The code is written for people to see and can be run on a machine. + + + Technology is nothing more than the common soul of those who develop it. + + + The frequency of people swearing during code reading is the only measure of + code quality. + ``` @@ -71,28 +85,33 @@ Use the `disabled` prop to disable CollapseItem. ```html - Content 1 + + The code is written for people to see and can be run on a machine. + - Content 2 + Technology is nothing more than the common soul of those who develop it. - Content 3 + The frequency of people swearing during code reading is the only measure of + code quality. ``` ### Custom title +Using `title` slot to custom title. + ```html - Content 1 + The code is written for people to see and can be run on a machine. - Content 2 + Technology is nothing more than the common soul of those who develop it. ``` @@ -114,9 +133,16 @@ Using `toggleAll` method to toggle all items. ```html - Content 1 - Content 2 - Content 3 + + The code is written for people to see and can be run on a machine. + + + Technology is nothing more than the common soul of those who develop it. + + + The frequency of people swearing during code reading is the only measure of + code quality. + Open All diff --git a/packages/vant/src/collapse/demo/index.vue b/packages/vant/src/collapse/demo/index.vue index c0af313e2..37f382935 100644 --- a/packages/vant/src/collapse/demo/index.vue +++ b/packages/vant/src/collapse/demo/index.vue @@ -19,9 +19,11 @@ const t = useTranslate({ inverse: '全部切换', }, 'en-US': { - text1: 'Content 1', - text2: 'Content 2', - text3: 'Content 3', + text1: 'The code is written for people to see and can be run on a machine.', + text2: + 'Technology is nothing more than the common soul of those who develop it.', + text3: + 'The frequency of people swearing during code reading is the only measure of code quality.', accordion: 'Accordion', titleSlot: 'Custom title', toggleAll: 'Toggle All', diff --git a/packages/vant/src/collapse/test/__snapshots__/demo-ssr.spec.ts.snap b/packages/vant/src/collapse/test/__snapshots__/demo-ssr.spec.ts.snap index 247a43ead..4940d2e90 100644 --- a/packages/vant/src/collapse/test/__snapshots__/demo-ssr.spec.ts.snap +++ b/packages/vant/src/collapse/test/__snapshots__/demo-ssr.spec.ts.snap @@ -31,7 +31,7 @@ exports[`should render demo and match snapshot 1`] = `
- Content 1 + The code is written for people to see and can be run on a machine.
@@ -112,7 +112,7 @@ exports[`should render demo and match snapshot 1`] = `
- Content 1 + The code is written for people to see and can be run on a machine.
@@ -334,7 +334,7 @@ exports[`should render demo and match snapshot 1`] = `
- Content 1 + The code is written for people to see and can be run on a machine.
diff --git a/packages/vant/src/collapse/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/collapse/test/__snapshots__/demo.spec.ts.snap index eff47bd48..454ba6290 100644 --- a/packages/vant/src/collapse/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/collapse/test/__snapshots__/demo.spec.ts.snap @@ -20,7 +20,7 @@ exports[`should render demo and match snapshot 1`] = `
- Content 1 + The code is written for people to see and can be run on a machine.
@@ -77,7 +77,7 @@ exports[`should render demo and match snapshot 1`] = `
- Content 1 + The code is written for people to see and can be run on a machine.
@@ -227,7 +227,7 @@ exports[`should render demo and match snapshot 1`] = `
- Content 1 + The code is written for people to see and can be run on a machine.