diff --git a/entry/src/main/ets/common/constants/CommonConstants.ets b/entry/src/main/ets/common/constants/CommonConstants.ets index 4c8dfb757834a8a2287d07bd60ee4d8a3aa0444d..166482633c58903359f7224e71f12c36cc785b2f 100644 --- a/entry/src/main/ets/common/constants/CommonConstants.ets +++ b/entry/src/main/ets/common/constants/CommonConstants.ets @@ -16,85 +16,69 @@ /** * Common constants for all features. */ - export class CommonConstants { /** * Promotional activities. */ - static readonly TAB_NAME_1: string = '促销活动'; - + public static readonly TAB_NAME_1: string = '促销活动'; /** * Trip Services. */ - static readonly TAB_NAME_2: string = '行程服务'; - + public static readonly TAB_NAME_2: string = '行程服务'; /** * Promotional goods. */ - static readonly LIST_NAME_1: string = '促销商品'; - + public static readonly LIST_NAME_1: string = '促销商品'; /** * Itinerary Arrangements. */ - static readonly LIST_NAME_2: string = '行程安排'; - + public static readonly LIST_NAME_2: string = '行程安排'; /** * font weight is 500. */ - static readonly FONT_WEIGHT_FIVE: number = 500; - + public static readonly FONT_WEIGHT_FIVE: number = 500; /** * font weight is 500. */ - static readonly FONT_WEIGHT_FOUR: number = 400; - + public static readonly FONT_WEIGHT_FOUR: number = 400; /** * The width of the split line is 2. */ - static readonly STROKE_WIDTH: number = 2; - + public static readonly STROKE_WIDTH: number = 2; /** * list space is 12. */ - static readonly LIST_SPACE: number = 12; - + public static readonly LIST_SPACE: number = 12; /** * stack height. */ - static readonly STACK_HEIGHT: Length = "calc(100% - 60vp)"; - + public static readonly STACK_HEIGHT: Length = 'calc(100% - 60vp)'; /** * Transparency is 1. */ - static readonly FULL_OPACITY: number = 1; - + public static readonly FULL_OPACITY: number = 1; /** * Transparency is 0. */ - static readonly ZERO_OPACITY: number = 0; - + public static readonly ZERO_OPACITY: number = 0; /** * Width the percentage of the 100. */ - static readonly FULL_WIDTH: string = '100%'; - + public static readonly FULL_WIDTH: string = '100%'; /** * Height the percentage of the 100. */ - static readonly FULL_HEIGHT: string = '100%'; - + public static readonly FULL_HEIGHT: string = '100%'; /** * Breakpoint sm. */ - static readonly BREAK_POINT_SM: string = 'sm'; - + public static readonly BREAK_POINT_SM: string = 'sm'; /** * Breakpoint md. */ - static readonly BREAK_POINT_MD: string = 'md'; - + public static readonly BREAK_POINT_MD: string = 'md'; /** * Breakpoint lg. */ - static readonly BREAK_POINT_LG: string = 'lg'; + public static readonly BREAK_POINT_LG: string = 'lg'; } \ No newline at end of file diff --git a/entry/src/main/ets/common/utils/Utils.ets b/entry/src/main/ets/common/utils/Utils.ets index 820d7bb1ea99bc93ecd4abf9b78b939835b3f5cc..185999d6b8ba25e183be0d882eb6915d2f5eee15 100644 --- a/entry/src/main/ets/common/utils/Utils.ets +++ b/entry/src/main/ets/common/utils/Utils.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { CommonConstants } from "../constants/CommonConstants"; +import { CommonConstants } from '../constants/CommonConstants'; export class BreakpointType { sm: T;