1.0.9 • Published 11 months ago

@cmss/amp-probe-lightweight v1.0.9

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

介绍

前端橡皮擦

功能

指定页面元素,通过外部配置模式改变页面元素状态。

安装

npm install @cmss/amp-probe-lightweight --save

快速使用

在main.js中引入插件

import AMP from '@cmss/amp-probe-lightweight'
Vue.use(AMP, {
  mockUrl:${mockUrl}
})

其中mockUrl的格式如下:

[
  {
    "id": "history-event", // id模式下表示绑定在dom上的唯一id,selector模式下表示唯一能够找到dom的选择器信息
    "ruleName": "隐藏历史事件", // 自定义规则名称
    "rule": "invisible" // 规则,目前支持invisible(不可见)和disabled(不可用)
    "type": 'selector' // 类型,id模式或selector选择器模式
  },
  {
    "id": "button1",
    "ruleName": "隐藏新建实例按钮",
    "rule": "invisible",
    "type":'id'
  }
]
1.0.9

11 months ago

1.0.8

12 months ago

1.0.7

1 year ago

1.0.2

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.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago