@neatui/vue 2.5.1 → 2.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/vue",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -81,7 +81,7 @@
81
81
  words?: { [key: string | number]: any };
82
82
  limit: Array<LimitProps>;
83
83
  param: any;
84
- tools: boolean;
84
+ tools?: boolean;
85
85
  }
86
86
 
87
87
  const props: any = withDefaults(defineProps<Props>(), {
@@ -4,7 +4,7 @@
4
4
  <table ui-hide="<pad" ui-table="@b sz:l" ref="tableRef">
5
5
  <thead class="table-head-fixed">
6
6
  <tr>
7
- <th v-if="showSelectAll" col-fixed="1" min-width>
7
+ <th v-if="selected" col-fixed="1" min-width>
8
8
  <label class="mb-ss" ui-form="@a type:checkbox"><input type="checkbox" :checked="state.isAllSelect" @change="fSelectAll" /><span></span></label>
9
9
  </th>
10
10
  <template v-for="(col, idx) in state.table" :key="idx">
@@ -40,7 +40,7 @@
40
40
  <th v-if="slots.operate" col-fixed="r" class="fs-xs nowrap ar">
41
41
  <div ui-flex="row rm">
42
42
  <span class="mr-sm">{{ words['operate'] || '操作' }}</span>
43
- <IFollowView tipBoxClass="n-no">
43
+ <IFollowView v-if="tools" tipBoxClass="n-no">
44
44
  <button :ui-btn="`@a none s :square`">
45
45
  <Icon name="tableloader-setting" class="co-read"></Icon>
46
46
  </button>
@@ -69,7 +69,7 @@
69
69
  <tbody :ui-tbody-load="state.load">
70
70
  <template v-if="lists.length">
71
71
  <tr v-for="(item, idx) in lists" :key="idx" v-bind="rows.attrs" v-on="event(rows.event, item, 'td')">
72
- <td v-if="showSelectAll" col-fixed="1" min-width>
72
+ <td v-if="selected" col-fixed="1" min-width>
73
73
  <label class="mb-ss" ui-form="@a type:checkbox"><input type="checkbox" v-model="item.__selected" /><span></span></label>
74
74
  </td>
75
75
  <template v-for="(col, idx) in state.table" :key="idx">
@@ -179,7 +179,8 @@
179
179
  words?: { [key: string]: any };
180
180
  table: Array<JSONRules>;
181
181
  lists: Array<any>;
182
- showSelectAll?: boolean;
182
+ selected?: boolean;
183
+ tools?: boolean;
183
184
  rows?: {
184
185
  attrs?: { [key: string]: any };
185
186
  event?: { [key: string]: any };
@@ -190,7 +191,8 @@
190
191
  words: () => ({}),
191
192
  table: () => [],
192
193
  lists: () => [],
193
- showSelectAll: true,
194
+ selected: true,
195
+ tools: true,
194
196
  rows: () => ({ attrs: {}, event: {} })
195
197
  });
196
198