@ebiz/designer-components 0.0.18-beta.4 → 0.0.18-beta.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,126 @@
1
+ <template>
2
+ <div class="dialog-demo">
3
+ <h1>TDesign Dialog 组件示例</h1>
4
+
5
+ <h2>基础对话框</h2>
6
+ <div class="demo-section">
7
+ <EbizButton theme="primary" @click="showBasicDialog = true">打开基础对话框</EbizButton>
8
+ <EbizDialog v-model:visible="showBasicDialog" header="基础对话框" :body="'这是一个基础对话框,用于展示简单的信息或进行简单的操作。'"
9
+ :confirm-btn="{ content: '确认', theme: 'primary' }" cancel-btn="取消" />
10
+ </div>
11
+
12
+ <h2>不同模式的对话框</h2>
13
+ <div class="demo-section">
14
+ <EbizButton @click="showModalDialog = true" style="margin-right: 16px;">模态对话框</EbizButton>
15
+ <EbizButton @click="showModelessDialog = true" style="margin-right: 16px;">非模态对话框</EbizButton>
16
+ <EbizButton @click="showFullscreenDialog = true">全屏对话框</EbizButton>
17
+
18
+ <!-- 模态对话框 -->
19
+ <EbizDialog v-model:visible="showModalDialog" header="模态对话框" mode="modal" :body="'模态对话框会阻止用户与页面的其他部分交互,直到对话框关闭。'"
20
+ :confirm-btn="{ content: '确认', theme: 'primary' }" cancel-btn="取消" />
21
+
22
+ <!-- 非模态对话框 -->
23
+ <EbizDialog v-model:visible="showModelessDialog" header="非模态对话框" mode="modeless"
24
+ :body="'非模态对话框不会阻止用户与页面的其他部分交互,可以同时进行其他操作。'" :confirm-btn="{ content: '确认', theme: 'primary' }"
25
+ cancel-btn="取消" />
26
+
27
+ <!-- 全屏对话框 -->
28
+ <EbizDialog v-model:visible="showFullscreenDialog" header="全屏对话框" mode="full-screen"
29
+ :body="'全屏对话框会占据整个屏幕,通常用于需要用户完全专注于某项任务的场景。'" :confirm-btn="{ content: '确认', theme: 'primary' }"
30
+ cancel-btn="取消" />
31
+ </div>
32
+
33
+ <h2>自定义内容的对话框</h2>
34
+ <div class="demo-section">
35
+ <EbizButton @click="showCustomDialog = true">打开自定义内容对话框</EbizButton>
36
+ <EbizDialog v-model:visible="showCustomDialog" header="自定义内容" :width="500">
37
+ <template #body>
38
+ <div style="padding: 20px;">
39
+ <h3>这是自定义的内容区域</h3>
40
+ <p>可以在这里放置任何你想要展示的内容,包括表单、图表、列表等。</p>
41
+ <div style="margin-top: 20px;">
42
+ <EbizTdesignInput v-model="customInput" placeholder="请输入内容" />
43
+ </div>
44
+ </div>
45
+ </template>
46
+ <template #footer>
47
+ <div style="display: flex; justify-content: flex-end;">
48
+ <EbizButton @click="showCustomDialog = false" style="margin-right: 8px;">取消</EbizButton>
49
+ <EbizButton theme="primary" @click="handleCustomConfirm">确认</EbizButton>
50
+ </div>
51
+ </template>
52
+ </EbizDialog>
53
+ </div>
54
+
55
+ <h2>可拖拽的对话框</h2>
56
+ <div class="demo-section">
57
+ <EbizButton @click="showDraggableDialog = true">打开可拖拽对话框</EbizButton>
58
+ <EbizDialog v-model:visible="showDraggableDialog" header="可拖拽对话框" :draggable="true" :body="'这个对话框可以通过拖拽标题栏进行移动。'"
59
+ :confirm-btn="{ content: '确认', theme: 'primary' }" cancel-btn="取消" />
60
+ </div>
61
+
62
+ <h2>不同位置的对话框</h2>
63
+ <div class="demo-section">
64
+ <EbizButton @click="showTopDialog = true" style="margin-right: 16px;">顶部对话框</EbizButton>
65
+ <EbizButton @click="showCenterDialog = true">居中对话框</EbizButton>
66
+
67
+ <!-- 顶部对话框 -->
68
+ <EbizDialog v-model:visible="showTopDialog" header="顶部对话框" placement="top" :body="'这个对话框位于顶部。'"
69
+ :confirm-btn="{ content: '确认', theme: 'primary' }" cancel-btn="取消" />
70
+
71
+ <!-- 居中对话框 -->
72
+ <EbizDialog v-model:visible="showCenterDialog" header="居中对话框" placement="center" :body="'这个对话框位于页面中央。'"
73
+ :confirm-btn="{ content: '确认', theme: 'primary' }" cancel-btn="取消" />
74
+ </div>
75
+ </div>
76
+ </template>
77
+
78
+ <script setup>
79
+ import { ref } from 'vue';
80
+ import { EbizDialog, EbizButton, EbizTdesignInput } from '../index.js';
81
+
82
+ // 基础对话框
83
+ const showBasicDialog = ref(false);
84
+
85
+ // 不同模式的对话框
86
+ const showModalDialog = ref(false);
87
+ const showModelessDialog = ref(false);
88
+ const showFullscreenDialog = ref(false);
89
+
90
+ // 自定义内容的对话框
91
+ const showCustomDialog = ref(false);
92
+ const customInput = ref('');
93
+
94
+ // 可拖拽的对话框
95
+ const showDraggableDialog = ref(false);
96
+
97
+ // 不同位置的对话框
98
+ const showTopDialog = ref(false);
99
+ const showCenterDialog = ref(false);
100
+
101
+ // 自定义确认处理函数
102
+ const handleCustomConfirm = () => {
103
+ // 在实际应用中,这里可以添加表单验证或数据处理逻辑
104
+ console.log('自定义确认按钮点击,输入内容:', customInput.value);
105
+ showCustomDialog.value = false;
106
+ };
107
+ </script>
108
+
109
+ <style lang="less" scoped>
110
+ .dialog-demo {
111
+ padding: 20px;
112
+
113
+ h1 {
114
+ margin-bottom: 20px;
115
+ }
116
+
117
+ h2 {
118
+ margin-top: 30px;
119
+ margin-bottom: 16px;
120
+ }
121
+
122
+ .demo-section {
123
+ margin-bottom: 24px;
124
+ }
125
+ }
126
+ </style>
@@ -0,0 +1,31 @@
1
+ <template>
2
+ <div>
3
+ <ebiz-route-breadcrumb />
4
+ <ebiz-detail-block :model="model" :labelMap="labelMap" :gap="10" :labelSize="20" :labelColor="'#000'" :valueSize="20" :valueColor="'#000'"/>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import { EbizDetailBlock } from '@/index.js'
10
+
11
+ export default {
12
+ name: 'EbizDetailBlockDemo',
13
+ components: {
14
+ EbizDetailBlock
15
+ },
16
+ data() {
17
+ return {
18
+ model: {
19
+ "name": "张三",
20
+ "sex": "男"
21
+ },
22
+ labelMap:{
23
+ "name": "姓名",
24
+ "sex": "性别"
25
+ }
26
+ }
27
+ },
28
+ }
29
+ </script>
30
+
31
+ <style scoped></style>
@@ -1,12 +1,22 @@
1
1
  <template>
2
2
  <div class="home">
3
- <h1>组件库示例</h1>
3
+ <h1>Ebiz 组件库</h1>
4
4
  <div class="component-list">
5
5
  <div v-for="(item, index) in components" :key="index" class="component-item">
6
6
  <router-link :to="item.path" class="component-link">
7
7
  {{ item.title }}
8
8
  </router-link>
9
9
  </div>
10
+
11
+ <router-link to="/tree-demo" class="component-item">
12
+ <div class="component-title">树组件</div>
13
+ <div class="component-desc">用于展示层级结构和操作的组件</div>
14
+ </router-link>
15
+
16
+ <router-link to="/tree-selector-demo" class="component-item">
17
+ <div class="component-title">树形选择器</div>
18
+ <div class="component-desc">基于树组件的选择器,支持搜索和多选</div>
19
+ </router-link>
10
20
  </div>
11
21
  </div>
12
22
  </template>
@@ -52,7 +62,14 @@ export default {
52
62
  { path: '/watermark', title: 'TDesign水印组件示例' },
53
63
  { path: '/ebiz-avatar', title: 'Ebiz头像组件示例' },
54
64
  { path: '/ebiz-employee-info', title: 'Ebiz员工信息组件示例' },
55
- { path: '/tdesign-alert', title: 'TDesign提示组件示例' }
65
+ { path: '/tdesign-alert', title: 'TDesign提示组件示例' },
66
+ { path: '/tdesign-dialog', title: 'TDesign对话框组件示例' },
67
+ { path: '/page-header', title: 'Ebiz页面头部组件示例' },
68
+ { path: '/table-demo', title: 'Ebiz表格组件示例' },
69
+ { path: '/ebiz-detail-block', title: 'Ebiz详情块组件示例' },
70
+ { path: '/table-column', title: 'Ebiz表格列组件示例' },
71
+ { path: '/table-sort', title: 'Ebiz表格排序组件示例' },
72
+ { path: '/tree', title: 'Ebiz树组件示例' }
56
73
  ]
57
74
 
58
75
  return {
@@ -90,4 +107,18 @@ export default {
90
107
  .component-link:hover {
91
108
  color: #1890ff;
92
109
  }
110
+
111
+ .component-title {
112
+ font-size: 16px;
113
+ font-weight: bold;
114
+ margin-bottom: 10px;
115
+ }
116
+
117
+ .component-desc {
118
+ font-size: 14px;
119
+ }
120
+
121
+ .component-item:hover {
122
+ background-color: #e6e6e6;
123
+ }
93
124
  </style>
@@ -0,0 +1,105 @@
1
+ <template>
2
+ <div class="demo-container">
3
+ <h2>页面头部组件演示</h2>
4
+
5
+ <div class="section">
6
+ <h3>基础用法</h3>
7
+ <div class="example">
8
+ <EbizPageHeader />
9
+ </div>
10
+ <div class="code">
11
+ <pre><code>&lt;EbizPageHeader /&gt;</code></pre>
12
+ </div>
13
+ </div>
14
+
15
+ <div class="section">
16
+ <h3>功能说明</h3>
17
+ <div class="description">
18
+ <p>此组件会自动根据当前路由信息生成面包屑导航。确保路由配置中包含以下meta信息:</p>
19
+ <pre><code>
20
+ // 路由配置示例
21
+ {
22
+ path: '/hr',
23
+ component: HR,
24
+ meta: {
25
+ title: '人事管理', // 面包屑显示的标题
26
+ icon: 'user' // 面包屑的图标名称,使用TDesign图标
27
+ },
28
+ children: [
29
+ {
30
+ path: 'employee',
31
+ component: Employee,
32
+ meta: {
33
+ title: '员工管理',
34
+ icon: 'user-talk'
35
+ }
36
+ }
37
+ ]
38
+ }
39
+ </code></pre>
40
+ </div>
41
+ </div>
42
+
43
+ <div class="section">
44
+ <h3>帮助文档跳转</h3>
45
+ <p>点击帮助文档按钮会自动跳转到 /help 路径,并带上当前路由作为查询参数。</p>
46
+ </div>
47
+ </div>
48
+ </template>
49
+
50
+ <script setup>
51
+ import { EbizPageHeader } from '../index.js'
52
+ </script>
53
+
54
+ <style scoped>
55
+ .demo-container {
56
+ padding: 20px;
57
+ max-width: 1200px;
58
+ margin: 0 auto;
59
+ }
60
+
61
+ h2 {
62
+ margin-bottom: 24px;
63
+ font-weight: 500;
64
+ color: #1a1a1a;
65
+ }
66
+
67
+ .section {
68
+ margin-bottom: 32px;
69
+ border: 1px solid #e9e9e9;
70
+ border-radius: 4px;
71
+ overflow: hidden;
72
+ }
73
+
74
+ h3 {
75
+ padding: 16px;
76
+ margin: 0;
77
+ font-weight: 500;
78
+ background-color: #f7f7f7;
79
+ border-bottom: 1px solid #e9e9e9;
80
+ }
81
+
82
+ .example {
83
+ padding: 24px;
84
+ border-bottom: 1px dashed #e9e9e9;
85
+ }
86
+
87
+ .code {
88
+ padding: 16px;
89
+ background-color: #f7f7f7;
90
+ }
91
+
92
+ pre {
93
+ margin: 0;
94
+ overflow-x: auto;
95
+ }
96
+
97
+ code {
98
+ font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
99
+ font-size: 14px;
100
+ }
101
+
102
+ .description {
103
+ padding: 16px;
104
+ }
105
+ </style>
@@ -1,20 +1,351 @@
1
1
  <template>
2
- <div>
2
+ <div class="remote-select-demo-container">
3
3
  <ebiz-route-breadcrumb />
4
- <ebiz-remote-select />
4
+
5
+ <div class="demo-section">
6
+ <h3>基础用法</h3>
7
+ <p>基础的远程搜索选择器,支持远程数据加载</p>
8
+ <div class="demo-block">
9
+ <ebiz-remote-select
10
+ v-model="selectedValue"
11
+ :apiConfig="apiConfig"
12
+ @change="handleChange"
13
+ />
14
+ <div class="selected-value">当前选中值: {{ selectedValue || '暂无选择' }}</div>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="demo-section">
19
+ <h3>多选模式</h3>
20
+ <p>设置 multiple 属性启用多选模式</p>
21
+ <div class="demo-block">
22
+ <ebiz-remote-select
23
+ v-model="multipleSelectedValue"
24
+ :apiConfig="apiConfig"
25
+ multiple
26
+ @change="handleMultipleChange"
27
+ />
28
+ <div class="selected-value">当前选中值: {{ multipleSelectedValue?.length ? multipleSelectedValue.join(', ') : '暂无选择' }}</div>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="demo-section">
33
+ <h3>不同数据源</h3>
34
+ <p>可通过不同的API配置加载不同数据源</p>
35
+ <div class="demo-block">
36
+ <div class="data-source-row">
37
+ <span class="source-label">用户数据:</span>
38
+ <ebiz-remote-select
39
+ v-model="dataSourceValues.users"
40
+ :apiConfig="dataSourceConfigs.users"
41
+ placeholder="选择用户"
42
+ />
43
+ </div>
44
+ <div class="data-source-row">
45
+ <span class="source-label">产品数据:</span>
46
+ <ebiz-remote-select
47
+ v-model="dataSourceValues.products"
48
+ :apiConfig="dataSourceConfigs.products"
49
+ placeholder="选择产品"
50
+ />
51
+ </div>
52
+ <div class="data-source-row">
53
+ <span class="source-label">城市数据:</span>
54
+ <ebiz-remote-select
55
+ v-model="dataSourceValues.cities"
56
+ :apiConfig="dataSourceConfigs.cities"
57
+ placeholder="选择城市"
58
+ />
59
+ </div>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="demo-section">
64
+ <h3>不同尺寸</h3>
65
+ <p>提供三种不同尺寸的选择器</p>
66
+ <div class="demo-block">
67
+ <div class="size-row">
68
+ <span class="size-label">小尺寸:</span>
69
+ <ebiz-remote-select
70
+ v-model="sizeValues.small"
71
+ :apiConfig="apiConfig"
72
+ size="small"
73
+ placeholder="小尺寸选择器"
74
+ />
75
+ </div>
76
+ <div class="size-row">
77
+ <span class="size-label">中尺寸:</span>
78
+ <ebiz-remote-select
79
+ v-model="sizeValues.medium"
80
+ :apiConfig="apiConfig"
81
+ size="medium"
82
+ placeholder="中尺寸选择器"
83
+ />
84
+ </div>
85
+ <div class="size-row">
86
+ <span class="size-label">大尺寸:</span>
87
+ <ebiz-remote-select
88
+ v-model="sizeValues.large"
89
+ :apiConfig="apiConfig"
90
+ size="large"
91
+ placeholder="大尺寸选择器"
92
+ />
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <div class="demo-section">
98
+ <h3>禁用状态</h3>
99
+ <p>设置 disabled 属性禁用选择器</p>
100
+ <div class="demo-block">
101
+ <ebiz-remote-select
102
+ v-model="disabledValue"
103
+ :apiConfig="apiConfig"
104
+ disabled
105
+ placeholder="禁用状态"
106
+ />
107
+ </div>
108
+ </div>
109
+
110
+ <div class="demo-section">
111
+ <h3>带前缀图标</h3>
112
+ <p>通过 slot 自定义前缀图标</p>
113
+ <div class="demo-block">
114
+ <ebiz-remote-select
115
+ v-model="prefixIconValue"
116
+ :apiConfig="apiConfig"
117
+ placeholder="带前缀图标的选择器"
118
+ >
119
+ <template #prefix>
120
+ <t-icon name="search" />
121
+ </template>
122
+ </ebiz-remote-select>
123
+ </div>
124
+ </div>
125
+
126
+ <div class="demo-section">
127
+ <h3>自定义查询参数</h3>
128
+ <p>通过 queryParams 自定义查询参数</p>
129
+ <div class="demo-block">
130
+ <div class="query-params-control">
131
+ <t-input v-model="customQueryParam" placeholder="输入过滤条件" />
132
+ <t-button theme="primary" style="margin-left: 8px;" @click="updateQueryParams">应用过滤</t-button>
133
+ </div>
134
+ <ebiz-remote-select
135
+ v-model="queryParamsValue"
136
+ :apiConfig="apiConfig"
137
+ :queryParams="queryParams"
138
+ placeholder="带自定义查询参数的选择器"
139
+ />
140
+ </div>
141
+ </div>
142
+
143
+ <div class="demo-section">
144
+ <h3>API 参考</h3>
145
+ <t-table :data="propsData" :columns="propsColumns" bordered size="small" stripe />
146
+ <h4 style="margin-top: 16px;">事件</h4>
147
+ <t-table :data="eventsData" :columns="eventsColumns" bordered size="small" stripe />
148
+ <h4 style="margin-top: 16px;">插槽</h4>
149
+ <t-table :data="slotsData" :columns="slotsColumns" bordered size="small" stripe />
150
+ </div>
5
151
  </div>
6
152
  </template>
7
153
 
8
154
  <script>
155
+ import { defineComponent } from 'vue'
9
156
  import { EbizRemoteSelect } from '@/index.js'
157
+ import { Icon, Button, Input, Table } from 'tdesign-vue-next'
10
158
 
11
- export default {
159
+ // 替换实际的数据服务 - 用于演示
160
+ import dataServiceModule from '../apiService/simpleDataService'
161
+ // 备份原始fetch方法
162
+ dataServiceModule.fetch = dataServiceModule.fetch
163
+
164
+ export default defineComponent({
12
165
  name: 'RemoteSelectDemo',
13
166
  components: {
14
- EbizRemoteSelect
167
+ EbizRemoteSelect,
168
+ TIcon: Icon,
169
+ TButton: Button,
170
+ TInput: Input,
171
+ TTable: Table
172
+ },
173
+ data() {
174
+ return {
175
+ // 基础示例的选中值
176
+ selectedValue: '',
177
+
178
+ // 多选示例的选中值
179
+ multipleSelectedValue: [],
180
+
181
+ // 不同数据源示例的选中值
182
+ dataSourceValues: {
183
+ users: '',
184
+ products: '',
185
+ cities: ''
186
+ },
187
+
188
+ // 不同数据源配置
189
+ dataSourceConfigs: {
190
+ users: {
191
+ key: 'user_options',
192
+ apiId: 'mockUserList',
193
+ apiType: 'MULTIPLE_DATA_SEARCH'
194
+ },
195
+ products: {
196
+ key: 'product_options',
197
+ apiId: 'mockProductList',
198
+ apiType: 'MULTIPLE_DATA_SEARCH'
199
+ },
200
+ cities: {
201
+ key: 'city_options',
202
+ apiId: 'mockCityList',
203
+ apiType: 'MULTIPLE_DATA_SEARCH'
204
+ }
205
+ },
206
+
207
+ // 不同尺寸示例的选中值
208
+ sizeValues: {
209
+ small: '',
210
+ medium: '',
211
+ large: ''
212
+ },
213
+
214
+ // 禁用状态示例的选中值
215
+ disabledValue: '',
216
+
217
+ // 带前缀图标示例的选中值
218
+ prefixIconValue: '',
219
+
220
+ // 自定义查询参数示例
221
+ queryParamsValue: '',
222
+ customQueryParam: '',
223
+ queryParams: {},
224
+
225
+ // API配置
226
+ apiConfig: {
227
+ key: 'user_options',
228
+ apiId: 123,
229
+ apiType: 'MULTIPLE_DATA_SEARCH'
230
+ },
231
+
232
+ // API参考数据
233
+ propsColumns: [
234
+ { colKey: 'name', title: '属性名', width: '15%' },
235
+ { colKey: 'type', title: '类型', width: '15%' },
236
+ { colKey: 'default', title: '默认值', width: '15%' },
237
+ { colKey: 'desc', title: '说明' }
238
+ ],
239
+ propsData: [
240
+ { name: 'apiConfig', type: 'Object', default: '{}', desc: 'API配置,包含 key, apiId, apiType 属性' },
241
+ { name: 'queryParams', type: 'Object', default: '{}', desc: '查询参数,用于传递给后端API的查询条件' },
242
+ { name: 'multiple', type: 'Boolean', default: 'false', desc: '是否支持多选' },
243
+ { name: 'placeholder', type: 'String', default: '请选择', desc: '输入框占位文本' },
244
+ { name: 'clearable', type: 'Boolean', default: 'true', desc: '是否可以清空选项' },
245
+ { name: 'disabled', type: 'Boolean', default: 'false', desc: '是否禁用' },
246
+ { name: 'modelValue', type: 'String / Number / Array', default: "''", desc: '选择器选中值' },
247
+ { name: 'optionsConfig', type: 'Object', default: '{}', desc: '选项配置,包含 labelField, valueField 属性' },
248
+ { name: 'size', type: 'String', default: 'medium', desc: '组件尺寸,可选值为 small / medium / large' },
249
+ { name: 'emptyText', type: 'String', default: '暂无数据', desc: '空数据提示文本' },
250
+ { name: 'popupProps', type: 'Object', default: '{}', desc: '下拉弹出层的配置选项' }
251
+ ],
252
+
253
+ eventsColumns: [
254
+ { colKey: 'name', title: '事件名', width: '15%' },
255
+ { colKey: 'params', title: '参数', width: '25%' },
256
+ { colKey: 'desc', title: '说明' }
257
+ ],
258
+ eventsData: [
259
+ { name: 'update:modelValue', params: '(value: String / Number / Array)', desc: '选中值变化时触发,用于 v-model 双向绑定' },
260
+ { name: 'change', params: '(value: String / Number / Array, context: Object)', desc: '选中值发生变化时触发' },
261
+ { name: 'focus', params: '(value: String / Number / Array, context: Object)', desc: '获得焦点时触发' },
262
+ { name: 'blur', params: '(value: String / Number / Array, context: Object)', desc: '失去焦点时触发' }
263
+ ],
264
+
265
+ slotsColumns: [
266
+ { colKey: 'name', title: '插槽名', width: '15%' },
267
+ { colKey: 'desc', title: '说明' }
268
+ ],
269
+ slotsData: [
270
+ { name: 'prefix', desc: '自定义选择器前缀图标内容' },
271
+ { name: 'suffix', desc: '自定义选择器后缀图标内容' }
272
+ ]
273
+ }
274
+ },
275
+ methods: {
276
+ // 基础示例的选中值变化处理
277
+ handleChange(value) {
278
+ console.log('基础示例选中值变化:', value)
279
+ },
280
+
281
+ // 多选示例的选中值变化处理
282
+ handleMultipleChange(value) {
283
+ console.log('多选示例选中值变化:', value)
284
+ },
285
+
286
+ // 更新自定义查询参数
287
+ updateQueryParams() {
288
+ this.queryParams = {
289
+ keyword: this.customQueryParam
290
+ }
291
+ }
292
+ },
293
+ // 在组件卸载时恢复原始的fetch方法
294
+ unmounted() {
295
+ dataServiceModule.fetch = originalFetch
15
296
  }
16
- }
297
+ })
17
298
  </script>
18
299
 
19
300
  <style scoped>
301
+ .remote-select-demo-container {
302
+ padding: 20px;
303
+ }
304
+
305
+ .demo-section {
306
+ margin-bottom: 30px;
307
+ border-bottom: 1px solid #eee;
308
+ padding-bottom: 20px;
309
+ }
310
+
311
+ .demo-section h3 {
312
+ font-size: 18px;
313
+ font-weight: 600;
314
+ margin-bottom: 8px;
315
+ }
316
+
317
+ .demo-section p {
318
+ color: #666;
319
+ margin-bottom: 16px;
320
+ }
321
+
322
+ .demo-block {
323
+ background: #f9f9f9;
324
+ padding: 20px;
325
+ border-radius: 6px;
326
+ margin-top: 10px;
327
+ }
328
+
329
+ .selected-value {
330
+ margin-top: 10px;
331
+ font-size: 14px;
332
+ color: #666;
333
+ }
334
+
335
+ .size-row, .data-source-row {
336
+ display: flex;
337
+ align-items: center;
338
+ margin-bottom: 16px;
339
+ }
340
+
341
+ .size-label, .source-label {
342
+ width: 70px;
343
+ text-align: right;
344
+ margin-right: 8px;
345
+ }
346
+
347
+ .query-params-control {
348
+ display: flex;
349
+ margin-bottom: 16px;
350
+ }
20
351
  </style>