From 4222865647803a081ef913873ad6bca6a474e2f0 Mon Sep 17 00:00:00 2001 From: Zack Yang Date: Fri, 31 Mar 2017 09:33:25 +0800 Subject: [PATCH] feat(field): modify reboot label style --- src/component/component.resource.json | 4 ++-- src/component/form/form.style.scss | 4 ++++ src/component/form/index.js | 9 +++++---- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/component/form/form.style.scss diff --git a/src/component/component.resource.json b/src/component/component.resource.json index 25d1a30..7723891 100644 --- a/src/component/component.resource.json +++ b/src/component/component.resource.json @@ -97,11 +97,11 @@ { "key": "keepalive.reboot.enable", "type": "switch", + "className": "reboot-highlight", "templateOptions": { "label": "CELLULAR_FORM_LABEL_REBOOT" }, "hideExpression": "!model.keepalive.enable" } ] -} - +} \ No newline at end of file diff --git a/src/component/form/form.style.scss b/src/component/form/form.style.scss new file mode 100644 index 0000000..5dba9ee --- /dev/null +++ b/src/component/form/form.style.scss @@ -0,0 +1,4 @@ +.reboot-highlight { + color: blue; + font-weight: bold; +} \ No newline at end of file diff --git a/src/component/form/index.js b/src/component/form/index.js index 57a868e..f117cac 100644 --- a/src/component/form/index.js +++ b/src/component/form/index.js @@ -1,11 +1,12 @@ import angular from 'angular'; +import './form.style.scss'; import './form.tpl.html'; import CellularFormContainerComponent from './container.component'; import CellularFormComponent from './form.component'; -const sjCellularForm = angular.module('sanji.cellular.form', []) +const sjCellularForm = angular + .module('sanji.cellular.form', []) .component('sanjiCellularFormContainer', CellularFormContainerComponent) - .component('sanjiCellularForm', CellularFormComponent) - .name; -export {sjCellularForm}; + .component('sanjiCellularForm', CellularFormComponent).name; +export { sjCellularForm };