You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@smt-ui/component

Package Overview
Dependencies
Maintainers
10
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smt-ui/component - npm Package Compare versions

Comparing version

to
1.1.89

4

package.json
{
"name": "@smt-ui/component",
"version": "1.1.88",
"version": "1.1.89",
"description": "extension base",

@@ -48,3 +48,3 @@ "author": "jialipeng <jialipeng@baidu.com>",

},
"gitHead": "f5269b4a5719eff3c1dda03fc833100418a0fc1c"
"gitHead": "77bc1bbf43f6c245334614cfee5c50ffac8b5608"
}

@@ -10,2 +10,3 @@ /**

} from '../../common/style/color';
/* global Component */

@@ -18,3 +19,6 @@ Component({

type: Boolean,
value: false
value: false,
observer() {
this.updateIcon();
}
},

@@ -24,3 +28,6 @@ // 是否选中

type: Boolean,
value: false
value: false,
observer() {
this.updateIcon();
}
},

@@ -40,3 +47,6 @@ // 是否为不可点击

type: Object,
value: {}
value: {},
observer() {
this.updateIcon();
}
},

@@ -118,2 +128,5 @@ // icon样式

'background-color': checked ? activeBgColor : ''
},
textStyle: {
'color': checked ? activeTextColor : ''
}

@@ -120,0 +133,0 @@ });

@@ -71,2 +71,8 @@ /**

value: '1px'
},
// 展开收起事件是否仅绑定在icon上
onlySpreadByIcon: {
type: Boolean,
value: false
}

@@ -110,4 +116,10 @@ },

* 面板展开收起事件
*
* @param {Event} e Event
*/
spreadEvent() {
spreadEvent(e) {
const isbox = e.currentTarget.dataset.isbox;
if (isbox === true && this.data.onlySpreadByIcon) {
return;
}
const isSpread = !this.data.isSpread;

@@ -114,0 +126,0 @@ this.setData({isSpread});

@@ -12,3 +12,4 @@ /**

'checkbox-group-class',
'check-box-class'
'check-box-class',
'checkbox-group-wrap-class'
],

@@ -15,0 +16,0 @@ properties: {

@@ -21,2 +21,3 @@ /**

'filter-checkbox-group-class',
'checkbox-group-wrap-class',
'checkbox-group-class',

@@ -23,0 +24,0 @@ 'check-box-class'],

@@ -32,4 +32,4 @@ /**

value: {
type: Array,
value: [],
type: String,
value: '',
observer: function () {

@@ -49,3 +49,3 @@ this.createSingleOptGroup();

},
// 选中时的文字颜色
// 未选中时的文字颜色
normalTextColor: {

@@ -60,2 +60,3 @@ type: String,

},
// 未选中的背景色
normalBgColor: {

@@ -65,2 +66,3 @@ type: String,

},
// 选中时的边框颜色
activeBorderColor: {

@@ -70,2 +72,3 @@ type: String,

},
// 未选中的边框颜色
normalBorderColor: {

@@ -93,3 +96,3 @@ type: String,

itemChange(event) {
const value = [event.detail.val];
const value = event.detail.val;
this.setData({

@@ -110,5 +113,6 @@ value

const last = currRowOptions.length - 1;
option.checked = (value || []).includes(option.value);
option.checked = value === option.value;
currRowOptions[last].push(option);
});
this.setData({

@@ -115,0 +119,0 @@ currRowOptions

@@ -1,1 +0,1 @@

{"name":"component","label":"通用","type":"component","configPath":"./smart-design-config.json","version":"1.1.87"}
{"name":"component","label":"通用","type":"component","configPath":"./smart-design-config.json","version":"1.1.88"}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet