提交 3e6d924a 编写于 作者: WodahsOrez's avatar WodahsOrez

update: 组件使用规范

上级 61e245a1
<appAutoComplete <AppAutoComplete
name="{{item.codeName}}" name="{{item.codeName}}"
:data="state.data" :data="state.data"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
......
<appCheckboxList <AppCheckboxList
name="{{item.codeName}}" name="{{item.codeName}}"
:data="state.data" :data="state.data"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
......
<appCheckbox <AppCheckbox
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appCode <AppCode
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appDataPickerView <AppDataPickerView
name="{{item.codeName}}" name="{{item.codeName}}"
:data="state.data" :data="state.data"
{{#if item.valueItemName}} {{#if item.valueItemName}}
......
<appDataPicker <AppDataPicker
name="{{item.codeName}}" name="{{item.codeName}}"
:data="state.data" :data="state.data"
{{#if item.valueItemName}} {{#if item.valueItemName}}
......
<appDatePicker <AppDatePicker
name="{{item.codeName}}" name="{{item.codeName}}"
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
......
<appDropdownList <AppDropdownList
name="{{item.codeName}}" name="{{item.codeName}}"
{{#if item.psEditor.psAppCodeList}} {{#if item.psEditor.psAppCodeList}}
codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}" codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}"
......
<appInputIp <AppInputIp
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appInput <AppInput
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appListBox <AppListBox
name="{{item.codeName}}" name="{{item.codeName}}"
:data="state.data" :data="state.data"
:server="state.controlService" :server="state.controlService"
......
<appRadioGroup <AppRadioGroup
name="{{item.codeName}}" name="{{item.codeName}}"
:data="state.data" :data="state.data"
{{#if item.psEditor.psAppCodeList}} {{#if item.psEditor.psAppCodeList}}
......
<appRating <AppRating
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appRichText <AppRichText
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appSlider <AppSlider
name="{{item.codeName}}" name="{{item.codeName}}"
:date="state.data" :date="state.data"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
......
<appSpan <AppSpan
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appStepper <AppStepper
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appSwitch <AppSwitch
name="{{item.codeName}}" name="{{item.codeName}}"
{{#eq ctrlType 'form'}} {{#eq ctrlType 'form'}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
......
<appUpload <AppUpload
name="{{item.codeName}}" name="{{item.codeName}}"
{{#if item.psEditor.editorParams.method}} {{#if item.psEditor.editorParams.method}}
method="{{item.psEditor.editorParams.method}}" method="{{item.psEditor.editorParams.method}}"
......
...@@ -50,7 +50,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear ...@@ -50,7 +50,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
</template> </template>
{{#if page.enableQuickGroup}} {{#if page.enableQuickGroup}}
<template v-slot:quickGroupSearch> <template v-slot:quickGroupSearch>
<app-quick-group v-if="state.enableQuickGroup" :quickGroupModel="state.quickGroupPSCodeList" @onQuickGroupEvent="onQuickGroupEvent" /> <AppQuickGroup v-if="state.enableQuickGroup" :quickGroupModel="state.quickGroupPSCodeList" @onQuickGroupEvent="onQuickGroupEvent" />
</template> </template>
{{/if}} {{/if}}
{{#page.ctrls}} {{#page.ctrls}}
......
...@@ -28,7 +28,7 @@ defineExpose({ state, name: '{{ctrl.name}}' }); ...@@ -28,7 +28,7 @@ defineExpose({ state, name: '{{ctrl.name}}' });
</script> </script>
<template> <template>
<div class="search-bar{{#if ctrl.psSysCss}} {{ctrl.psSysCss.cssName}}{{/if}}"> <div class="search-bar{{#if ctrl.psSysCss}} {{ctrl.psSysCss.cssName}}{{/if}}">
<app-filter-tree :datas="state.filterItems" :fields="state.filterFields"/> <AppFilterTree :datas="state.filterItems" :fields="state.filterFields"/>
</div> </div>
</template> </template>
<style lang="scss"> <style lang="scss">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册