br-dionysus 0.9.18 → 1.0.0

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.
package/README.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  + MInputNumber([数值输入框组件](#数值输入框组件))
8
8
 
9
- + MNewSelectTable([新版下拉表](#新版下拉表))
10
-
11
9
  + MSelect([下拉选择器组件](#下拉选择器组件))
12
10
 
13
- + MSelectTable([下拉表格选择器](#下拉表格选择器))
11
+ + MSelectTable([新版下拉表](#新版下拉表))
12
+
13
+ + MSelectTableV1([下拉表格选择器](#下拉表格选择器))
14
14
 
15
15
  + MSelectV2([下拉选择器V2组件](#下拉选择器V2组件))
16
16
 
@@ -255,6 +255,66 @@ const test = ref<number>(0)
255
255
 
256
256
 
257
257
 
258
+ 下拉选择器组件
259
+ =================
260
+
261
+ ### 1) 基础用法
262
+
263
+
264
+
265
+ ```html
266
+
267
+ <template>
268
+ <div class="g-demo-m-select-box">
269
+ <m-select
270
+ v-model="test"
271
+ checkboxMode
272
+ multiple
273
+ >
274
+ <m-option
275
+ v-for="item in options"
276
+ :key="item.value"
277
+ :label="item.label"
278
+ :value="item.value"
279
+ ></m-option>
280
+ </m-select>
281
+ </div>
282
+ </template>
283
+
284
+ <script setup lang="ts">
285
+ import { ref } from 'vue'
286
+
287
+ const test = ref<string>('')
288
+
289
+ const options: Option[] = [{
290
+ label: '这是选项一',
291
+ value: 'a'
292
+ }, {
293
+ label: '这是选项二',
294
+ value: 'b'
295
+ }]
296
+ </script>
297
+
298
+ <style scoped>
299
+ .g-demo-m-select-box {
300
+ max-width: 1000px;
301
+ }
302
+ </style>
303
+
304
+
305
+ ```
306
+
307
+ ### 2) Attributes
308
+
309
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
310
+ |-------------------------------|:---------------------------------------------------------:|:-------:|:---:|:-----:|
311
+ | value / v-model | 绑定值 | number | - | '' |
312
+ | checkbox-mode | 是否为复选框模式(只影响样式) | boolean | - | false |
313
+ | 其他属性同element-plus的el-select组件 | https://element-plus.gitee.io/zh-CN/component/select.html | - | - | - |
314
+
315
+
316
+
317
+
258
318
  新版下拉表
259
319
  =================
260
320
 
@@ -268,7 +328,7 @@ const test = ref<number>(0)
268
328
  <div>
269
329
  <p>多选</p>
270
330
  <p>第一个选择器的值: {{ code }}</p>
271
- <m-new-select-table
331
+ <m-select-table
272
332
  class="zzz"
273
333
  ref="selectRef"
274
334
  v-model="code"
@@ -288,10 +348,10 @@ const test = ref<number>(0)
288
348
  multiple
289
349
  allowCreate
290
350
  :remoteMethod="remoteMethod"
291
- ></m-new-select-table>
351
+ ></m-select-table>
292
352
  <p>单选</p>
293
353
  <p>第二选择器的值: {{ code2 }}</p>
294
- <m-new-select-table
354
+ <m-select-table
295
355
  class="zzz"
296
356
  ref="selectRef"
297
357
  v-model="code2"
@@ -310,7 +370,7 @@ const test = ref<number>(0)
310
370
  remote
311
371
  allowCreate
312
372
  :remoteMethod="remoteMethod"
313
- ></m-new-select-table>
373
+ ></m-select-table>
314
374
  </div>
315
375
  </template>
316
376
 
@@ -509,66 +569,6 @@ onMounted(() => {
509
569
 
510
570
 
511
571
 
512
- 下拉选择器组件
513
- =================
514
-
515
- ### 1) 基础用法
516
-
517
-
518
-
519
- ```html
520
-
521
- <template>
522
- <div class="g-demo-m-select-box">
523
- <m-select
524
- v-model="test"
525
- checkboxMode
526
- multiple
527
- >
528
- <m-option
529
- v-for="item in options"
530
- :key="item.value"
531
- :label="item.label"
532
- :value="item.value"
533
- ></m-option>
534
- </m-select>
535
- </div>
536
- </template>
537
-
538
- <script setup lang="ts">
539
- import { ref } from 'vue'
540
-
541
- const test = ref<string>('')
542
-
543
- const options: Option[] = [{
544
- label: '这是选项一',
545
- value: 'a'
546
- }, {
547
- label: '这是选项二',
548
- value: 'b'
549
- }]
550
- </script>
551
-
552
- <style scoped>
553
- .g-demo-m-select-box {
554
- max-width: 1000px;
555
- }
556
- </style>
557
-
558
-
559
- ```
560
-
561
- ### 2) Attributes
562
-
563
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
564
- |-------------------------------|:---------------------------------------------------------:|:-------:|:---:|:-----:|
565
- | value / v-model | 绑定值 | number | - | '' |
566
- | checkbox-mode | 是否为复选框模式(只影响样式) | boolean | - | false |
567
- | 其他属性同element-plus的el-select组件 | https://element-plus.gitee.io/zh-CN/component/select.html | - | - | - |
568
-
569
-
570
-
571
-
572
572
  下拉表格选择器
573
573
  =================
574
574