free-fe-core-modules 0.0.31 → 0.0.33

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.
@@ -25,7 +25,7 @@
25
25
  <span
26
26
  v-if="Field.ReadOnly"
27
27
  class="col readonly"
28
- ref="readonlyContent"
28
+ :ref="readonlyContent"
29
29
  ></span>
30
30
  <tiny
31
31
  v-if="!Field.ReadOnly"
@@ -219,7 +219,9 @@ export default defineComponent({
219
219
 
220
220
  if (props.Field.ReadOnly) {
221
221
  watchEffect(() => {
222
- readonlyContent.value.innerHTML = fieldData.value;
222
+ if (readonlyContent.value) {
223
+ readonlyContent.value.innerHTML = fieldData.value;
224
+ }
223
225
  });
224
226
  }
225
227
 
@@ -413,7 +413,7 @@ export default defineComponent({
413
413
  filterFunc: (val, update) => {
414
414
  if (val === '') {
415
415
  update(() => {
416
- localOptions.value = this.Field.Options || [];
416
+ localOptions.value = props.Field.Options || [];
417
417
  })
418
418
  return;
419
419
  }
@@ -421,7 +421,7 @@ export default defineComponent({
421
421
  update(() => {
422
422
  const needle = val.toLowerCase();
423
423
 
424
- localOptions.value = (this.Field.Options || []).filter(opt => {
424
+ localOptions.value = (props.Field.Options || []).filter(opt => {
425
425
  return `${opt.Label || opt.Value || opt}`.toLowerCase().indexOf(needle) > -1;
426
426
  });
427
427
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-fe-core-modules",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/freeeis/free-fe-core-modules.git",
6
6
  "author": "zhiquan",
@@ -4,7 +4,7 @@
4
4
  <q-table
5
5
  flat
6
6
  bordered
7
- :rows="data ? data.docs : []"
7
+ :rows="data?.docs || []"
8
8
  :columns="columns"
9
9
  row-key="id"
10
10
  :hide-bottom="!pagination"