san-html-cases
Advanced tools
Comparing version 3.10.18 to 3.10.19
{ | ||
"name": "san-html-cases", | ||
"version": "3.10.18", | ||
"version": "3.10.19", | ||
"description": "本仓库维护 San 在不同的使用场景下正确的 HTML 是什么。即 [san-ssr][san-ssr] 应当产出怎样的 HTML,以及 [san 核心][san] 正确反解依赖怎样的 HTML。因此本仓库就是 San HTML 的规范,并由 san 和 san-ssr 两个仓库的 e2e 测试来确保有效。", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
it("fragment elements", function (done) { | ||
it("fragment in slot", function (done) { | ||
// [inject] init | ||
@@ -3,0 +3,0 @@ |
const san = require('san') | ||
let container = san.defineComponent({ | ||
let Container = san.defineComponent({ | ||
template: `<p>Hello<slot/>!</p>` | ||
}) | ||
let MyApp = san.defineComponent({ | ||
components: { 'my-component': container }, | ||
let MyComponent = san.defineComponent({ | ||
components: { 'my-component': Container }, | ||
template: `<my-component>aaa{{name}}<span></span></my-component>` | ||
}) | ||
exports = module.exports = MyApp | ||
exports = module.exports = MyComponent |
184396
551
4791