提交 db1c3eb4 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新文本项

上级 68eba869
...@@ -115,9 +115,9 @@ import AppStandardContainer from './components/layout-element/container/app-stan ...@@ -115,9 +115,9 @@ import AppStandardContainer from './components/layout-element/container/app-stan
import AppTabPanel from './components/layout-element/container/app-tab-panel/app-tab-panel.vue'; import AppTabPanel from './components/layout-element/container/app-tab-panel/app-tab-panel.vue';
import AppTabPage from './components/layout-element/container/app-tab-page/app-tab-page.vue'; import AppTabPage from './components/layout-element/container/app-tab-page/app-tab-page.vue';
import AppNavPos from './components/layout-element/container/app-nav-pos/app-nav-pos.vue'; import AppNavPos from './components/layout-element/container/app-nav-pos/app-nav-pos.vue';
import AppPreSetText from './components/layout-element/text/app-preset-text/app-preset-text.vue'; import AppPresetText from './components/layout-element/text/app-preset-text/app-preset-text.vue';
import AppPreSetCaption from './components/layout-element/text/app-preset-caption/app-preset-caption.vue'; import AppPresetCaption from './components/layout-element/text/app-preset-caption/app-preset-caption.vue';
import AppPreSetTitle from './components/layout-element/text/app-preset-title/app-preset-title.vue'; import AppPresetTitle from './components/layout-element/text/app-preset-title/app-preset-title.vue';
import AppLoginInput from './components/layout-element/login/app-login-input/app-login-input.vue'; import AppLoginInput from './components/layout-element/login/app-login-input/app-login-input.vue';
import AppLoginButton from './components/layout-element/login/app-login-button/app-login-button.vue'; import AppLoginButton from './components/layout-element/login/app-login-button/app-login-button.vue';
import AppLoginOrg from './components/layout-element/login/app-login-org/app-login-org.vue'; import AppLoginOrg from './components/layout-element/login/app-login-org/app-login-org.vue';
...@@ -254,9 +254,9 @@ export const AppComponents = { ...@@ -254,9 +254,9 @@ export const AppComponents = {
v.component('app-tab-panel', AppTabPanel); v.component('app-tab-panel', AppTabPanel);
v.component('app-tab-page', AppTabPage); v.component('app-tab-page', AppTabPage);
v.component('app-nav-pos', AppNavPos); v.component('app-nav-pos', AppNavPos);
v.component('app-preset-text',AppPreSetText); v.component('app-preset-text',AppPresetText);
v.component('app-preset-caption',AppPreSetCaption); v.component('app-preset-caption',AppPresetCaption);
v.component('app-preset-title',AppPreSetTitle); v.component('app-preset-title',AppPresetTitle);
v.component('app-login-input',AppLoginInput); v.component('app-login-input',AppLoginInput);
v.component('app-login-button',AppLoginButton); v.component('app-login-button',AppLoginButton);
v.component('app-login-org',AppLoginOrg); v.component('app-login-org',AppLoginOrg);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import { Vue, Component } from "vue-property-decorator"; import { Vue, Component } from "vue-property-decorator";
@Component({}) @Component({})
export default class AppPreSetCaption extends Vue {} export default class AppPresetCaption extends Vue {}
</script> </script>
<style lang='less'> <style lang='less'>
......
...@@ -48,13 +48,13 @@ ...@@ -48,13 +48,13 @@
import { Vue, Component, Prop } from 'vue-property-decorator'; import { Vue, Component, Prop } from 'vue-property-decorator';
@Component({}) @Component({})
export default class AppPreSetText extends Vue { export default class AppPresetText extends Vue {
/** /**
* 输入值 * 输入值
* *
* @type {*} * @type {*}
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
@Prop() public value!: any; @Prop() public value!: any;
...@@ -62,7 +62,7 @@ export default class AppPreSetText extends Vue { ...@@ -62,7 +62,7 @@ export default class AppPreSetText extends Vue {
* 内容类型 * 内容类型
* *
* @type {string} * @type {string}
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
@Prop({ default: 'RAW' }) public contentType!: 'RAW' | 'HTML' | 'IMAGE' | 'MARKDOWN'; @Prop({ default: 'RAW' }) public contentType!: 'RAW' | 'HTML' | 'IMAGE' | 'MARKDOWN';
...@@ -70,7 +70,7 @@ export default class AppPreSetText extends Vue { ...@@ -70,7 +70,7 @@ export default class AppPreSetText extends Vue {
* 绘制模式 * 绘制模式
* *
* @type {string} * @type {string}
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
@Prop({ default: 'TEXT' }) public renderMode!: 'TEXT' | 'HEADING1' | 'HEADING2' | 'HEADING3' | 'HEADING4' | 'HEADING5' | 'HEADING6' | 'PARAGRAPH'; @Prop({ default: 'TEXT' }) public renderMode!: 'TEXT' | 'HEADING1' | 'HEADING2' | 'HEADING3' | 'HEADING4' | 'HEADING5' | 'HEADING6' | 'PARAGRAPH';
...@@ -78,7 +78,7 @@ export default class AppPreSetText extends Vue { ...@@ -78,7 +78,7 @@ export default class AppPreSetText extends Vue {
* 内容样式 * 内容样式
* *
* @type {string} * @type {string}
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
@Prop() public contentStyle?: string; @Prop() public contentStyle?: string;
...@@ -86,35 +86,35 @@ export default class AppPreSetText extends Vue { ...@@ -86,35 +86,35 @@ export default class AppPreSetText extends Vue {
* 预置类型 * 预置类型
* *
* @type {string} * @type {string}
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
@Prop({ default: 'STATIC_TEXT' }) public predefinedType!: 'FIELD_TEXT_DYNAMIC' | 'STATIC_LABEL' | 'STATIC_TEXT'; @Prop({ default: 'STATIC_TEXT' }) public predefinedType!: 'FIELD_TEXT_DYNAMIC' | 'STATIC_LABEL' | 'STATIC_TEXT';
/** /**
* 图标 * 图标
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
@Prop() public imageClass?: string; @Prop() public imageClass?: string;
/** /**
* 动态图片路径 * 动态图片路径
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
protected dynaImgUrl: string = ''; protected dynaImgUrl: string = '';
/** /**
* 样式 * 样式
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
protected cssStyle: string = ''; protected cssStyle: string = '';
/** /**
* 图片路径 * 图片路径
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
get imgUrl(): string { get imgUrl(): string {
return this.dynaImgUrl; return this.dynaImgUrl;
...@@ -123,7 +123,7 @@ export default class AppPreSetText extends Vue { ...@@ -123,7 +123,7 @@ export default class AppPreSetText extends Vue {
/** /**
* 内容 * 内容
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
get content(): string { get content(): string {
let content = this.value; let content = this.value;
...@@ -145,7 +145,7 @@ export default class AppPreSetText extends Vue { ...@@ -145,7 +145,7 @@ export default class AppPreSetText extends Vue {
/** /**
* Vue生命周期 --- Created * Vue生命周期 --- Created
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
created() { created() {
this.handleText(); this.handleText();
...@@ -155,7 +155,7 @@ export default class AppPreSetText extends Vue { ...@@ -155,7 +155,7 @@ export default class AppPreSetText extends Vue {
/** /**
* 处理文本 * 处理文本
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
protected handleText() { protected handleText() {
if (this.predefinedType === 'STATIC_LABEL') { if (this.predefinedType === 'STATIC_LABEL') {
...@@ -166,7 +166,7 @@ export default class AppPreSetText extends Vue { ...@@ -166,7 +166,7 @@ export default class AppPreSetText extends Vue {
/** /**
* 处理动态图片 * 处理动态图片
* *
* @memberof AppPreSetText * @memberof AppPresetText
*/ */
protected handleDynaImg() { protected handleDynaImg() {
// TODO 动态图片 // TODO 动态图片
......
...@@ -7,19 +7,19 @@ import { Environment } from "@/environments/environment"; ...@@ -7,19 +7,19 @@ import { Environment } from "@/environments/environment";
import { Vue, Component } from 'vue-property-decorator'; import { Vue, Component } from 'vue-property-decorator';
@Component({}) @Component({})
export default class AppPreSetTitle extends Vue { export default class AppPresetTitle extends Vue {
/** /**
* 当前值 * 当前值
* *
* @memberof AppPreSetTitle * @memberof AppPresetTitle
*/ */
public curValue: string = ''; public curValue: string = '';
/** /**
* 初始化 * 初始化
* *
* @memberof AppPreSetTitle * @memberof AppPresetTitle
*/ */
public created() { public created() {
this.curValue = Environment.AppTitle; this.curValue = Environment.AppTitle;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册