From 622b94599383f0b1cc4b7b16cd6552ac3dde948e Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 30 Jul 2025 15:56:40 +0800 Subject: [PATCH] docs: [cascader] reduce sample code (#21549) --- .../examples/cascader/check-on-click-node.vue | 204 ------------------ .../cascader/show-checked-strategy.vue | 204 ------------------ 2 files changed, 408 deletions(-) diff --git a/docs/examples/cascader/check-on-click-node.vue b/docs/examples/cascader/check-on-click-node.vue index e8e1b84bf7..d4f6b826a3 100644 --- a/docs/examples/cascader/check-on-click-node.vue +++ b/docs/examples/cascader/check-on-click-node.vue @@ -51,18 +51,6 @@ const options = [ value: 'consistency', label: 'Consistency', }, - { - value: 'feedback', - label: 'Feedback', - }, - { - value: 'efficiency', - label: 'Efficiency', - }, - { - value: 'controllability', - label: 'Controllability', - }, ], }, { @@ -73,10 +61,6 @@ const options = [ value: 'side nav', label: 'Side Navigation', }, - { - value: 'top nav', - label: 'Top Navigation', - }, ], }, ], @@ -93,22 +77,6 @@ const options = [ value: 'layout', label: 'Layout', }, - { - value: 'color', - label: 'Color', - }, - { - value: 'typography', - label: 'Typography', - }, - { - value: 'icon', - label: 'Icon', - }, - { - value: 'button', - label: 'Button', - }, ], }, { @@ -119,170 +87,6 @@ const options = [ value: 'radio', label: 'Radio', }, - { - value: 'checkbox', - label: 'Checkbox', - }, - { - value: 'input', - label: 'Input', - }, - { - value: 'input-number', - label: 'InputNumber', - }, - { - value: 'select', - label: 'Select', - }, - { - value: 'cascader', - label: 'Cascader', - }, - { - value: 'switch', - label: 'Switch', - }, - { - value: 'slider', - label: 'Slider', - }, - { - value: 'time-picker', - label: 'TimePicker', - }, - { - value: 'date-picker', - label: 'DatePicker', - }, - { - value: 'datetime-picker', - label: 'DateTimePicker', - }, - { - value: 'upload', - label: 'Upload', - }, - { - value: 'rate', - label: 'Rate', - }, - { - value: 'form', - label: 'Form', - }, - ], - }, - { - value: 'data', - label: 'Data', - children: [ - { - value: 'table', - label: 'Table', - }, - { - value: 'tag', - label: 'Tag', - }, - { - value: 'progress', - label: 'Progress', - }, - { - value: 'tree', - label: 'Tree', - }, - { - value: 'pagination', - label: 'Pagination', - }, - { - value: 'badge', - label: 'Badge', - }, - ], - }, - { - value: 'notice', - label: 'Notice', - children: [ - { - value: 'alert', - label: 'Alert', - }, - { - value: 'loading', - label: 'Loading', - }, - { - value: 'message', - label: 'Message', - }, - { - value: 'message-box', - label: 'MessageBox', - }, - { - value: 'notification', - label: 'Notification', - }, - ], - }, - { - value: 'navigation', - label: 'Navigation', - children: [ - { - value: 'menu', - label: 'Menu', - }, - { - value: 'tabs', - label: 'Tabs', - }, - { - value: 'breadcrumb', - label: 'Breadcrumb', - }, - { - value: 'dropdown', - label: 'Dropdown', - }, - { - value: 'steps', - label: 'Steps', - }, - ], - }, - { - value: 'others', - label: 'Others', - children: [ - { - value: 'dialog', - label: 'Dialog', - }, - { - value: 'tooltip', - label: 'Tooltip', - }, - { - value: 'popover', - label: 'Popover', - }, - { - value: 'card', - label: 'Card', - }, - { - value: 'carousel', - label: 'Carousel', - }, - { - value: 'collapse', - label: 'Collapse', - }, ], }, ], @@ -295,14 +99,6 @@ const options = [ value: 'axure', label: 'Axure Components', }, - { - value: 'sketch', - label: 'Sketch Templates', - }, - { - value: 'docs', - label: 'Design Documentation', - }, ], }, ] diff --git a/docs/examples/cascader/show-checked-strategy.vue b/docs/examples/cascader/show-checked-strategy.vue index e185757f7c..fb8bd343f4 100644 --- a/docs/examples/cascader/show-checked-strategy.vue +++ b/docs/examples/cascader/show-checked-strategy.vue @@ -56,18 +56,6 @@ const options = [ value: 'consistency', label: 'Consistency', }, - { - value: 'feedback', - label: 'Feedback', - }, - { - value: 'efficiency', - label: 'Efficiency', - }, - { - value: 'controllability', - label: 'Controllability', - }, ], }, { @@ -78,10 +66,6 @@ const options = [ value: 'side nav', label: 'Side Navigation', }, - { - value: 'top nav', - label: 'Top Navigation', - }, ], }, ], @@ -98,22 +82,6 @@ const options = [ value: 'layout', label: 'Layout', }, - { - value: 'color', - label: 'Color', - }, - { - value: 'typography', - label: 'Typography', - }, - { - value: 'icon', - label: 'Icon', - }, - { - value: 'button', - label: 'Button', - }, ], }, { @@ -124,170 +92,6 @@ const options = [ value: 'radio', label: 'Radio', }, - { - value: 'checkbox', - label: 'Checkbox', - }, - { - value: 'input', - label: 'Input', - }, - { - value: 'input-number', - label: 'InputNumber', - }, - { - value: 'select', - label: 'Select', - }, - { - value: 'cascader', - label: 'Cascader', - }, - { - value: 'switch', - label: 'Switch', - }, - { - value: 'slider', - label: 'Slider', - }, - { - value: 'time-picker', - label: 'TimePicker', - }, - { - value: 'date-picker', - label: 'DatePicker', - }, - { - value: 'datetime-picker', - label: 'DateTimePicker', - }, - { - value: 'upload', - label: 'Upload', - }, - { - value: 'rate', - label: 'Rate', - }, - { - value: 'form', - label: 'Form', - }, - ], - }, - { - value: 'data', - label: 'Data', - children: [ - { - value: 'table', - label: 'Table', - }, - { - value: 'tag', - label: 'Tag', - }, - { - value: 'progress', - label: 'Progress', - }, - { - value: 'tree', - label: 'Tree', - }, - { - value: 'pagination', - label: 'Pagination', - }, - { - value: 'badge', - label: 'Badge', - }, - ], - }, - { - value: 'notice', - label: 'Notice', - children: [ - { - value: 'alert', - label: 'Alert', - }, - { - value: 'loading', - label: 'Loading', - }, - { - value: 'message', - label: 'Message', - }, - { - value: 'message-box', - label: 'MessageBox', - }, - { - value: 'notification', - label: 'Notification', - }, - ], - }, - { - value: 'navigation', - label: 'Navigation', - children: [ - { - value: 'menu', - label: 'Menu', - }, - { - value: 'tabs', - label: 'Tabs', - }, - { - value: 'breadcrumb', - label: 'Breadcrumb', - }, - { - value: 'dropdown', - label: 'Dropdown', - }, - { - value: 'steps', - label: 'Steps', - }, - ], - }, - { - value: 'others', - label: 'Others', - children: [ - { - value: 'dialog', - label: 'Dialog', - }, - { - value: 'tooltip', - label: 'Tooltip', - }, - { - value: 'popover', - label: 'Popover', - }, - { - value: 'card', - label: 'Card', - }, - { - value: 'carousel', - label: 'Carousel', - }, - { - value: 'collapse', - label: 'Collapse', - }, ], }, ], @@ -300,14 +104,6 @@ const options = [ value: 'axure', label: 'Axure Components', }, - { - value: 'sketch', - label: 'Sketch Templates', - }, - { - value: 'docs', - label: 'Design Documentation', - }, ], }, ]