xm-title-bar.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div>
  3. <a-form-model-item label="标题名称">
  4. <a-input v-model="component.attrFD.formItemProps.inputProps.barTitle"></a-input>
  5. </a-form-model-item>
  6. <a-form-model-item label="标题栏颜色">
  7. <a-input disabled :value="component.attrFD.formItemProps.inputProps.barColor.hex" />
  8. <sd-color v-model="component.attrFD.formItemProps.inputProps.barColor" />
  9. </a-form-model-item>
  10. </div>
  11. </template>
  12. <script>
  13. import components from './_import-components/xm-title-bar-import'
  14. export const metaInfo = {
  15. caption: '标题栏',
  16. component: {
  17. render() {
  18. return <span>标题栏</span>
  19. },
  20. },
  21. icon: 'sd-square',
  22. // 不需要的配置属性
  23. hiddenProps: [
  24. 'readonly',
  25. 'required',
  26. 'name',
  27. 'caption',
  28. 'description',
  29. 'displayExpr',
  30. 'mobileVisible',
  31. ],
  32. }
  33. export const fieldProps = {
  34. dataType: 'string',
  35. attrFD: {
  36. hideLabel: true,
  37. // 前端控件 不需要保存到数据库
  38. transient: true,
  39. formItemProps: { inputProps: { barTitle: '标题栏', barColor: { hex: '#fff' } } },
  40. },
  41. }
  42. export default {
  43. name: 'XmTitleBar',
  44. metaInfo: {
  45. title: 'XmTitleBar',
  46. },
  47. components,
  48. data() {
  49. return {}
  50. },
  51. methods: {},
  52. }
  53. </script>
  54. <style module lang="scss">
  55. @use '@/common/design' as *;
  56. </style>