3.9.3 • Published 2 months ago

smart-screen-design v3.9.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

使用

import MZUI from 'smart-screen-design';
import 'smart-screen-design/windi.css';
app.use(MZUI);

TLayout

T型布局

<TLayout>
    <template #top>
    </template>
    <template #left>
    </template>
    <template #right>
    </template>
  </TLayout>
slot说明
top顶部栏
left下方左半部分
right下方左半部分

topBar

顶部栏

<top-bar
    :device-name="deviceInfo.value.name"
    :room-name="deviceInfo.value.homeName"
    :desc="delayDesc"
    @exit="exitPage"
></top-bar>
proptypedefault说明
deviceNamestring灯光设备名
roomNamestring主卧房间名
descstring你想讲滴咩野设备状态描述
background-colorstring#000背景色
eventcallbacktype说明
exit告知点击退出按钮

powerSwitch

设备开关

<power-switch :power="OnOff" :on-icon="onIcon" :off-icon="offIcon" @change="OnOffControl"></power-switch>
proptypedefault说明
powerbooleantrue当前开关值
onIcon图片智慧屏开图标开图标
offIcon图片智慧屏关图标关图标
eventcallbacktype说明
change!powerboolean返回!power

adjustCard

调节卡片

<adjust-card class="flex-auto" title="亮度" :percentage="brightNessPercentage" @update="brightNessHandler">
</adjust-card>
proptypedefault说明
titlestring亮度标题
descstring''描述
percentagenumber60百分比
minnumber0最小百分比
maxnumber100最大百分比
colorstring0背景色
heightnumber20拖动条高度
unitstring%单位
stepnumber1指定步长
graphnumber3段落分节
disabledbooleanfalse是否禁用
slideDisabledbooleanfalse是否禁用滑动
eventcallbacktype说明
updatepercentnumber返回拖动变化percent
sliderEndpercentnumber返回拖动结束时的百分比percent

modeCard

模式卡片

<mode-card class="flex-auto" :modes="runModes" @select="changeMode"></mode-card>
interface Mode {
  id: number;

  name: string;

  icon_on: string;

  icon_off: string;

  selected: boolean;

  [key: string]: any;
}
proptypedefault说明
titlestring模式标题
selectedVisablebooleantrue已选模式是否标注
modesArray\<Mode>0最小百分比
rownumber4行容量
eventcallbacktype说明
selectidnumber返回选择模式id

DropdownMenu

下拉框组件

<DropdownMenu
          title="模式"
          :value="device.mode"
          :options="config.modeList"
          @change="changeMode"
        ></DropdownMenu>
import { DropdownMenu } from 'smart-screen-design';
proptypedefault说明
titlestring标题标题
v-modelstring""当前选中项对应的 value
disabledbooleanfalse是否禁用
optionsArray\<{text: string;value: string }>[]选项数组
event回调参数说明
change{text: string;value: string }点击选项导致 value 变化时触发

functionCard

功能卡片

        <functionCard title="零冷水" :icon="noCold">
          <template #right>
            <functionSwitch :checked="zeroOnOff" @change="handleNoCold">
            </functionSwitch>
          </template>
        </functionCard>
import { functionCard, functionSwitch } from 'smart-screen-design';
proptypedefault说明
titlestring标题标题
iconstring''前置图标
slot说明
right右侧插槽

functionSwitch

功能开关

            <functionSwitch :checked="zeroOnOff" @change="handleNoCold">
            </functionSwitch>
import { functionSwitch } from 'smart-screen-design';
proptypedefault说明
checkedbooleantrue开关
event回调参数说明
changeswi: boolean点击切换

ScreenCell

单元格组件

<ScreenCell
          title="模式"
          :value="device.mode"
          :options="config.modeList"
          @change="changeMode"
        ></ScreenCell>
import { ScreenCell } from 'smart-screen-design';
proptypedefault说明
titlestring标题标题
descstring""描述状态文案
icon图片-图标
3.9.3

2 months ago

3.9.2

2 months ago

3.9.1

2 years ago

3.9.0

2 years ago

3.8.14

2 years ago

3.8.13

2 years ago

3.8.12

2 years ago

3.8.11

2 years ago

3.8.10

2 years ago

3.8.9

2 years ago

3.8.8

2 years ago

3.8.7

2 years ago

3.8.6

2 years ago

3.8.5

2 years ago

3.8.4

2 years ago

3.8.3

2 years ago

3.8.2

2 years ago

3.8.1

2 years ago

3.8.0

2 years ago

3.7.2

2 years ago

3.7.1

2 years ago

3.7.0

2 years ago

3.6.23

2 years ago

3.6.22

2 years ago

3.6.21

2 years ago

3.6.20

2 years ago

3.6.19

2 years ago

3.6.18

2 years ago

3.6.17

2 years ago

3.6.16

2 years ago

3.6.15

2 years ago

3.6.14

2 years ago

3.6.13

2 years ago

3.6.12

2 years ago

3.6.11

2 years ago

3.6.10

2 years ago

3.6.9

2 years ago

3.6.8

2 years ago

3.5.8

2 years ago

3.5.7

2 years ago

3.5.6

2 years ago

3.5.5

2 years ago

3.5.4

2 years ago

3.5.3

2 years ago

3.5.2

2 years ago

3.5.1

2 years ago

3.5.0

2 years ago

3.4.2

2 years ago

3.4.1

2 years ago

3.4.0

2 years ago

3.3.9

2 years ago

3.3.8

2 years ago

3.3.7

2 years ago

3.3.6

2 years ago

3.3.5

2 years ago

3.3.4

2 years ago

3.3.3

2 years ago

3.3.2

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.2.9

2 years ago

3.2.8

2 years ago

3.2.7

2 years ago

3.2.5

2 years ago

3.2.4

2 years ago

3.2.3

2 years ago

3.2.2

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.1.9

2 years ago

3.1.8

2 years ago

3.1.7

2 years ago

3.1.6

2 years ago

3.1.5

2 years ago

3.1.4

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago