Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-02-01 09:22:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b436aff3cbb0d3792765f65222659d3fbc71b003
b436aff3
1 parent
a6daac25
fix
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
src/components/CheckboxField/index.vue
src/components/PickerField/index.vue
src/components/RadioField/index.vue
src/components/CheckboxField/index.vue
View file @
b436aff
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-01 00:
19:34
* @LastEditTime: 2023-02-01 00:
26:07
* @FilePath: /data-table/src/components/CheckboxField/index.vue
* @Description: 多项选择控件
-->
...
...
@@ -39,7 +39,7 @@
v-model="x.affix"
label=""
placeholder="请输入补充信息"
style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem;"
style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem;
margin-bottom: 0.25rem;
"
/>
</template>
</van-checkbox-group>
...
...
src/components/PickerField/index.vue
View file @
b436aff
<!--
* @Date: 2022-08-30 13:46:51
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-0
1-30 14:20:52
* @LastEditTime: 2023-0
2-01 09:12:24
* @FilePath: /data-table/src/components/PickerField/index.vue
* @Description: 单列选择器组件
-->
...
...
@@ -22,7 +22,7 @@
@click="showPicker = true"
:border="false"
/>
<
van-field v-if="has_add_info" :name="add_info_name" v-model="add_info" label="" placeholder="请输入补充信息" :border="false" style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-top: 0.25rem;" /
>
<
!-- <van-field v-if="has_add_info" :name="add_info_name" v-model="add_info" label="" placeholder="请输入补充信息" :border="false" style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-top: 0.25rem;" /> --
>
<van-popup v-model:show="showPicker" position="bottom">
<van-picker
:columns="item.component_props.options"
...
...
@@ -40,13 +40,13 @@ const props = defineProps({
// TEST: 测试新功能:选择其他选项时,下方出现输入框,如果其他项被选中,输入框值为最终录入值。
// 绑定值发生变化时回调,处理选项为其他时的输入项录入
const has_add_info = ref(false); // TODO: 文字不一定是其他,后续可能需要字段绑定一个值,标识是否有其他输入框进行判断
const add_info = ref('');
const add_info_name = ref(props.item.key + '#');
const add_info_key = ref('其他'); // TODO: 以后动态获取
//
const has_add_info = ref(false); // TODO: 文字不一定是其他,后续可能需要字段绑定一个值,标识是否有其他输入框进行判断
//
const add_info = ref('');
//
const add_info_name = ref(props.item.key + '#');
//
const add_info_key = ref('其他'); // TODO: 以后动态获取
onMounted(() => {
add_info_name.value = `${props.item.key}#${add_info_key.value}`
//
add_info_name.value = `${props.item.key}#${add_info_key.value}`
// props.item.component_props.options = props.item.component_props.options.map((opt) => {
// return {
// text: opt,
...
...
src/components/RadioField/index.vue
View file @
b436aff
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-0
1-31 23:22:38
* @LastEditTime: 2023-0
2-01 00:25:55
* @FilePath: /data-table/src/components/RadioField/index.vue
* @Description: 单项选择控件
-->
...
...
@@ -34,7 +34,7 @@
v-model="x.affix"
label=""
placeholder="请输入补充信息"
style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem;"
style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem;
margin-bottom: 0.25rem;
"
/>
</template>
</van-radio-group>
...
...
Please
register
or
login
to post a comment