af-mobile-client-vue3 1.0.73 → 1.0.74

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,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.0.73",
4
+ "version": "1.0.74",
5
5
  "description": "Vue + Vite component lib",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -36,20 +36,22 @@ const emits = defineEmits(['confirm', 'change', 'cancel', 'input'])
36
36
  const show = ref(false)
37
37
  const searchVal = ref('')
38
38
  const resultValue = defineModel()
39
- let columnsData = ref([])
39
+ const columnsData = ref([])
40
40
  const selectedOption = ref([])
41
41
 
42
42
  // 转换空children为空字符串
43
43
  function transformColumns(data) {
44
- return data.map(item => {
44
+ return data.map((item) => {
45
45
  if (item.children && item.children.length === 0) {
46
46
  return {
47
47
  ...item,
48
- children: ''
48
+ children: '',
49
49
  }
50
- } else if (item.children && item.children.length !== 0) {
51
- return { ...item, children:transformColumns(item.children) }
52
- } else {
50
+ }
51
+ else if (item.children && item.children.length !== 0) {
52
+ return { ...item, children: transformColumns(item.children) }
53
+ }
54
+ else {
53
55
  return { ...item }
54
56
  }
55
57
  })
@@ -78,7 +80,8 @@ function search(val) {
78
80
  const data = props.offOption ? item : item[props.option.text]
79
81
  return data.includes(val)
80
82
  })
81
- } else {
83
+ }
84
+ else {
82
85
  columnsData.value = transformColumns(props.columns)
83
86
  }
84
87
  }
@@ -139,6 +142,6 @@ watch(() => resultValue, (newVal, _oldVal) => {
139
142
  </VanPopup>
140
143
  </template>
141
144
 
142
- <style lang="scss" scoped>
145
+ <style scoped>
143
146
  /* 样式定义 */
144
- </style>
147
+ </style>
@@ -45,7 +45,7 @@ const colFieldNames = {
45
45
  }
46
46
 
47
47
  // 查询条件参数 !!!!!建议最后点击确认的时候完成这个的整理
48
- const conditionParams = ref({fixQueryForm: props.fixQueryForm})
48
+ const conditionParams = ref({ ...props.fixQueryForm })
49
49
 
50
50
  // 重置某个选项
51
51
  function resetOptionItem(type) {
@@ -57,7 +57,7 @@ function resetOption() {
57
57
  currentOrderVal.value = undefined
58
58
  currentSortordVal.value = undefined
59
59
  // 条件参数
60
- conditionParams.value = {fixQueryForm: props.fixQueryForm}
60
+ conditionParams.value = { ...props.fixQueryForm }
61
61
  }
62
62
  function checkOrderOption() {
63
63
  let isCheck = true
@@ -141,7 +141,7 @@ onMounted(() => {
141
141
  </div>
142
142
  </VanCol>
143
143
  </VanRow>
144
- <XFormItem v-model="conditionParams[item.model]" :form='conditionParams' :attr="item" :show-label="false" />
144
+ <XFormItem v-model="conditionParams[item.model]" :form="conditionParams" :attr="item" :show-label="false" />
145
145
  </template>
146
146
  </div>
147
147
  <div class="operations-panel">
@@ -84,6 +84,7 @@ function deleteRow(result) {
84
84
  <template #layout_content>
85
85
  <XCellList
86
86
  :config-name="configName"
87
+ :fix-query-form="{o_f_oper_name:'edu_test'}"
87
88
  :id-key="idKey"
88
89
  @to-detail="toDetail"
89
90
  @delete-row="deleteRow"