diff --git a/src/action-sheet/action-sheet.json b/src/action-sheet/action-sheet.json index 55e98e848..70f0a2946 100644 --- a/src/action-sheet/action-sheet.json +++ b/src/action-sheet/action-sheet.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-popup": "../popup/popup", diff --git a/src/avatar-group/avatar-group.json b/src/avatar-group/avatar-group.json index 9f58d251f..e41eed496 100644 --- a/src/avatar-group/avatar-group.json +++ b/src/avatar-group/avatar-group.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-avatar": "../avatar/avatar" } diff --git a/src/avatar/avatar.json b/src/avatar/avatar.json index 4461d94cc..96df5f8ec 100644 --- a/src/avatar/avatar.json +++ b/src/avatar/avatar.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-badge": "../badge/badge", diff --git a/src/avatar/avatar.ts b/src/avatar/avatar.ts index 10107db43..5dcfa14ae 100644 --- a/src/avatar/avatar.ts +++ b/src/avatar/avatar.ts @@ -10,7 +10,6 @@ const name = `${prefix}-avatar`; export default class Avatar extends SuperComponent { options: WechatMiniprogram.Component.ComponentOptions = { multipleSlots: true, - styleIsolation: 'apply-shared', }; externalClasses = [ diff --git a/src/back-top/back-top.json b/src/back-top/back-top.json index 049940c16..f783dae79 100644 --- a/src/back-top/back-top.json +++ b/src/back-top/back-top.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/badge/_example/base/index.js b/src/badge/_example/base/index.js index 2dc2188cf..b79c5124b 100644 --- a/src/badge/_example/base/index.js +++ b/src/badge/_example/base/index.js @@ -1,5 +1 @@ -Component({ - options: { - styleIsolation: 'apply-shared', - }, -}); +Component({}); diff --git a/src/badge/_example/base/index.json b/src/badge/_example/base/index.json index d500b2f3c..05e031843 100644 --- a/src/badge/_example/base/index.json +++ b/src/badge/_example/base/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-badge": "tdesign-miniprogram/badge/badge", "t-icon": "tdesign-miniprogram/icon/icon", diff --git a/src/badge/_example/size/index.js b/src/badge/_example/size/index.js index 2dc2188cf..b79c5124b 100644 --- a/src/badge/_example/size/index.js +++ b/src/badge/_example/size/index.js @@ -1,5 +1 @@ -Component({ - options: { - styleIsolation: 'apply-shared', - }, -}); +Component({}); diff --git a/src/badge/_example/size/index.json b/src/badge/_example/size/index.json index b0e380804..de43b0304 100644 --- a/src/badge/_example/size/index.json +++ b/src/badge/_example/size/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-badge": "tdesign-miniprogram/badge/badge", "t-avatar": "tdesign-miniprogram/avatar/avatar" diff --git a/src/badge/_example/theme/index.js b/src/badge/_example/theme/index.js index 2dc2188cf..b79c5124b 100644 --- a/src/badge/_example/theme/index.js +++ b/src/badge/_example/theme/index.js @@ -1,5 +1 @@ -Component({ - options: { - styleIsolation: 'apply-shared', - }, -}); +Component({}); diff --git a/src/badge/_example/theme/index.json b/src/badge/_example/theme/index.json index b4018fd0d..13ffa8e8d 100644 --- a/src/badge/_example/theme/index.json +++ b/src/badge/_example/theme/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-badge": "tdesign-miniprogram/badge/badge", "t-cell": "tdesign-miniprogram/cell/cell", diff --git a/src/badge/badge.json b/src/badge/badge.json index a7a3e7a38..4f0a3f08c 100644 --- a/src/badge/badge.json +++ b/src/badge/badge.json @@ -1,5 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } - diff --git a/src/button/button.json b/src/button/button.json index 708bd1bbd..a32e8cdfc 100644 --- a/src/button/button.json +++ b/src/button/button.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-loading": "../loading/loading" diff --git a/src/calendar/_example/without-popup/index.js b/src/calendar/_example/without-popup/index.js index e5ca91dc4..0f6eee932 100644 --- a/src/calendar/_example/without-popup/index.js +++ b/src/calendar/_example/without-popup/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, methods: { handleSelect(e) { const { value, entireValue } = e.detail; diff --git a/src/calendar/_example/without-popup/index.json b/src/calendar/_example/without-popup/index.json index 5b1def7e2..ab7157248 100644 --- a/src/calendar/_example/without-popup/index.json +++ b/src/calendar/_example/without-popup/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-calendar": "tdesign-miniprogram/calendar/calendar" } diff --git a/src/calendar/calendar.ts b/src/calendar/calendar.ts index 449aa7bad..347a0467b 100644 --- a/src/calendar/calendar.ts +++ b/src/calendar/calendar.ts @@ -15,7 +15,6 @@ export default class Calendar extends SuperComponent { options: WechatMiniprogram.Component.ComponentOptions = { multipleSlots: true, - styleIsolation: 'apply-shared', }; properties = props; diff --git a/src/cascader/cascader.json b/src/cascader/cascader.json index 9fb1ae853..6f4fec8c6 100644 --- a/src/cascader/cascader.json +++ b/src/cascader/cascader.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-popup": "../popup/popup", diff --git a/src/cell-group/cell-group.json b/src/cell-group/cell-group.json index 467ce2945..79f273097 100644 --- a/src/cell-group/cell-group.json +++ b/src/cell-group/cell-group.json @@ -1,3 +1,4 @@ { - "component": true + "component": true, + "styleIsolation": "apply-shared" } diff --git a/src/cell/cell.json b/src/cell/cell.json index 9a40e601a..b7d275dd8 100644 --- a/src/cell/cell.json +++ b/src/cell/cell.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-image": "../image/image" diff --git a/src/check-tag/check-tag.json b/src/check-tag/check-tag.json index 049940c16..f783dae79 100644 --- a/src/check-tag/check-tag.json +++ b/src/check-tag/check-tag.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/checkbox-group/checkbox-group.json b/src/checkbox-group/checkbox-group.json index dc01cebe5..9d5b437ea 100644 --- a/src/checkbox-group/checkbox-group.json +++ b/src/checkbox-group/checkbox-group.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-checkbox": "../checkbox/checkbox" } diff --git a/src/checkbox/_example/special/index.js b/src/checkbox/_example/special/index.js index 2c980b7c0..961035fe0 100644 --- a/src/checkbox/_example/special/index.js +++ b/src/checkbox/_example/special/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { value: [0, 1], value1: [0, 1], diff --git a/src/checkbox/_example/special/index.json b/src/checkbox/_example/special/index.json index d33566eaf..12bacc438 100644 --- a/src/checkbox/_example/special/index.json +++ b/src/checkbox/_example/special/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group", "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", diff --git a/src/checkbox/checkbox.json b/src/checkbox/checkbox.json index 049940c16..f783dae79 100644 --- a/src/checkbox/checkbox.json +++ b/src/checkbox/checkbox.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/checkbox/checkbox.ts b/src/checkbox/checkbox.ts index 3e18f968b..f6bd1320d 100644 --- a/src/checkbox/checkbox.ts +++ b/src/checkbox/checkbox.ts @@ -48,7 +48,6 @@ export default class CheckBox extends SuperComponent { options: ComponentsOptionsType = { multipleSlots: true, - // styleIsolation: 'shared', }; properties = { diff --git a/src/col/col.json b/src/col/col.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/col/col.json +++ b/src/col/col.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/collapse-panel/collapse-panel.json b/src/collapse-panel/collapse-panel.json index 5160a9501..e33d33e80 100644 --- a/src/collapse-panel/collapse-panel.json +++ b/src/collapse-panel/collapse-panel.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-cell": "../cell/cell" } diff --git a/src/collapse/collapse.json b/src/collapse/collapse.json index 467ce2945..79f273097 100644 --- a/src/collapse/collapse.json +++ b/src/collapse/collapse.json @@ -1,3 +1,4 @@ { - "component": true + "component": true, + "styleIsolation": "apply-shared" } diff --git a/src/count-down/count-down.json b/src/count-down/count-down.json index 049940c16..f783dae79 100644 --- a/src/count-down/count-down.json +++ b/src/count-down/count-down.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/date-time-picker/_example/time/index.js b/src/date-time-picker/_example/time/index.js index d63e38acf..9b99047d2 100644 --- a/src/date-time-picker/_example/time/index.js +++ b/src/date-time-picker/_example/time/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { mode: '', second: '10:00:00', diff --git a/src/date-time-picker/_example/time/index.json b/src/date-time-picker/_example/time/index.json index 4e08decef..851253d87 100644 --- a/src/date-time-picker/_example/time/index.json +++ b/src/date-time-picker/_example/time/index.json @@ -1,4 +1,5 @@ { + "styleIsolation": "apply-shared", "usingComponents": { "t-cell": "tdesign-miniprogram/cell/cell", "t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker" diff --git a/src/date-time-picker/date-time-picker.json b/src/date-time-picker/date-time-picker.json index 460dcd6b9..1207defe8 100644 --- a/src/date-time-picker/date-time-picker.json +++ b/src/date-time-picker/date-time-picker.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-picker": "../picker/picker", "t-picker-item": "../picker-item/picker-item" diff --git a/src/dialog/_example/status/index.js b/src/dialog/_example/status/index.js index bb54ffad6..a5a37d9ed 100644 --- a/src/dialog/_example/status/index.js +++ b/src/dialog/_example/status/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { confirmBtn: { content: '确定', variant: 'base' }, dialogKey: '', diff --git a/src/dialog/_example/status/index.json b/src/dialog/_example/status/index.json index 2a4435cb3..fbc583153 100644 --- a/src/dialog/_example/status/index.json +++ b/src/dialog/_example/status/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-button": "tdesign-miniprogram/button/button", "t-dialog": "tdesign-miniprogram/dialog/dialog" diff --git a/src/dialog/dialog.json b/src/dialog/dialog.json index 5cfe8893c..95bed64db 100644 --- a/src/dialog/dialog.json +++ b/src/dialog/dialog.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-popup": "../popup/popup", "t-icon": "../icon/icon", diff --git a/src/divider/divider.json b/src/divider/divider.json index 467ce2945..79f273097 100644 --- a/src/divider/divider.json +++ b/src/divider/divider.json @@ -1,3 +1,4 @@ { - "component": true + "component": true, + "styleIsolation": "apply-shared" } diff --git a/src/drawer/drawer.json b/src/drawer/drawer.json index 95a2238b4..4d58963e0 100644 --- a/src/drawer/drawer.json +++ b/src/drawer/drawer.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-popup": "../popup/popup", "t-icon": "../icon/icon" diff --git a/src/dropdown-item/dropdown-item.json b/src/dropdown-item/dropdown-item.json index a07137b06..60fb367fb 100644 --- a/src/dropdown-item/dropdown-item.json +++ b/src/dropdown-item/dropdown-item.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-button": "../button/button", "t-radio": "../radio/radio", diff --git a/src/dropdown-menu/dropdown-menu.json b/src/dropdown-menu/dropdown-menu.json index 049940c16..f783dae79 100644 --- a/src/dropdown-menu/dropdown-menu.json +++ b/src/dropdown-menu/dropdown-menu.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/empty/empty.json b/src/empty/empty.json index 9a40e601a..b7d275dd8 100644 --- a/src/empty/empty.json +++ b/src/empty/empty.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-image": "../image/image" diff --git a/src/fab/fab.json b/src/fab/fab.json index 7025f7d71..04d333ffc 100644 --- a/src/fab/fab.json +++ b/src/fab/fab.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-button": "../button/button", "t-draggable": "./draggable/draggable" diff --git a/src/footer/footer.json b/src/footer/footer.json index f705aeecf..bdf8a5738 100644 --- a/src/footer/footer.json +++ b/src/footer/footer.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-image": "../image/image" } diff --git a/src/grid-item/grid-item.json b/src/grid-item/grid-item.json index 26991b4bd..a707ea974 100644 --- a/src/grid-item/grid-item.json +++ b/src/grid-item/grid-item.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-image": "../image/image", "t-icon": "../icon/icon", diff --git a/src/grid/grid.json b/src/grid/grid.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/grid/grid.json +++ b/src/grid/grid.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/icon/icon.json b/src/icon/icon.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/icon/icon.json +++ b/src/icon/icon.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/image-viewer/image-viewer.json b/src/image-viewer/image-viewer.json index b19ce0604..10c8fc075 100644 --- a/src/image-viewer/image-viewer.json +++ b/src/image-viewer/image-viewer.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-image": "../image/image", "t-icon": "../icon/icon" diff --git a/src/image/image.json b/src/image/image.json index 5de7a6667..1c9137b69 100644 --- a/src/image/image.json +++ b/src/image/image.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-loading": "../loading/loading", "t-icon": "../icon/icon" diff --git a/src/indexes-anchor/indexes-anchor.json b/src/indexes-anchor/indexes-anchor.json index 467ce2945..79f273097 100644 --- a/src/indexes-anchor/indexes-anchor.json +++ b/src/indexes-anchor/indexes-anchor.json @@ -1,3 +1,4 @@ { - "component": true + "component": true, + "styleIsolation": "apply-shared" } diff --git a/src/indexes/indexes.json b/src/indexes/indexes.json index 49bfc1bd7..4ae6508f5 100644 --- a/src/indexes/indexes.json +++ b/src/indexes/indexes.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-cell": "../cell/cell", diff --git a/src/input/input.json b/src/input/input.json index 049940c16..f783dae79 100644 --- a/src/input/input.json +++ b/src/input/input.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/link/link.json b/src/link/link.json index 049940c16..f783dae79 100644 --- a/src/link/link.json +++ b/src/link/link.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/loading/_example/size/index.js b/src/loading/_example/size/index.js index 2dc2188cf..b79c5124b 100644 --- a/src/loading/_example/size/index.js +++ b/src/loading/_example/size/index.js @@ -1,5 +1 @@ -Component({ - options: { - styleIsolation: 'apply-shared', - }, -}); +Component({}); diff --git a/src/loading/loading.json b/src/loading/loading.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/loading/loading.json +++ b/src/loading/loading.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/message/message-item/message.json b/src/message/message-item/message.json index 82727c68f..66d302e08 100644 --- a/src/message/message-item/message.json +++ b/src/message/message-item/message.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../../icon/icon", "t-link": "../../link/link" diff --git a/src/message/message-item/message.ts b/src/message/message-item/message.ts index 46e0949c5..9dafeea8b 100644 --- a/src/message/message-item/message.ts +++ b/src/message/message-item/message.ts @@ -29,7 +29,6 @@ export default class Message extends SuperComponent { ]; options: ComponentsOptionsType = { - styleIsolation: 'apply-shared', multipleSlots: true, }; diff --git a/src/message/message.json b/src/message/message.json index 0974ebc8e..6e7ae28a0 100644 --- a/src/message/message.json +++ b/src/message/message.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-message-item": "./message-item/message" } diff --git a/src/message/message.ts b/src/message/message.ts index 0f6556baf..46134ea2e 100644 --- a/src/message/message.ts +++ b/src/message/message.ts @@ -15,7 +15,6 @@ let gap = 12; // 两条message之间的间距,单位px @wxComponent() export default class Message extends SuperComponent { options: ComponentsOptionsType = { - styleIsolation: 'apply-shared', multipleSlots: true, }; diff --git a/src/navbar/_example/base/index.js b/src/navbar/_example/base/index.js index e5540efd6..5b62b3dbf 100644 --- a/src/navbar/_example/base/index.js +++ b/src/navbar/_example/base/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, methods: { handleBack() { console.log('go back'); diff --git a/src/navbar/_example/base/index.json b/src/navbar/_example/base/index.json index 857cc209a..2dda44b86 100644 --- a/src/navbar/_example/base/index.json +++ b/src/navbar/_example/base/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-navbar": "tdesign-miniprogram/navbar/navbar" } diff --git a/src/navbar/_example/left-title/index.js b/src/navbar/_example/left-title/index.js index 2dc2188cf..b79c5124b 100644 --- a/src/navbar/_example/left-title/index.js +++ b/src/navbar/_example/left-title/index.js @@ -1,5 +1 @@ -Component({ - options: { - styleIsolation: 'apply-shared', - }, -}); +Component({}); diff --git a/src/navbar/_example/left-title/index.json b/src/navbar/_example/left-title/index.json index 857cc209a..2dda44b86 100644 --- a/src/navbar/_example/left-title/index.json +++ b/src/navbar/_example/left-title/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-navbar": "tdesign-miniprogram/navbar/navbar" } diff --git a/src/navbar/navbar.json b/src/navbar/navbar.json index 049940c16..f783dae79 100644 --- a/src/navbar/navbar.json +++ b/src/navbar/navbar.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/notice-bar/notice-bar.json b/src/notice-bar/notice-bar.json index ef9e100f2..4a243bcdc 100644 --- a/src/notice-bar/notice-bar.json +++ b/src/notice-bar/notice-bar.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-button": "../button/button" diff --git a/src/notice-bar/notice-bar.ts b/src/notice-bar/notice-bar.ts index de69cedc3..430eb69c3 100644 --- a/src/notice-bar/notice-bar.ts +++ b/src/notice-bar/notice-bar.ts @@ -25,7 +25,6 @@ export default class NoticeBar extends SuperComponent { ]; options: ComponentsOptionsType = { - styleIsolation: 'apply-shared', multipleSlots: true, }; diff --git a/src/overlay/overlay.json b/src/overlay/overlay.json index 467ce2945..79f273097 100644 --- a/src/overlay/overlay.json +++ b/src/overlay/overlay.json @@ -1,3 +1,4 @@ { - "component": true + "component": true, + "styleIsolation": "apply-shared" } diff --git a/src/picker-item/picker-item.json b/src/picker-item/picker-item.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/picker-item/picker-item.json +++ b/src/picker-item/picker-item.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/picker/picker.json b/src/picker/picker.json index b93d9750b..bc013f5ae 100644 --- a/src/picker/picker.json +++ b/src/picker/picker.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-popup": "../popup/popup" } diff --git a/src/popup/popup.json b/src/popup/popup.json index 870a7b616..babc8a1f1 100644 --- a/src/popup/popup.json +++ b/src/popup/popup.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-overlay": "../overlay/overlay", "t-icon": "../icon/icon" diff --git a/src/progress/progress.json b/src/progress/progress.json index 049940c16..f783dae79 100644 --- a/src/progress/progress.json +++ b/src/progress/progress.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/pull-down-refresh/pull-down-refresh.json b/src/pull-down-refresh/pull-down-refresh.json index e570665fa..f20e16478 100644 --- a/src/pull-down-refresh/pull-down-refresh.json +++ b/src/pull-down-refresh/pull-down-refresh.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-loading": "../loading/loading" } diff --git a/src/radio-group/radio-group.json b/src/radio-group/radio-group.json index 7994804e1..c2c7a60fd 100644 --- a/src/radio-group/radio-group.json +++ b/src/radio-group/radio-group.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-radio": "../radio/radio" } diff --git a/src/radio/_example/special/index.js b/src/radio/_example/special/index.js index f577a25ab..f22b6b12b 100644 --- a/src/radio/_example/special/index.js +++ b/src/radio/_example/special/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { value: 0, value1: 0, diff --git a/src/radio/_example/special/index.json b/src/radio/_example/special/index.json index 2e1bd688a..e826c0ee9 100644 --- a/src/radio/_example/special/index.json +++ b/src/radio/_example/special/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-radio-group": "tdesign-miniprogram/radio-group/radio-group", "t-radio": "tdesign-miniprogram/radio/radio", diff --git a/src/radio/radio.json b/src/radio/radio.json index 049940c16..f783dae79 100644 --- a/src/radio/radio.json +++ b/src/radio/radio.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/rate/_example/action/index.js b/src/rate/_example/action/index.js index 49f0c0eae..44672c7f5 100644 --- a/src/rate/_example/action/index.js +++ b/src/rate/_example/action/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { value: 3.5, }, diff --git a/src/rate/_example/action/index.json b/src/rate/_example/action/index.json index 724692fed..a79980cc8 100644 --- a/src/rate/_example/action/index.json +++ b/src/rate/_example/action/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-rate": "tdesign-miniprogram/rate/rate" } diff --git a/src/rate/rate.json b/src/rate/rate.json index 049940c16..f783dae79 100644 --- a/src/rate/rate.json +++ b/src/rate/rate.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/result/result.json b/src/result/result.json index 9a40e601a..b7d275dd8 100644 --- a/src/result/result.json +++ b/src/result/result.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-image": "../image/image" diff --git a/src/row/row.json b/src/row/row.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/row/row.json +++ b/src/row/row.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/search/_example/shape/index.js b/src/search/_example/shape/index.js index d8541feb6..2b6c97396 100644 --- a/src/search/_example/shape/index.js +++ b/src/search/_example/shape/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { value: '', }, diff --git a/src/search/_example/shape/index.json b/src/search/_example/shape/index.json index 3d604b8e9..97381d8b4 100644 --- a/src/search/_example/shape/index.json +++ b/src/search/_example/shape/index.json @@ -1,4 +1,5 @@ { + "styleIsolation": "apply-shared", "usingComponents": { "t-search": "tdesign-miniprogram/search/search" } diff --git a/src/search/search.json b/src/search/search.json index 049940c16..f783dae79 100644 --- a/src/search/search.json +++ b/src/search/search.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/side-bar-item/side-bar-item.json b/src/side-bar-item/side-bar-item.json index 2c00c378e..3c096d31a 100644 --- a/src/side-bar-item/side-bar-item.json +++ b/src/side-bar-item/side-bar-item.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-badge": "../badge/badge", "t-icon": "../icon/icon" diff --git a/src/side-bar/side-bar.json b/src/side-bar/side-bar.json index a1c9d56c8..2093b53dc 100644 --- a/src/side-bar/side-bar.json +++ b/src/side-bar/side-bar.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-side-bar-item": "../side-bar-item/side-bar-item" } diff --git a/src/skeleton/skeleton.json b/src/skeleton/skeleton.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/skeleton/skeleton.json +++ b/src/skeleton/skeleton.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/slider/_example/label/index.js b/src/slider/_example/label/index.js index 55ef36d02..ab255f835 100644 --- a/src/slider/_example/label/index.js +++ b/src/slider/_example/label/index.js @@ -1,8 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, - data: { value: 35, }, diff --git a/src/slider/_example/label/index.json b/src/slider/_example/label/index.json index 0a25073c0..7e7f1e640 100644 --- a/src/slider/_example/label/index.json +++ b/src/slider/_example/label/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-slider": "tdesign-miniprogram/slider/slider" } diff --git a/src/slider/_example/step/index.js b/src/slider/_example/step/index.js index aae9ba65e..86c68eda7 100644 --- a/src/slider/_example/step/index.js +++ b/src/slider/_example/step/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { marks: { 0: '0', diff --git a/src/slider/_example/step/index.json b/src/slider/_example/step/index.json index 0a25073c0..7e7f1e640 100644 --- a/src/slider/_example/step/index.json +++ b/src/slider/_example/step/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-slider": "tdesign-miniprogram/slider/slider" } diff --git a/src/slider/_example/vertical/index.js b/src/slider/_example/vertical/index.js index e399a0a8d..55708bdf2 100644 --- a/src/slider/_example/vertical/index.js +++ b/src/slider/_example/vertical/index.js @@ -1,8 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, - data: { value: 35, marks: { diff --git a/src/slider/_example/vertical/index.json b/src/slider/_example/vertical/index.json index 0a25073c0..7e7f1e640 100644 --- a/src/slider/_example/vertical/index.json +++ b/src/slider/_example/vertical/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-slider": "tdesign-miniprogram/slider/slider" } diff --git a/src/slider/slider.json b/src/slider/slider.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/slider/slider.json +++ b/src/slider/slider.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/step-item/step-item.json b/src/step-item/step-item.json index 049940c16..f783dae79 100644 --- a/src/step-item/step-item.json +++ b/src/step-item/step-item.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/stepper/stepper.json b/src/stepper/stepper.json index dfd59ed99..a81bbaa94 100644 --- a/src/stepper/stepper.json +++ b/src/stepper/stepper.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-cell": "../cell/cell", "t-icon": "../icon/icon" diff --git a/src/steps/_example/horizontal/index.js b/src/steps/_example/horizontal/index.js index 2fc6ee719..b6b5ea346 100644 --- a/src/steps/_example/horizontal/index.js +++ b/src/steps/_example/horizontal/index.js @@ -1,8 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, - data: { first: 1, second: 1, diff --git a/src/steps/_example/horizontal/index.json b/src/steps/_example/horizontal/index.json index 332e4f48c..3effc7e8c 100644 --- a/src/steps/_example/horizontal/index.json +++ b/src/steps/_example/horizontal/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", "t-step-item": "tdesign-miniprogram/step-item/step-item" diff --git a/src/steps/_example/special/index.js b/src/steps/_example/special/index.js index cf0ec66aa..b0378a6b5 100644 --- a/src/steps/_example/special/index.js +++ b/src/steps/_example/special/index.js @@ -1,7 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, data: { count: 4, }, diff --git a/src/steps/_example/special/index.json b/src/steps/_example/special/index.json index 866db68f0..aa9ee3139 100644 --- a/src/steps/_example/special/index.json +++ b/src/steps/_example/special/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", "t-step-item": "tdesign-miniprogram/step-item/step-item", diff --git a/src/steps/_example/status/index.js b/src/steps/_example/status/index.js index 2fc6ee719..b6b5ea346 100644 --- a/src/steps/_example/status/index.js +++ b/src/steps/_example/status/index.js @@ -1,8 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, - data: { first: 1, second: 1, diff --git a/src/steps/_example/status/index.json b/src/steps/_example/status/index.json index 332e4f48c..3effc7e8c 100644 --- a/src/steps/_example/status/index.json +++ b/src/steps/_example/status/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", "t-step-item": "tdesign-miniprogram/step-item/step-item" diff --git a/src/steps/_example/vertical/index.js b/src/steps/_example/vertical/index.js index 2fc6ee719..b6b5ea346 100644 --- a/src/steps/_example/vertical/index.js +++ b/src/steps/_example/vertical/index.js @@ -1,8 +1,4 @@ Component({ - options: { - styleIsolation: 'apply-shared', - }, - data: { first: 1, second: 1, diff --git a/src/steps/_example/vertical/index.json b/src/steps/_example/vertical/index.json index 332e4f48c..3effc7e8c 100644 --- a/src/steps/_example/vertical/index.json +++ b/src/steps/_example/vertical/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", "t-step-item": "tdesign-miniprogram/step-item/step-item" diff --git a/src/steps/steps.json b/src/steps/steps.json index 94bcc8b47..8dd102129 100644 --- a/src/steps/steps.json +++ b/src/steps/steps.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-step": "../step-item/step-item" } diff --git a/src/sticky/sticky.json b/src/sticky/sticky.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/sticky/sticky.json +++ b/src/sticky/sticky.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/swipe-cell/swipe-cell.json b/src/swipe-cell/swipe-cell.json index 049940c16..f783dae79 100644 --- a/src/swipe-cell/swipe-cell.json +++ b/src/swipe-cell/swipe-cell.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon" } diff --git a/src/swiper-nav/swiper-nav.json b/src/swiper-nav/swiper-nav.json index 467ce2945..79f273097 100644 --- a/src/swiper-nav/swiper-nav.json +++ b/src/swiper-nav/swiper-nav.json @@ -1,3 +1,4 @@ { - "component": true + "component": true, + "styleIsolation": "apply-shared" } diff --git a/src/swiper/swiper.json b/src/swiper/swiper.json index e565961dd..3989ca757 100644 --- a/src/swiper/swiper.json +++ b/src/swiper/swiper.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-swiper-nav": "../swiper-nav/swiper-nav", "t-image": "../image/image" diff --git a/src/switch/_example/status/index.js b/src/switch/_example/status/index.js index 2dc2188cf..b79c5124b 100644 --- a/src/switch/_example/status/index.js +++ b/src/switch/_example/status/index.js @@ -1,5 +1 @@ -Component({ - options: { - styleIsolation: 'apply-shared', - }, -}); +Component({}); diff --git a/src/switch/_example/status/index.json b/src/switch/_example/status/index.json index 86e689252..cbf5225b7 100644 --- a/src/switch/_example/status/index.json +++ b/src/switch/_example/status/index.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-cell": "tdesign-miniprogram/cell/cell", "t-switch": "tdesign-miniprogram/switch/switch" diff --git a/src/switch/switch.json b/src/switch/switch.json index 708bd1bbd..a32e8cdfc 100644 --- a/src/switch/switch.json +++ b/src/switch/switch.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-loading": "../loading/loading" diff --git a/src/tab-bar-item/tab-bar-item.json b/src/tab-bar-item/tab-bar-item.json index 69017ce46..0603787bb 100644 --- a/src/tab-bar-item/tab-bar-item.json +++ b/src/tab-bar-item/tab-bar-item.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-badge": "../badge/badge" diff --git a/src/tab-bar/tab-bar.json b/src/tab-bar/tab-bar.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/tab-bar/tab-bar.json +++ b/src/tab-bar/tab-bar.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/tab-panel/tab-panel.json b/src/tab-panel/tab-panel.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/tab-panel/tab-panel.json +++ b/src/tab-panel/tab-panel.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/tabs/tabs.json b/src/tabs/tabs.json index 0570f9ad9..f9b94dba7 100644 --- a/src/tabs/tabs.json +++ b/src/tabs/tabs.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-sticky": "../sticky/sticky", "t-badge": "../badge/badge", diff --git a/src/tag/tag.json b/src/tag/tag.json index fc075a197..6f15f5754 100644 --- a/src/tag/tag.json +++ b/src/tag/tag.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": ".././icon/icon" } diff --git a/src/tag/tag.ts b/src/tag/tag.ts index cf4b44003..2d5322e47 100644 --- a/src/tag/tag.ts +++ b/src/tag/tag.ts @@ -21,7 +21,6 @@ export default class Tag extends SuperComponent { options: WechatMiniprogram.Component.ComponentOptions = { multipleSlots: true, - styleIsolation: 'apply-shared', }; lifetimes = { diff --git a/src/textarea/textarea.json b/src/textarea/textarea.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/textarea/textarea.json +++ b/src/textarea/textarea.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/toast/toast.json b/src/toast/toast.json index b60dbbc48..bccc6a249 100644 --- a/src/toast/toast.json +++ b/src/toast/toast.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-icon": "../icon/icon", "t-loading": "../loading/loading", diff --git a/src/transition/transition.json b/src/transition/transition.json index a89ef4dbe..4f0a3f08c 100644 --- a/src/transition/transition.json +++ b/src/transition/transition.json @@ -1,4 +1,5 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": {} } diff --git a/src/tree-select/tree-select.json b/src/tree-select/tree-select.json index 0083bb129..cad65bd9e 100644 --- a/src/tree-select/tree-select.json +++ b/src/tree-select/tree-select.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-radio": "../radio/radio", "t-radio-group": "../radio-group/radio-group", diff --git a/src/upload/upload.json b/src/upload/upload.json index 010327d30..1ac0a3bf1 100644 --- a/src/upload/upload.json +++ b/src/upload/upload.json @@ -1,5 +1,6 @@ { "component": true, + "styleIsolation": "apply-shared", "usingComponents": { "t-grid": "../grid/grid", "t-grid-item": "../grid-item/grid-item",