mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-27 01:32:10 +08:00 
			
		
		
		
	docs
This commit is contained in:
		
							parent
							
								
									7093f1772f
								
							
						
					
					
						commit
						b388aeaa02
					
				| @ -130,8 +130,6 @@ if (process.env.NODE_ENV === 'production') { | ||||
|                   var description = (m && m.length > 1) ? m[1] : ''; | ||||
|                   var content = tokens[idx + 1].content; | ||||
|                   var html = convert(striptags.strip(content, ['script', 'style'])); | ||||
|                   var script = striptags.fetch(content, 'script'); | ||||
|                   var style = striptags.fetch(content, 'style'); | ||||
| 
 | ||||
|                   return `<demo-block class="demo-box">
 | ||||
|                             <div class="examples" slot="examples">${html}</div> | ||||
|  | ||||
| @ -21,7 +21,7 @@ | ||||
| 
 | ||||
| 只接受primary, default, danger三种类型,默认default。 | ||||
| 
 | ||||
| :::demo | ||||
| :::demo 按钮功能 | ||||
| ```html | ||||
| <zan-row> | ||||
|   <zan-col span="24"> | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
| ### 完整引入 | ||||
| 
 | ||||
| ```js | ||||
| ```javascript | ||||
| import Vue from 'vue'; | ||||
| import ZanUI from '@youzan/zanui-vue'; | ||||
| import '@youzan/zanui-vue/lib/zanui-css/index.css'; | ||||
| @ -12,7 +12,7 @@ Vue.use(ZanUI); | ||||
| 
 | ||||
| ### 按需引入 | ||||
| 
 | ||||
| ```js | ||||
| ```javascript | ||||
| import Vue from 'vue'; | ||||
| import { Button, Cell } from '@youzan/zanui-vue'; | ||||
| import '@youzan/zanui-vue/lib/zanui-css/button.css'; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user