lambo-design-bi 0.0.255 → 0.0.256

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.
@@ -1,23 +1,23 @@
1
1
  <!-- eslint-disable -->
2
2
  <template>
3
- <div class="bi-tag-select">
4
- <Checkbox class="bi-tag-select-item" :value="checkAll" :indeterminate="indeterminate"
3
+ <div class="bi-checkbox-group">
4
+ <Checkbox class="bi-checkbox-group-item" :value="checkAll" :indeterminate="indeterminate"
5
5
  :disabled="disabled || options.length === 0" @on-change="onCheckAllChange">全选</Checkbox>
6
- <Checkbox v-for="item in options" :key="item.K" class="bi-tag-select-item" :value="isChecked(item.K)"
6
+ <Checkbox v-for="item in options" :key="item.K" class="bi-checkbox-group-item" :value="isChecked(item.K)"
7
7
  :disabled="disabled" @on-change="checked => onItemChange(item.K, checked)">{{ item.V }}</Checkbox>
8
8
  </div>
9
9
  </template>
10
10
  <script>
11
11
  /**
12
12
  * 维度标签多选组件(基于 iView Checkbox,带全选/半选)
13
- * 用法:<BiTagSelect v-model="selected" :options="[{K:'01',V:'区域'}]" />
13
+ * 用法:<BiCheckboxGroup v-model="selected" :options="[{K:'01',V:'区域'}]" />
14
14
  * 说明:不使用 CheckboxGroup——其根节点是 block div 会把内容挤到下一行;
15
15
  * 独立 Checkbox 作为行内元素排在同一行,沿用 FormItem 32px 行盒垂直对齐。
16
16
  * 项目 viewUI(@lambo-design/core,iView 分支)无 TagSelect/Space,
17
17
  * view-ui-plus 同名组件为 Vue3 实现,故在此实现
18
18
  */
19
19
  export default {
20
- name: 'BiTagSelect',
20
+ name: 'BiCheckboxGroup',
21
21
  model: {
22
22
  prop: 'value',
23
23
  event: 'input'
@@ -84,13 +84,13 @@ export default {
84
84
  /* 字号/颜色显式对齐 iView 输入框(14px/#515a6e):
85
85
  旁边的多选下拉已选项是 element-ui mini tag 12px,
86
86
  不随之缩小——14px 是表单正文标准,缩小反而与其他查询条件不一致 */
87
- .bi-tag-select {
87
+ .bi-checkbox-group {
88
88
  line-height: 32px;
89
89
  font-size: 14px;
90
90
  color: #515a6e;
91
91
  }
92
92
 
93
- .bi-tag-select ::v-deep .bi-tag-select-item {
93
+ .bi-checkbox-group ::v-deep .bi-checkbox-group-item {
94
94
  margin-right: 12px;
95
95
  vertical-align: middle;
96
96
  font-size: 14px;
@@ -13,7 +13,7 @@
13
13
  <FormItem :label="dimensionLabel">
14
14
  <div class="bi-dim-tags-row">
15
15
  <div class="bi-dim-tags-row__tags">
16
- <BiTagSelect v-model="dimSelected" :options="dimTagOptions" @on-change="onDimTagsChange"></BiTagSelect>
16
+ <BiCheckboxGroup v-model="dimSelected" :options="dimTagOptions" @on-change="onDimTagsChange"></BiCheckboxGroup>
17
17
  </div>
18
18
  <Button type="text" class="bi-dim-detail-toggle" :title="dimDetailsCollapsed ? '展开维度明细' : '收起维度明细'"
19
19
  @click="dimDetailsCollapsed = !dimDetailsCollapsed">
@@ -41,7 +41,7 @@ import LamboQueryFilter from "@lambo-design/query-filter"
41
41
  import { deepCopy } from "@lambo-design/shared/utils/assist"
42
42
  import moment from 'moment'
43
43
  import BiSearchItem from "./search-item.vue"
44
- import BiTagSelect from "./tag-select.vue"
44
+ import BiCheckboxGroup from "./checkbox-group.vue"
45
45
  import {
46
46
  SEARCH_DICT,
47
47
  DATE_RANGE_PFIX,
@@ -54,7 +54,7 @@ import { setDimensionBlock, clearDimensionState } from '../util/dimension-state'
54
54
 
55
55
  export default {
56
56
  name: 'BiSearchForm',
57
- components: { LamboQueryFilter, BiSearchItem, BiTagSelect },
57
+ components: { LamboQueryFilter, BiSearchItem, BiCheckboxGroup },
58
58
  props: {
59
59
  widget: {
60
60
  type: Object,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambo-design-bi",
3
- "version": "0.0.255",
3
+ "version": "0.0.256",
4
4
  "description": "Vue2 BI 数据可视化组件库",
5
5
  "main": "index.js",
6
6
  "author": "finch",