diff --git a/src/slider/slider.ts b/src/slider/slider.ts index 2a5801b48..95b0fd6e5 100644 --- a/src/slider/slider.ts +++ b/src/slider/slider.ts @@ -27,11 +27,11 @@ type dataType = { @wxComponent() export default class Slider extends SuperComponent { externalClasses = [ - `${{ prefix }}-class`, - `${{ prefix }}-class-bar`, - `${{ prefix }}-class-bar-active`, - `${{ prefix }}-class-bar-disabled`, - `${{ prefix }}-class-cursor`, + `${prefix}-class`, + `${prefix}-class-bar`, + `${prefix}-class-bar-active`, + `${prefix}-class-bar-disabled`, + `${prefix}-class-cursor`, ]; properties = props; diff --git a/src/stepper/stepper.ts b/src/stepper/stepper.ts index 1f563f2d2..bb28c4db3 100644 --- a/src/stepper/stepper.ts +++ b/src/stepper/stepper.ts @@ -7,10 +7,10 @@ const { prefix } = config; @wxComponent() export default class Stepper extends SuperComponent { externalClasses = [ - `${{ prefix }}-class`, - `${{ prefix }}-class-input`, - `${{ prefix }}-class-minus`, - `${{ prefix }}-class-plus`, + `${prefix}-class`, + `${prefix}-class-input`, + `${prefix}-class-minus`, + `${prefix}-class-plus`, ]; options = {